Browse Source

fix(): 解决重复支付操作流水信息显示错误的问题

tags/PMS_Frontend_v1.0.6-develop
chenqiang 1 year ago
parent
commit
8f367abbaa
  1. 17
      src/pages/FinancialMgm/SettleBill/PayRepeat/index.scss
  2. 44
      src/pages/FinancialMgm/SettleBill/PayRepeat/loadable.jsx

17
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;
}
}
}

44
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 {

Loading…
Cancel
Save