Browse Source

预收款-筛选条件修改

jingbb 4 months ago
parent
commit
19dc3e17f8

+ 7 - 0
src/views/saleCode/advancePayment/advancePaymentForm.api.ts

@@ -14,6 +14,8 @@ enum Api {
   queryDataById = '/saleCode/saleAdvancePayment/queryById',
   submitBatch='/saleCode/saleAdvancePayment/submitBatch',
   cancelSubmitBatch='/saleCode/saleAdvancePayment/returnSubmitBatch',
+  customerList='/cuspCode/cuspCustomerProfile/list',
+  projectList='/baseCode/baseProjectArchive/list'
 }
 /**
  * 导出api
@@ -106,3 +108,8 @@ export const cancelBatchSubmit = (params, handleSuccess) => {
     }
   });
 }
+//获取客户下拉框列表
+export const CustomerOption = (params) => defHttp.get({ url: Api.customerList, params });
+
+//获取项目下拉框列表
+export const ProjectOption = (params) => defHttp.get({ url: Api.projectList, params });

+ 24 - 7
src/views/saleCode/advancePayment/advancePaymentList.vue

@@ -18,15 +18,33 @@
             </a-col>          
             <template v-if="toggleSearchStatus">
               <a-col :lg="8">
-                <a-form-item name="projectName">
+                <a-form-item name="project">
                   <template #label><span title="项目(project)">项目(project)</span></template>
-                  <a-input v-model:value="queryParam.projectName" placeholder="请输入" AutoComplete="off"/>
+                  <ApiSelect
+                    :api="ProjectOption"
+                    showSearch
+                    v-model:value="queryParam.project"
+                    :filterOption="false"
+                    resultField="records"
+                    labelField="name"
+                    valueField="id"
+                    :params='{pageSize:-1}'
+                  />
                 </a-form-item>
               </a-col>
               <a-col :lg="8">
-                <a-form-item name="customerName">
+                <a-form-item name="customer">
                   <template #label><span title="客户(customer)">客户(customer)</span></template>
-                  <a-input placeholder="请输入" v-model:value="queryParam.customerName" allow-clear AutoComplete="off"></a-input>
+                  <ApiSelect
+                  :api="CustomerOption"
+                  showSearch
+                  v-model:value="queryParam.customer"
+                  :filterOption="false"
+                  resultField="records"
+                  labelField="abbreviation"
+                  valueField="id"
+                  :params='{pageSize:-1}'
+                />
                 </a-form-item>
               </a-col>
               <a-col :lg="8">
@@ -104,10 +122,9 @@
     import { useListPage } from '/@/hooks/system/useListPage'
     import {useModal} from '/@/components/Modal';
     import {columns,} from './advancePaymentForm.data';
-    import {list, deleteOne, batchDelete, getImportUrl,getExportUrl,batchSubmit,cancelBatchSubmit} from './advancePaymentForm.api';
+    import {list, deleteOne, batchDelete, getImportUrl,getExportUrl,batchSubmit,cancelBatchSubmit,ProjectOption,CustomerOption} from './advancePaymentForm.api';
     import { cloneDeep } from "lodash-es";
-    import { defHttp } from '/@/utils/http/axios';
-    import { JDictSelectTag} from '/@/components/Form';
+    import { JDictSelectTag,ApiSelect} from '/@/components/Form';
     import advancePaymentFormModal from './components/advancePaymentFormModal.vue';
     import { message } from 'ant-design-vue';
     const formRef = ref();