修改了发票多个界面

main
yang.yongquan 2022-12-28 14:32:37 +08:00
parent e005d48d56
commit 958e925a44
3 changed files with 51 additions and 51 deletions

View File

@ -95,7 +95,7 @@ export class InvoiceCommit {
invoiceCheckCode:string
invoiceRegionCode: Nullable<string>
invoiceSellerTaxCode:Nullable<string>
invoiceExtraInfo:Nullable<string>|[]
invoiceExtraInfo:Nullable<string>|[]|Map<any,string>
constructor() {
this.invoiceFileName = ""
this.invoiceNo = ""

View File

@ -167,51 +167,51 @@ class InvoiceSearch extends React.Component<any, any> {
</Button>
</div>
{this.state.complexEnabled&&
<div className="complexSearchBar" style={{display: "flex"}}>
<Form name="complexOption" {...formItemLayout} onValuesChange={onValuesChange}>
<Row>
<Form.Item name="upload-time-picker" label="发票上传时间" {...rangeConfig}>
<RangePicker/>
</Form.Item>
<div className="complexSearchBar" style={{display: "flex"}}>
<Form name="complexOption" {...formItemLayout} onValuesChange={onValuesChange}>
<Row>
<Form.Item name="upload-time-picker" label="发票上传时间" {...rangeConfig}>
<RangePicker/>
</Form.Item>
<Form.Item name="invoice-time-picker" label="发票开票日期" {...rangeConfig}>
<RangePicker/>
</Form.Item>
</Row>
<Row style={{display: "flex", flexWrap: "wrap"}}>
<Form.Item
name={`invoice-state`}
label={`发票状态`}
style={{minWidth: 150}}
><Select defaultValue="全部">
<Option value="全部"></Option>
<Option value="0">使</Option>
<Option value="1"></Option>
<Option value="2"></Option>
</Select>
</Form.Item>
<Form.Item
name={`invoice-kind`}
label={`发票类型`}
style={{minWidth: 300}}
><Select defaultValue="全部">
<Option value="全部"></Option>
<Option value="增值税普通发票"></Option>
<Option value="增值税专用发票"></Option>
<Option value="增值税电子普通发票"></Option>
<Option value="增值税电子专用发票"></Option>
<Option value="定额发票"></Option>
</Select>
</Form.Item>
<Form.Item
name={`invoice-uploader`}
label={`上传者`}
>
<Input placeholder="任意上传者"/>
</Form.Item>
</Row>
</Form>
</div>}
<Form.Item name="invoice-time-picker" label="发票开票日期" {...rangeConfig}>
<RangePicker/>
</Form.Item>
</Row>
<Row style={{display: "flex", flexWrap: "wrap"}}>
<Form.Item
name={`invoice-state`}
label={`发票状态`}
style={{minWidth: 150}}
><Select defaultValue="全部">
<Option value="全部"></Option>
<Option value="0">使</Option>
<Option value="1"></Option>
<Option value="2"></Option>
</Select>
</Form.Item>
<Form.Item
name={`invoice-kind`}
label={`发票类型`}
style={{minWidth: 300}}
><Select defaultValue="全部">
<Option value="全部"></Option>
<Option value="增值税普通发票"></Option>
<Option value="增值税专用发票"></Option>
<Option value="增值税电子普通发票"></Option>
<Option value="增值税电子专用发票"></Option>
<Option value="定额发票"></Option>
</Select>
</Form.Item>
<Form.Item
name={`invoice-uploader`}
label={`上传者`}
>
<Input placeholder="任意上传者"/>
</Form.Item>
</Row>
</Form>
</div>}
</div>
)
@ -269,7 +269,7 @@ class InvoiceListView extends React.Component<any, any> {
pageNum: 1,
pageSize: 20,
totalNum: 2,
PaginationKey: -23
PaginationKey: -2
}
this.searchInvoiceContent()
}
@ -310,7 +310,7 @@ class InvoiceListView extends React.Component<any, any> {
}
handleInvoicesTotalNum(value: Number) {
this.setState({totalNum: Number, PaginationKey: -Number})
this.setState({totalNum: value, PaginationKey: -value})
}
handleInvoicesContent = (value: Array<Invoice>) => {
@ -329,10 +329,6 @@ class InvoiceListView extends React.Component<any, any> {
)}
</div>
<Pagination style={{
position: "fixed",
bottom: 20,
}} showQuickJumper defaultCurrent={1} total={this.state.totalNum} onChange={this.onChange} />
<Pagination style={{
position: "fixed",
bottom: 20,

View File

@ -130,6 +130,10 @@ class InvoiceUploadView extends React.Component<any, any>{
handleCancel = () => {
this.setOpen(false);
};
handleUploadCanCel = () => {
this.setUploadOpen(false);
}
submit=()=>{
let result=this.formRef.current!.getFieldsValue()
result.invoiceDate=result.invoiceDate.format("YYYY-MM-DD")