From 06da5f6b9a3f205293bc79f232e80019c09c8d33 Mon Sep 17 00:00:00 2001 From: YCC Date: Wed, 24 May 2023 16:12:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=B4=A6=E5=8D=95=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E9=A1=B5=EF=BC=8C=E4=B8=8A=E4=BC=A0=E5=9B=BE=E7=89=87?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0token?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/stores/Invoice.js | 7 ++----- src/views/feedback/Detail.jsx | 2 +- src/views/invoice/Detail.jsx | 2 +- src/views/invoice/Index.jsx | 21 ++------------------- 4 files changed, 6 insertions(+), 26 deletions(-) diff --git a/src/stores/Invoice.js b/src/stores/Invoice.js index f06405e..97ddd23 100644 --- a/src/stores/Invoice.js +++ b/src/stores/Invoice.js @@ -75,12 +75,9 @@ class Invoice { }; }); this.invoicePage.total = json.Result[0].TotalCount; + } else { + this.invoiceList = []; } - - // else{ - // this.invoiceList=[]; - // this.invoicePage.total=0; - // } } else { throw new Error(json.errmsg + ": " + json.errcode); } diff --git a/src/views/feedback/Detail.jsx b/src/views/feedback/Detail.jsx index b9cefd6..368cbf3 100644 --- a/src/views/feedback/Detail.jsx +++ b/src/views/feedback/Detail.jsx @@ -170,7 +170,7 @@ function Detail() { name="ghhfile" accept="image/*" multiple={true} - action={config.HT_HOST + `/service-fileServer/FileUpload?GRI_SN=${GRI_SN}&VEI_SN=${authStore.login.travelAgencyId}`} + action={config.HT_HOST + `/service-fileServer/FileUpload?GRI_SN=${GRI_SN}&VEI_SN=${authStore.login.travelAgencyId}&token=${authStore.login.token}`} fileList={fileList} listType="picture-card" onChange={handleChange} diff --git a/src/views/invoice/Detail.jsx b/src/views/invoice/Detail.jsx index 0cd3dfa..f615923 100644 --- a/src/views/invoice/Detail.jsx +++ b/src/views/invoice/Detail.jsx @@ -221,7 +221,7 @@ function Detail() { name="ghhfile" accept="image/*" multiple={true} - action={config.HT_HOST + `/service-fileServer/FileUpload?GRI_SN=${GSN}&VEI_SN=${authStore.login.travelAgencyId}&FilePathName=invoice`} + action={config.HT_HOST + `/service-fileServer/FileUpload?GRI_SN=${GSN}&VEI_SN=${authStore.login.travelAgencyId}&FilePathName=invoice&token=${authStore.login.token}`} fileList={invoicePicList[index]} listType="picture-card" > diff --git a/src/views/invoice/Index.jsx b/src/views/invoice/Index.jsx index 717af3a..d4c927e 100644 --- a/src/views/invoice/Index.jsx +++ b/src/views/invoice/Index.jsx @@ -26,14 +26,8 @@ function Index() { key: "GroupName", render: (text, record) => {text}, }, - { - title: "离团时间", - dataIndex: "GetGDate", - key: "GetGDate", - render: (text, record) => formatDate(new Date(text)), - }, - { - title: "接团时间", + { + title: "Arrival Date", key: "LeftGDate", dataIndex: "LeftGDate", render: (text, record) => (isNotEmpty(text) ? formatDate(new Date(text)) : ""), @@ -48,17 +42,6 @@ function Index() { key: "AllMoney", dataIndex: "AllMoney", }, - { - title: "填表时间", - key: "GMD_FWks_LastEditTime", - dataIndex: "GMD_FWks_LastEditTime", - render: (text, record) => (isNotEmpty(text) ? formatDate(new Date(text)) : ""), - }, - { - title: "填表人", - key: "GMD_FillWorkers_Name", - dataIndex: "GMD_FillWorkers_Name", - }, { title: "账单状态", key: "status",