From dd69265d324f20528f2c4bc8379f7338183dd630 Mon Sep 17 00:00:00 2001 From: 1178634255 <1178634255@qq.com> Date: Wed, 31 May 2023 15:20:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E8=AE=B0=E5=BD=95=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E5=A4=87=E4=BB=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/udi/udiTrace.js | 2 +- src/views/udi/trace/history/index.vue | 38 ++++++-- src/views/udi/trace/task/index.vue | 133 +++++++++++++++++++++++++- 3 files changed, 159 insertions(+), 14 deletions(-) diff --git a/src/api/udi/udiTrace.js b/src/api/udi/udiTrace.js index 4f72005..dba6131 100644 --- a/src/api/udi/udiTrace.js +++ b/src/api/udi/udiTrace.js @@ -7,7 +7,7 @@ export function getTraceOrderList(query) { params: query }) } - +//查询记录 export function getTraceRecordList(query) { return axios({ url: '/udi/trace/record/filter', diff --git a/src/views/udi/trace/history/index.vue b/src/views/udi/trace/history/index.vue index bda49ea..caea9de 100644 --- a/src/views/udi/trace/history/index.vue +++ b/src/views/udi/trace/history/index.vue @@ -1,9 +1,9 @@ @@ -211,9 +313,22 @@ export default { manuCodeRelLoading: false, taskList: [], listCodeRel: [], - openManuOrder: false, + open: false, openManuCodeRel: false, - formView: {}, + formView: { + taskType:null, + status: null, + }, + taskTypes: [ + { value: 1, label: '关联关系' }, + { value: 2, label: '入库' }, + { value: 3, label: '出库' }, + ], + taskStatus: [ + { value: 1, label: '未处理' }, + { value: 2, label: '正在处理' }, + { value: 3, label: '已处理' }, + ], formViewCodeRel: {}, showSearch: true, actDateRange: [], @@ -252,6 +367,16 @@ export default { } }, + computed: { + taskTypeText() { + const taskType = this.taskTypes.find(item => item.value === this.formView.taskType); + return taskType ? taskType.label : ''; + }, + statusText() { + const status = this.taskStatus.find(item => item.value === this.formView.status); + return status ? status.label : ''; + }, + }, methods: { //隐藏搜索 hideSearch() { @@ -313,13 +438,13 @@ export default { // }, //详情 handleView(row){ - this.taskOrder.forEach(obj => { + this.taskList.forEach(obj => { if (row.id == obj.id) { this.formView = obj } }) console.log(this.formView) - this.openManuOrder = true + this.open = true }, handleViewCoderel(row){ this.listCodeRel.forEach(obj => {