From 0eb9eee7d8975dc2b6c497693984cd9a994b86cd Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Tue, 10 Sep 2024 11:26:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=BB=84=E4=BB=B6=202024/7/2?= =?UTF-8?q?9=2015:13:04?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/request2.js | 17 + src/common/array.js | 20 +- src/mycomponents/job/jobComMainDetailCard.vue | 2 +- src/mycomponents/package/packageList.vue | 30 +- src/pages/issue/job/issueJob.vue | 37 ++- src/pages/issue/record/issueRecord.vue | 296 ++---------------- src/pages/package/coms/comScanPackagePack.vue | 10 +- .../coms/comReceiptDetailCard.vue | 40 ++- src/pages/repleinsh/job/repleinshJob.vue | 37 ++- .../repleinsh/record/repleinshRecord.vue | 2 +- 10 files changed, 199 insertions(+), 292 deletions(-) diff --git a/src/api/request2.js b/src/api/request2.js index 72bf5624..1b287177 100644 --- a/src/api/request2.js +++ b/src/api/request2.js @@ -884,6 +884,15 @@ export function takeIssueJob(id) { export function cancleTakeIssueJob(id) { return http.put("/wms/issue-job-main/abandon?id=" + id) } +/** + * 发料 关闭任务 + * @param {*} id + * + */ +export function closeTakeIssueJob(id) { + return http.put("/wms/issue-job-main/close?id=" + id) +} + /** * 发料任务 提交 * @param {*} params @@ -2373,6 +2382,14 @@ export function takeRepleinshJob(id) { export function cancleTakeRepleinshJob(id) { return http.put("/wms/repleinsh-job-main/abandon?id=" + id) } +/** + * 补料任务 关闭任务 + * @param {*} id + * + */ +export function closeTakeRepleinshJob(id) { + return http.put("/wms/repleinsh-job-main/close?id=" + id) +} /** * 补料任务 提交 * @param {*} params diff --git a/src/common/array.js b/src/common/array.js index e87d780f..ed1cf95d 100644 --- a/src/common/array.js +++ b/src/common/array.js @@ -223,7 +223,7 @@ export function getDetailEditRemoveOption() { } -//详情编辑放弃 +//详情编辑关闭 export function getDetailGiveupOption() { let option_detail_giveup = [{ text: '详情', @@ -241,7 +241,23 @@ export function getDetailGiveupOption() { return option_detail_giveup; } - +//详情放弃 +export function getDetailCloseOption() { + let option_detail_giveup = [{ + text: '详情', + style: { + backgroundColor: '#3C9CFF' + } + }, + { + text: '关闭', + style: { + backgroundColor: '#F56C6C' + } + } + ]; + return option_detail_giveup; +} //详情编辑移除 export function getEditRemoveOption() { diff --git a/src/mycomponents/job/jobComMainDetailCard.vue b/src/mycomponents/job/jobComMainDetailCard.vue index de5f6ff4..e38de2f8 100644 --- a/src/mycomponents/job/jobComMainDetailCard.vue +++ b/src/mycomponents/job/jobComMainDetailCard.vue @@ -7,7 +7,7 @@
- +
diff --git a/src/mycomponents/package/packageList.vue b/src/mycomponents/package/packageList.vue index fe4523ba..6bbc8601 100644 --- a/src/mycomponents/package/packageList.vue +++ b/src/mycomponents/package/packageList.vue @@ -4,9 +4,11 @@ - + @@ -85,9 +87,7 @@ dataContent.value.forEach((item) => { }) }) console.log(dataContent.value) -const swipeClick = (params, cur) => { - console.log(params) - console.log(cur) +const swipeClick = (params, cur, type) => { let text = '' if (cur.scaned && props.isEdit) { text = editAndRemoveOptions.value[params[1]].text @@ -100,9 +100,27 @@ const swipeClick = (params, cur) => { if (text == '编辑') { edit(cur) } else if (text == '移除') { - remove(cur) + if (type == 'parent') { + removeParent(item) + } else { + remove(item) + } } } +const removeParent = (item) => { + comMessageRef.value.showQuestionMessage('确定移除扫描信息?', (res) => { + if (res) { + item.scaned = false + item.handleQty = null + item.packList.forEach((subItem) => { + subItem.scaned = false + subItem.handleQty = null + }) + + emit('updateData') + } + }) +} const remove = (item) => { comMessageRef.value.showQuestionMessage('确定移除扫描信息?', (res) => { if (res) { diff --git a/src/pages/issue/job/issueJob.vue b/src/pages/issue/job/issueJob.vue index 758b186b..b69be630 100644 --- a/src/pages/issue/job/issueJob.vue +++ b/src/pages/issue/job/issueJob.vue @@ -3,7 +3,7 @@ - + @@ -22,10 +22,10 @@