From 3cb5df117eac366d3962ff6eceb72cb54faac55e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=BF=97=E5=9B=BD?= <854933521@qq.com> Date: Wed, 30 Oct 2024 14:37:53 +0800 Subject: [PATCH] =?UTF-8?q?page/issue/coms=20=E6=96=87=E4=BB=B6=E8=BF=81?= =?UTF-8?q?=E7=A7=BB=208/8-10/25?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/issue/coms/comIssueDetailCard.vue | 28 +- .../issue/coms/comIssueDetailCardBatch.vue | 150 ++++ src/pages/issue/coms/comIssueJobCard.vue | 4 +- src/pages/issue/coms/comScanIssuePack.vue | 229 ++++-- src/pages/issue/coms/comScanIssuePack0816.vue | 732 ++++++++++++++++++ 5 files changed, 1055 insertions(+), 88 deletions(-) create mode 100644 src/pages/issue/coms/comIssueDetailCardBatch.vue create mode 100644 src/pages/issue/coms/comScanIssuePack0816.vue diff --git a/src/pages/issue/coms/comIssueDetailCard.vue b/src/pages/issue/coms/comIssueDetailCard.vue index 5f6d681b..c7d2e6f2 100644 --- a/src/pages/issue/coms/comIssueDetailCard.vue +++ b/src/pages/issue/coms/comIssueDetailCard.vue @@ -12,18 +12,21 @@ - + - + 扫描 - + @@ -102,12 +105,11 @@ const resizeCollapse = () => { }) }) } -const swipeClick = (params, batch, record) => { - const { text } = scanOptions.value[params[1]] - if (text == '编辑') { +const swipeClick = (e, batch, record,recordIndex, batchIndex, Batchs, locatonIndex, Locations) => { + if (e.content.text == '编辑') { edit(batch, record) - } else if (text == '移除') { - remove(batch, record, params[0]) + } else if (e.content.text == '移除') { + remove(batch, record, recordIndex,batchIndex,Batchs,locatonIndex,Locations) } } const itemCoceClick = (params, item) => { @@ -124,10 +126,16 @@ const edit = (batch, item) => { balanceQtyEditRef.value.openEditPopup(item.balance, item.qty) } -const remove = (batch, record, index) => { +const remove = (batch, record, recordIndex,batchIndex,Batchs,locatonIndex,Locations) => { comMessageRef.value.showQuestionMessage('确定移除扫描信息?', (res) => { if (res) { - batch.Records.splice(index, 1) + batch.Records.splice(recordIndex, 1) + if(batch.Records.length == 0 && Batchs[batchIndex].isNewAdd){ + Batchs.splice(batchIndex,1) + } + if(batch.Records.length == 0 && Locations[locatonIndex].isNewAdd){ + Locations.splice(locatonIndex,1) + } resizeCollapse() emit('updateData', record) } diff --git a/src/pages/issue/coms/comIssueDetailCardBatch.vue b/src/pages/issue/coms/comIssueDetailCardBatch.vue new file mode 100644 index 00000000..f44d7bb0 --- /dev/null +++ b/src/pages/issue/coms/comIssueDetailCardBatch.vue @@ -0,0 +1,150 @@ + + + + + \ No newline at end of file diff --git a/src/pages/issue/coms/comIssueJobCard.vue b/src/pages/issue/coms/comIssueJobCard.vue index dd806c76..ce1026b6 100644 --- a/src/pages/issue/coms/comIssueJobCard.vue +++ b/src/pages/issue/coms/comIssueJobCard.vue @@ -9,13 +9,15 @@ + + + + \ No newline at end of file