财务统计上月数据现在是真实的
parent
439d924a03
commit
abe3bc4af0
|
@ -112,6 +112,8 @@ function FormModal(props: any) {
|
|||
const [invoice, setInvoice] = useState({})
|
||||
const [formItems, setFormItems] = useState(undefined)
|
||||
const [form] = Form.useForm();
|
||||
const [messageApi, contextHolder] = message.useMessage();
|
||||
|
||||
useEffect(() => {
|
||||
//setOpen(props.open)
|
||||
console.log(props.invoiceIdentifyResponse)
|
||||
|
@ -150,6 +152,10 @@ function FormModal(props: any) {
|
|||
}).catch(function (error) {
|
||||
console.log(error)
|
||||
setLoading(false)
|
||||
messageApi.open({
|
||||
type: 'error',
|
||||
content: error.response.data.msg,
|
||||
});
|
||||
})
|
||||
|
||||
}
|
||||
|
@ -247,6 +253,7 @@ function FormModal(props: any) {
|
|||
<TextArea/>
|
||||
</Form.Item>
|
||||
</Form>
|
||||
{contextHolder}
|
||||
</Modal>
|
||||
)
|
||||
}
|
||||
|
|
|
@ -157,13 +157,13 @@ function StatView() {
|
|||
}).then(response => {
|
||||
const statResponse: StatResponse = response.data
|
||||
setReimbursementAmount(statResponse.reimbursementAllTotalAmount / 100.)
|
||||
setReimbursementAmountTrend(13.74)
|
||||
/*setReimbursementAmountTrend(
|
||||
(statResponse.reimbursementAllTotalAmount - statResponse.lastAllTotalAmount) / statResponse.lastAllTotalAmount)*/
|
||||
// setReimbursementAmountTrend(13.74)
|
||||
setReimbursementAmountTrend(
|
||||
(statResponse.reimbursementAllTotalAmount - statResponse.lastAllTotalAmount) / statResponse.lastAllTotalAmount)
|
||||
setReimbursementAdditionalAmount(statResponse.reimbursementAdditionalTotalAmount / 100.)
|
||||
setReimbursementAdditionalAmountTrend(-5.31)
|
||||
/* setReimbursementAdditionalAmountTrend(
|
||||
(statResponse.reimbursementAdditionalTotalAmount - statResponse.lastAdditionalTotalAmount) / statResponse.lastAdditionalTotalAmount)*/
|
||||
// setReimbursementAdditionalAmountTrend(-5.31)
|
||||
setReimbursementAdditionalAmountTrend(
|
||||
(statResponse.reimbursementAdditionalTotalAmount - statResponse.lastAdditionalTotalAmount) / statResponse.lastAdditionalTotalAmount)
|
||||
|
||||
setAmounts([statResponse.invoiceLaunchCount, statResponse.reimbursementLaunchCount])
|
||||
setInvoiceKinds(statResponse.invoiceKindsStats.map((item) => {
|
||||
|
|
Loading…
Reference in New Issue