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