|
@ -839,8 +839,16 @@ const searchFormClick = (searchData) => { |
|
|
// 创建标签 |
|
|
// 创建标签 |
|
|
const submitFormLabel = async (formType, data) => { |
|
|
const submitFormLabel = async (formType, data) => { |
|
|
try { |
|
|
try { |
|
|
|
|
|
let createLabelParam = [] |
|
|
detatableData.tableList.forEach(async (item) => { |
|
|
detatableData.tableList.forEach(async (item) => { |
|
|
await PackageApi.createPackageLabel(item).then(res => { |
|
|
createLabelParam.push(item) |
|
|
|
|
|
}) |
|
|
|
|
|
let requestNumber = createLabelParam[0].number |
|
|
|
|
|
let reqData = { |
|
|
|
|
|
'number':requestNumber, |
|
|
|
|
|
'packageCreateList':createLabelParam |
|
|
|
|
|
} |
|
|
|
|
|
await UnplannedreceiptRequestDetailApi.unplannedreceiptCreateLabel(reqData).then(res => { |
|
|
isCreateLabel.value = true |
|
|
isCreateLabel.value = true |
|
|
message.success('创建标签成功') |
|
|
message.success('创建标签成功') |
|
|
}).catch(err => { |
|
|
}).catch(err => { |
|
@ -848,7 +856,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 |
|
|