Browse Source

散件4

Branch_PaiNaWeiS
徐莉 3 months ago
parent
commit
46686dcfb8
  1. 224
      src/vue/src/shared/service-proxies/service-proxies.ts

224
src/vue/src/shared/service-proxies/service-proxies.ts

@ -55394,6 +55394,60 @@ export class ImportExportExtServiceProxy {
return Promise.resolve<ExcelImpDtoOfIcsParam2ParamImportDto>(null as any);
}
/**
* @param fileToken (optional)
* @return Success
*/
importIcsSanJBarCodeExcel(fileToken: string | null | undefined , cancelToken?: CancelToken | undefined): Promise<ExcelImpDtoOfIcsSanJBarCodeImportDto> {
let url_ = this.baseUrl + "/api/services/app/ImportExportExt/ImportIcsSanJBarCodeExcel?";
if (fileToken !== undefined && fileToken !== null)
url_ += "fileToken=" + encodeURIComponent("" + fileToken) + "&";
url_ = url_.replace(/[?&]$/, "");
let options_: AxiosRequestConfig = {
method: "POST",
url: url_,
headers: {
"Accept": "text/plain"
},
cancelToken
};
return this.instance.request(options_).catch((_error: any) => {
if (isAxiosError(_error) && _error.response) {
return _error.response;
} else {
throw _error;
}
}).then((_response: AxiosResponse) => {
return this.processImportIcsSanJBarCodeExcel(_response);
});
}
protected processImportIcsSanJBarCodeExcel(response: AxiosResponse): Promise<ExcelImpDtoOfIcsSanJBarCodeImportDto> {
const status = response.status;
let _headers: any = {};
if (response.headers && typeof response.headers === "object") {
for (let k in response.headers) {
if (response.headers.hasOwnProperty(k)) {
_headers[k] = response.headers[k];
}
}
}
if (status === 200) {
const _responseText = response.data;
let result200: any = null;
let resultData200 = _responseText;
result200 = ExcelImpDtoOfIcsSanJBarCodeImportDto.fromJS(resultData200);
return Promise.resolve<ExcelImpDtoOfIcsSanJBarCodeImportDto>(result200);
} else if (status !== 200 && status !== 204) {
const _responseText = response.data;
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
}
return Promise.resolve<ExcelImpDtoOfIcsSanJBarCodeImportDto>(null as any);
}
/**
* @param fileToken (optional)
* @return Success
@ -85390,6 +85444,89 @@ export interface IExcelImpDtoOfIcsRouteImportDto {
labelingErrorFileDto: FileDto;
}
export class ExcelImpDtoOfIcsSanJBarCodeImportDto implements IExcelImpDtoOfIcsSanJBarCodeImportDto {
data: IcsSanJBarCodeImportDto[] | undefined;
templateErrors: TemplateErrorInfo[] | undefined;
rowErrors: DataRowErrorInfo[] | undefined;
hasError: boolean;
labelingErrorFileDto: FileDto;
constructor(data?: IExcelImpDtoOfIcsSanJBarCodeImportDto) {
if (data) {
for (var property in data) {
if (data.hasOwnProperty(property))
(<any>this)[property] = (<any>data)[property];
}
}
}
init(_data?: any) {
if (_data) {
if (Array.isArray(_data["data"])) {
this.data = [] as any;
for (let item of _data["data"])
this.data.push(IcsSanJBarCodeImportDto.fromJS(item));
}
if (Array.isArray(_data["templateErrors"])) {
this.templateErrors = [] as any;
for (let item of _data["templateErrors"])
this.templateErrors.push(TemplateErrorInfo.fromJS(item));
}
if (Array.isArray(_data["rowErrors"])) {
this.rowErrors = [] as any;
for (let item of _data["rowErrors"])
this.rowErrors.push(DataRowErrorInfo.fromJS(item));
}
this.hasError = _data["hasError"];
this.labelingErrorFileDto = _data["labelingErrorFileDto"] ? FileDto.fromJS(_data["labelingErrorFileDto"]) : <any>undefined;
}
}
static fromJS(data: any): ExcelImpDtoOfIcsSanJBarCodeImportDto {
data = typeof data === 'object' ? data : {};
let result = new ExcelImpDtoOfIcsSanJBarCodeImportDto();
result.init(data);
return result;
}
toJSON(data?: any) {
data = typeof data === 'object' ? data : {};
if (Array.isArray(this.data)) {
data["data"] = [];
for (let item of this.data)
data["data"].push(item.toJSON());
}
if (Array.isArray(this.templateErrors)) {
data["templateErrors"] = [];
for (let item of this.templateErrors)
data["templateErrors"].push(item.toJSON());
}
if (Array.isArray(this.rowErrors)) {
data["rowErrors"] = [];
for (let item of this.rowErrors)
data["rowErrors"].push(item.toJSON());
}
data["hasError"] = this.hasError;
data["labelingErrorFileDto"] = this.labelingErrorFileDto ? this.labelingErrorFileDto.toJSON() : <any>undefined;
return data;
}
clone(): ExcelImpDtoOfIcsSanJBarCodeImportDto {
const json = this.toJSON();
let result = new ExcelImpDtoOfIcsSanJBarCodeImportDto();
result.init(json);
return result;
}
}
export interface IExcelImpDtoOfIcsSanJBarCodeImportDto {
data: IcsSanJBarCodeImportDto[] | undefined;
templateErrors: TemplateErrorInfo[] | undefined;
rowErrors: DataRowErrorInfo[] | undefined;
hasError: boolean;
labelingErrorFileDto: FileDto;
}
export class ExcelImpDtoOfIcsShiftImportDto implements IExcelImpDtoOfIcsShiftImportDto {
data: IcsShiftImportDto[] | undefined;
templateErrors: TemplateErrorInfo[] | undefined;
@ -124015,9 +124152,12 @@ export class IcsSanJBarCodeEditDto implements IIcsSanJBarCodeEditDto {
key: string | undefined;
id: number | undefined;
barCode: string | undefined;
mCode: string;
mCode: string | undefined;
itemName: string | undefined;
itemStd: string | undefined;
minPackQty: number;
unit: string | undefined;
transQty: number;
transNo: string | undefined;
transLine: number | undefined;
vendorItemCode: string | undefined;
@ -124029,11 +124169,10 @@ export class IcsSanJBarCodeEditDto implements IIcsSanJBarCodeEditDto {
lotQty: number;
active: string | undefined;
exdate: moment.Moment | undefined;
printTimes: number;
printTimes: number | undefined;
lastPrintUserCode: string | undefined;
lastPrintDate: moment.Moment | undefined;
memo: string | undefined;
tenantId: string;
default1: string | undefined;
default2: string | undefined;
default3: string | undefined;
@ -124062,6 +124201,9 @@ export class IcsSanJBarCodeEditDto implements IIcsSanJBarCodeEditDto {
this.mCode = _data["mCode"];
this.itemName = _data["itemName"];
this.itemStd = _data["itemStd"];
this.minPackQty = _data["minPackQty"];
this.unit = _data["unit"];
this.transQty = _data["transQty"];
this.transNo = _data["transNo"];
this.transLine = _data["transLine"];
this.vendorItemCode = _data["vendorItemCode"];
@ -124077,7 +124219,6 @@ export class IcsSanJBarCodeEditDto implements IIcsSanJBarCodeEditDto {
this.lastPrintUserCode = _data["lastPrintUserCode"];
this.lastPrintDate = _data["lastPrintDate"] ? moment(_data["lastPrintDate"].toString()) : <any>undefined;
this.memo = _data["memo"];
this.tenantId = _data["tenantId"];
this.default1 = _data["default1"];
this.default2 = _data["default2"];
this.default3 = _data["default3"];
@ -124106,6 +124247,9 @@ export class IcsSanJBarCodeEditDto implements IIcsSanJBarCodeEditDto {
data["mCode"] = this.mCode;
data["itemName"] = this.itemName;
data["itemStd"] = this.itemStd;
data["minPackQty"] = this.minPackQty;
data["unit"] = this.unit;
data["transQty"] = this.transQty;
data["transNo"] = this.transNo;
data["transLine"] = this.transLine;
data["vendorItemCode"] = this.vendorItemCode;
@ -124121,7 +124265,6 @@ export class IcsSanJBarCodeEditDto implements IIcsSanJBarCodeEditDto {
data["lastPrintUserCode"] = this.lastPrintUserCode;
data["lastPrintDate"] = this.lastPrintDate ? this.lastPrintDate.toISOString() : <any>undefined;
data["memo"] = this.memo;
data["tenantId"] = this.tenantId;
data["default1"] = this.default1;
data["default2"] = this.default2;
data["default3"] = this.default3;
@ -124147,9 +124290,12 @@ export interface IIcsSanJBarCodeEditDto {
key: string | undefined;
id: number | undefined;
barCode: string | undefined;
mCode: string;
mCode: string | undefined;
itemName: string | undefined;
itemStd: string | undefined;
minPackQty: number;
unit: string | undefined;
transQty: number;
transNo: string | undefined;
transLine: number | undefined;
vendorItemCode: string | undefined;
@ -124161,11 +124307,10 @@ export interface IIcsSanJBarCodeEditDto {
lotQty: number;
active: string | undefined;
exdate: moment.Moment | undefined;
printTimes: number;
printTimes: number | undefined;
lastPrintUserCode: string | undefined;
lastPrintDate: moment.Moment | undefined;
memo: string | undefined;
tenantId: string;
default1: string | undefined;
default2: string | undefined;
default3: string | undefined;
@ -124178,6 +124323,69 @@ export interface IIcsSanJBarCodeEditDto {
default10: string | undefined;
}
export class IcsSanJBarCodeImportDto implements IIcsSanJBarCodeImportDto {
mCode: string;
vendorLotNo: string | undefined;
lotQty: number;
productDate: moment.Moment | undefined;
transNo: string | undefined;
vendorCode: string | undefined;
constructor(data?: IIcsSanJBarCodeImportDto) {
if (data) {
for (var property in data) {
if (data.hasOwnProperty(property))
(<any>this)[property] = (<any>data)[property];
}
}
}
init(_data?: any) {
if (_data) {
this.mCode = _data["mCode"];
this.vendorLotNo = _data["vendorLotNo"];
this.lotQty = _data["lotQty"];
this.productDate = _data["productDate"] ? moment(_data["productDate"].toString()) : <any>undefined;
this.transNo = _data["transNo"];
this.vendorCode = _data["vendorCode"];
}
}
static fromJS(data: any): IcsSanJBarCodeImportDto {
data = typeof data === 'object' ? data : {};
let result = new IcsSanJBarCodeImportDto();
result.init(data);
return result;
}
toJSON(data?: any) {
data = typeof data === 'object' ? data : {};
data["mCode"] = this.mCode;
data["vendorLotNo"] = this.vendorLotNo;
data["lotQty"] = this.lotQty;
data["productDate"] = this.productDate ? this.productDate.toISOString() : <any>undefined;
data["transNo"] = this.transNo;
data["vendorCode"] = this.vendorCode;
return data;
}
clone(): IcsSanJBarCodeImportDto {
const json = this.toJSON();
let result = new IcsSanJBarCodeImportDto();
result.init(json);
return result;
}
}
export interface IIcsSanJBarCodeImportDto {
mCode: string;
vendorLotNo: string | undefined;
lotQty: number;
productDate: moment.Moment | undefined;
transNo: string | undefined;
vendorCode: string | undefined;
}
export class IcsSanJBarCodeListDto implements IIcsSanJBarCodeListDto {
key: string | undefined;
barCode: string | undefined;

Loading…
Cancel
Save