Browse Source

所有单据-客户下拉框增加筛选条件

jingbb 2 months ago
parent
commit
8ea04ffa0e
25 changed files with 31 additions and 25 deletions
  1. 5 0
      src/components/Form/src/jeecg/components/JSelect.vue
  2. 2 2
      src/views/baseCode/ProjectArchive/BaseProjectArchive.data.ts
  3. 1 1
      src/views/baseCode/ShipArchive/BaseShipArchive.data.ts
  4. 1 1
      src/views/baseCode/ShipArchive/BaseShipArchiveRelateCustomer.data.ts
  5. 1 1
      src/views/inventiry/otherOut/otherOutList.vue
  6. 1 1
      src/views/inventiry/salesOutbound/components/SelectDeliveryModal.vue
  7. 1 1
      src/views/inventiry/salesOutbound/salesOutboundList.vue
  8. 1 1
      src/views/publicComponents/SelectContractModal.vue
  9. 1 1
      src/views/publicComponents/SelectQuotationModal.vue
  10. 1 1
      src/views/publicComponents/SelectSaleOrderModal.vue
  11. 1 1
      src/views/publicComponents/SelectStaningStockModal.vue
  12. 1 1
      src/views/saleCode/advancePayment/advancePaymentList.vue
  13. 1 1
      src/views/saleCode/advancePayment/components/advancePaymentForm.vue
  14. 1 1
      src/views/saleCode/deliveryNotice/deliveryNoticeList.vue
  15. 1 1
      src/views/saleCode/quotation/quotation.vue
  16. 1 1
      src/views/saleCode/receiptOrder/components/receiptOrderForm.vue
  17. 1 1
      src/views/saleCode/receiptOrder/receiptOrdertList.vue
  18. 1 1
      src/views/saleCode/rfp/SaleRfp.data.ts
  19. 1 0
      src/views/saleCode/saleContract/SaleContract.data.ts
  20. 2 2
      src/views/saleCode/saleInquiryForm/SaleInquiryFormList.vue
  21. 1 1
      src/views/saleCode/salesInvoice/components/SelectCommissionOrderModal.vue
  22. 1 1
      src/views/saleCode/salesInvoice/components/SelectDeliveryNoticeModal.vue
  23. 1 1
      src/views/saleCode/salesInvoice/components/saleInvoiceForm.vue
  24. 1 1
      src/views/saleCode/salesInvoice/salesInvoiceList.vue
  25. 1 1
      src/views/saleCode/salesOrder/SaleOrderFormList.vue

+ 5 - 0
src/components/Form/src/jeecg/components/JSelect.vue

@@ -26,6 +26,10 @@
         type: Boolean,
         default: false
       },
+      param:{
+        type: Object,
+        default: {}
+      },
     },
     emits: ['options-change', 'change', 'input', 'update:value'],
     setup(props,{ emit}) {
@@ -64,6 +68,7 @@
       }
       async function getOptions(){
         let params ={pageSize:-1}
+        params = { ...params, ...props.param }
         option.value = (await props.getOptionUrl(params)).records
         const arr = props.showField.split("+")
         option.value.map(item=>{

+ 2 - 2
src/views/baseCode/ProjectArchive/BaseProjectArchive.data.ts

@@ -66,7 +66,7 @@ export const searchFormSchema: FormSchema[] = [
     field: 'customerId',
     component: 'JSelect',
     componentProps: {
-      getOptionUrl: () => defHttp.get({ url: '/cuspCode/cuspCustomerProfile/list?pageSize=-1'}),
+      getOptionUrl: () => defHttp.get({ url: '/cuspCode/cuspCustomerProfile/list?pageSize=-1&status=1'}),
       showField:"currency_dictText+name"
     },
     //colProps: {span: 6},
@@ -101,7 +101,7 @@ export const formSchema: FormSchema[] = [
     //  },
     required: true,
     componentProps: {
-      getOptionUrl: () => defHttp.get({ url: '/cuspCode/cuspCustomerProfile/list?pageSize=-1'}),
+      getOptionUrl: () => defHttp.get({ url: '/cuspCode/cuspCustomerProfile/list?pageSize=-1&status=1'}),
       showField:"currency_dictText+name",
       getPopupContainer: (node) => document.body,
     },

+ 1 - 1
src/views/baseCode/ShipArchive/BaseShipArchive.data.ts

@@ -79,7 +79,7 @@ export const searchFormSchema: FormSchema[] = [
     field: 'relateCustomer',
     component: 'JSelect',
     componentProps: {
-      getOptionUrl: () => defHttp.get({ url: '/cuspCode/cuspCustomerProfile/list?pageSize=-1'}),
+      getOptionUrl: () => defHttp.get({ url: '/cuspCode/cuspCustomerProfile/list?pageSize=-1&status=1'}),
       showField:"currency_dictText+name"
     },
     labelWidth: 180,

+ 1 - 1
src/views/baseCode/ShipArchive/BaseShipArchiveRelateCustomer.data.ts

@@ -52,7 +52,7 @@ export const formSchema: FormSchema[] = [
     field: 'customerId',
     component: 'JSelect',
     componentProps: {
-      getOptionUrl: () => defHttp.get({ url: '/cuspCode/cuspCustomerProfile/list?pageSize=-1'}),
+      getOptionUrl: () => defHttp.get({ url: '/cuspCode/cuspCustomerProfile/list?pageSize=-1&status=1'}),
       showField:"currency_dictText+name",
       getPopupContainer: (node) => document.body,
     },

+ 1 - 1
src/views/inventiry/otherOut/otherOutList.vue

@@ -36,7 +36,7 @@
             <a-col :lg="16">
               <a-form-item name="customer">
                 <template #label><span title="客户(customer)">客户(customer)</span></template>
-                <JSelect   v-model:value="queryParam.customer" :get-option-url="CustomerOption" :showField="showField"></JSelect>
+                <JSelect   v-model:value="queryParam.customer" :get-option-url="CustomerOption" :showField="showField" :param="{status:1}"></JSelect>
               </a-form-item>
             </a-col>
             <a-col :lg="8">

+ 1 - 1
src/views/inventiry/salesOutbound/components/SelectDeliveryModal.vue

@@ -45,7 +45,7 @@
                         </a-col>
                         <a-col :md="12" :sm="16">
                             <a-form-item label="客户(customer)" >
-                                <JSelect   v-model:value="queryParams.customer" :get-option-url="CustomerOption" :showField="showField"></JSelect>
+                                <JSelect   v-model:value="queryParams.customer" :get-option-url="CustomerOption" :showField="showField" :param="{status:1}"></JSelect>
                             </a-form-item>
                         </a-col>
                         

+ 1 - 1
src/views/inventiry/salesOutbound/salesOutboundList.vue

@@ -36,7 +36,7 @@
             <a-col :lg="16">
               <a-form-item name="customer">
                 <template #label><span title="客户(customer)">客户(customer)</span></template>
-                <JSelect   v-model:value="queryParam.customer" :get-option-url="CustomerOption" :showField="showField"></JSelect>
+                <JSelect   v-model:value="queryParam.customer" :get-option-url="CustomerOption" :showField="showField" :param="{status:1}"></JSelect>
               </a-form-item>
             </a-col>
             <a-col :lg="8">

+ 1 - 1
src/views/publicComponents/SelectContractModal.vue

@@ -60,7 +60,7 @@
                         </a-col>
                         <a-col :md="12" :sm="16">
                             <a-form-item label="客户(customer)">
-                                <JSelect   v-model:value="queryParams.quotationCustomer" :get-option-url="CustomerOption" :showField="showField"></JSelect>
+                                <JSelect   v-model:value="queryParams.quotationCustomer" :get-option-url="CustomerOption" :showField="showField" :param="{status:1}"></JSelect>
                             </a-form-item>
                         </a-col>
                         <a-col :md="6" :sm="8">

+ 1 - 1
src/views/publicComponents/SelectQuotationModal.vue

@@ -59,7 +59,7 @@
                         </a-col>
                         <a-col :md="12" :sm="16">
                             <a-form-item label="客户(customer)">
-                                <JSelect   v-model:value="queryParams.quotationCustomer" :get-option-url="CustomerOption" :showField="showField"></JSelect>
+                                <JSelect   v-model:value="queryParams.quotationCustomer" :get-option-url="CustomerOption" :showField="showField" :param="{status:1}"></JSelect>
                             </a-form-item>
                         </a-col>
                         <a-col :md="6" :sm="8">

+ 1 - 1
src/views/publicComponents/SelectSaleOrderModal.vue

@@ -65,7 +65,7 @@
                         </a-col>
                         <a-col :md="12" :sm="16" v-if="showCustomer=='yes'">
                             <a-form-item label="客户(customer)">
-                                <JSelect   v-model:value="queryParams.customer" :get-option-url="CustomerOption" :showField="showField"  @change="changeCustmer"></JSelect>
+                                <JSelect   v-model:value="queryParams.customer" :get-option-url="CustomerOption" :showField="showField"  @change="changeCustmer" :param="{status:1}"></JSelect>
                             </a-form-item>
                         </a-col>
                         <a-col :md="6" :sm="8">

+ 1 - 1
src/views/publicComponents/SelectStaningStockModal.vue

@@ -59,7 +59,7 @@
                         </a-col>
                         <a-col :md="12" :sm="16">
                             <a-form-item label="客户(customer)">
-                                <JSelect   v-model:value="queryParams.customer" :get-option-url="CustomerOption" :showField="showField"></JSelect>
+                                <JSelect   v-model:value="queryParams.customer" :get-option-url="CustomerOption" :showField="showField" :param="{status:1}"></JSelect>
                             </a-form-item>
                         </a-col>
                         

+ 1 - 1
src/views/saleCode/advancePayment/advancePaymentList.vue

@@ -37,7 +37,7 @@
             <a-col :lg="16">
               <a-form-item name="customer">
                 <template #label><span title="客户(customer)">客户(customer)</span></template>
-                <JSelect   v-model:value="queryParam.customer" :get-option-url="CustomerOption" :showField="showField"></JSelect>
+                <JSelect   v-model:value="queryParam.customer" :get-option-url="CustomerOption" :showField="showField" :param="{status:1}"></JSelect>
               </a-form-item>
             </a-col>
             <a-col :lg="8">

+ 1 - 1
src/views/saleCode/advancePayment/components/advancePaymentForm.vue

@@ -26,7 +26,7 @@
 						</a-col>
 						<a-col :span="24">
 							<a-form-item label="客户(customer)" v-bind="validateInfos.customer" id="saleInvoiceForm-customer" name="customer" >
-                <JSelect   v-model:value="formData.customer" :get-option-url="CustomerOption" :showField="showField" @change="changeCustomer"></JSelect>
+                <JSelect   v-model:value="formData.customer" :get-option-url="CustomerOption" :showField="showField" @change="changeCustomer" :param="{status:1}"></JSelect>
                 <!-- <ApiSelect
                   :api="CustomerOption"
                   showSearch

+ 1 - 1
src/views/saleCode/deliveryNotice/deliveryNoticeList.vue

@@ -36,7 +36,7 @@
             <a-col :lg="16">
               <a-form-item name="customer">
                 <template #label><span title="客户(customer)">客户(customer)</span></template>
-                <JSelect   v-model:value="queryParam.customer" :get-option-url="CustomerOption" :showField="showField"></JSelect>
+                <JSelect   v-model:value="queryParam.customer" :get-option-url="CustomerOption" :showField="showField" :param="{status:1}"></JSelect>
               </a-form-item>
             </a-col>
             <a-col :lg="8">

+ 1 - 1
src/views/saleCode/quotation/quotation.vue

@@ -37,7 +37,7 @@
             <a-col :lg="16">
               <a-form-item name="quotationCustomer" :label-col="{ style: 'width: 200px' }">
                 <template #label><span title="报价客户(quotation customer)">报价客户(quotation customer)</span></template>
-                <JSelect   v-model:value="queryParam.quotationCustomer" :get-option-url="CustomerOption" :showField="showField"></JSelect>
+                <JSelect   v-model:value="queryParam.quotationCustomer" :get-option-url="CustomerOption" :showField="showField" :param="{status:1}"></JSelect>
               </a-form-item>
             </a-col>
             <a-col :lg="8">

+ 1 - 1
src/views/saleCode/receiptOrder/components/receiptOrderForm.vue

@@ -31,7 +31,7 @@
 						</a-col>
             <a-col :span="24">
 							<a-form-item label="购方(buyer)" v-bind="validateInfos.customer" id="saleInvoiceForm-customer" name="customer" >
-                <JSelect   v-model:value="formData.customer" :get-option-url="CustomerOption" :showField="showField" @change="changeCustomer"></JSelect>
+                <JSelect   v-model:value="formData.customer" :get-option-url="CustomerOption" :showField="showField" @change="changeCustomer" :param="{status:1}"></JSelect>
 							</a-form-item>
 						</a-col>
 						<a-col :span="24">

+ 1 - 1
src/views/saleCode/receiptOrder/receiptOrdertList.vue

@@ -36,7 +36,7 @@
             <a-col :lg="16">
               <a-form-item name="customer">
                 <template #label><span title="购方(buyer)">购方(buyer)</span></template>
-                <JSelect   v-model:value="queryParam.customer" :get-option-url="CustomerOption" :showField="showField"></JSelect>
+                <JSelect   v-model:value="queryParam.customer" :get-option-url="CustomerOption" :showField="showField" :param="{status:1}"></JSelect>
               </a-form-item>
             </a-col>
             <a-col :lg="8">

+ 1 - 1
src/views/saleCode/rfp/SaleRfp.data.ts

@@ -102,7 +102,7 @@ export const searchFormSchema: FormSchema[] = [
     component: 'JSelect',
     labelWidth: 150,
     componentProps: {
-      getOptionUrl: () => defHttp.get({ url: '/cuspCode/cuspCustomerProfile/list?pageSize=-1'}),
+      getOptionUrl: () => defHttp.get({ url: '/cuspCode/cuspCustomerProfile/list?pageSize=-1&status=1'}),
       showField:"currency_dictText+name"
     },
     //colProps: {span: 6},

+ 1 - 0
src/views/saleCode/saleContract/SaleContract.data.ts

@@ -168,6 +168,7 @@ export const searchFormSchema: FormSchema[] = [
       showField: 'currency_dictText+name',
       //标题字段
       labelField: 'abbreviation',
+      param:{status:1}
     },
     colProps: {span: 12},
   },

+ 2 - 2
src/views/saleCode/saleInquiryForm/SaleInquiryFormList.vue

@@ -21,7 +21,7 @@
                   resultField="records"
                   labelField="code"
                   valueField="id"
-                  :params="{ pageSize: -1 }"
+                  :params="{ pageSize: -1}"
                   optionFilterProp="label"
                 />
               </a-form-item>
@@ -36,7 +36,7 @@
             <a-col :lg="16">
               <a-form-item name="inquiryCustomer" >
                 <template #label><span title="询价客户(inquiry customer)">询价客户(inquiry customer)</span></template>
-                <JSelect   v-model:value="queryParam.inquiryCustomer" :get-option-url="CustomerOption" :showField="showField"></JSelect>
+                <JSelect   v-model:value="queryParam.inquiryCustomer" :get-option-url="CustomerOption" :showField="showField" :param="{status:1}"></JSelect>
               </a-form-item>
             </a-col>
             <a-col :lg="8">

+ 1 - 1
src/views/saleCode/salesInvoice/components/SelectCommissionOrderModal.vue

@@ -25,7 +25,7 @@
                     <template v-if="toggleSearchStatus">
                         <a-col :md="12" :sm="16">
                             <a-form-item label="客户(customer)">
-                                <JSelect   v-model:value="queryParams.customer" :get-option-url="CustomerOption" :showField="showField"></JSelect>
+                                <JSelect   v-model:value="queryParams.customer" :get-option-url="CustomerOption" :showField="showField" :param="{status:1}"></JSelect>
                             </a-form-item>
                         </a-col>        
                         <a-col :md="6" :sm="8">

+ 1 - 1
src/views/saleCode/salesInvoice/components/SelectDeliveryNoticeModal.vue

@@ -44,7 +44,7 @@
                         </a-col>
                         <a-col :md="12" :sm="16">
                             <a-form-item label="客户(customer)">
-                                <JSelect   v-model:value="queryParams.customer" :get-option-url="CustomerOption" :showField="showField"></JSelect>
+                                <JSelect   v-model:value="queryParams.customer" :get-option-url="CustomerOption" :showField="showField" :param="{status:1}"></JSelect>
                             </a-form-item>
                         </a-col>
                         

+ 1 - 1
src/views/saleCode/salesInvoice/components/saleInvoiceForm.vue

@@ -68,7 +68,7 @@
                   resultField="records"
                   labelField="name"
                   valueField="id"
-                  :params="{ pageSize: -1 }"
+                  :params="{ pageSize: -1,status:1}"
                   disabled
                 />
               </a-form-item>

+ 1 - 1
src/views/saleCode/salesInvoice/salesInvoiceList.vue

@@ -37,7 +37,7 @@
             <a-col :lg="16">
               <a-form-item name="customer">
                 <template #label><span title="购方(buyer)">购方(buyer)</span></template> 
-                <JSelect   v-model:value="queryParam.customer" :get-option-url="CustomerOption" :showField="showField"></JSelect>
+                <JSelect   v-model:value="queryParam.customer" :get-option-url="CustomerOption" :showField="showField" :param="{status:1}"></JSelect>
               </a-form-item>
             </a-col>
             <a-col :lg="8">

+ 1 - 1
src/views/saleCode/salesOrder/SaleOrderFormList.vue

@@ -36,7 +36,7 @@
             <a-col :lg="16">
               <a-form-item name="customer">
                 <template #label><span title="客户(customer)">客户(customer)</span></template>
-                <JSelect   v-model:value="queryParam.customer" :get-option-url="CustomerOption" :showField="showField"></JSelect>
+                <JSelect   v-model:value="queryParam.customer" :get-option-url="CustomerOption" :showField="showField" :param="{status:1}"></JSelect>
               </a-form-item>
             </a-col>
             <a-col :lg="8">