diff --git a/src/api/wms/supplierinvoiceRequestMain/index.ts b/src/api/wms/supplierinvoiceRequestMain/index.ts index e5e1d5e8c..ced9da32c 100644 --- a/src/api/wms/supplierinvoiceRequestMain/index.ts +++ b/src/api/wms/supplierinvoiceRequestMain/index.ts @@ -101,6 +101,11 @@ export const printSupplierRecord = async (asnBillNum:string) => { return await request.post({ url: `/wms/supplierinvoice-request-main/querySupplierRecord?asnBillNum=`+asnBillNum }) } +// 打印单挑供应商发货记录 +export const printSupplierRecordByMasterId = async (masterId:number) => { + return await request.post({ url: `/wms/supplierinvoice-request-main/querySupplierRecordByMasterId?masterId=`+masterId }) +} + // 导出供应商发票申请主 Excel export const exportSupplierinvoiceRequestMain = async (params) => { if(params.isSearch){ diff --git a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue index a6b533ffa..6273b2fb0 100644 --- a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue +++ b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue @@ -338,21 +338,8 @@ link: true, // 文本展现按钮 hasPermi: '' }, - // defaultButtons.mainListPlanAppBtn({ hide: isShowMainButton(row, ['2']) }), // 审批通过 - //defaultButtons.mainListPlanTurBtn({ hide: isShowMainButton(row, ['2']) }), // 驳回按钮 defaultButtons.mainListEditBtn({ hasPermi: 'wms:supplierinvoice-request-main:update' , hide: isShowMainButton(row, ['1','8','6'])}), // 编辑 defaultButtons.mainListPurchasePlanCloBtn({ hide: isShowMainButton(row, ['1','8','6']) }), // 关闭 - // 生成记录 - // { - // label: '处理', - // name: 'genRecords', - // hide: isShowMainButton(row, ['3']), - // type: 'primary', - // icon: '', - // color: '', - // hasPermi: '', - // link: true, // 文本展现按钮 - // }, // defaultButtons.mainListDeleteBtn({hasPermi:'wms:supplierinvoice-request-main:delete'}), // 删除 ] } @@ -666,7 +653,7 @@ const importSuccess = () => { handleDocumentPrint(clicKRowId.value) }else if(val === 'printing-all'){ //打印全部发货单 - + handlePrintAll(clicKRowId.value) }else if(val === 'export-detail'){ console.log("导出明细:",clicKRowId.value) handleDetailExport() @@ -715,6 +702,18 @@ const importSuccess = () => { window.open(documentSrc.value + '&id=' + id) } + const handlePrintAll = async (masterId) => { + // 打印 + SupplierinvoiceRequestMainApi.printSupplierRecordByMasterId(masterId).then(res =>{ + if(res && res.length > 0){ + for(let i=0;i { getList()