|
|
@ -227,6 +227,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => |
|
|
|
tfk['itemCode'] = item['code'] |
|
|
|
tfk['uom'] = item['uom'] |
|
|
|
tfk['validityDays'] = item['validityDays'] |
|
|
|
tfk['qty'] = 0.000000 |
|
|
|
tableData.value.push(tfk) |
|
|
|
}) |
|
|
|
} else if(formField === 'costcentreCode'){ |
|
|
@ -838,11 +839,20 @@ const searchFormClick = (searchData) => { |
|
|
|
|
|
|
|
// 创建标签 |
|
|
|
const submitFormLabel = async (formType, data) => { |
|
|
|
let createLabelParam = [] |
|
|
|
let verificationFlag = false; |
|
|
|
detatableData.tableList.forEach(async (item) => { |
|
|
|
if(item.packUnit == ''){ |
|
|
|
message.alertWarning("物料代码:"+item.itemCode+",没有选择包装规格"); |
|
|
|
verificationFlag = true; |
|
|
|
return; |
|
|
|
} |
|
|
|
createLabelParam.push(item) |
|
|
|
}) |
|
|
|
if(verificationFlag){ |
|
|
|
return; |
|
|
|
} |
|
|
|
try { |
|
|
|
let createLabelParam = [] |
|
|
|
detatableData.tableList.forEach(async (item) => { |
|
|
|
createLabelParam.push(item) |
|
|
|
}) |
|
|
|
let requestNumber = createLabelParam[0].number |
|
|
|
let reqData = { |
|
|
|
'number':requestNumber, |
|
|
|