diff --git a/src/pages/reimbursement/mine/ReimbursementDetail.tsx b/src/pages/reimbursement/mine/ReimbursementDetail.tsx
index e59ddbc..569ae0c 100644
--- a/src/pages/reimbursement/mine/ReimbursementDetail.tsx
+++ b/src/pages/reimbursement/mine/ReimbursementDetail.tsx
@@ -92,8 +92,8 @@ function displayRawInfo(reimbursement: ReimbursementDetailModal | undefined | nu
+ destinationInvoice={reimbursement.reimbursementDestinationInvoice}
+ otherInvoices={reimbursement.invoices}/>
>)
@@ -155,7 +155,7 @@ function displaySteps(reimbursement: ReimbursementDetailModal | undefined | null
}
items.push({
// @ts-ignore
- title: statusEnum2[i - 1] + "审批",
+ title: statusEnum2[i] + "审批",
status: 'error',
subTitle: approvalSteps[i].approvalTime.replace("T", " "),
description: description
@@ -233,11 +233,11 @@ class ReimbursementDetail extends React.Component {
approve = () => {
let params = {approvalOpinion: this.state.approvalOpinion}
- axiosInstance.put("approval/" + this.state.reimbursement.reimbursementId.toString() + "/"+(this.state.approvalChecked?"1":"0"), params).then((res) => {
+ axiosInstance.put("approval/" + this.state.reimbursement.reimbursementId.toString() + "/" + (this.state.approvalChecked ? "1" : "0"), params).then((res) => {
openNotification("审核成功");
this.props.closeDetail();
}).catch((err) => {
- openNotification(err.response.data.msg==null?"操作失败,请稍后重试":err.response.data.msg);
+ openNotification(err.response.data.msg == null ? "操作失败,请稍后重试" : err.response.data.msg);
console.log(err);
})
}
@@ -247,7 +247,7 @@ class ReimbursementDetail extends React.Component {
openNotification("已终止申请");
this.props.closeDetail();
}).catch((err) => {
- openNotification(err.response.data.msg==null?"操作失败,请稍后重试":err.response.data.msg);
+ openNotification(err.response.data.msg == null ? "操作失败,请稍后重试" : err.response.data.msg);
console.log(err);
})
}
@@ -299,20 +299,23 @@ class ReimbursementDetail extends React.Component {
this.state.reimbursement.reimbursementStatus >= 1 && this.state.reimbursement.reimbursementStatus <= 4) {
return (<>
-
-
- {
- this.setState({approvalChecked: value.target.value})
- }}>
- 通过
- 不通过
-
+
+ {
+ this.setState({approvalChecked: value.target.value})
+ }}>
+ 通过
+ 不通过
+
>
)
diff --git a/src/pages/reimbursement/mine/component/ReimbursementDetailFiles.tsx b/src/pages/reimbursement/mine/component/ReimbursementDetailFiles.tsx
index c6638df..c1ec619 100644
--- a/src/pages/reimbursement/mine/component/ReimbursementDetailFiles.tsx
+++ b/src/pages/reimbursement/mine/component/ReimbursementDetailFiles.tsx
@@ -101,6 +101,7 @@ function DisplayInvoicesList(props:{departureInvoice: Invoice, destinationInvoic
}
let invoiceId = Number(keys[0]);
axiosInstance.get("common/invoice/" + invoiceId).then((res) => {
+ res.data.invoiceAmount/=100.0
setInvoiceDetail(res.data);
setDetailModalOpen(true);
})