Browse Source

发货完成打印单据

master_hella_20240701
赵雪冰 1 year ago
parent
commit
d957c6e0fc
  1. 22
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue

22
src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue

@ -264,7 +264,7 @@ const butttondata = (row) => {
defaultButtons.mainListDocumentPrintBtn({ hide: isShowMainButton(row, ['3','8']) }), // defaultButtons.mainListDocumentPrintBtn({ hide: isShowMainButton(row, ['3','8']) }), //
// //
{ {
label: '处理', label: '发货',
name: 'genRecords', name: 'genRecords',
hide: isShowMainButton(row, ['3']), hide: isShowMainButton(row, ['3']),
type: 'primary', type: 'primary',
@ -462,14 +462,28 @@ const handleTur = async (id: number) => {
/** 处理按钮操作 */ /** 处理按钮操作 */
const genRecords = async (id: number) => { const genRecords = async (id: number) => {
try { try {
await SupplierdeliverRequestMainApi.selfCheckReport(id).then(res => {
if(!res){
message.warning("请先上传自检报告!")
return
}else{
// //
await message.confirm('是否处理所选中数据?') message.confirm('是否处理所选中数据?')
tableObject.loading = true tableObject.loading = true
// //
await SupplierdeliverRequestMainApi.genRecordsSupplierdeliverRequestMain(id) SupplierdeliverRequestMainApi.genRecordsSupplierdeliverRequestMain(id).then(res => {
if(!res){
message.success(t('处理成功!')) message.success(t('处理成功!'))
//
handleDocumentPrint(id)
}
})
// //
await getList() getList()
}
}).catch(err => {
console.log("自检报告校验异常",err)
})
} catch {}finally{ } catch {}finally{
tableObject.loading = false tableObject.loading = false
} }

Loading…
Cancel
Save