增加了上传中识别的功能
parent
0b96a9cf34
commit
03d747d123
|
@ -79,4 +79,46 @@ export class InvoiceSearchOption{
|
||||||
// res+=(this.invoiceUploader===undefined||this.invoiceUploader===null?"":("&invoiceUploader="+this.invoiceUploader));
|
// res+=(this.invoiceUploader===undefined||this.invoiceUploader===null?"":("&invoiceUploader="+this.invoiceUploader));
|
||||||
// return res;
|
// return res;
|
||||||
// }
|
// }
|
||||||
|
}
|
||||||
|
|
||||||
|
export class InvoiceCommit {
|
||||||
|
invoiceFileName: string
|
||||||
|
invoiceNo: string
|
||||||
|
invoiceCode:string
|
||||||
|
invoiceKind:string
|
||||||
|
invoiceDate:Date
|
||||||
|
invoiceAmount:number
|
||||||
|
invoiceAmountWithoutTax: number
|
||||||
|
invoiceCheckCode:string
|
||||||
|
invoiceRegionCode: Nullable<string>
|
||||||
|
invoiceSellerTaxCode:Nullable<string>
|
||||||
|
|
||||||
|
invoiceExtraInfo: []
|
||||||
|
constructor() {
|
||||||
|
this.invoiceFileName = ""
|
||||||
|
this.invoiceNo = ""
|
||||||
|
this.invoiceCode = ""
|
||||||
|
this.invoiceKind = ""
|
||||||
|
this.invoiceDate = new Date()
|
||||||
|
this.invoiceAmount = 0
|
||||||
|
this.invoiceAmountWithoutTax = 0
|
||||||
|
this.invoiceCheckCode = "000000"
|
||||||
|
this.invoiceRegionCode = null
|
||||||
|
this.invoiceSellerTaxCode = null
|
||||||
|
this.invoiceExtraInfo = []
|
||||||
|
}
|
||||||
|
setValue(props: FormData) {
|
||||||
|
console.log("1111"+props.toString())
|
||||||
|
this.invoiceFileName = props.get("invoiceFileName")!.toString()
|
||||||
|
this.invoiceNo = props.get("invoiceNo")!.toString()
|
||||||
|
this.invoiceCode = props.get("invoiceCode")!.toString()
|
||||||
|
this.invoiceKind = props.get("invoiceKind")!.toString()
|
||||||
|
this.invoiceDate = new Date(props.get("invoiceDate")!.toString())
|
||||||
|
//this.invoiceAmount = props.get("invoiceAmount")!.toString()
|
||||||
|
//this.invoiceAmountWithoutTax = props.get("invoiceAmountWithoutTax")!.toString()
|
||||||
|
this.invoiceCheckCode = props.get("invoiceCheckCode")!.toString()
|
||||||
|
this.invoiceRegionCode = props.get("invoiceRegionCode")!.toString()
|
||||||
|
this.invoiceSellerTaxCode = props.get("invoiceSellerTaxCode")!.toString()
|
||||||
|
//this.invoiceExtraInfo = props.get("invoiceExtraInfo")!.
|
||||||
|
}
|
||||||
}
|
}
|
|
@ -1,8 +1,8 @@
|
||||||
import axios, {AxiosRequestConfig, AxiosResponse} from "axios";
|
import axios, {AxiosRequestConfig, AxiosResponse} from "axios";
|
||||||
import {store} from "../models/store";
|
import {store} from "../models/store";
|
||||||
|
|
||||||
export const baseUrl = "http://101.34.228.45:8080/"
|
// export const baseUrl = "http://101.34.228.45:8080/"
|
||||||
//export const baseUrl = "https://mock.apifox.cn/m1/2116708-0-default/"
|
export const baseUrl = "https://mock.apifox.cn/m1/2116708-0-ae5ae4e4/"
|
||||||
|
|
||||||
const axiosInstance = axios.create({
|
const axiosInstance = axios.create({
|
||||||
baseURL: baseUrl,
|
baseURL: baseUrl,
|
||||||
|
|
Loading…
Reference in New Issue