From 8f367abbaa8381a4ace07a953f1ec43a63c42a9d Mon Sep 17 00:00:00 2001 From: chenqiang Date: Tue, 21 Nov 2023 17:25:50 +0800 Subject: [PATCH] =?UTF-8?q?fix():=20=E8=A7=A3=E5=86=B3=E9=87=8D=E5=A4=8D?= =?UTF-8?q?=E6=94=AF=E4=BB=98=E6=93=8D=E4=BD=9C=E6=B5=81=E6=B0=B4=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E6=98=BE=E7=A4=BA=E9=94=99=E8=AF=AF=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../FinancialMgm/SettleBill/PayRepeat/index.scss | 17 ++++++--- .../FinancialMgm/SettleBill/PayRepeat/loadable.jsx | 44 ++++++++++------------ 2 files changed, 30 insertions(+), 31 deletions(-) diff --git a/src/pages/FinancialMgm/SettleBill/PayRepeat/index.scss b/src/pages/FinancialMgm/SettleBill/PayRepeat/index.scss index 9af65ff..1528cf7 100644 --- a/src/pages/FinancialMgm/SettleBill/PayRepeat/index.scss +++ b/src/pages/FinancialMgm/SettleBill/PayRepeat/index.scss @@ -167,10 +167,12 @@ $color-primary: var(--color-primary); background: linear-gradient(180deg, #3aa9ff, #59b7ff); } } - .ant-table-body { - @include scrollBar(var(--color-user-list-bg), #3B97FF); - - } + + .ant-table-body { + @include scrollBar(var(--color-user-list-bg), #3B97FF); + + } + .ant-table-thead { th { @@ -262,8 +264,11 @@ $color-primary: var(--color-primary); .ant-table-tbody { tr { - &:nth-last-child(1) { - color: red; + + color: red; + + &:first-child { + color: #ffffff; } } } diff --git a/src/pages/FinancialMgm/SettleBill/PayRepeat/loadable.jsx b/src/pages/FinancialMgm/SettleBill/PayRepeat/loadable.jsx index 259eca1..c2ae105 100644 --- a/src/pages/FinancialMgm/SettleBill/PayRepeat/loadable.jsx +++ b/src/pages/FinancialMgm/SettleBill/PayRepeat/loadable.jsx @@ -429,24 +429,24 @@ function PayRepeat() { } //退款操作 const getRepeatTD = (text) => { - ajax.ElectInvoice.getRepeatDetail({ re_mark: text }).then( - (res) => { - if (parseInt(res?.status) === 20000) { - message.success(res?.message); - setOpen(false); - setTabdata({ - order: [], - flow_list: [], - }); - setTextcl(""); - } else { - message.error(res?.message); - } - }, - (err) => { - console.log(err); - } - ); + // ajax.ElectInvoice.getRepeatDetail({ re_mark: text }).then( + // (res) => { + // if (parseInt(res?.status) === 20000) { + // message.success(res?.message); + // setOpen(false); + // setTabdata({ + // order: [], + // flow_list: [], + // }); + // setTextcl(""); + // } else { + // message.error(res?.message); + // } + // }, + // (err) => { + // console.log(err); + // } + // ); }; //获取查看详情显示数据 const getRepeatDetail = (id) => { @@ -456,13 +456,7 @@ function PayRepeat() { if (parseInt(res?.status) === 20000) { setTabdata({ order: [res?.data?.order || {}], - flow_list: [ - { - ...res?.data?.flow_list[0], - repeat_out_trade_no: "", - }, - { ...res?.data?.flow_list[0] }, - ], + flow_list: res?.data?.flow_list || [], }); setOpen(true); } else {