|
@@ -20,13 +20,31 @@
|
|
|
<a-col :lg="8">
|
|
|
<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="buyer">
|
|
|
+ <a-form-item name="customer">
|
|
|
<template #label><span title="购方(buyer)">购方(buyer)</span></template>
|
|
|
- <a-input placeholder="请输入" v-model:value="queryParam.buyer" 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">
|
|
@@ -117,10 +135,10 @@
|
|
|
import { useListPage } from '/@/hooks/system/useListPage'
|
|
|
import {useModal} from '/@/components/Modal';
|
|
|
import {columns,} from './salesInvoiceForm.data';
|
|
|
- import {list, deleteOne, batchDelete, getImportUrl,getExportUrl,batchSubmit,cancelBatchSubmit,batchClose,editSignSing,getListDetail} from './salesInvoiceForm.api';
|
|
|
+ import {list, deleteOne, batchDelete, getImportUrl,getExportUrl,batchSubmit,cancelBatchSubmit,batchClose,editSignSing,getListDetail,ProjectOption,CustomerOption} from './salesInvoiceForm.api';
|
|
|
import { cloneDeep } from "lodash-es";
|
|
|
import { defHttp } from '/@/utils/http/axios';
|
|
|
- import { JDictSelectTag} from '/@/components/Form';
|
|
|
+ import { JDictSelectTag,ApiSelect} from '/@/components/Form';
|
|
|
import saleInvoiceFormModal from './components/saleInvoiceFormModal.vue';
|
|
|
import SaleOrderFormList from '../salesOrder/components/SaleOrderFormModal.vue'
|
|
|
import PurchaseOrderFormList from '../../purchase/purchaseOrder/components/PurchaseOrderFormModal.vue'
|