添加了发票列表界面
parent
b650eb0f5e
commit
e1858e29b2
|
@ -29,3 +29,63 @@ export interface Invoice {
|
|||
modified: boolean;
|
||||
}
|
||||
|
||||
type Nullable<T> = T | undefined | null;
|
||||
export class InvoiceSearchOption{
|
||||
invoiceNo: Nullable<string>
|
||||
invoiceCode: Nullable<string>
|
||||
invoiceUploadTimeStart: Nullable<Date>
|
||||
invoiceUploadTimeEnd:Nullable<Date>
|
||||
invoiceState:Nullable<number>
|
||||
invoiceKind:Nullable<string>
|
||||
invoiceDateStart:Nullable<Date>
|
||||
invoiceDateEnd:Nullable<Date>
|
||||
invoiceNote:Nullable<string>
|
||||
invoiceUploader:Nullable<string>
|
||||
pageNum:number
|
||||
pageSize:number
|
||||
constructor(){
|
||||
this.invoiceNo=null
|
||||
this.invoiceCode=null
|
||||
this.invoiceUploadTimeStart=null
|
||||
this.invoiceUploadTimeEnd=null
|
||||
this.invoiceState=null
|
||||
this.invoiceKind=null
|
||||
this.invoiceDateStart=null
|
||||
this.invoiceDateEnd=null
|
||||
this.invoiceNote=null
|
||||
this.invoiceUploader=null
|
||||
this.pageNum=0
|
||||
this.pageSize=20
|
||||
}
|
||||
clear(){
|
||||
this.invoiceNo=null
|
||||
this.invoiceCode=null
|
||||
this.invoiceUploadTimeStart=null
|
||||
this.invoiceUploadTimeEnd=null
|
||||
this.invoiceState=null
|
||||
this.invoiceKind=null
|
||||
this.invoiceDateStart=null
|
||||
this.invoiceDateEnd=null
|
||||
this.invoiceNote=null
|
||||
this.invoiceUploader=null
|
||||
this.pageNum=0
|
||||
this.pageSize=20
|
||||
}
|
||||
private nullOrValue(){
|
||||
|
||||
}
|
||||
toString(){
|
||||
let res="pageNum="+this.pageNum+"&pageSize="+this.pageSize
|
||||
res+=(this.invoiceNo===null?"":("&invoiceNo="+this.invoiceNo));
|
||||
res+=(this.invoiceCode===null?"":("&invoiceCode="+this.invoiceCode));
|
||||
res+=(this.invoiceUploadTimeStart===null?"":("&invoiceUploadTimeStart="+this.invoiceUploadTimeStart?.toDateString()));
|
||||
res+=(this.invoiceUploadTimeEnd===null?"":("&invoiceUploadTimeEnd="+this.invoiceUploadTimeEnd?.toDateString()));
|
||||
res+=(this.invoiceState===null?"":("&invoiceState="+this.invoiceState));
|
||||
res+=(this.invoiceKind===null?"":("&invoiceKind="+this.invoiceKind));
|
||||
res+=(this.invoiceDateStart===null?"":("&invoiceDateStart="+this.invoiceDateStart?.toDateString()));
|
||||
res+=(this.invoiceDateEnd===null?"":("&invoiceDateEnd="+this.invoiceDateEnd?.toDateString()));
|
||||
res+=(this.invoiceNote===null?"":("&invoiceNote="+this.invoiceNote));
|
||||
res+=(this.invoiceUploader===null?"":("&invoiceUploader="+this.invoiceUploader));
|
||||
return res;
|
||||
}
|
||||
}
|
File diff suppressed because one or more lines are too long
|
@ -1,7 +1,7 @@
|
|||
import axios, {AxiosRequestConfig, AxiosResponse} from "axios";
|
||||
|
||||
//export const baseUrl = "https://www.hammer-hfut.tk/api/"
|
||||
export const baseUrl = "http://127.0.0.1:4523/m1/2116708-0-default/"
|
||||
export const baseUrl = "https://mock.apifox.cn/m1/2116708-0-ae5ae4e4/"
|
||||
|
||||
const axiosInstance = axios.create({
|
||||
baseURL: baseUrl,
|
||||
|
|
Loading…
Reference in New Issue