|
@@ -572,7 +572,7 @@
|
|
|
<el-form :inline="true" :model="productcopyItemPageRequest" class="demo-form-inline" size="small"
|
|
<el-form :inline="true" :model="productcopyItemPageRequest" class="demo-form-inline" size="small"
|
|
|
label-width="80px">
|
|
label-width="80px">
|
|
|
<el-form-item label="选择协议">
|
|
<el-form-item label="选择协议">
|
|
|
- <el-select v-model="productcopyItemPageRequest.agreementId" placeholder="请选择协议">
|
|
|
|
|
|
|
+ <el-select v-model="productcopyItemPageRequest.agreementId" filterable clearable placeholder="请选择协议">
|
|
|
<el-option v-for="(item, index) in protocolpageResult" :key="index"
|
|
<el-option v-for="(item, index) in protocolpageResult" :key="index"
|
|
|
:label="`${item.agreementName}-${item.businessDescription}-${item.jobDescription}`"
|
|
:label="`${item.agreementName}-${item.businessDescription}-${item.jobDescription}`"
|
|
|
:value="item.id"></el-option>
|
|
:value="item.id"></el-option>
|
|
@@ -1258,7 +1258,6 @@ export default {
|
|
|
},
|
|
},
|
|
|
// 生命周期函数
|
|
// 生命周期函数
|
|
|
created() {
|
|
created() {
|
|
|
- console.log(this.messageInfo, 888888);
|
|
|
|
|
this.lineData = this.messageInfo
|
|
this.lineData = this.messageInfo
|
|
|
this.insuranceCompanyId = this.messageInfo.insuranceCompanyId;
|
|
this.insuranceCompanyId = this.messageInfo.insuranceCompanyId;
|
|
|
this.productpageRequest.agreementId = this.messageInfo.id;
|
|
this.productpageRequest.agreementId = this.messageInfo.id;
|
|
@@ -1285,7 +1284,6 @@ export default {
|
|
|
item.businessDescription == null ? item.businessDescription = '' : item.businessDescription,
|
|
item.businessDescription == null ? item.businessDescription = '' : item.businessDescription,
|
|
|
item.jobDescription == null ? item.jobDescription = '' : item.jobDescription
|
|
item.jobDescription == null ? item.jobDescription = '' : item.jobDescription
|
|
|
});
|
|
});
|
|
|
- console.log(this.protocolpageResult);
|
|
|
|
|
} else {
|
|
} else {
|
|
|
this.$message.error(res.msg);
|
|
this.$message.error(res.msg);
|
|
|
}
|
|
}
|
|
@@ -1981,30 +1979,39 @@ export default {
|
|
|
return <el-switch value={row.validStatus} active-value={1}
|
|
return <el-switch value={row.validStatus} active-value={1}
|
|
|
inactive-value={0} onChange={validStatuschange} ></el-switch>;
|
|
inactive-value={0} onChange={validStatuschange} ></el-switch>;
|
|
|
function validStatuschange(value) {
|
|
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) {
|
|
operatorTypeFormatter(row, column) {
|
|
|
let operatorType = row.operatorType;
|
|
let operatorType = row.operatorType;
|
|
|
switch (operatorType) {
|
|
switch (operatorType) {
|