From 1ed83e98d5bc89f4e87b8ae6692eb31888e55579 Mon Sep 17 00:00:00 2001 From: yangfeng <wanwan926_4@163.com> Date: 星期四, 21 九月 2023 16:45:09 +0800 Subject: [PATCH] 入库、出库、内部调拨列表及新建接口联调 --- src/views/overview/OverviewListView.vue | 29 ++++++++++++++++++++--------- 1 files changed, 20 insertions(+), 9 deletions(-) diff --git a/src/views/overview/OverviewListView.vue b/src/views/overview/OverviewListView.vue index 54e79fe..aab7906 100644 --- a/src/views/overview/OverviewListView.vue +++ b/src/views/overview/OverviewListView.vue @@ -89,37 +89,37 @@ let tableColumn = [ { label: "鍗曞彿", - prop: "id", + prop: "number", isShowColumn: true, default: true }, { label: "浠�", - prop: "deviceName", + prop: "from", isShowColumn: showcol.includes("浠�"), default: false }, { label: "鑷�", - prop: "id", + prop: "to", isShowColumn: showcol.includes("鑷�"), default: false }, { label: "鑱旂郴浜�", - prop: "deviceId", + prop: "companyName", isShowColumn: showcol.includes("鑱旂郴浜�"), default: false }, { label: "璐熻矗浜�", - prop: "shopName", + prop: "contacterName", isShowColumn: showcol.includes("璐熻矗浜�"), default: false }, { label: "鏃ユ湡", - prop: "preTime", + prop: "operationDate", isShowColumn: showcol.includes("鏃ユ湡"), default: false, date: true @@ -144,7 +144,7 @@ }, { label: "鏉ユ簮鍗曟嵁", - prop: "faultLevel", + prop: "sourceNumber", isShowColumn: showcol.includes("鏉ユ簮鍗曟嵁"), default: false }, @@ -166,7 +166,9 @@ width: 120, isShowColumn: showcol.includes("鐘舵��"), default: false, - status: true + status: true, + isCallMethod: true, + getCallMethod: this.getStatus } ] return tableColumn @@ -186,7 +188,9 @@ if (res.data.code === 200) { const list = res.data.data.map((item) => { return { - ...item + ...item, + from: item.fromLocation.name, + to: item.toLocation.name } }) this.tableList.tableInfomation = list || [] @@ -203,12 +207,19 @@ console.log(row) this.editConfig.visible = true this.editConfig.title = "缂栬緫" + this.editConfig.operationTypeId = this.$route.params.id this.editConfig.infomation = { ...row } }, // 鏂板缓 addBtnClick() { this.editConfig.visible = true this.editConfig.title = "鏂板缓" + this.editConfig.operationTypeId = this.$route.params.id + this.editConfig.infomation = {} + }, + // 鐘舵�� + getStatus(val) { + return val === 1 ? "鑽夌" : val === 3 ? "灏辩华" : "瀹屾垚" } } } -- Gitblit v1.8.0