Browse Source

缺陷:FWHL-223

hella_online_20250328
赵雪冰 2 weeks ago
parent
commit
bdeb99ebc1
  1. 5
      src/api/wms/unplannedreceiptRequestDetail/index.ts
  2. 11
      src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/index.vue

5
src/api/wms/unplannedreceiptRequestDetail/index.ts

@ -118,3 +118,8 @@ export const importTemplate = () => {
export const updateDetailPackingNumber = async (id: number, number) => { export const updateDetailPackingNumber = async (id: number, number) => {
return await request.put({ url: '/wms/unplannedreceipt-request-detail/updateDetailPackingNumber?id=' + id + '&number=' + number }) return await request.put({ url: '/wms/unplannedreceipt-request-detail/updateDetailPackingNumber?id=' + id + '&number=' + number })
} }
// 创建包装信息
export const unplannedreceiptCreateLabel = async (data) => {
return await request.post({ url: '/wms/unplannedreceipt-request-detail/unplannedreceiptCreateLabel',data})
}

11
src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/index.vue

@ -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

Loading…
Cancel
Save