Browse Source

查询条件 搜索本分区的客户

chenrui 3 years ago
parent
commit
3ecdbbccbf

+ 4 - 4
src/views/financialManagement/returnConfirmation/list.vue

@@ -12,7 +12,7 @@
             </a-col>
             <a-col :md="6" :sm="24">
               <a-form-item label="客户名称" :label-col="{ span:7 }" :wrapper-col="{ span:17}">
-                <custList ref="custList" id="returnConfirmationList-buyerSn" @change="custChange"></custList>
+                <dealerSubareaScopeList ref="dealerSubareaScopeList" id="returnConfirmationList-buyerSn" @change="custChange" />
               </a-form-item>
             </a-col>
             <a-col :md="6" :sm="24">
@@ -91,11 +91,11 @@
 <script>
 import rangeDate from '@/views/common/rangeDate.vue'
 import { STable, VSelect } from '@/components'
-import custList from '@/views/common/custList.vue'
+import dealerSubareaScopeList from '@/views/common/dealerSubareaScopeList.vue'
 import confirmationDetailModal from './detailModal.vue'
 import { salesReturnFinancialList, salesReturnFinancial } from '@/api/salesReturn'
 export default {
-  components: { STable, VSelect, confirmationDetailModal, custList, rangeDate },
+  components: { STable, VSelect, confirmationDetailModal, dealerSubareaScopeList, rangeDate },
   data () {
     return {
       spinning: false,
@@ -160,7 +160,7 @@ export default {
       this.queryParam.buyerSn = undefined
       this.queryParam.grabFlag = undefined
       this.queryParam.billStatus = undefined
-      this.$refs.custList.resetForm()
+      this.$refs.dealerSubareaScopeList.resetForm()
       this.$refs.table.refresh(true)
     },
     // 详情

+ 4 - 4
src/views/salesManagement/examineVerify/list.vue

@@ -12,7 +12,7 @@
             </a-col>
             <a-col :md="6" :sm="24">
               <a-form-item label="客户名称">
-                <custList id="examineVerifyList-buyerName" ref="custList" @change="custChange"></custList>
+                <dealerSubareaScopeList ref="dealerSubareaScopeList" id="examineVerifyList-buyerName" @change="custChange" />
               </a-form-item>
             </a-col>
             <a-col :md="6" :sm="24">
@@ -130,10 +130,10 @@ import { getArea } from '@/api/data'
 import rangeDate from '@/views/common/rangeDate.vue'
 import auditModal from '@/views/common/auditModal.vue'
 import { STable, VSelect } from '@/components'
-import custList from '@/views/common/custList.vue'
+import dealerSubareaScopeList from '@/views/common/dealerSubareaScopeList.vue'
 import { dispatchlList, dispatchQueryCount, dispatchStockUpAduit } from '@/api/dispatch'
 export default {
-  components: { STable, VSelect, custList, rangeDate, auditModal, subarea },
+  components: { STable, VSelect, dealerSubareaScopeList, rangeDate, auditModal, subarea },
   data () {
     return {
       spinning: false,
@@ -218,7 +218,7 @@ export default {
       this.queryParam.beginDate = getDate.getThreeMonthDays().starttime
       this.queryParam.endDate = getDate.getCurrMonthDays().endtime
       this.queryParam.buyerSn = undefined
-      this.$refs.custList.resetForm()
+      this.$refs.dealerSubareaScopeList.resetForm()
       this.queryParam.salesBillNo = ''
       this.queryParam.dispatchBillNo = '' // 备货单号
       this.queryParam.stockOutNo = '' // 出库单号

+ 4 - 4
src/views/salesManagement/pushOrderManagement/list.vue

@@ -12,7 +12,7 @@
             </a-col>
             <a-col :md="6" :sm="24">
               <a-form-item label="客户名称" :label-col="{ span:7 }" :wrapper-col="{ span:17}">
-                <custList id="pushOrder-buyerName" ref="custList" @change="custChange"></custList>
+                <dealerSubareaScopeList ref="dealerSubareaScopeList" id="pushOrder-buyerName" @change="custChange" />
               </a-form-item>
             </a-col>
             <a-col :md="6" :sm="24">
@@ -104,11 +104,11 @@ import rangeDate from '@/views/common/rangeDate.vue'
 import { STable, VSelect } from '@/components'
 import subarea from '@/views/common/subarea.js'
 import { getArea } from '@/api/data'
-import custList from '@/views/common/custList.vue'
+import dealerSubareaScopeList from '@/views/common/dealerSubareaScopeList.vue'
 import { dispatchlList, dispatchQueryCount } from '@/api/dispatch'
 export default {
   name: 'TableList',
-  components: { STable, VSelect, custList, rangeDate, subarea },
+  components: { STable, VSelect, dealerSubareaScopeList, rangeDate, subarea },
   data () {
     return {
       spinning: false,
@@ -191,7 +191,7 @@ export default {
       this.queryParam.beginDate = ''
       this.queryParam.endDate = ''
       this.queryParam.buyerSn = undefined
-      this.$refs.custList.resetForm()
+      this.$refs.dealerSubareaScopeList.resetForm()
       this.queryParam.salesBillNo = ''
       this.queryParam.purchaseBillNo = ''
       this.queryParam.payType = undefined

+ 4 - 4
src/views/salesManagement/salesQuery/list.vue

@@ -12,7 +12,7 @@
             </a-col>
             <a-col :md="6" :sm="24">
               <a-form-item label="客户名称" :label-col="{ span:7 }" :wrapper-col="{ span:17}">
-                <custList id="salesManagementList-buyerName" ref="custList" @change="custChange"></custList>
+                <dealerSubareaScopeList ref="dealerSubareaScopeList" id="salesManagementList-buyerName" @change="custChange" />
               </a-form-item>
             </a-col>
             <a-col :md="6" :sm="24">
@@ -220,12 +220,12 @@ import rangeDate from '@/views/common/rangeDate.vue'
 import { STable, VSelect } from '@/components'
 import auditModal from '@/views/common/auditModal.vue'
 import chooseCustomModal from './chooseCustomModal.vue'
-import custList from '@/views/common/custList.vue'
+import dealerSubareaScopeList from '@/views/common/dealerSubareaScopeList.vue'
 import { salesList, salesDel, salesWriteAudit, salesCount } from '@/api/sales'
 import { findBySalesBillSn } from '@/api/dispatch'
 export default {
   name: 'TableList',
-  components: { STable, VSelect, chooseCustomModal, custList, rangeDate, auditModal, subarea },
+  components: { STable, VSelect, chooseCustomModal, dealerSubareaScopeList, rangeDate, auditModal, subarea },
   data () {
     return {
       spinning: false,
@@ -400,7 +400,7 @@ export default {
       this.$refs.rangeDate.resetDate(this.time)
       this.queryParam.beginDate = getDate.getThreeMonthDays().starttime
       this.queryParam.endDate = getDate.getCurrMonthDays().endtime
-      this.$refs.custList.resetForm()
+      this.$refs.dealerSubareaScopeList.resetForm()
       this.queryParam.buyerSn = undefined
       this.queryParam.salesBillNo = ''
       this.queryParam.purchaseBillNo = ''

+ 4 - 16
src/views/salesManagement/salesReturn/list.vue

@@ -17,7 +17,7 @@
             </a-col>
             <a-col :md="6" :sm="24">
               <a-form-item label="客户名称" :label-col="{ span:7 }" :wrapper-col="{ span:17}">
-                <custList id="salesReturn-buyerSn" ref="custList" @change="custChange"></custList>
+                <dealerSubareaScopeList ref="dealerSubareaScopeList" id="salesReturn-buyerSn" @change="custChange" />
               </a-form-item>
             </a-col>
             <template v-if="advanced">
@@ -42,17 +42,6 @@
                     allowClear></v-select>
                 </a-form-item>
               </a-col>
-              <!-- <a-col :md="6" :sm="24">
-                <a-form-item label="财务状态">
-                  <v-select
-                    v-model="queryParam.financialStatus"
-                    ref="financialStatus"
-                    id="salesManagementList-financialStatus"
-                    code="FINANCIAL_STATUS"
-                    placeholder="请选择财务状态"
-                    allowClear></v-select>
-                </a-form-item>
-              </a-col> -->
               <a-col :md="6" :sm="24">
                 <a-form-model-item label="所在区域">
                   <subarea id="salesReturn-subarea" v-model="queryParam.subareaSn"></subarea>
@@ -178,7 +167,7 @@ import { STable, VSelect } from '@/components'
 import subarea from '@/views/common/subarea.js'
 import { getArea } from '@/api/data'
 import chooseCustomModal from './chooseCustomModal.vue'
-import custList from '@/views/common/custList.vue'
+import dealerSubareaScopeList from '@/views/common/dealerSubareaScopeList.vue'
 import auditModal from '@/views/common/auditModal.vue'
 import rangeDate from '@/views/common/rangeDate.vue'
 import { salesReturnList, salesReturnQueryCount, salesReturnAudit, salesReturnDel } from '@/api/salesReturn'
@@ -190,7 +179,7 @@ export default {
     STable,
     VSelect,
     chooseCustomModal,
-    custList,
+    dealerSubareaScopeList,
     rangeDate,
     auditModal,
     subarea
@@ -346,11 +335,10 @@ export default {
       this.queryParam.beginAuditDate = ''
       this.queryParam.endAuditDate = ''
       this.queryParam.buyerSn = undefined
-      this.$refs.custList.resetForm()
+      this.$refs.dealerSubareaScopeList.resetForm()
       this.queryParam.salesReturnBillNo = ''
       this.queryParam.purchaseReturnBillNo = ''
       this.queryParam.billStatus = undefined
-      // this.queryParam.financialStatus = undefined
       this.queryParam.subareaSn = undefined
       this.queryParam.shippingAddrProvinceSn = undefined
       this.$refs.table.refresh(true)