|
|
@@ -562,7 +562,7 @@
|
|
|
@click="batchCostsubmit">确 定</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
- <el-dialog :append-to-body="true" title="费用复制窗口" :visible.sync="productCostCopyDialogVisible"
|
|
|
+ <el-dialog :append-to-body="true" title="费用复制窗口" :visible.sync="productCostCopyDialogVisible"
|
|
|
:close-on-click-modal="false" :fullscreen="true">
|
|
|
<div class="p-2">
|
|
|
<el-form :inline="true" :model="productcopyItemPageRequest" class="demo-form-inline" size="small"
|
|
|
@@ -1253,7 +1253,6 @@ export default {
|
|
|
},
|
|
|
// 生命周期函数
|
|
|
created() {
|
|
|
- console.log(this.messageInfo, 888888);
|
|
|
this.lineData = this.messageInfo
|
|
|
this.insuranceCompanyId = this.messageInfo.insuranceCompanyId;
|
|
|
this.productpageRequest.agreementId = this.messageInfo.id;
|
|
|
@@ -1280,7 +1279,6 @@ export default {
|
|
|
item.businessDescription == null ? item.businessDescription = '' : item.businessDescription,
|
|
|
item.jobDescription == null ? item.jobDescription = '' : item.jobDescription
|
|
|
});
|
|
|
- console.log(this.protocolpageResult);
|
|
|
} else {
|
|
|
this.$message.error(res.msg);
|
|
|
}
|
|
|
@@ -1931,30 +1929,38 @@ export default {
|
|
|
return <el-switch value={row.validStatus} active-value={1}
|
|
|
inactive-value={0} onChange={validStatuschange} ></el-switch>;
|
|
|
function validStatuschange(value) {
|
|
|
- _this.$confirm('禁用后今日内可支付的订单将失效, 是否继续?', '提示', {
|
|
|
- confirmButtonText: '确定',
|
|
|
- cancelButtonText: '取消',
|
|
|
- type: 'danger'
|
|
|
- }).then(() => {
|
|
|
- _this.$api.insCompany.productdisable(row.id).then((res) => {
|
|
|
- if (res.code == '200') {
|
|
|
- _this.$message({
|
|
|
- type: 'success',
|
|
|
- message: res.msg,
|
|
|
- });
|
|
|
- _this.productCostFindPage();
|
|
|
- } else {
|
|
|
- _this.$message({
|
|
|
- type: 'error',
|
|
|
- message: res.msg,
|
|
|
- });
|
|
|
- }
|
|
|
+ if (value) {
|
|
|
+ _this.productdisableUP(row.id);
|
|
|
+ } else {
|
|
|
+ _this.$confirm('禁用后今日内可支付的订单将失效, 是否继续?', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'danger'
|
|
|
+ }).then(() => {
|
|
|
+ _this.productdisableUP(row.id);
|
|
|
+ }).catch(() => {
|
|
|
});
|
|
|
- }).catch(() => {
|
|
|
- });
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
},
|
|
|
-
|
|
|
+ //费用启用/禁用
|
|
|
+ productdisableUP(id) {
|
|
|
+ this.$api.insCompany.productdisable(id).then((res) => {
|
|
|
+ if (res.code == '200') {
|
|
|
+ this.$message({
|
|
|
+ type: 'success',
|
|
|
+ message: res.msg,
|
|
|
+ });
|
|
|
+ this.productCostFindPage();
|
|
|
+ } else {
|
|
|
+ this.$message({
|
|
|
+ type: 'error',
|
|
|
+ message: res.msg,
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
operatorTypeFormatter(row, column) {
|
|
|
let operatorType = row.operatorType;
|
|
|
switch (operatorType) {
|