|
@ -788,11 +788,27 @@ const submitFormLabel = async (formType, data) => { |
|
|
console.log("formType==",formType) |
|
|
console.log("formType==",formType) |
|
|
console.log("data==",data) |
|
|
console.log("data==",data) |
|
|
data.subList = detatableData.tableList |
|
|
data.subList = detatableData.tableList |
|
|
|
|
|
// 校验物料包装规格数量是否修改 |
|
|
|
|
|
let flag = false; |
|
|
|
|
|
await SupplierdeliverRequestMainApi.checkPackQty(data).then(async res => { |
|
|
|
|
|
if(res){ |
|
|
|
|
|
await message.confirm(t('ts.是否修改物料包装标包数量')+'?').then(()=>{ |
|
|
|
|
|
flag = true; //修改标包数量 |
|
|
|
|
|
}).catch(() =>{ |
|
|
|
|
|
flag = false |
|
|
|
|
|
}) |
|
|
|
|
|
}else{ |
|
|
|
|
|
flag = true; //修改标包数量 |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
console.log("返回结果",flag); |
|
|
|
|
|
if(flag){ |
|
|
console.log("detatableData",detatableData) |
|
|
console.log("detatableData",detatableData) |
|
|
await message.confirm(t('ts.是否为此数据生成标签?')) |
|
|
await message.confirm(t('ts.是否为此数据生成标签?')) |
|
|
await SupplierdeliverRequestMainApi.genLabel(data) |
|
|
await SupplierdeliverRequestMainApi.genLabel(data) |
|
|
isCreateLabel.value = true |
|
|
isCreateLabel.value = true |
|
|
message.success(t('ts.创建标签成功')) |
|
|
message.success(t('ts.创建标签成功')) |
|
|
|
|
|
} |
|
|
getList() |
|
|
getList() |
|
|
} finally { |
|
|
} finally { |
|
|
formLabelRef.value.formLoading = false |
|
|
formLabelRef.value.formLoading = false |
|
|