diff --git a/src/api/wms/supplierinvoiceInvoiced/index.ts b/src/api/wms/supplierinvoiceInvoiced/index.ts index 85baf8e41..1a2a3fcde 100644 --- a/src/api/wms/supplierinvoiceInvoiced/index.ts +++ b/src/api/wms/supplierinvoiceInvoiced/index.ts @@ -75,4 +75,8 @@ export const agreeSupplierinvoiceInvoiced = async (id: number) => { // 审批拒绝待开票 export const refuseSupplierinvoiceInvoiced = async (id: number) => { return await request.post({ url: `/wms/supplierinvoice-invoiced/refuse?id=` + id }) +} +// 批量通过 +export const batchPasslist = async (data) => { + return await request.post({ url: `/wms/supplierinvoice-invoiced/batchPasslist`, data }) } \ No newline at end of file diff --git a/src/utils/disposition/defaultButtons.ts b/src/utils/disposition/defaultButtons.ts index 0bee6993c..78e2826d3 100644 --- a/src/utils/disposition/defaultButtons.ts +++ b/src/utils/disposition/defaultButtons.ts @@ -798,7 +798,19 @@ export function mainListPlanCloBtn(option: any) { hasPermi: '' }) } - +// 主列表-批量通过 +export function mainListSelectionOrderPassBtn(option: any) { + return __defaultBtnOption(option, { + label: t(`ts.批量通过`).replace('ts.', ''), + name: 'mainOrderSelectionPass', + hide: false, + type: 'primary', + color: '', + float: 'left', + link: false, // 文本展现按钮 + hasPermi: '' + }) +} // 主列表-批量重试按钮 export function mainListSelectionReTryBtn(option: any) { return __defaultBtnOption(option, { diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingMain/index.vue b/src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingMain/index.vue index 5bc12936e..2381af75f 100644 --- a/src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingMain/index.vue +++ b/src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingMain/index.vue @@ -29,6 +29,8 @@ v-model:currentPage="tableObject.currentPage" v-model:sort="tableObject.sort" @getSelectionRows="getSelectionRows" + :reserve-selection="true" + row-key="id" >