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 +++++++++++++- 1 files changed, 13 insertions(+), 1 deletions(-) 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