소스 검색

【修改】bug

howie 2 년 전
부모
커밋
902a67f73e
1개의 변경된 파일4개의 추가작업 그리고 3개의 파일을 삭제
  1. 4 3
      src/views/supply/policy/components/retail_form.vue

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

@@ -1215,6 +1215,7 @@ export default {
      const {data} = await policyList({
         pageNum: 1,
         pageSize: -1,
+        customerId: JSON.parse(localStorage.getItem("supply_user")).customerId,
         specification: this.screenForm.specification,
       })
        this.policyList = data.records
@@ -1250,7 +1251,7 @@ export default {
         popType,
         // specification: this.screenForm.specification,
         saleTypeCode: this.screenForm.saleTypeCode,
-        customerId: this.listItem ? this.listItem.customerId : "",
+        customerId:  JSON.parse(localStorage.getItem("supply_user")).customerId,
       });
 
       if (!fang) {
@@ -1321,7 +1322,7 @@ export default {
         policyId: this.screenForm.policyId,
         saleTypeCode: this.screenForm.saleTypeCode,
         // specification: this.screenForm.specification,
-        customerId: this.listItem ? this.listItem.customerId : "",
+        customerId:  JSON.parse(localStorage.getItem("supply_user")).customerId,
         [val]: true,
       }).then((res) => {
         this.dataList = res.data.records;
@@ -1667,7 +1668,7 @@ export default {
       policyList({
         pageNum: 1,
         pageSize: -1,
-        customerId: this.listItem ? this.listItem.customerId : "",
+        customerId:  JSON.parse(localStorage.getItem("supply_user")).customerId,
         status: true,
       }).then((res) => {
         if (this.policyId) {