From 9b7020d0fe83aa848e92551c5252add6e05c2c5b Mon Sep 17 00:00:00 2001 From: yangfeng <wanwan926_4@163.com> Date: 星期三, 13 三月 2024 10:34:25 +0800 Subject: [PATCH] 状态就绪问题修改 --- src/views/purchaseManage/purchase/index.vue | 14 +++++++++++++- src/api/data.js | 10 ++++++++++ 2 files changed, 23 insertions(+), 1 deletions(-) diff --git a/src/api/data.js b/src/api/data.js index 5936ae6..1909a6e 100644 --- a/src/api/data.js +++ b/src/api/data.js @@ -2,6 +2,14 @@ const purchaseStatus = [ { id: 1, name: "寰呯‘璁�" }, { id: 2, name: "寰呭叆搴�" }, + { id: 3, name: "宸插叆搴�" }, + { id: 4, name: "宸插畬鎴�" }, + { id: 5, name: "宸插彇娑�" } +] +// 鏀惰揣鐘舵�� +const receiveStatus = [ + { id: 1, name: "寰呯‘璁�" }, + { id: 2, name: "寰呭叆搴�" }, { id: 3, name: "灏辩华" }, { id: 4, name: "宸插畬鎴�" }, { id: 5, name: "宸插彇娑�" } @@ -44,5 +52,7 @@ return qualityStatus } else if (type == "returnedStatus") { return returnedStatus + } else if (type == "receiveStatus") { + return receiveStatus } } diff --git a/src/views/purchaseManage/purchase/index.vue b/src/views/purchaseManage/purchase/index.vue index 3887b14..a553df6 100644 --- a/src/views/purchaseManage/purchase/index.vue +++ b/src/views/purchaseManage/purchase/index.vue @@ -162,10 +162,11 @@ { label: "鏁伴噺", prop: "amount" }, { label: "鍏ュ簱鏃堕棿", prop: "overTime" }, { label: "鏀惰揣浜�", prop: "principal" }, - { label: "鐘舵��", prop: "status", isCallMethod: true, getCallMethod: this.getpurchaseStatus } + { label: "鐘舵��", prop: "status", isCallMethod: true, getCallMethod: this.getreceiveStatusStatus } ] return { purchaseStatusList: getDataByType("purchaseStatus"), + receiveStatusList: getDataByType("receiveStatus"), tableLoading: false, tableList: {}, // 鍒楄〃 selValueList: [], @@ -259,6 +260,17 @@ return "--" } }, + getreceiveStatusStatus(val) { + if (val) { + for (let i in this.receiveStatusList) { + if (this.receiveStatusList[i].id == val) { + return this.receiveStatusList[i].name + } + } + } else { + return "--" + } + }, setColumnVisible(showCol, tableColumn) { return tableColumn.map((ele) => { return { -- Gitblit v1.8.0