|
@@ -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();
|