|
@ -338,21 +338,8 @@ |
|
|
link: true, // 文本展现按钮 |
|
|
link: true, // 文本展现按钮 |
|
|
hasPermi: '' |
|
|
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.mainListEditBtn({ hasPermi: 'wms:supplierinvoice-request-main:update' , hide: isShowMainButton(row, ['1','8','6'])}), // 编辑 |
|
|
defaultButtons.mainListPurchasePlanCloBtn({ 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'}), // 删除 |
|
|
// defaultButtons.mainListDeleteBtn({hasPermi:'wms:supplierinvoice-request-main:delete'}), // 删除 |
|
|
] |
|
|
] |
|
|
} |
|
|
} |
|
@ -666,7 +653,7 @@ const importSuccess = () => { |
|
|
handleDocumentPrint(clicKRowId.value) |
|
|
handleDocumentPrint(clicKRowId.value) |
|
|
}else if(val === 'printing-all'){ |
|
|
}else if(val === 'printing-all'){ |
|
|
//打印全部发货单 |
|
|
//打印全部发货单 |
|
|
|
|
|
handlePrintAll(clicKRowId.value) |
|
|
}else if(val === 'export-detail'){ |
|
|
}else if(val === 'export-detail'){ |
|
|
console.log("导出明细:",clicKRowId.value) |
|
|
console.log("导出明细:",clicKRowId.value) |
|
|
handleDetailExport() |
|
|
handleDetailExport() |
|
@ -715,6 +702,18 @@ const importSuccess = () => { |
|
|
window.open(documentSrc.value + '&id=' + id) |
|
|
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 () => { |
|
|
onMounted(async () => { |
|
|
getList() |
|
|
getList() |
|
|