Browse Source

销售管理-项目筛选下拉现在值修改

jingbb 3 months ago
parent
commit
32a58dafd8

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

@@ -32,7 +32,7 @@
                                     v-model:value="queryParams.quotationProject"
                                     optionFilterProp="label"
                                     resultField="records"
-                                    labelField="name"
+                                    labelField="code"
                                     valueField="id"
                                     :params='{pageSize:-1}'
                                     :disabled="fatherProject!==''"

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

@@ -31,7 +31,7 @@
                                     v-model:value="queryParams.quotationProject"
                                     optionFilterProp="label"
                                     resultField="records"
-                                    labelField="name"
+                                    labelField="code"
                                     valueField="id"
                                     :params='{pageSize:-1}'
                                     :disabled="fatherProject!==''"

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

@@ -31,7 +31,7 @@
                                     v-model:value="queryParams.project"
                                     optionFilterProp="label"
                                     resultField="records"
-                                    labelField="name"
+                                    labelField="code"
                                     valueField="id"
                                     />
                             </a-form-item>

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

@@ -31,7 +31,7 @@
                                     v-model:value="queryParams.project"
                                     optionFilterProp="label"
                                     resultField="records"
-                                    labelField="name"
+                                    labelField="code"
                                     valueField="id"
                                     :params='{pageSize:-1}'
                                     :disabled="fatherProject!==''"

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

@@ -31,7 +31,7 @@
                                     v-model:value="queryParams.inquiryProject"
                                     optionFilterProp="label"
                                     resultField="records"
-                                    labelField="name"
+                                    labelField="code"
                                     valueField="id"
                                     :disabled="fatherProject!==''"
                                     />

+ 1 - 1
src/views/purchase/freightPurchaseOrder/components/SelectDeliveryNoticeModal.vue

@@ -31,7 +31,7 @@
                                     v-model:value="queryParams.project"
                                     optionFilterProp="label"
                                     resultField="records"
-                                    labelField="name"
+                                    labelField="code"
                                     valueField="id"
                                     :params='{pageSize:-1}'
                                     />

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

@@ -26,7 +26,7 @@
                   v-model:value="queryParam.project"
                   :filterOption="true"
                   resultField="records"
-                  labelField="name"
+                  labelField="code"
                   valueField="id"
                   :params="{ pageSize: -1 }"
                   optionFilterProp="label"

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

@@ -26,7 +26,7 @@
                   v-model:value="queryParam.project"
                   :filterOption="true"
                   resultField="records"
-                  labelField="name"
+                  labelField="code"
                   valueField="id"
                   :params="{ pageSize: -1 }"
                   optionFilterProp="label"

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

@@ -26,7 +26,7 @@
                   v-model:value="queryParam.quotationProject"
                   :filterOption="true"
                   resultField="records"
-                  labelField="name"
+                  labelField="code"
                   valueField="id"
                   :params="{ pageSize: -1 }"
                   optionFilterProp="label"

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

@@ -26,7 +26,7 @@
                   v-model:value="queryParam.project"
                   :filterOption="true"
                   resultField="records"
-                  labelField="name"
+                  labelField="code"
                   valueField="id"
                   :params="{ pageSize: -1 }"
                   optionFilterProp="label"

+ 7 - 6
src/views/saleCode/rfp/SaleRfp.data.ts

@@ -103,7 +103,7 @@ export const searchFormSchema: FormSchema[] = [
     componentProps: {
       // mode: 'multiple',//multiple: 多选;不填写为单选
       //请求api,返回结果{ result: { records: [{'id':'1',name:'scott'},{'id':'2',name:'小张'}] }}
-      api: () => defHttp.get({ url: '/cuspCode/cuspCustomerProfile/list' }),
+      api: () => defHttp.get({ url: '/cuspCode/cuspCustomerProfile/list',params:{pageSize: -1}}),
       //数值转成String
       numberToString: false,
       //标题字段
@@ -146,19 +146,20 @@ export const searchFormSchema: FormSchema[] = [
     component: 'ApiSelect',
     labelWidth: 180,
     componentProps: {
-      // mode: 'multiple',//multiple: 多选;不填写为单选
+       // mode: 'multiple',//multiple: 多选;不填写为单选
       //请求api,返回结果{ result: { records: [{'id':'1',name:'scott'},{'id':'2',name:'小张'}] }}
-      api: () => defHttp.get({ url: 'baseCode/baseProjectArchive/list' }),
+      api: () => defHttp.get({ url: 'baseCode/baseProjectArchive/list',params:{pageSize: -1}}),
       //数值转成String
       numberToString: false,
       //标题字段
-      labelField: 'name',
+      labelField: 'code',
       //值字段
       valueField: 'id',
-      //请求参数
-      params: { pageSize: -1 },
       //返回结果字段
       resultField: 'records',
+      filterOption: 'true',
+      optionFilterProp: 'label',
+      showSearch: 'true',
     },
   },
 

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

@@ -141,7 +141,7 @@ export const searchFormSchema: FormSchema[] = [
       //数值转成String
       numberToString: false,
       //标题字段
-      labelField: 'name',
+      labelField: 'code',
       //值字段
       valueField: 'id',
       //请求参数

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

@@ -26,7 +26,7 @@
                   v-model:value="queryParam.inquiryProject"
                   :filterOption="true"
                   resultField="records"
-                  labelField="name"
+                  labelField="code"
                   valueField="id"
                   :params="{ pageSize: -1 }"
                   optionFilterProp="label"

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

@@ -31,7 +31,7 @@
                                     v-model:value="queryParams.project"
                                     optionFilterProp="label"
                                     resultField="records"
-                                    labelField="name"
+                                    labelField="code"
                                     valueField="id"
                                     :params='{pageSize:-1}'
                                     />

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

@@ -26,7 +26,7 @@
                   v-model:value="queryParam.project"
                   :filterOption="true"
                   resultField="records"
-                  labelField="name"
+                  labelField="code"
                   valueField="id"
                   :params="{ pageSize: -1 }"
                   optionFilterProp="label"

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

@@ -26,7 +26,7 @@
                   v-model:value="queryParam.project"
                   :filterOption="true"
                   resultField="records"
-                  labelField="name"
+                  labelField="code"
                   valueField="id"
                   :params="{ pageSize: -1 }"
                   optionFilterProp="label"