瀏覽代碼

【修改】bug

howie 3 年之前
父節點
當前提交
80228b82e4
共有 1 個文件被更改,包括 5 次插入4 次删除
  1. 5 4
      src/views/sales_policy/components/AddCondition.vue

+ 5 - 4
src/views/sales_policy/components/AddCondition.vue

@@ -43,7 +43,7 @@
               </el-row>
               <el-row>
                 <el-table
-                  ref="multipleTable"
+
                   v-loading="listLoadingArr[`listLoading${index}`]"
                   style="width: 100%"
                   :data="item"
@@ -258,6 +258,7 @@
                     <el-row>
                       <el-row class="title"> 可选产品列表 </el-row>
                       <el-table
+                         ref="multipleTable"
                         style="width: 100%"
                         :data="conditList"
                         border
@@ -637,7 +638,7 @@ export default {
       const params = {
         id: "",
         policyConditionMaterials: tableData,
-        policyId: this.comCode,
+        policyId:    this.$parent.searchForm.code || this.comCode,
         policyName: "",
         pop: pop.join(":"),
       };
@@ -652,7 +653,7 @@ export default {
         this.$parent.isCondition = 0;
         this.$parent.isFlag = 1;
         // Object.assign(this.$data, this.$options.data());
-        this.$emit("handleSubmitCon", this.comCode);
+        this.$emit("handleSubmitCon", this.$parent.searchForm.code || this.comCode );
       });
     },
     handleSelectionChange(val) {
@@ -702,7 +703,7 @@ export default {
         pageNum: this.currentPage,
         pageSize: this.pageSize,
         saleTypeCode: this.saleTypeCode,
-        policyId: this.comCode || this.$parent.searchForm.code,
+        policyId:  this.$parent.searchForm.code || this.comCode ,
       }).then((res) => {
         let datas = [];
         for (let j = 0; j < this.conditionBox.length; j++) {