Browse Source

付款单-筛选条件修改

jingbb 4 months ago
parent
commit
01d6b07502

+ 4 - 1
src/views/purchase/payment/paymentForm.api.ts

@@ -16,6 +16,7 @@ enum Api {
   cancelSubmitBatch='/purCode/purPayment/returnSubmitBatch',
   purPayList='/purCode/purPaymentRequest/list',
   commissionPayList='/purCode/purCommissionRequest/list',
+  supplierList='/cuspCode/cuspSupplierProfile/list',
 }
 /**
  * 导出api
@@ -113,4 +114,6 @@ export const listPurPay = (params) =>
   defHttp.get({url: Api.purPayList, params});
 //佣金付款申请列表
 export const listCommissionPay = (params) =>
-  defHttp.get({url: Api.commissionPayList, params});
+  defHttp.get({url: Api.commissionPayList, params});
+//获取供应商列表
+export const supplierOption = (params) => defHttp.get({url: Api.supplierList, params});

+ 13 - 5
src/views/purchase/payment/paymentList.vue

@@ -24,9 +24,18 @@
                 </a-form-item>
               </a-col>
               <a-col :lg="8">
-                <a-form-item name="seller">
+                <a-form-item name="sellerId">
                   <template #label><span title="销方(seller)">销方(seller)</span></template>
-                  <a-input placeholder="请输入" v-model:value="queryParam.seller" allow-clear AutoComplete="off"></a-input>
+                  <ApiSelect
+                    :api="supplierOption"
+                    showSearch
+                    v-model:value="queryParam.sellerId"
+                    :filterOption="false"
+                    resultField="records"
+                    labelField="name"
+                    valueField="id"
+                    :params='{pageSize:-1}'
+                  />
                 </a-form-item>
               </a-col>
               <a-col :lg="8">
@@ -93,10 +102,9 @@
     import { useListPage } from '/@/hooks/system/useListPage'
     import {useModal} from '/@/components/Modal';
     import {columns,} from './paymentForm.data';
-    import {list, deleteOne, batchDelete, getImportUrl,getExportUrl,batchSubmit,cancelBatchSubmit} from './paymentForm.api';
+    import {list, deleteOne, batchDelete, getImportUrl,getExportUrl,batchSubmit,cancelBatchSubmit,supplierOption} from './paymentForm.api';
     import { cloneDeep } from "lodash-es";
-    import { defHttp } from '/@/utils/http/axios';
-    import { JDictSelectTag} from '/@/components/Form';
+    import { JDictSelectTag,ApiSelect} from '/@/components/Form';
     import paymentFormModal from './components/paymentFormModal.vue';
     import { message } from 'ant-design-vue';
     const formRef = ref();