|
|
@ -788,11 +788,27 @@ const submitFormLabel = async (formType, data) => { |
|
|
|
console.log("formType==",formType) |
|
|
|
console.log("data==",data) |
|
|
|
data.subList = detatableData.tableList |
|
|
|
console.log("detatableData",detatableData) |
|
|
|
await message.confirm(t('ts.是否为此数据生成标签?')) |
|
|
|
await SupplierdeliverRequestMainApi.genLabel(data) |
|
|
|
isCreateLabel.value = true |
|
|
|
message.success(t('ts.创建标签成功')) |
|
|
|
// 校验物料包装规格数量是否修改 |
|
|
|
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) |
|
|
|
await message.confirm(t('ts.是否为此数据生成标签?')) |
|
|
|
await SupplierdeliverRequestMainApi.genLabel(data) |
|
|
|
isCreateLabel.value = true |
|
|
|
message.success(t('ts.创建标签成功')) |
|
|
|
} |
|
|
|
getList() |
|
|
|
} finally { |
|
|
|
formLabelRef.value.formLoading = false |
|
|
|