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 => {