diff --git a/Admin.NET/Admin.NET.Application/Entity/PrintData.cs b/Admin.NET/Admin.NET.Application/Entity/PrintData.cs new file mode 100644 index 0000000..f78be65 --- /dev/null +++ b/Admin.NET/Admin.NET.Application/Entity/PrintData.cs @@ -0,0 +1,28 @@ +using Admin.NET.Core; +namespace Admin.NET.Application.Entity; + +/// +/// 打印信息 +/// +[SugarTable("PrintData","打印信息")] +public class PrintData : EntityBaseId +{ + /// + /// 条码数据 + /// + [SugarColumn(ColumnName = "BarCode", ColumnDescription = "条码数据", Length = 64)] + public string? BarCode { get; set; } + + /// + /// 二维码数据 + /// + [SugarColumn(ColumnName = "QrCode", ColumnDescription = "二维码数据", Length = 128)] + public string? QrCode { get; set; } + + /// + /// 备注 + /// + [SugarColumn(ColumnName = "Remark", ColumnDescription = "备注", Length = 32)] + public string? Remark { get; set; } + +} diff --git a/Admin.NET/Admin.NET.Application/Service/PrintData/Dto/PrintDataInput.cs b/Admin.NET/Admin.NET.Application/Service/PrintData/Dto/PrintDataInput.cs new file mode 100644 index 0000000..f73e86f --- /dev/null +++ b/Admin.NET/Admin.NET.Application/Service/PrintData/Dto/PrintDataInput.cs @@ -0,0 +1,56 @@ +using Admin.NET.Core; +using System.ComponentModel.DataAnnotations; + +namespace Admin.NET.Application; + + /// + /// 打印信息基础输入参数 + /// + public class PrintDataBaseInput + { + /// + /// 条码数据 + /// + public virtual string? BarCode { get; set; } + + /// + /// 二维码数据 + /// + public virtual string? QrCode { get; set; } + + /// + /// 备注 + /// + public virtual string? Remark { get; set; } + + } + + /// + /// 打印信息分页查询输入参数 + /// + public class PrintDataInput : BasePageInput + { + /// + /// 关键字查询 + /// + public string? SearchKey { get; set; } + + /// + /// 条码数据 + /// + public string? BarCode { get; set; } + + /// + /// 二维码数据 + /// + public string? QrCode { get; set; } + + /// + /// 备注 + /// + public string? Remark { get; set; } + + } + + + diff --git a/Admin.NET/Admin.NET.Application/Service/PrintData/Dto/PrintDataMaterialsInput.cs b/Admin.NET/Admin.NET.Application/Service/PrintData/Dto/PrintDataMaterialsInput.cs new file mode 100644 index 0000000..735d08b --- /dev/null +++ b/Admin.NET/Admin.NET.Application/Service/PrintData/Dto/PrintDataMaterialsInput.cs @@ -0,0 +1,40 @@ +namespace Admin.NET.Application; + +/// +/// 打印信息输出参数 +/// +public class PrintDataMaterialsInput +{ + /// + /// 主键Id + /// + public long Id { get; set; } + + /// + /// 编码头 + /// + public string CodeHead { get; set; } + + /// + /// 编码长度 + /// + public int CodeLength { get; set; } + + /// + /// 数量 + /// + public int Count { get; set; } + + /// + /// 码类型 + /// + public string? CodeType { get; set; } + + /// + /// 备注 + /// + public string? Remark { get; set; } + +} + + diff --git a/Admin.NET/Admin.NET.Application/Service/PrintData/PrintDataService.cs b/Admin.NET/Admin.NET.Application/Service/PrintData/PrintDataService.cs new file mode 100644 index 0000000..18e5f81 --- /dev/null +++ b/Admin.NET/Admin.NET.Application/Service/PrintData/PrintDataService.cs @@ -0,0 +1,137 @@ +using Admin.NET.Core.Service; +using Admin.NET.Application.Const; +using Admin.NET.Application.Entity; +using Microsoft.AspNetCore.Http; +namespace Admin.NET.Application; +/// +/// 打印信息服务 +/// +[ApiDescriptionSettings(ApplicationConst.GroupName, Order = 100)] +public class PrintDataService : IDynamicApiController, ITransient +{ + private readonly SqlSugarRepository _rep; + public PrintDataService(SqlSugarRepository rep) + { + _rep = rep; + } + + /// + /// 分页查询打印信息 + /// + /// + /// + [HttpPost] + [ApiDescriptionSettings(Name = "Page")] + public async Task> Page(PrintDataInput input) + { + var query = _rep.AsQueryable() + .WhereIF(!string.IsNullOrWhiteSpace(input.SearchKey), u => + u.BarCode.Contains(input.SearchKey.Trim()) + || u.QrCode.Contains(input.SearchKey.Trim()) + || u.Remark.Contains(input.SearchKey.Trim()) + ) + .WhereIF(!string.IsNullOrWhiteSpace(input.BarCode), u => u.BarCode.Contains(input.BarCode.Trim())) + .WhereIF(!string.IsNullOrWhiteSpace(input.QrCode), u => u.QrCode.Contains(input.QrCode.Trim())) + .WhereIF(!string.IsNullOrWhiteSpace(input.Remark), u => u.Remark.Contains(input.Remark.Trim())) + .Select(); + return await query.OrderBuilder(input).ToPagedListAsync(input.Page, input.PageSize); + } + + /// + /// 增加打印信息 + /// + /// + /// + [HttpPost] + [ApiDescriptionSettings(Name = "Add")] + public async Task Add(PrintData input) + { + var entity = input.Adapt(); + await _rep.InsertAsync(entity); + return entity.Id; + } + + /// + /// 删除打印信息 + /// + /// + /// + [HttpPost] + [ApiDescriptionSettings(Name = "Delete")] + public async Task Delete(long id) + { + var entity = await _rep.GetFirstAsync(u => u.Id == id) ?? throw Oops.Oh(ErrorCodeEnum.D1002); + //await _rep.FakeDeleteAsync(entity); //假删除 + await _rep.DeleteAsync(entity); //真删除 + } + + /// + /// 更新打印信息 + /// + /// + /// + [HttpPost] + [ApiDescriptionSettings(Name = "Update")] + public async Task Update(PrintDataInput input) + { + var entity = input.Adapt(); + await _rep.AsUpdateable(entity).IgnoreColumns(ignoreAllNullColumns: true).ExecuteCommandAsync(); + } + + /// + /// 获取打印信息 + /// + /// + /// + [HttpGet] + [ApiDescriptionSettings(Name = "Detail")] + public async Task Detail([FromQuery] long id) + { + return await _rep.GetFirstAsync(u => u.Id == id); + } + + /// + /// 获取打印信息列表 + /// + /// + /// + [HttpPost] + [ApiDescriptionSettings(Name = "GetPrintDataList")] + public async Task> GetPrintDataList(PrintDataMaterialsInput input) + { + var result = new List(); + var headCode = string.IsNullOrEmpty(input.CodeHead) ? "" : input.CodeHead; + int countN = input.CodeLength > 3 ? input.CodeLength : 5; + var format = ""; + for (int i = 0; i < countN; i++) + { + format += "0"; + } + for (int i = 1; i < input.Count+1; i++) + { + var code = $"{headCode}{i.ToString(format)}"; + if (input.CodeType == "条形码") + { + result.Add(new PrintData() { BarCode = code }); + } + else + { + result.Add(new PrintData() { QrCode = code }); + } + } + return result; + } + + /// + /// 获取打印信息列表 + /// + /// + [HttpGet] + [ApiDescriptionSettings(Name = "List")] + public async Task> List() + { + return await _rep.AsQueryable().ToListAsync(); + } + +} + diff --git a/Admin.NET/Admin.NET.Core/SeedData/SysMenuSeedData.cs b/Admin.NET/Admin.NET.Core/SeedData/SysMenuSeedData.cs index 38f50f1..741a4ec 100644 --- a/Admin.NET/Admin.NET.Core/SeedData/SysMenuSeedData.cs +++ b/Admin.NET/Admin.NET.Core/SeedData/SysMenuSeedData.cs @@ -134,7 +134,7 @@ public class SysMenuSeedData : ISqlSugarEntitySeedData new SysMenu{ Id=1310000000395, Pid=1310000000391, Title="删除", Permission="sysFile:delete", Type=MenuTypeEnum.Btn, CreateTime=DateTime.Parse("2022-02-10 00:00:00"), OrderNo=100 }, new SysMenu{ Id=1310000000396, Pid=1310000000391, Title="编辑", Permission="sysFile:update", Type=MenuTypeEnum.Btn, CreateTime=DateTime.Parse("2023-10-27 00:00:00"), OrderNo=100 }, - new SysMenu{ Id=1310000000401, Pid=1310000000301, Title="打印模板", Path="/platform/print", Name="sysPrint", Component="/system/print/index", Icon="ele-Printer", Type=MenuTypeEnum.Menu, CreateTime=DateTime.Parse("2022-02-10 00:00:00"), OrderNo=190 }, + new SysMenu{ Id=1310000000401, Pid=32518995172933, Title="打印模板", Path="/labelPrinting/print", Name="sysPrint", Component="/labelPrinting/print/index", Icon="ele-Printer", Type=MenuTypeEnum.Menu, CreateTime=DateTime.Parse("2022-02-10 00:00:00"), OrderNo=190 }, new SysMenu{ Id=1310000000402, Pid=1310000000401, Title="查询", Permission="sysPrint:page", Type=MenuTypeEnum.Btn, CreateTime=DateTime.Parse("2022-02-10 00:00:00"), OrderNo=100 }, new SysMenu{ Id=1310000000403, Pid=1310000000401, Title="编辑", Permission="sysPrint:update", Type=MenuTypeEnum.Btn, CreateTime=DateTime.Parse("2022-02-10 00:00:00"), OrderNo=100 }, new SysMenu{ Id=1310000000404, Pid=1310000000401, Title="增加", Permission="sysPrint:add", Type=MenuTypeEnum.Btn, CreateTime=DateTime.Parse("2022-02-10 00:00:00"), OrderNo=100 }, diff --git a/Web/.env.development b/Web/.env.development index 8f85313..d854af8 100644 --- a/Web/.env.development +++ b/Web/.env.development @@ -1,5 +1,5 @@ # 本地环境 ENV = development -# 本地环境接口地址http://localhost:5005 +# 本地环境接口地址http://localhost:5005 http://139.199.191.197:9005 VITE_API_URL = http://139.199.191.197:9005 \ No newline at end of file diff --git a/Web/package.json b/Web/package.json index 679dc11..e30489e 100644 --- a/Web/package.json +++ b/Web/package.json @@ -1,110 +1,111 @@ { - "name": "admin.net", - "version": "2.4.33", - "description": "Admin.NET 有可能是.NET最好用的通用权限开发框架", - "author": "zuohuaijun", - "license": "MIT", - "scripts": { - "dev": "vite", - "build": "vite build", - "lint-fix": "eslint --fix --ext .js --ext .jsx --ext .vue src/", - "build-api": "cd api_build/ && build.bat", - "fix-memory-limit": "cross-env LIMIT=4096 increase-memory-limit" - }, - "dependencies": { - "@element-plus/icons-vue": "^2.3.1", - "@microsoft/signalr": "^8.0.0", - "@vue-office/docx": "^1.6.0", - "@vue-office/excel": "^1.7.1", - "@vue-office/pdf": "^1.6.4", - "@wangeditor/editor": "^5.1.23", - "@wangeditor/editor-for-vue": "^5.1.12", - "animate.css": "^4.1.1", - "axios": "^1.6.8", - "countup.js": "^2.8.0", - "cropperjs": "^1.6.1", - "echarts": "^5.5.0", - "echarts-gl": "^2.0.9", - "echarts-wordcloud": "^2.1.0", - "element-plus": "^2.6.1", - "js-cookie": "^3.0.5", - "js-table2excel": "^1.1.2", - "jsplumb": "^2.15.6", - "lodash-es": "^4.17.21", - "mitt": "^3.0.1", - "monaco-editor": "^0.47.0", - "nprogress": "^0.2.0", - "pinia": "^2.1.7", - "print-js": "^1.6.0", - "qrcodejs2-fixes": "^0.0.2", - "qs": "^6.12.0", - "relation-graph": "^2.1.35", - "screenfull": "^6.0.2", - "sm-crypto-v2": "^1.9.0", - "sortablejs": "^1.15.2", - "splitpanes": "^3.1.5", - "vcrontab-3": "^3.3.22", - "vform3-builds": "^3.0.10", - "vue": "^3.4.21", - "vue-clipboard3": "^2.0.0", - "vue-demi": "^0.14.7", - "vue-grid-layout": "3.0.0-beta1", - "vue-i18n": "^9.10.2", - "vue-json-pretty": "^2.3.0", - "vue-plugin-hiprint": "0.0.57-beta6", - "vue-router": "^4.3.0", - "vue-signature-pad": "^3.0.2", - "vue3-tree-org": "^4.2.2", - "vxe-table": "^4.5.20", - "xlsx-js-style": "^1.2.0" - }, - "devDependencies": { - "@types/lodash-es": "^4.17.12", - "@types/node": "^20.11.28", - "@types/nprogress": "^0.2.3", - "@types/sortablejs": "^1.15.8", - "@typescript-eslint/eslint-plugin": "^7.2.0", - "@typescript-eslint/parser": "^7.2.0", - "@vitejs/plugin-vue": "^5.0.4", - "@vitejs/plugin-vue-jsx": "^3.1.0", - "@vue/compiler-sfc": "^3.4.21", - "code-inspector-plugin": "^0.10.0", - "eslint": "^8.57.0", - "eslint-plugin-vue": "^9.23.0", - "less": "^4.2.0", - "prettier": "^3.2.5", - "sass": "^1.72.0", - "typescript": "^5.4.2", - "vite": "^5.1.6", - "vite-plugin-cdn-import": "^0.3.5", - "vite-plugin-compression": "^0.5.1", - "vite-plugin-vue-setup-extend-plus": "^0.1.0", - "vue-eslint-parser": "^9.4.2" - }, - "browserslist": [ - "> 1%", - "last 2 versions", - "not dead" - ], - "bugs": { - "url": "https://gitee.com/zuohuaijun/Admin.NET/issues" - }, - "engines": { - "node": ">=16.0.0", - "npm": ">= 7.0.0" - }, - "keywords": [ - "admin.net", - "vue", - "vue3", - "vuejs/vue-next", - "element-ui", - "element-plus", - "vue-next-admin", - "next-admin" - ], - "repository": { - "type": "git", - "url": "https://gitee.com/zuohuaijun/Admin.NET" - } + "name": "admin.net", + "version": "2.4.33", + "description": "Admin.NET 有可能是.NET最好用的通用权限开发框架", + "author": "zuohuaijun", + "license": "MIT", + "scripts": { + "dev": "vite", + "build": "vite build", + "lint-fix": "eslint --fix --ext .js --ext .jsx --ext .vue src/", + "build-api": "cd api_build/ && build.bat", + "fix-memory-limit": "cross-env LIMIT=4096 increase-memory-limit" + }, + "dependencies": { + "@element-plus/icons-vue": "^2.3.1", + "@microsoft/signalr": "^8.0.0", + "@vue-office/docx": "^1.6.0", + "@vue-office/excel": "^1.7.1", + "@vue-office/pdf": "^1.6.4", + "@wangeditor/editor": "^5.1.23", + "@wangeditor/editor-for-vue": "^5.1.12", + "animate.css": "^4.1.1", + "axios": "^1.6.8", + "countup.js": "^2.8.0", + "cropperjs": "^1.6.1", + "echarts": "^5.5.0", + "echarts-gl": "^2.0.9", + "echarts-wordcloud": "^2.1.0", + "element-china-area-data": "^6.1.0", + "element-plus": "^2.6.1", + "js-cookie": "^3.0.5", + "js-table2excel": "^1.1.2", + "jsplumb": "^2.15.6", + "lodash-es": "^4.17.21", + "mitt": "^3.0.1", + "monaco-editor": "^0.47.0", + "nprogress": "^0.2.0", + "pinia": "^2.1.7", + "print-js": "^1.6.0", + "qrcodejs2-fixes": "^0.0.2", + "qs": "^6.12.0", + "relation-graph": "^2.1.35", + "screenfull": "^6.0.2", + "sm-crypto-v2": "^1.9.0", + "sortablejs": "^1.15.2", + "splitpanes": "^3.1.5", + "vcrontab-3": "^3.3.22", + "vform3-builds": "^3.0.10", + "vue": "^3.4.21", + "vue-clipboard3": "^2.0.0", + "vue-demi": "^0.14.7", + "vue-grid-layout": "3.0.0-beta1", + "vue-i18n": "^9.10.2", + "vue-json-pretty": "^2.3.0", + "vue-plugin-hiprint": "0.0.57-beta6", + "vue-router": "^4.3.0", + "vue-signature-pad": "^3.0.2", + "vue3-tree-org": "^4.2.2", + "vxe-table": "^4.5.20", + "xlsx-js-style": "^1.2.0" + }, + "devDependencies": { + "@types/lodash-es": "^4.17.12", + "@types/node": "^20.11.28", + "@types/nprogress": "^0.2.3", + "@types/sortablejs": "^1.15.8", + "@typescript-eslint/eslint-plugin": "^7.2.0", + "@typescript-eslint/parser": "^7.2.0", + "@vitejs/plugin-vue": "^5.0.4", + "@vitejs/plugin-vue-jsx": "^3.1.0", + "@vue/compiler-sfc": "^3.4.21", + "code-inspector-plugin": "^0.10.0", + "eslint": "^8.57.0", + "eslint-plugin-vue": "^9.23.0", + "less": "^4.2.0", + "prettier": "^3.2.5", + "sass": "^1.72.0", + "typescript": "^5.4.2", + "vite": "^5.1.6", + "vite-plugin-cdn-import": "^0.3.5", + "vite-plugin-compression": "^0.5.1", + "vite-plugin-vue-setup-extend-plus": "^0.1.0", + "vue-eslint-parser": "^9.4.2" + }, + "browserslist": [ + "> 1%", + "last 2 versions", + "not dead" + ], + "bugs": { + "url": "https://gitee.com/zuohuaijun/Admin.NET/issues" + }, + "engines": { + "node": ">=16.0.0", + "npm": ">= 7.0.0" + }, + "keywords": [ + "admin.net", + "vue", + "vue3", + "vuejs/vue-next", + "element-ui", + "element-plus", + "vue-next-admin", + "next-admin" + ], + "repository": { + "type": "git", + "url": "https://gitee.com/zuohuaijun/Admin.NET" + } } diff --git a/Web/src/api-services/api.ts b/Web/src/api-services/api.ts index 20233cc..3b2fa9e 100644 --- a/Web/src/api-services/api.ts +++ b/Web/src/api-services/api.ts @@ -73,4 +73,5 @@ export * from './apis/sys-wechat-user-api'; export * from './apis/sys-wx-open-api'; export * from './apis/warehouse-api'; export * from './apis/warehousing-api'; +export * from './apis/print-data-api'; diff --git a/Web/src/api-services/apis/print-data-api.ts b/Web/src/api-services/apis/print-data-api.ts new file mode 100644 index 0000000..4765f10 --- /dev/null +++ b/Web/src/api-services/apis/print-data-api.ts @@ -0,0 +1,635 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 业务应用 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1.0.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +import globalAxios, { AxiosResponse, AxiosInstance, AxiosRequestConfig } from 'axios'; +import { Configuration } from '../configuration'; +// Some imports not used depending on template conditions +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; +import { AdminResultInt64 } from '../models'; +import { AdminResultListPrintData } from '../models'; +import { AdminResultPrintData } from '../models'; +import { AdminResultSqlSugarPagedListPrintData } from '../models'; +import { PrintData } from '../models'; +import { PrintDataInput } from '../models'; +import { PrintDataMaterialsInput } from '../models'; +/** + * PrintDataApi - axios parameter creator + * @export + */ +export const PrintDataApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * + * @summary 增加打印信息 + * @param {PrintData} [body] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiPrintDataAddPost: async (body?: PrintData, options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/api/printData/add`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, 'https://example.com'); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + if (configuration && configuration.accessToken) { + const accessToken = typeof configuration.accessToken === 'function' + ? await configuration.accessToken() + : await configuration.accessToken; + localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; + } + + localVarHeaderParameter['Content-Type'] = 'application/json-patch+json'; + + const query = new URLSearchParams(localVarUrlObj.search); + for (const key in localVarQueryParameter) { + query.set(key, localVarQueryParameter[key]); + } + for (const key in options.params) { + query.set(key, options.params[key]); + } + localVarUrlObj.search = (new URLSearchParams(query)).toString(); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; + localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || ""); + + return { + url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash, + options: localVarRequestOptions, + }; + }, + /** + * + * @summary 删除打印信息 + * @param {number} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiPrintDataDeleteIdPost: async (id: number, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + if (id === null || id === undefined) { + throw new RequiredError('id','Required parameter id was null or undefined when calling apiPrintDataDeleteIdPost.'); + } + const localVarPath = `/api/printData/delete/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, 'https://example.com'); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + if (configuration && configuration.accessToken) { + const accessToken = typeof configuration.accessToken === 'function' + ? await configuration.accessToken() + : await configuration.accessToken; + localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; + } + + const query = new URLSearchParams(localVarUrlObj.search); + for (const key in localVarQueryParameter) { + query.set(key, localVarQueryParameter[key]); + } + for (const key in options.params) { + query.set(key, options.params[key]); + } + localVarUrlObj.search = (new URLSearchParams(query)).toString(); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash, + options: localVarRequestOptions, + }; + }, + /** + * + * @summary 获取打印信息 + * @param {number} [id] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiPrintDataDetailGet: async (id?: number, options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/api/printData/detail`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, 'https://example.com'); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + if (configuration && configuration.accessToken) { + const accessToken = typeof configuration.accessToken === 'function' + ? await configuration.accessToken() + : await configuration.accessToken; + localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; + } + + if (id !== undefined) { + localVarQueryParameter['id'] = id; + } + + const query = new URLSearchParams(localVarUrlObj.search); + for (const key in localVarQueryParameter) { + query.set(key, localVarQueryParameter[key]); + } + for (const key in options.params) { + query.set(key, options.params[key]); + } + localVarUrlObj.search = (new URLSearchParams(query)).toString(); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash, + options: localVarRequestOptions, + }; + }, + /** + * + * @summary 获取打印信息列表 + * @param {PrintDataMaterialsInput} [body] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiPrintDataGetPrintDataListPost: async (body?: PrintDataMaterialsInput, options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/api/printData/getPrintDataList`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, 'https://example.com'); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + if (configuration && configuration.accessToken) { + const accessToken = typeof configuration.accessToken === 'function' + ? await configuration.accessToken() + : await configuration.accessToken; + localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; + } + + localVarHeaderParameter['Content-Type'] = 'application/json-patch+json'; + + const query = new URLSearchParams(localVarUrlObj.search); + for (const key in localVarQueryParameter) { + query.set(key, localVarQueryParameter[key]); + } + for (const key in options.params) { + query.set(key, options.params[key]); + } + localVarUrlObj.search = (new URLSearchParams(query)).toString(); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; + localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || ""); + + return { + url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash, + options: localVarRequestOptions, + }; + }, + /** + * + * @summary 获取打印信息列表 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiPrintDataListGet: async (options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/api/printData/list`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, 'https://example.com'); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + if (configuration && configuration.accessToken) { + const accessToken = typeof configuration.accessToken === 'function' + ? await configuration.accessToken() + : await configuration.accessToken; + localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; + } + + const query = new URLSearchParams(localVarUrlObj.search); + for (const key in localVarQueryParameter) { + query.set(key, localVarQueryParameter[key]); + } + for (const key in options.params) { + query.set(key, options.params[key]); + } + localVarUrlObj.search = (new URLSearchParams(query)).toString(); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash, + options: localVarRequestOptions, + }; + }, + /** + * + * @summary 分页查询打印信息 + * @param {PrintDataInput} [body] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiPrintDataPagePost: async (body?: PrintDataInput, options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/api/printData/page`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, 'https://example.com'); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + if (configuration && configuration.accessToken) { + const accessToken = typeof configuration.accessToken === 'function' + ? await configuration.accessToken() + : await configuration.accessToken; + localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; + } + + localVarHeaderParameter['Content-Type'] = 'application/json-patch+json'; + + const query = new URLSearchParams(localVarUrlObj.search); + for (const key in localVarQueryParameter) { + query.set(key, localVarQueryParameter[key]); + } + for (const key in options.params) { + query.set(key, options.params[key]); + } + localVarUrlObj.search = (new URLSearchParams(query)).toString(); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; + localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || ""); + + return { + url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash, + options: localVarRequestOptions, + }; + }, + /** + * + * @summary 更新打印信息 + * @param {PrintDataInput} [body] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiPrintDataUpdatePost: async (body?: PrintDataInput, options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/api/printData/update`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, 'https://example.com'); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication Bearer required + // http bearer authentication required + if (configuration && configuration.accessToken) { + const accessToken = typeof configuration.accessToken === 'function' + ? await configuration.accessToken() + : await configuration.accessToken; + localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; + } + + localVarHeaderParameter['Content-Type'] = 'application/json-patch+json'; + + const query = new URLSearchParams(localVarUrlObj.search); + for (const key in localVarQueryParameter) { + query.set(key, localVarQueryParameter[key]); + } + for (const key in options.params) { + query.set(key, options.params[key]); + } + localVarUrlObj.search = (new URLSearchParams(query)).toString(); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; + localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || ""); + + return { + url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash, + options: localVarRequestOptions, + }; + }, + } +}; + +/** + * PrintDataApi - functional programming interface + * @export + */ +export const PrintDataApiFp = function(configuration?: Configuration) { + return { + /** + * + * @summary 增加打印信息 + * @param {PrintData} [body] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiPrintDataAddPost(body?: PrintData, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { + const localVarAxiosArgs = await PrintDataApiAxiosParamCreator(configuration).apiPrintDataAddPost(body, options); + return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { + const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; + return axios.request(axiosRequestArgs); + }; + }, + /** + * + * @summary 删除打印信息 + * @param {number} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiPrintDataDeleteIdPost(id: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { + const localVarAxiosArgs = await PrintDataApiAxiosParamCreator(configuration).apiPrintDataDeleteIdPost(id, options); + return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { + const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; + return axios.request(axiosRequestArgs); + }; + }, + /** + * + * @summary 获取打印信息 + * @param {number} [id] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiPrintDataDetailGet(id?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { + const localVarAxiosArgs = await PrintDataApiAxiosParamCreator(configuration).apiPrintDataDetailGet(id, options); + return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { + const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; + return axios.request(axiosRequestArgs); + }; + }, + /** + * + * @summary 获取打印信息列表 + * @param {PrintDataMaterialsInput} [body] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiPrintDataGetPrintDataListPost(body?: PrintDataMaterialsInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { + const localVarAxiosArgs = await PrintDataApiAxiosParamCreator(configuration).apiPrintDataGetPrintDataListPost(body, options); + return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { + const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; + return axios.request(axiosRequestArgs); + }; + }, + /** + * + * @summary 获取打印信息列表 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiPrintDataListGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { + const localVarAxiosArgs = await PrintDataApiAxiosParamCreator(configuration).apiPrintDataListGet(options); + return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { + const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; + return axios.request(axiosRequestArgs); + }; + }, + /** + * + * @summary 分页查询打印信息 + * @param {PrintDataInput} [body] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiPrintDataPagePost(body?: PrintDataInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { + const localVarAxiosArgs = await PrintDataApiAxiosParamCreator(configuration).apiPrintDataPagePost(body, options); + return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { + const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; + return axios.request(axiosRequestArgs); + }; + }, + /** + * + * @summary 更新打印信息 + * @param {PrintDataInput} [body] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiPrintDataUpdatePost(body?: PrintDataInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { + const localVarAxiosArgs = await PrintDataApiAxiosParamCreator(configuration).apiPrintDataUpdatePost(body, options); + return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { + const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; + return axios.request(axiosRequestArgs); + }; + }, + } +}; + +/** + * PrintDataApi - factory interface + * @export + */ +export const PrintDataApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + return { + /** + * + * @summary 增加打印信息 + * @param {PrintData} [body] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiPrintDataAddPost(body?: PrintData, options?: AxiosRequestConfig): Promise> { + return PrintDataApiFp(configuration).apiPrintDataAddPost(body, options).then((request) => request(axios, basePath)); + }, + /** + * + * @summary 删除打印信息 + * @param {number} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiPrintDataDeleteIdPost(id: number, options?: AxiosRequestConfig): Promise> { + return PrintDataApiFp(configuration).apiPrintDataDeleteIdPost(id, options).then((request) => request(axios, basePath)); + }, + /** + * + * @summary 获取打印信息 + * @param {number} [id] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiPrintDataDetailGet(id?: number, options?: AxiosRequestConfig): Promise> { + return PrintDataApiFp(configuration).apiPrintDataDetailGet(id, options).then((request) => request(axios, basePath)); + }, + /** + * + * @summary 获取打印信息列表 + * @param {PrintDataMaterialsInput} [body] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiPrintDataGetPrintDataListPost(body?: PrintDataMaterialsInput, options?: AxiosRequestConfig): Promise> { + return PrintDataApiFp(configuration).apiPrintDataGetPrintDataListPost(body, options).then((request) => request(axios, basePath)); + }, + /** + * + * @summary 获取打印信息列表 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiPrintDataListGet(options?: AxiosRequestConfig): Promise> { + return PrintDataApiFp(configuration).apiPrintDataListGet(options).then((request) => request(axios, basePath)); + }, + /** + * + * @summary 分页查询打印信息 + * @param {PrintDataInput} [body] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiPrintDataPagePost(body?: PrintDataInput, options?: AxiosRequestConfig): Promise> { + return PrintDataApiFp(configuration).apiPrintDataPagePost(body, options).then((request) => request(axios, basePath)); + }, + /** + * + * @summary 更新打印信息 + * @param {PrintDataInput} [body] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiPrintDataUpdatePost(body?: PrintDataInput, options?: AxiosRequestConfig): Promise> { + return PrintDataApiFp(configuration).apiPrintDataUpdatePost(body, options).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * PrintDataApi - object-oriented interface + * @export + * @class PrintDataApi + * @extends {BaseAPI} + */ +export class PrintDataApi extends BaseAPI { + /** + * + * @summary 增加打印信息 + * @param {PrintData} [body] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PrintDataApi + */ + public async apiPrintDataAddPost(body?: PrintData, options?: AxiosRequestConfig) : Promise> { + return PrintDataApiFp(this.configuration).apiPrintDataAddPost(body, options).then((request) => request(this.axios, this.basePath)); + } + /** + * + * @summary 删除打印信息 + * @param {number} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PrintDataApi + */ + public async apiPrintDataDeleteIdPost(id: number, options?: AxiosRequestConfig) : Promise> { + return PrintDataApiFp(this.configuration).apiPrintDataDeleteIdPost(id, options).then((request) => request(this.axios, this.basePath)); + } + /** + * + * @summary 获取打印信息 + * @param {number} [id] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PrintDataApi + */ + public async apiPrintDataDetailGet(id?: number, options?: AxiosRequestConfig) : Promise> { + return PrintDataApiFp(this.configuration).apiPrintDataDetailGet(id, options).then((request) => request(this.axios, this.basePath)); + } + /** + * + * @summary 获取打印信息列表 + * @param {PrintDataMaterialsInput} [body] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PrintDataApi + */ + public async apiPrintDataGetPrintDataListPost(body?: PrintDataMaterialsInput, options?: AxiosRequestConfig) : Promise> { + return PrintDataApiFp(this.configuration).apiPrintDataGetPrintDataListPost(body, options).then((request) => request(this.axios, this.basePath)); + } + /** + * + * @summary 获取打印信息列表 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PrintDataApi + */ + public async apiPrintDataListGet(options?: AxiosRequestConfig) : Promise> { + return PrintDataApiFp(this.configuration).apiPrintDataListGet(options).then((request) => request(this.axios, this.basePath)); + } + /** + * + * @summary 分页查询打印信息 + * @param {PrintDataInput} [body] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PrintDataApi + */ + public async apiPrintDataPagePost(body?: PrintDataInput, options?: AxiosRequestConfig) : Promise> { + return PrintDataApiFp(this.configuration).apiPrintDataPagePost(body, options).then((request) => request(this.axios, this.basePath)); + } + /** + * + * @summary 更新打印信息 + * @param {PrintDataInput} [body] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PrintDataApi + */ + public async apiPrintDataUpdatePost(body?: PrintDataInput, options?: AxiosRequestConfig) : Promise> { + return PrintDataApiFp(this.configuration).apiPrintDataUpdatePost(body, options).then((request) => request(this.axios, this.basePath)); + } +} diff --git a/Web/src/api-services/models/print-data-input.ts b/Web/src/api-services/models/print-data-input.ts new file mode 100644 index 0000000..3a8315e --- /dev/null +++ b/Web/src/api-services/models/print-data-input.ts @@ -0,0 +1,94 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 业务应用 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1.0.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + /** + * 打印信息分页查询输入参数 + * + * @export + * @interface PrintDataInput + */ +export interface PrintDataInput { + + /** + * 当前页码 + * + * @type {number} + * @memberof PrintDataInput + */ + page?: number; + + /** + * 页码容量 + * + * @type {number} + * @memberof PrintDataInput + */ + pageSize?: number; + + /** + * 排序字段 + * + * @type {string} + * @memberof PrintDataInput + */ + field?: string | null; + + /** + * 排序方向 + * + * @type {string} + * @memberof PrintDataInput + */ + order?: string | null; + + /** + * 降序排序 + * + * @type {string} + * @memberof PrintDataInput + */ + descStr?: string | null; + + /** + * 关键字查询 + * + * @type {string} + * @memberof PrintDataInput + */ + searchKey?: string | null; + + /** + * 条码数据 + * + * @type {string} + * @memberof PrintDataInput + */ + barCode?: string | null; + + /** + * 二维码数据 + * + * @type {string} + * @memberof PrintDataInput + */ + qrCode?: string | null; + + /** + * 备注 + * + * @type {string} + * @memberof PrintDataInput + */ + remark?: string | null; +} diff --git a/Web/src/api-services/models/print-data-materials-input.ts b/Web/src/api-services/models/print-data-materials-input.ts new file mode 100644 index 0000000..de4afe0 --- /dev/null +++ b/Web/src/api-services/models/print-data-materials-input.ts @@ -0,0 +1,70 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 业务应用 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1.0.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + /** + * 打印信息输出参数 + * + * @export + * @interface PrintDataMaterialsInput + */ +export interface PrintDataMaterialsInput { + + /** + * 主键Id + * + * @type {number} + * @memberof PrintDataMaterialsInput + */ + id?: number; + + /** + * 编码头 + * + * @type {string} + * @memberof PrintDataMaterialsInput + */ + codeHead?: string | null; + + /** + * 编码长度 + * + * @type {number} + * @memberof PrintDataMaterialsInput + */ + codeLength?: number; + + /** + * 数量 + * + * @type {number} + * @memberof PrintDataMaterialsInput + */ + count?: number; + + /** + * 码类型 + * + * @type {string} + * @memberof PrintDataMaterialsInput + */ + codeType?: string | null; + + /** + * 备注 + * + * @type {string} + * @memberof PrintDataMaterialsInput + */ + remark?: string | null; +} diff --git a/Web/src/api-services/models/print-data.ts b/Web/src/api-services/models/print-data.ts new file mode 100644 index 0000000..90a7347 --- /dev/null +++ b/Web/src/api-services/models/print-data.ts @@ -0,0 +1,54 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 业务应用 + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 1.0.0 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + /** + * 打印信息 + * + * @export + * @interface PrintData + */ +export interface PrintData { + + /** + * 雪花Id + * + * @type {number} + * @memberof PrintData + */ + id?: number; + + /** + * 条码数据 + * + * @type {string} + * @memberof PrintData + */ + barCode?: string | null; + + /** + * 二维码数据 + * + * @type {string} + * @memberof PrintData + */ + qrCode?: string | null; + + /** + * 备注 + * + * @type {string} + * @memberof PrintData + */ + remark?: string | null; +} diff --git a/Web/src/api/main/packageInfo.ts b/Web/src/api/main/packageInfo.ts new file mode 100644 index 0000000..11a291d --- /dev/null +++ b/Web/src/api/main/packageInfo.ts @@ -0,0 +1,50 @@ +import request from '/@/utils/request'; +enum Api { + AddPackageInfo = '/api/packageInfo/add', + DeletePackageInfo = '/api/packageInfo/delete', + UpdatePackageInfo = '/api/packageInfo/update', + PagePackageInfo = '/api/packageInfo/page', + DetailPackageInfo = '/api/packageInfo/detail', +} + +// 增加包装关系 +export const addPackageInfo = (params?: any) => + request({ + url: Api.AddPackageInfo, + method: 'post', + data: params, + }); + +// 删除包装关系 +export const deletePackageInfo = (params?: any) => + request({ + url: Api.DeletePackageInfo, + method: 'post', + data: params, + }); + +// 编辑包装关系 +export const updatePackageInfo = (params?: any) => + request({ + url: Api.UpdatePackageInfo, + method: 'post', + data: params, + }); + +// 分页查询包装关系 +export const pagePackageInfo = (params?: any) => + request({ + url: Api.PagePackageInfo, + method: 'post', + data: params, + }); + +// 详情包装关系 +export const detailPackageInfo = (id: any) => + request({ + url: Api.DetailPackageInfo, + method: 'get', + data: { id }, + }); + + diff --git a/Web/src/main.ts b/Web/src/main.ts index b871eaf..d5d0c8c 100644 --- a/Web/src/main.ts +++ b/Web/src/main.ts @@ -17,6 +17,8 @@ import vue3TreeOrg from 'vue3-tree-org'; // 组织架构图 import 'vue3-tree-org/lib/vue3-tree-org.css'; // 组织架构图样式 import 'animate.css'; // 动画库 +//import chinaData from 'element-china-area-data' + import VXETable from 'vxe-table'; import 'vxe-table/lib/style.css'; @@ -33,5 +35,5 @@ for (const [key, component] of Object.entries(ElementPlusIconsVue)) { } directive(app); other.elSvg(app); - +//app.config.globalProperties.$chinaData = chinaData app.use(pinia).use(router).use(ElementPlus).use(i18n).use(VueGridLayout).use(VForm3).use(VueSignaturePad).use(vue3TreeOrg).use(useTable).mount('#app'); diff --git a/Web/src/views/basics-date/matter/component/editOpenAccess.vue b/Web/src/views/basics-date/matter/component/editOpenAccess.vue index c84f38d..a1b7ec3 100644 --- a/Web/src/views/basics-date/matter/component/editOpenAccess.vue +++ b/Web/src/views/basics-date/matter/component/editOpenAccess.vue @@ -6,17 +6,17 @@ - + - + - + @@ -53,7 +53,7 @@ - + @@ -158,11 +158,7 @@ - +