修改了发票多个界面

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 invoiceCheckCode:string
invoiceRegionCode: Nullable<string> invoiceRegionCode: Nullable<string>
invoiceSellerTaxCode:Nullable<string> invoiceSellerTaxCode:Nullable<string>
invoiceExtraInfo:Nullable<string>|[] invoiceExtraInfo:Nullable<string>|[]|Map<any,string>
constructor() { constructor() {
this.invoiceFileName = "" this.invoiceFileName = ""
this.invoiceNo = "" this.invoiceNo = ""

View File

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

View File

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