diff --git a/src/models/Staff.ts b/src/models/Staff.ts index c9b8fb4..1da9f86 100644 --- a/src/models/Staff.ts +++ b/src/models/Staff.ts @@ -79,4 +79,46 @@ export class InvoiceSearchOption{ // res+=(this.invoiceUploader===undefined||this.invoiceUploader===null?"":("&invoiceUploader="+this.invoiceUploader)); // return res; // } +} + +export class InvoiceCommit { + invoiceFileName: string + invoiceNo: string + invoiceCode:string + invoiceKind:string + invoiceDate:Date + invoiceAmount:number + invoiceAmountWithoutTax: number + invoiceCheckCode:string + invoiceRegionCode: Nullable + invoiceSellerTaxCode:Nullable + + 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")!. + } } \ No newline at end of file diff --git a/src/utils/axiosInstance.ts b/src/utils/axiosInstance.ts index a15c920..ae9a1b1 100644 --- a/src/utils/axiosInstance.ts +++ b/src/utils/axiosInstance.ts @@ -1,8 +1,8 @@ import axios, {AxiosRequestConfig, AxiosResponse} from "axios"; import {store} from "../models/store"; -export const baseUrl = "http://101.34.228.45:8080/" -//export const baseUrl = "https://mock.apifox.cn/m1/2116708-0-default/" +// export const baseUrl = "http://101.34.228.45:8080/" +export const baseUrl = "https://mock.apifox.cn/m1/2116708-0-ae5ae4e4/" const axiosInstance = axios.create({ baseURL: baseUrl,