Browse Source

【修改】bug

howie 2 years ago
parent
commit
df38082202
1 changed files with 13 additions and 4 deletions
  1. 13 4
      src/views/supply/policy/components/retail_form.vue

+ 13 - 4
src/views/supply/policy/components/retail_form.vue

@@ -1145,6 +1145,7 @@ export default {
     },
     // 选择销售政策获取政策条件列表
     async handlePolicy(e) {
+      console.log(e);
       this.totalArr = [];
       this.multipleSelections = [];
       this.dataList = [];
@@ -1210,8 +1211,16 @@ export default {
       this.screenForm.policyId = data.policyId;
       this.policyConditionId = data.id;
     },
-    handleGetPolicyList(){
-
+    async handleGetPolicyList(){
+     const {data} = await policyList({
+        pageNum: 1,
+        pageSize: -1,
+        specification: this.screenForm.specification,
+      })
+       this.policyList = data.records
+        if (data.records.length) {
+          this.handlePolicy(data.records[0].id);
+        }
     },
     // 引用销售政策搜索
     async handlePolicyTypeList() {
@@ -1239,7 +1248,7 @@ export default {
         pageSize: -1,
         policyConditionId,
         popType,
-        specification: this.screenForm.specification,
+        // specification: this.screenForm.specification,
         saleTypeCode: this.screenForm.saleTypeCode,
         customerId: this.listItem ? this.listItem.customerId : "",
       });
@@ -1311,7 +1320,7 @@ export default {
         pageSize: -1,
         policyId: this.screenForm.policyId,
         saleTypeCode: this.screenForm.saleTypeCode,
-        specification: this.screenForm.specification,
+        // specification: this.screenForm.specification,
         customerId: this.listItem ? this.listItem.customerId : "",
         [val]: true,
       }).then((res) => {