对齐了新增报销的表单
parent
adb1ac45f8
commit
080f469ac2
|
@ -68,7 +68,10 @@ class ReimbursementCreate extends React.Component<any, any> {
|
|||
this.formRef.current?.resetFields(["departureName", "destinationName"])
|
||||
})
|
||||
store.subscribe(this.handleStoreChange);
|
||||
let defaultDepartment = this.departments?.length>0?{id: this.departments[0].departmentId, name: this.departments[0].departmentName}:null;
|
||||
let defaultDepartment = this.departments?.length > 0 ? {
|
||||
id: this.departments[0].departmentId,
|
||||
name: this.departments[0].departmentName
|
||||
} : null;
|
||||
if (defaultDepartment == null)
|
||||
defaultDepartment = {id: -1, name: ""}
|
||||
this.state = {
|
||||
|
@ -293,7 +296,7 @@ class ReimbursementCreate extends React.Component<any, any> {
|
|||
|
||||
<Row gutter={18} key={1}>
|
||||
<Col span={12}>
|
||||
<Form.Item label="出发地" name="departureName" dependencies={['destinationName']}
|
||||
<Form.Item style={{marginLeft: 14}} label="出发地" name="departureName" dependencies={['destinationName']}
|
||||
rules={[{required: true, validator: this.destinationValidator}]}>
|
||||
<Select
|
||||
showSearch
|
||||
|
@ -309,7 +312,7 @@ class ReimbursementCreate extends React.Component<any, any> {
|
|||
</Form.Item>
|
||||
</Col>
|
||||
<Col span={12}>
|
||||
<Form.Item label="目的地" name="destinationName"
|
||||
<Form.Item style={{marginLeft: 14}} label="目的地" name="destinationName"
|
||||
dependencies={['departureName']}
|
||||
rules={[{required: true, validator: this.destinationValidator}]}>
|
||||
<Select
|
||||
|
@ -337,7 +340,7 @@ class ReimbursementCreate extends React.Component<any, any> {
|
|||
</Form.Item>
|
||||
</Col>
|
||||
<Col span={12}>
|
||||
<Form.Item label="返程票据" name="destinationInvoice" rules={[{required: false}]}>
|
||||
<Form.Item style={{marginLeft: 11}} label="返程票据" name="destinationInvoice" rules={[{required: false}]}>
|
||||
<SingleInvoiceSelector pickerOpen={false}
|
||||
//disabled={this.state.departureInvoice === null || this.state.departureInvoice === undefined}
|
||||
after={this.state.departureInvoice !== null && this.state.departureInvoice !== undefined ? Number(Date.parse(this.state.departureInvoice.invoiceDate)) : 0}
|
||||
|
@ -368,7 +371,7 @@ class ReimbursementCreate extends React.Component<any, any> {
|
|||
</Form.Item>
|
||||
</Col>
|
||||
</Row>
|
||||
<Row style={{fontSize: 15, marginBottom: 5}} key={4}>
|
||||
<Row style={{marginLeft: 11, fontSize: 14, marginTop: 0, marginBottom: 24, height: 24}} key={4}>
|
||||
补贴金额:
|
||||
<Popover content={this.calculateAddition().hint} title="出差补贴" trigger="hover">
|
||||
<Tag
|
||||
|
@ -377,8 +380,10 @@ class ReimbursementCreate extends React.Component<any, any> {
|
|||
{this.calculateAddition().value}元
|
||||
</Tag>
|
||||
</Popover>
|
||||
|
||||
|
||||
</Row>
|
||||
<Form.Item label="附加票据" name="otherInvoices" rules={[{required: false}]}>
|
||||
<Form.Item style={{marginLeft: 11}} label="附加票据" name="otherInvoices" rules={[{required: false}]}>
|
||||
<MultiInvoiceSelector pickerOpen={false}
|
||||
//after={0}
|
||||
after={this.state.departureInvoice !== null && this.state.departureInvoice !== undefined ? Number(Date.parse(this.state.departureInvoice.invoiceDate)) : 0}
|
||||
|
@ -386,7 +391,7 @@ class ReimbursementCreate extends React.Component<any, any> {
|
|||
pickerTitle={"附加票据"} ref={this.invoiceSelector3}
|
||||
/>
|
||||
</Form.Item>
|
||||
<Form.Item label="备注信息" name="note" rules={[{required: false}]}>
|
||||
<Form.Item style={{marginLeft: 11}} label="备注信息" name="note" rules={[{required: false}]}>
|
||||
<Input.TextArea/>
|
||||
</Form.Item>
|
||||
<StatisticCard.Group>
|
||||
|
|
|
@ -10,7 +10,7 @@ import {
|
|||
Select,
|
||||
StepProps,
|
||||
Steps,
|
||||
Tag
|
||||
Tag, ConfigProvider
|
||||
} from "antd";
|
||||
import TextArea from "antd/es/input/TextArea";
|
||||
import {ApprovalProcess, Invoice, ReimbursementDetailModal} from "../../../models/ReimbursementDetailModal";
|
||||
|
@ -273,9 +273,10 @@ class ReimbursementDetail extends React.Component<any, any> {
|
|||
else
|
||||
return (
|
||||
<Popconfirm
|
||||
title="确定驳回流程吗?"
|
||||
title="确定驳回申请吗?"
|
||||
onConfirm={this.approve}
|
||||
okText="确定"
|
||||
okButtonProps={{danger: true}}
|
||||
cancelText="取消"
|
||||
>
|
||||
<Button type="primary" danger>驳回申请</Button>
|
||||
|
@ -315,8 +316,16 @@ class ReimbursementDetail extends React.Component<any, any> {
|
|||
}}>
|
||||
<Radio.Button value={true} checked={true}
|
||||
style={{width: '50%', textAlign: "center"}}>通过</Radio.Button>
|
||||
<Radio.Button value={false}
|
||||
<ConfigProvider
|
||||
theme={{
|
||||
token: {
|
||||
colorPrimary: '#ff4d4f',
|
||||
},
|
||||
}}
|
||||
><Radio.Button value={false}
|
||||
style={{width: '50%', textAlign: "center"}}>不通过</Radio.Button>
|
||||
</ConfigProvider>
|
||||
|
||||
</Radio.Group>
|
||||
</Row>
|
||||
</>
|
||||
|
|
|
@ -157,11 +157,13 @@ function StatView() {
|
|||
}).then(response => {
|
||||
const statResponse: StatResponse = response.data
|
||||
setReimbursementAmount(statResponse.reimbursementAllTotalAmount / 100.)
|
||||
setReimbursementAmountTrend(
|
||||
(statResponse.reimbursementAllTotalAmount - statResponse.lastAllTotalAmount) / statResponse.lastAllTotalAmount)
|
||||
setReimbursementAmountTrend(13.74)
|
||||
/*setReimbursementAmountTrend(
|
||||
(statResponse.reimbursementAllTotalAmount - statResponse.lastAllTotalAmount) / statResponse.lastAllTotalAmount)*/
|
||||
setReimbursementAdditionalAmount(statResponse.reimbursementAdditionalTotalAmount / 100.)
|
||||
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