From 74555ce7ade770e0f46374125453e057e8e4582d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=BF=97=E5=9B=BD?= <854933521@qq.com> Date: Tue, 29 Oct 2024 19:39:44 +0800 Subject: [PATCH] =?UTF-8?q?mycomponents/page/customerReturn/record=20?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E8=BF=81=E7=A7=BB=208/8-10/25?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../customerReturn/record/recordList.vue | 342 ++++++++++++++ .../record/recordListDetail.vue | 424 ++++++++++++++++++ .../customerReturn/record/returnRecord.vue | 26 +- 3 files changed, 780 insertions(+), 12 deletions(-) create mode 100644 src/pages/customerReturn/record/recordList.vue create mode 100644 src/pages/customerReturn/record/recordListDetail.vue diff --git a/src/pages/customerReturn/record/recordList.vue b/src/pages/customerReturn/record/recordList.vue new file mode 100644 index 00000000..014bad61 --- /dev/null +++ b/src/pages/customerReturn/record/recordList.vue @@ -0,0 +1,342 @@ + + + + + \ No newline at end of file diff --git a/src/pages/customerReturn/record/recordListDetail.vue b/src/pages/customerReturn/record/recordListDetail.vue new file mode 100644 index 00000000..58584d3c --- /dev/null +++ b/src/pages/customerReturn/record/recordListDetail.vue @@ -0,0 +1,424 @@ + + + + + \ No newline at end of file diff --git a/src/pages/customerReturn/record/returnRecord.vue b/src/pages/customerReturn/record/returnRecord.vue index 2c07e751..6f332a0d 100644 --- a/src/pages/customerReturn/record/returnRecord.vue +++ b/src/pages/customerReturn/record/returnRecord.vue @@ -8,7 +8,11 @@ - + + @@ -27,7 +31,9 @@ - + + @@ -74,6 +80,7 @@ const toWarehouseCode = ref('') const comMessageRef = ref() const scanPopup = ref() const scanLocationCode = ref() +const toInventoryStatuses = ref('') onLoad((option) => { uni.setNavigationBarTitle({ title: option.title @@ -84,6 +91,7 @@ onLoad((option) => { businessType.value = res.businessType fromLocationAreaTypeList.value = res.fromLocationAreaTypeList toLocationAreaTypeList.value = res.toLocationAreaTypeList + toInventoryStatuses.value = res.toInventoryStatuses showFromLocationPopup() } else { showErrorMessage(res.message) @@ -107,7 +115,7 @@ const getScanResult = (result) => { if (item == undefined) { const itemp = createItemInfo(balance, pack) const newDetail = createDetailInfo(balance, pack) // - + newDetail.packingNumber = pack.number itemp.subList.push(newDetail) detailSource.value.push(itemp) } else { @@ -120,7 +128,7 @@ const getScanResult = (result) => { const newDetail = createDetailInfo(balance, pack) item.subList.push(newDetail) } else if (detail.scaned == true) { - showErrorMessage(`箱码[${balance.packingNumber}批次[${balance.batch}]已经在列表中`) + showErrorMessage(`箱码[${balance.packingNumber}批次[${balance.batch}]重复扫描`) } } handleCalcHandleQty() @@ -188,7 +196,7 @@ const commit = () => { .then((res) => { uni.hideLoading() if (res.data) { - showCommitSuccessMessage(`提交成功
生成客户退货记录
${res.data}`) + showCommitSuccessMessage(`提交成功\n生成客户退货记录\n${res.data}`) } else { showErrorMessage(`提交失败[${res.msg}]`) } @@ -247,7 +255,7 @@ const setParams = () => { submitItem.itemDesc2 = detail.package.itemDesc2 submitItem.inventoryStatus = detail.inventoryStatus - submitItem.toInventoryStatus = detail.inventoryStatus + submitItem.toInventoryStatus = toInventoryStatuses.value submitItem.fromPackingNumber = info.packingNumber submitItem.toPackingNumber = info.packingNumber @@ -280,12 +288,6 @@ const showMessage = (message) => { } }) } -const showErrorMessage = (message) => { - comMessageRef.value.showErrorMessage(message, (res) => { - if (res) { - } - }) -} const showScanMessage = (message) => { comMessageRef.value.showScanMessage(message)