Browse Source

发货完成打印单据

master_hella_20240701
zhaoxuebing 9 months ago
parent
commit
d957c6e0fc
  1. 32
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue

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

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

Loading…
Cancel
Save