|
@@ -21,7 +21,7 @@
|
|
|
resultField="records"
|
|
|
labelField="code"
|
|
|
valueField="id"
|
|
|
- :params="{ pageSize: -1,status:1 }"
|
|
|
+ :params="{ pageSize: -1 }"
|
|
|
optionFilterProp="label"
|
|
|
/>
|
|
|
</a-form-item>
|
|
@@ -37,7 +37,7 @@
|
|
|
<a-col :lg="16">
|
|
|
<a-form-item name="quotationCustomer" :label-col="{ style: 'width: 200px' }">
|
|
|
<template #label><span title="报价客户(quotation customer)">报价客户(quotation customer)</span></template>
|
|
|
- <JSelect v-model:value="queryParam.quotationCustomer" :get-option-url="CustomerOption" :showField="showField" :param="{status:1}"></JSelect>
|
|
|
+ <JSelect v-model:value="queryParam.quotationCustomer" :get-option-url="CustomerOption" :showField="showField" :param="{status:null}"></JSelect>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :lg="8">
|
|
@@ -50,7 +50,7 @@
|
|
|
<a-col :lg="16">
|
|
|
<a-form-item name="quotationCustomer" :label-col="{ style: 'width: 200px' }">
|
|
|
<template #label><span title="客户简称(abbreviation)">客户简称(abbreviation)</span></template>
|
|
|
- <JSelect v-model:value="queryParam.quotationCustomer" :get-option-url="CustomerOption" :showField="showField2" :param="{status:1}"></JSelect>
|
|
|
+ <JSelect v-model:value="queryParam.quotationCustomer" :get-option-url="CustomerOption" :showField="showField2" :param="{status:null}"></JSelect>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :lg="8">
|
|
@@ -143,6 +143,9 @@
|
|
|
<a-button type="primary" v-auth="'saleCode:sale_quotation:add'" @click="handleAdd" preIcon="ant-design:plus-outlined"> 新增(add)</a-button>
|
|
|
<a-button type="primary" v-auth="'saleCode:sale_quotation:exportXls'" preIcon="ant-design:export-outlined" @click="onExportXls">
|
|
|
导出(export)</a-button
|
|
|
+ >
|
|
|
+ <a-button type="primary" v-auth="'saleCode:sale_quotation:exportXls'" preIcon="ant-design:export-outlined" @click="onExportXls2">
|
|
|
+ 导出明细(export)</a-button
|
|
|
>
|
|
|
<a-button type="primary" @click="submit"> 提交(submit)</a-button>
|
|
|
<a-button type="primary" @click="cancelSubmit"> 取消提交(cancelSubmit)</a-button>
|
|
@@ -242,6 +245,35 @@
|
|
|
},
|
|
|
});
|
|
|
|
|
|
+
|
|
|
+ //注册table数据
|
|
|
+ const { onExportXls: onExportXls2 } = useListPage({
|
|
|
+ tableProps: {
|
|
|
+ title: '销售报价单明细',
|
|
|
+ api: list,
|
|
|
+ columns,
|
|
|
+ canResize: false,
|
|
|
+ useSearchForm: false,
|
|
|
+ actionColumn: {
|
|
|
+ width: 300,
|
|
|
+ fixed: 'right',
|
|
|
+ },
|
|
|
+ scroll: {
|
|
|
+ x: '4000px',
|
|
|
+ y:'calc(100vh - 400px)',
|
|
|
+ },
|
|
|
+ beforeFetch: async (params) => {
|
|
|
+ let rangerQuery = await setRangeQuery();
|
|
|
+ return Object.assign(params, rangerQuery);
|
|
|
+ },
|
|
|
+ },
|
|
|
+ exportConfig: {
|
|
|
+ name: '销售报价单明细',
|
|
|
+ url: '/saleCode/saleQuotation/exportXlsDetail',
|
|
|
+ params: queryParam,
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
const [registerTable, { reload }, { rowSelection, selectedRowKeys }] = tableContext;
|
|
|
|
|
|
// 高级查询配置
|