From bdeb99ebc110a7d242cdd72a2629e1b5365d1e10 Mon Sep 17 00:00:00 2001 From: zhaoxuebing <1291173720@qq.com> Date: Fri, 21 Mar 2025 14:15:54 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=BA=E9=99=B7:FWHL-223?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/wms/unplannedreceiptRequestDetail/index.ts | 5 +++++ .../unplannedreceiptRequestMain/index.vue | 11 +++++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/src/api/wms/unplannedreceiptRequestDetail/index.ts b/src/api/wms/unplannedreceiptRequestDetail/index.ts index f9268afab..4d38534d1 100644 --- a/src/api/wms/unplannedreceiptRequestDetail/index.ts +++ b/src/api/wms/unplannedreceiptRequestDetail/index.ts @@ -118,3 +118,8 @@ export const importTemplate = () => { export const updateDetailPackingNumber = async (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}) +} \ No newline at end of file diff --git a/src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/index.vue b/src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/index.vue index ded4eaacf..d72774501 100644 --- a/src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/index.vue +++ b/src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/index.vue @@ -839,8 +839,16 @@ const searchFormClick = (searchData) => { // 创建标签 const submitFormLabel = async (formType, data) => { try { + let createLabelParam = [] 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 message.success('创建标签成功') }).catch(err => { @@ -848,7 +856,6 @@ const submitFormLabel = async (formType, data) => { console.log(err) message.error('创建标签失败') }) - }) } finally { formLabelRef.value.formLoading = false formLabelRef.value.dialogVisible = false