From 609e196f9bd2c0f2fca813f595bcaf62fcf24966 Mon Sep 17 00:00:00 2001 From: "HUOJIN\\92525" Date: Wed, 26 Feb 2025 15:17:54 +0800 Subject: [PATCH] no message --- src/views/business-data/pick/index.vue | 45 +++++++++++-------- .../business-data/pickDetail/pickTask.vue | 39 ++++++++++++++-- 2 files changed, 63 insertions(+), 21 deletions(-) diff --git a/src/views/business-data/pick/index.vue b/src/views/business-data/pick/index.vue index 9d3b080..d7a3198 100644 --- a/src/views/business-data/pick/index.vue +++ b/src/views/business-data/pick/index.vue @@ -66,7 +66,7 @@ - @@ -80,13 +80,13 @@ - - + - - + + + + + @@ -198,23 +202,28 @@ - - --> + @@ -249,7 +258,7 @@ const defaultForm = { code: null, lineNo: null, status: null, - beCall: null + callPoint: null } export default { name: 'Pick', diff --git a/src/views/business-data/pickDetail/pickTask.vue b/src/views/business-data/pickDetail/pickTask.vue index 8b3500f..dff65e3 100644 --- a/src/views/business-data/pickDetail/pickTask.vue +++ b/src/views/business-data/pickDetail/pickTask.vue @@ -59,6 +59,19 @@ class="filter-item" @keyup.enter.native="crud.toQuery" /> + + 重置 + + +
+ + 全部 + 待执行 + 已到站 + 已完成 + + +
@@ -221,7 +234,7 @@ export default { dicts: ['task_status'], cruds() { return CRUD({ - query: {taskType: ['PICK']}, + query: {taskType: 'PICK', taskStatus: 'ARRIVED'}, title: '出库任务', url: 'api/task', idField: 'id', @@ -231,7 +244,7 @@ export default { add: false, edit: false, del: false, - reset: true, + reset: false, download: true }, queryOnPresenterCreated: true @@ -240,6 +253,7 @@ export default { }, data() { return { + radio3: '已到站', permission: { add: ['admin', 'task:add'], edit: ['admin', 'task:edit'], @@ -320,7 +334,7 @@ export default { this.fbPickingForm.itemName = data.itemKey.item.name this.fbPickingForm.srcPointCode = data.srcPointCode this.fbPickingForm.dstPointCode = data.dstPointCode - this.fbPickingForm.planQty = data.planQty-data.moveQty + this.fbPickingForm.planQty = data.planQty - data.moveQty this.fbPickingForm.moveQty = data.planQty //默认拣货数量为计划数量 this.fbPickingForm.srcOrderNumber = data.itemKey.orderNumber this.fbPickingDialog = true @@ -350,6 +364,25 @@ export default { } }) }, + resetQuery() { + this.radio3 = '已到站'; + this.crud.resetQuery() + }, + clickChange(lab) { + if (lab === '全部') { + this.query.taskStatus = '' + this.crud.toQuery() + } else if (lab === '待执行') { + this.query.taskStatus = 'OPEN' + this.crud.toQuery() + } else if (lab === '已到站') { + this.query.taskStatus = 'ARRIVED' + this.crud.toQuery() + } else if (lab === '已完成') { + this.query.taskStatus = 'FINISH' + this.crud.toQuery() + } + } } }