chenrui 1 éve
szülő
commit
957ee18bf9

+ 5 - 1
src/views/common/custList.vue

@@ -58,6 +58,10 @@ export default {
     dealerDisabled: {
       type: Boolean,
       default: false
+    },
+    isDealerFlag: { // 是否为下级
+      type: Boolean,
+      default: false
     }
   },
   data () {
@@ -76,7 +80,7 @@ export default {
       const fetchId = this.lastFetchId
       this.data = []
       this.fetching = true
-      const params = { pageNo: 1, pageSize: 20, mainFlag: this.mainFlag ? 1 : 0 }
+      const params = { pageNo: 1, pageSize: 20, mainFlag: this.mainFlag ? 1 : 0, dealerFlag: this.isDealerFlag ? 1 : 0 }
       if (this.satelliteFlag) {
         params.satelliteFlag = 1
       }

+ 2 - 2
src/views/reportData/salesOutofStockReport/list.vue

@@ -20,7 +20,7 @@
           </a-col>
           <a-col :md="6" :sm="24">
             <a-form-model-item label="客户名称">
-              <custList id="salesOutofStockReport-buyerName" ref="custSatelliteList" @change="custSatelliteChange"></custList>
+              <custList :isDealerFlag="true" id="salesOutofStockReport-buyerName" ref="custSatelliteList" @change="custSatelliteChange"></custList>
             </a-form-model-item>
           </a-col>
           <a-col :md="6" :sm="24" style="margin-bottom: 10px;">
@@ -163,7 +163,7 @@ export default {
     },
     custSatelliteChange (v, row) {
       if (row && row.customerSn) {
-        this.queryParam.targetSn = row.customerSn
+        this.queryParam.targetSn = row.dealerSn
         this.queryParam.targetName = row.customerName
       } else {
         this.queryParam.targetName = v