Browse Source

打印全部功能开发

master_hella_20240701
zhaoxuebing 5 months ago
parent
commit
a4e30e05d7
  1. 5
      src/api/wms/supplierinvoiceRequestMain/index.ts
  2. 27
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue

5
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){

27
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<res.length;i++){
let id = res[i];
handleSupplierdeliverRecordPrint(id);
}
}
})
}
/** 初始化 **/
onMounted(async () => {
getList()

Loading…
Cancel
Save