From 9232080ad18a381d5f9b5ed87c26e194b9f9b0be Mon Sep 17 00:00:00 2001 From: xuli Date: Mon, 12 Aug 2024 14:22:17 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=91=E6=9D=A8-=E6=95=A3=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../shared/service-proxies/service-proxies.ts | 367 ++++++++++++++++++ 1 file changed, 367 insertions(+) diff --git a/src/vue/src/shared/service-proxies/service-proxies.ts b/src/vue/src/shared/service-proxies/service-proxies.ts index fdc18275..ba7e7168 100644 --- a/src/vue/src/shared/service-proxies/service-proxies.ts +++ b/src/vue/src/shared/service-proxies/service-proxies.ts @@ -46575,6 +46575,58 @@ export class IcsSanJBarCodeServiceProxy { } + /** + * @param body (optional) + * @return Success + */ + addFaLiao(body: string[] | null | undefined , cancelToken?: CancelToken | undefined): Promise { + let url_ = this.baseUrl + "/api/services/app/IcsSanJBarCode/AddFaLiao"; + url_ = url_.replace(/[?&]$/, ""); + + const content_ = JSON.stringify(body); + + let options_: AxiosRequestConfig = { + data: content_, + method: "POST", + url: url_, + headers: { + "Content-Type": "application/json-patch+json", + }, + 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.processAddFaLiao(_response); + }); + } + + protected processAddFaLiao(response: AxiosResponse): Promise { + 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; + return Promise.resolve(null as any); + + } else if (status !== 200 && status !== 204) { + const _responseText = response.data; + return throwException("An unexpected server error occurred.", status, _responseText, _headers); + } + return Promise.resolve(null as any); + } + /** * @param body (optional) * @return Success @@ -46627,6 +46679,58 @@ export class IcsSanJBarCodeServiceProxy { return Promise.resolve(null as any); } + /** + * @param body (optional) + * @return Success + */ + batchDeleteFaLiao(body: number[] | null | undefined , cancelToken?: CancelToken | undefined): Promise { + let url_ = this.baseUrl + "/api/services/app/IcsSanJBarCode/BatchDeleteFaLiao"; + url_ = url_.replace(/[?&]$/, ""); + + const content_ = JSON.stringify(body); + + let options_: AxiosRequestConfig = { + data: content_, + method: "POST", + url: url_, + headers: { + "Content-Type": "application/json-patch+json", + }, + 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.processBatchDeleteFaLiao(_response); + }); + } + + protected processBatchDeleteFaLiao(response: AxiosResponse): Promise { + 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; + return Promise.resolve(null as any); + + } else if (status !== 200 && status !== 204) { + const _responseText = response.data; + return throwException("An unexpected server error occurred.", status, _responseText, _headers); + } + return Promise.resolve(null as any); + } + /** * @param body (optional) * @return Success @@ -46731,6 +46835,112 @@ export class IcsSanJBarCodeServiceProxy { return Promise.resolve(null as any); } + /** + * @param id (optional) + * @return Success + */ + deleteFaLiao(id: number | undefined , cancelToken?: CancelToken | undefined): Promise { + let url_ = this.baseUrl + "/api/services/app/IcsSanJBarCode/DeleteFaLiao?"; + if (id === null) + throw new Error("The parameter 'id' cannot be null."); + else if (id !== undefined) + url_ += "id=" + encodeURIComponent("" + id) + "&"; + url_ = url_.replace(/[?&]$/, ""); + + let options_: AxiosRequestConfig = { + method: "DELETE", + url: url_, + headers: { + }, + 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.processDeleteFaLiao(_response); + }); + } + + protected processDeleteFaLiao(response: AxiosResponse): Promise { + 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; + return Promise.resolve(null as any); + + } else if (status !== 200 && status !== 204) { + const _responseText = response.data; + return throwException("An unexpected server error occurred.", status, _responseText, _headers); + } + return Promise.resolve(null as any); + } + + /** + * @param barCodeNo (optional) + * @return Success + */ + getBarCodeData(barCodeNo: string | null | undefined , cancelToken?: CancelToken | undefined): Promise { + let url_ = this.baseUrl + "/api/services/app/IcsSanJBarCode/GetBarCodeData?"; + if (barCodeNo !== undefined && barCodeNo !== null) + url_ += "barCodeNo=" + encodeURIComponent("" + barCodeNo) + "&"; + url_ = url_.replace(/[?&]$/, ""); + + let options_: AxiosRequestConfig = { + method: "GET", + 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.processGetBarCodeData(_response); + }); + } + + protected processGetBarCodeData(response: AxiosResponse): Promise { + 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 = IcsSanJBarCodeListDto.fromJS(resultData200); + return Promise.resolve(result200); + + } else if (status !== 200 && status !== 204) { + const _responseText = response.data; + return throwException("An unexpected server error occurred.", status, _responseText, _headers); + } + return Promise.resolve(null as any); + } + /** * @param id (optional) * @return Success @@ -46787,6 +46997,73 @@ export class IcsSanJBarCodeServiceProxy { return Promise.resolve(null as any); } + /** + * @param maxResultCount (optional) + * @param filterText (optional) + * @param sorting (optional) + * @param skipCount (optional) + * @return Success + */ + getFaLiaoPaged(maxResultCount: number | undefined, filterText: string | null | undefined, sorting: string | null | undefined, skipCount: number | undefined , cancelToken?: CancelToken | undefined): Promise { + let url_ = this.baseUrl + "/api/services/app/IcsSanJBarCode/GetFaLiaoPaged?"; + if (maxResultCount === null) + throw new Error("The parameter 'maxResultCount' cannot be null."); + else if (maxResultCount !== undefined) + url_ += "maxResultCount=" + encodeURIComponent("" + maxResultCount) + "&"; + if (filterText !== undefined && filterText !== null) + url_ += "filterText=" + encodeURIComponent("" + filterText) + "&"; + if (sorting !== undefined && sorting !== null) + url_ += "sorting=" + encodeURIComponent("" + sorting) + "&"; + if (skipCount === null) + throw new Error("The parameter 'skipCount' cannot be null."); + else if (skipCount !== undefined) + url_ += "skipCount=" + encodeURIComponent("" + skipCount) + "&"; + url_ = url_.replace(/[?&]$/, ""); + + let options_: AxiosRequestConfig = { + method: "GET", + 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.processGetFaLiaoPaged(_response); + }); + } + + protected processGetFaLiaoPaged(response: AxiosResponse): Promise { + 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 = PagedResultDtoOfIcsSanJBarCodeListDto.fromJS(resultData200); + return Promise.resolve(result200); + + } else if (status !== 200 && status !== 204) { + const _responseText = response.data; + return throwException("An unexpected server error occurred.", status, _responseText, _headers); + } + return Promise.resolve(null as any); + } + /** * @param id (optional) * @return Success @@ -46907,6 +47184,60 @@ export class IcsSanJBarCodeServiceProxy { } return Promise.resolve(null as any); } + + /** + * @param barCodeAll (optional) + * @return Success + */ + luRuBarCode(barCodeAll: string | null | undefined , cancelToken?: CancelToken | undefined): Promise { + let url_ = this.baseUrl + "/api/services/app/IcsSanJBarCode/LuRuBarCode?"; + if (barCodeAll !== undefined && barCodeAll !== null) + url_ += "barCodeAll=" + encodeURIComponent("" + barCodeAll) + "&"; + 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.processLuRuBarCode(_response); + }); + } + + protected processLuRuBarCode(response: AxiosResponse): Promise { + 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 = IcsSanJBarCodeEditDto.fromJS(resultData200); + return Promise.resolve(result200); + + } else if (status !== 200 && status !== 204) { + const _responseText = response.data; + return throwException("An unexpected server error occurred.", status, _responseText, _headers); + } + return Promise.resolve(null as any); + } } export class IcsSBomServiceProxy { @@ -124166,6 +124497,9 @@ export class IcsSanJBarCodeEditDto implements IIcsSanJBarCodeEditDto { productDate: moment.Moment | undefined; isInWareHouese: string | undefined; barCodeType: string | undefined; + tuHao: string | undefined; + boxNo: string | undefined; + zlotQty: number | undefined; lotQty: number; active: string | undefined; exdate: moment.Moment | undefined; @@ -124212,6 +124546,9 @@ export class IcsSanJBarCodeEditDto implements IIcsSanJBarCodeEditDto { this.productDate = _data["productDate"] ? moment(_data["productDate"].toString()) : undefined; this.isInWareHouese = _data["isInWareHouese"]; this.barCodeType = _data["barCodeType"]; + this.tuHao = _data["tuHao"]; + this.boxNo = _data["boxNo"]; + this.zlotQty = _data["zlotQty"]; this.lotQty = _data["lotQty"]; this.active = _data["active"]; this.exdate = _data["exdate"] ? moment(_data["exdate"].toString()) : undefined; @@ -124258,6 +124595,9 @@ export class IcsSanJBarCodeEditDto implements IIcsSanJBarCodeEditDto { data["productDate"] = this.productDate ? this.productDate.toISOString() : undefined; data["isInWareHouese"] = this.isInWareHouese; data["barCodeType"] = this.barCodeType; + data["tuHao"] = this.tuHao; + data["boxNo"] = this.boxNo; + data["zlotQty"] = this.zlotQty; data["lotQty"] = this.lotQty; data["active"] = this.active; data["exdate"] = this.exdate ? this.exdate.toISOString() : undefined; @@ -124304,6 +124644,9 @@ export interface IIcsSanJBarCodeEditDto { productDate: moment.Moment | undefined; isInWareHouese: string | undefined; barCodeType: string | undefined; + tuHao: string | undefined; + boxNo: string | undefined; + zlotQty: number | undefined; lotQty: number; active: string | undefined; exdate: moment.Moment | undefined; @@ -124398,6 +124741,12 @@ export class IcsSanJBarCodeListDto implements IIcsSanJBarCodeListDto { vendorLotNo: string | undefined; productDate: moment.Moment | undefined; isInWareHouese: string | undefined; + unit: string | undefined; + tuHao: string | undefined; + boxNo: string | undefined; + faliaoDate: moment.Moment | undefined; + faliaoUserName: string | undefined; + zlotQty: number | undefined; lotQty: number; printTimes: number; lastPrintUserCode: string | undefined; @@ -124432,6 +124781,12 @@ export class IcsSanJBarCodeListDto implements IIcsSanJBarCodeListDto { this.vendorLotNo = _data["vendorLotNo"]; this.productDate = _data["productDate"] ? moment(_data["productDate"].toString()) : undefined; this.isInWareHouese = _data["isInWareHouese"]; + this.unit = _data["unit"]; + this.tuHao = _data["tuHao"]; + this.boxNo = _data["boxNo"]; + this.faliaoDate = _data["faliaoDate"] ? moment(_data["faliaoDate"].toString()) : undefined; + this.faliaoUserName = _data["faliaoUserName"]; + this.zlotQty = _data["zlotQty"]; this.lotQty = _data["lotQty"]; this.printTimes = _data["printTimes"]; this.lastPrintUserCode = _data["lastPrintUserCode"]; @@ -124466,6 +124821,12 @@ export class IcsSanJBarCodeListDto implements IIcsSanJBarCodeListDto { data["vendorLotNo"] = this.vendorLotNo; data["productDate"] = this.productDate ? this.productDate.toISOString() : undefined; data["isInWareHouese"] = this.isInWareHouese; + data["unit"] = this.unit; + data["tuHao"] = this.tuHao; + data["boxNo"] = this.boxNo; + data["faliaoDate"] = this.faliaoDate ? this.faliaoDate.toISOString() : undefined; + data["faliaoUserName"] = this.faliaoUserName; + data["zlotQty"] = this.zlotQty; data["lotQty"] = this.lotQty; data["printTimes"] = this.printTimes; data["lastPrintUserCode"] = this.lastPrintUserCode; @@ -124500,6 +124861,12 @@ export interface IIcsSanJBarCodeListDto { vendorLotNo: string | undefined; productDate: moment.Moment | undefined; isInWareHouese: string | undefined; + unit: string | undefined; + tuHao: string | undefined; + boxNo: string | undefined; + faliaoDate: moment.Moment | undefined; + faliaoUserName: string | undefined; + zlotQty: number | undefined; lotQty: number; printTimes: number; lastPrintUserCode: string | undefined;