浏览代码

增加方案,录入费用因子时,默认会带出部分因子的问题

li.pengfei 3 年之前
父节点
当前提交
39e1fbc1bc
共有 1 个文件被更改,包括 5 次插入3 次删除
  1. 5 3
      src/views/AgreementManage/CarInsurance/AgreementEntry.vue

+ 5 - 3
src/views/AgreementManage/CarInsurance/AgreementEntry.vue

@@ -2192,6 +2192,8 @@ export default {
     uplatequery(index, row) {
       //每次修改时,先把变量清空,解决累加存储问题
       this.dept=[];
+      //编辑进来,tab页指向第一个
+      this.activeTabs = 'first';
       this.agreementId = row.id;
       this.operType = "EDIT";
       this.dialogTitle = "协议编辑";
@@ -2390,7 +2392,7 @@ export default {
     },
     //弹框打开事件,清空表单
     closeDialog() {
-      if (this.operType == "ADD") {
+      //不管新增,还是编辑  关闭窗口后,都清空临时数据 以免编辑后新增默认带出上一次打开协议中信息
         this.insure = '满足拒保'
         for (let key in this.agreement) {
           if (key != "partnerCompaniesId") {
@@ -2409,8 +2411,6 @@ export default {
           this.expandshow = false;
           this.parentkeys = [];
         }
-
-      }
     },
     jqCostsProportioninput(val, schemeindex, productCostsindex) {
       let pay1 = this.costform.scheme[schemeindex].productCosts[productCostsindex].jqCostsProportion;//总
@@ -2607,6 +2607,8 @@ export default {
     },
     // 选择合作公司end
     handleAdd() {
+      //新增进来,tab页指向第一个
+      this.activeTabs = 'first';
       this.operType = "ADD";
       this.dialogTitle = "新增协议";
       this.agreementdialogVisible = true;