From d95a54d5be025aa5586783b35812f3488196a9c3 Mon Sep 17 00:00:00 2001 From: YCC Date: Fri, 26 May 2023 13:35:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=98=BE=E7=A4=BA=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/stores/Invoice.js | 22 ++++++++++++++++++++++ src/views/invoice/Detail.jsx | 20 +++++++++++--------- 2 files changed, 33 insertions(+), 9 deletions(-) diff --git a/src/stores/Invoice.js b/src/stores/Invoice.js index e599be0..7cca86d 100644 --- a/src/stores/Invoice.js +++ b/src/stores/Invoice.js @@ -223,6 +223,27 @@ class Invoice { }); } + //账单状态 + invoiceStatus(FKState) { + switch (FKState - 1) { + case 1: + return "Submitted"; + break; + case 2: + return "Travel Advisor"; + break; + case 3: + return "Finance Dept"; + break; + case 4: + return "Paid"; + break; + default: + return ""; + break; + } + } + /* 测试数据 */ //账单列表范例数据 testData = [ @@ -241,6 +262,7 @@ class Invoice { GMD_FillWorkers_Name: "", GroupName: " 中华游230501-CA230402033", AllMoney: 3539, + FKState: 1, GMD_Currency: "", PersonNum: "1大1小", VName: "", diff --git a/src/views/invoice/Detail.jsx b/src/views/invoice/Detail.jsx index be49724..e13fac9 100644 --- a/src/views/invoice/Detail.jsx +++ b/src/views/invoice/Detail.jsx @@ -188,18 +188,20 @@ function Detail() { - Invoice {index + 1} - - + + + + {data.GMD_Cost} {data.GMD_Currency} {data.GMD_PayDate} + {invoiceStore.invoiceStatus(data.FKState)} {addButton(index + 1 == invoiceZDDetail.length)}