Browse Source

默认勾选

@dongkboy 1 year ago
parent
commit
8e0e96cea8
1 changed files with 16 additions and 7 deletions
  1. 16 7
      src/views/AgreementManage/CarInsurance/AgreementEntry.vue

+ 16 - 7
src/views/AgreementManage/CarInsurance/AgreementEntry.vue

@@ -1415,7 +1415,7 @@
         <div v-show="!trajectoryTable1.length">暂无轨迹</div>
       </div>
     </el-dialog>
-    <el-dialog title="协议复制" :visible.sync="copyProtocolVisible" width="90%" top="6vh" :fullscreen="true" @open="copyProtocolOpen">
+    <el-dialog title="协议复制" :visible.sync="copyProtocolVisible" width="90%" top="6vh" :fullscreen="true"  @open="copyProtocolOpen">
       <el-form :model="copyProtocolform" class="demo-form-inline" :size="overSize" label-width="110px"
         style="margin: 10px 20px;border-bottom: 1px solid #D7DBE7;">
         <el-row>
@@ -1558,11 +1558,11 @@ export default {
       copyProtocolInfo: {//复制协议json
         agreementId: "",
         cost: {
-          all: false,
+          all: true,
           informationId: []
         },
         underwritingRules: {
-          all: false,
+          all: true,
           informationId: []
         }
       },//协议复制
@@ -1992,6 +1992,7 @@ export default {
         { prop: "costsEndDate", label: "费用止期", minWidth: 160 },
         { prop: "costsDescription", label: "费用描述", minWidth: 220 },
         { prop: "desc", label: "费用因子描述", minWidth: 520 },
+        { prop: "effective", label: "有效状态", minWidth: 100 ,formatter: this.effectiveFormatter},
         { prop: "priorityLevel", label: "方案优先级", minWidth: 120 },
         {
           prop: "jqCarCostsProportion",
@@ -3189,6 +3190,10 @@ export default {
       this.operationTypeBtn = 4
 
     },
+    copyProtocolOpen(){
+      this.copyProtocolInfo.cost.all=true;
+      this.copyProtocolInfo.underwritingRules.all=true;
+    },
     //非车规则分页查询
     accidentalInsuranceFindPage(data) {
       let params = {
@@ -3686,10 +3691,6 @@ export default {
       this.underwritingRulesFindPage();
 
     },
-    copyProtocolOpen(){
-      this.copyProtocolInfo.cost.all=false;
-      this.copyProtocolInfo.underwritingRules.all=false;
-    },
     costselectionChange(data) {
       this.copyProtocolInfo.cost.informationId = data;
     },
@@ -4058,6 +4059,14 @@ export default {
           return '删除'
       }
     },
+    effectiveFormatter(row,column){
+      let effective = row.effective;
+      if(effective){
+        return <el-tag type="success">有效</el-tag>;
+      }else{
+        return <el-tag type="error">无效</el-tag>;
+      }
+    },
     useNatureFormatter(row, column) {
       let natureOfVehicle = row.useNature;
       return CommonUtil.getDataName({