|
@ -201,6 +201,9 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => |
|
|
if (formField == 'secondPackUnit') { |
|
|
if (formField == 'secondPackUnit') { |
|
|
row['secondPackUnit'] = val[0]['packUnit'] |
|
|
row['secondPackUnit'] = val[0]['packUnit'] |
|
|
row['secondPackQty'] = val[0]['packQty'] |
|
|
row['secondPackQty'] = val[0]['packQty'] |
|
|
|
|
|
}else if(formField == 'packUnit'){ |
|
|
|
|
|
row['packUnit'] = val[0]['packUnit'] |
|
|
|
|
|
row['packQty'] = val[0]['packQty'] |
|
|
}else if (formField == 'itemCode') { |
|
|
}else if (formField == 'itemCode') { |
|
|
row['uom'] = val[0]['uom'] |
|
|
row['uom'] = val[0]['uom'] |
|
|
row['produceDate'] = dayjs().valueOf() |
|
|
row['produceDate'] = dayjs().valueOf() |
|
@ -616,11 +619,10 @@ const searchFormClick = (searchData) => { |
|
|
// 创建标签 |
|
|
// 创建标签 |
|
|
const submitFormLabel = async (formType, data) => { |
|
|
const submitFormLabel = async (formType, data) => { |
|
|
try { |
|
|
try { |
|
|
detatableData.tableList.forEach(async (item) => { |
|
|
console.log("aaaaa",data); |
|
|
// 创建标签 要物料库区配置表中 入库包装规格 |
|
|
data.subList=detatableData.tableList |
|
|
item.packUnit = null |
|
|
console.log("bbbbb",data); |
|
|
item.inOfOut = 'in' |
|
|
await ProductreceiptRequestMainApi.productCreateLabel(data).then(res => { |
|
|
await PackageApi.createPackageLabel(item).then(res => { |
|
|
|
|
|
isCreateLabel.value = true |
|
|
isCreateLabel.value = true |
|
|
message.success('创建标签成功') |
|
|
message.success('创建标签成功') |
|
|
}).catch(err => { |
|
|
}).catch(err => { |
|
@ -628,7 +630,6 @@ const submitFormLabel = async (formType, data) => { |
|
|
console.log(err) |
|
|
console.log(err) |
|
|
message.error('创建标签失败') |
|
|
message.error('创建标签失败') |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
|
|
|
} finally { |
|
|
} finally { |
|
|
formLabelRef.value.formLoading = false |
|
|
formLabelRef.value.formLoading = false |
|
|
formLabelRef.value.dialogVisible = false |
|
|
formLabelRef.value.dialogVisible = false |
|
|