diff --git a/klp-ui/src/views/wms/coil/stock/index.vue b/klp-ui/src/views/wms/coil/stock/index.vue index 3b4928174..e77037745 100644 --- a/klp-ui/src/views/wms/coil/stock/index.vue +++ b/klp-ui/src/views/wms/coil/stock/index.vue @@ -23,6 +23,11 @@ 查询 重置 + 全选模式 + AB模式 + CD模式 + O模式 + CDO模式 @@ -627,6 +632,28 @@ export default { this.queryParams = { warehouseIds: Object.keys(this.warehouseMap), qualityStatusCsv: 'A+,A,A-,B+,B,B-' }; this.getList(); }, + + // 快捷品质筛选 + quickQualityAll() { + this.queryParams.qualityStatusCsv = ''; + this.getList(); + }, + quickQualityAB() { + this.queryParams.qualityStatusCsv = 'A+,A,A-,B+,B,B-'; + this.getList(); + }, + quickQualityCD() { + this.queryParams.qualityStatusCsv = 'C+,C,C-,D+,D,D-'; + this.getList(); + }, + quickQualityO() { + this.queryParams.qualityStatusCsv = 'O'; + this.getList(); + }, + quickQualityCDO() { + this.queryParams.qualityStatusCsv = 'C+,C,C-,D+,D,D-,O'; + this.getList(); + }, }, }; diff --git a/klp-ui/src/views/wms/post/aps/schedule.vue b/klp-ui/src/views/wms/post/aps/schedule.vue index 837b1a64c..cdc8fb3f8 100644 --- a/klp-ui/src/views/wms/post/aps/schedule.vue +++ b/klp-ui/src/views/wms/post/aps/schedule.vue @@ -296,9 +296,17 @@ - + @@ -404,7 +412,7 @@ - + @@ -660,7 +668,7 @@ export default { // 待审核 pendingScheduleList: [], summaryText: '', - statusMap: { 1: '待审核', 2: '已接收', 3: '已驳回' }, + statusMap: { 1: '待审核', 2: '已接收', 3: '已驳回', 4: '已排产' }, processOptions: PROCESSES, // 已接收 @@ -943,12 +951,21 @@ export default { }) }, + // 表格内快捷修改排产状态 + handleInlineStatusChange(row, val) { + this.$set(row, '_statusLoading', true) + updateScheduleItem({ scheduleId: row.scheduleId, scheduleStatus: val }).then(() => { + this.$modal.msgSuccess('状态已更新') + }).catch(() => { + this.$modal.msgError('状态更新失败') + this.queryScheduled() + }).finally(() => { + this.$set(row, '_statusLoading', false) + }) + }, + handleEditScheduled(row) { this.editForm = { ...this.getEmptyEditForm(), ...row } - // 确保 actionId 为数字类型以匹配下拉选项 - if (this.editForm.actionId != null && typeof this.editForm.actionId !== 'number') { - this.editForm.actionId = Number(this.editForm.actionId) - } // 确保 scheduleStatus 为数字类型以匹配下拉选项 if (this.editForm.scheduleStatus != null && typeof this.editForm.scheduleStatus !== 'number') { this.editForm.scheduleStatus = Number(this.editForm.scheduleStatus) @@ -1229,6 +1246,7 @@ export default { &.status-1 { background: #fff3e0; color: #e67e22; } &.status-2 { background: #e8f5e9; color: #388e3c; } &.status-3 { background: #fdecea; color: #e74c3c; } + &.status-4 { background: #e3f2fd; color: #1976d2; } } // 产需单信息表