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