diff --git a/code/WebApp/vanilla/router/base-date.js b/code/WebApp/vanilla/router/base-date.js new file mode 100644 index 00000000..65714041 --- /dev/null +++ b/code/WebApp/vanilla/router/base-date.js @@ -0,0 +1,473 @@ +export default [ + { + path: "base-data", + meta: { + type: "group", + title: "基础数据", + icon: "folder", + }, + children: [ + { + path: "user", + meta: { + type: "page", + title: "用户管理", + icon: "file", + permission: "AbpIdentity.Users", + }, + children: [ + { + path: "query", + meta: { + type: "button", + title: "查询", + icon: "file", + isTop: true, + }, + }, + { + path: "create", + meta: { + type: "button", + title: "新建", + icon: "file", + permission: "AbpIdentity.Users.Create", + isTop: true, + }, + }, + { + path: "update", + meta: { + type: "button", + title: "编辑", + icon: "file", + htmlClass: "el-button--primary", + permission: "AbpIdentity.Users.Update", + }, + }, + { + path: "delete", + meta: { + type: "button", + title: "删除", + icon: "file", + permission: "AbpIdentity.Users.Delete", + disabled: "o=>o.userName==='admin'", + }, + }, + { + path: "%s/reset-password", + meta: { + type: "button", + title: "重置密码", + icon: "file", + permission: "reset-password?", + method: "PUT", + }, + }, + ], + }, + // { + // path: "role", + // meta: { + // type: "page", + // title: "角色管理", + // icon: "file", + // permission: "AbpIdentity.Users", + // }, + // children: [ + // { + // path: "create", + // meta: { + // type: "button", + // title: "新建", + // icon: "file", + // permission: "AbpIdentity.Users.Create", + // isTop: true, + // }, + // }, + // { + // path: "update", + // meta: { + // type: "button", + // title: "编辑", + // icon: "file", + // htmlClass: "el-button--primary", + // permission: "AbpIdentity.Users.Update", + // disabled: `(o) => o.isStatic`, + // }, + // }, + // { + // path: "delete", + // meta: { + // type: "button", + // title: "删除", + // icon: "file", + // permission: "AbpIdentity.Users.Delete", + // disabled: `(o) => o.isStatic`, + // }, + // }, + // ], + // }, + { + path: "material", + meta: { + type: "page", + title: "物料主数据", + icon: "file", + children: [ + { + path: "query", + meta: { + type: "button", + title: "查询", + icon: "file", + isTop: true, + }, + }, + { + path: "query", + meta: { + type: "button", + title: "导出", + icon: "file", + isTop: true, + pattern: "paged", + }, + }, + ], + }, + }, + { + path: "centralized-control", + meta: { + type: "page", + title: "期间设置", + icon: "file", + children: [ + { + path: "query", + meta: { + type: "button", + title: "查询", + icon: "file", + isTop: true, + }, + }, + { + path: "create", + meta: { + type: "button", + title: "新建", + icon: "file", + isTop: true, + }, + }, + { + path: "open-version", + meta: { + type: "button", + title: "启用", + icon: "file", + isTop: true, + }, + }, + { + path: "closed-version", + meta: { + type: "button", + title: "停用", + icon: "file", + isTop: true, + }, + }, + { + path: "delete", + meta: { + type: "button", + title: "删除", + icon: "file", + isTop: true, + }, + }, + ], + }, + }, + { + path: "material-relationship", + meta: { + type: "page", + title: "客户零件关系", + icon: "file", + children: [ + { + path: "query", + meta: { + type: "button", + title: "查询", + icon: "file", + isTop: true, + }, + }, + { + path: "import", + meta: { + type: "button", + title: "导入", + icon: "file", + isTop: true, + }, + }, + { + path: "export", + meta: { + type: "button", + title: "导出", + icon: "file", + isTop: true, + pattern: "paged", + }, + }, + ], + }, + }, + { + path: "tb_re-parts-relationship_service", + meta: { + type: "page", + title: "客户替换件关系", + icon: "file", + children: [ + { + path: "query", + meta: { + type: "button", + title: "查询", + icon: "file", + isTop: true, + }, + }, + { + path: "import", + meta: { + type: "button", + title: "导入", + icon: "file", + isTop: true, + }, + }, + { + path: "export", + meta: { + type: "button", + title: "导出", + icon: "file", + isTop: true, + pattern: "paged", + }, + }, + ], + }, + }, + { + path: "code-setting", + meta: { + type: "page", + title: "通用代码", + icon: "file", + children: [ + { + path: "query", + meta: { + type: "button", + title: "查询", + icon: "file", + isTop: true, + }, + }, + { + path: "create", + meta: { + type: "button", + title: "新建", + icon: "file", + isTop: true, + }, + }, + { + path: "delete", + meta: { + type: "button", + title: "删除", + icon: "file", + isTop: true, + }, + }, + { + path: "import", + meta: { + type: "button", + title: "导入", + icon: "file", + isTop: true, + }, + }, + { + path: "export", + meta: { + type: "button", + title: "导出", + icon: "file", + isTop: true, + pattern: "paged", + }, + }, + ], + }, + }, + { + path: "bom", + meta: { + type: "page", + title: "BOM结构", + icon: "file", + children: [ + { + path: "query", + meta: { + type: "button", + title: "查询", + icon: "file", + isTop: true, + }, + }, + { + path: "export", + meta: { + type: "button", + title: "导出", + icon: "file", + isTop: true, + pattern: "paged", + }, + }, + ], + }, + }, + { + path: "price-list-app-service-bj", + meta: { + type: "page", + title: "备件价格单", + icon: "file", + children: [ + { + path: "query", + meta: { + type: "button", + title: "查询", + icon: "file", + isTop: true, + }, + }, + { + path: "import", + meta: { + type: "button", + title: "导入", + icon: "file", + isTop: true, + }, + }, + { + path: "export", + meta: { + type: "button", + title: "导出", + icon: "file", + isTop: true, + pattern: "paged", + }, + }, + ], + }, + }, + { + path: "purchase_price_service", + meta: { + type: "page", + title: "采购价格单", + icon: "file", + children: [ + { + path: "query", + meta: { + type: "button", + title: "查询", + icon: "file", + isTop: true, + }, + }, + { + path: "import", + meta: { + type: "button", + title: "导入", + icon: "file", + isTop: true, + }, + }, + { + path: "export", + meta: { + type: "button", + title: "导出", + icon: "file", + isTop: true, + pattern: "paged", + }, + }, + ], + }, + }, + { + path: "price-list", + meta: { + type: "page", + title: "销售价格单", + icon: "file", + children: [ + { + path: "query", + meta: { + type: "button", + title: "查询", + icon: "file", + isTop: true, + }, + }, + { + path: "import", + meta: { + type: "button", + title: "导入", + icon: "file", + isTop: true, + }, + }, + { + path: "export", + meta: { + type: "button", + title: "导出", + icon: "file", + isTop: true, + pattern: "paged", + }, + }, + ], + }, + }, + ], + }, +]; diff --git a/code/WebApp/vanilla/router/business.js b/code/WebApp/vanilla/router/business.js new file mode 100644 index 00000000..a47e2c0a --- /dev/null +++ b/code/WebApp/vanilla/router/business.js @@ -0,0 +1,77 @@ +export default [ + { + path: "jis-bbac", + meta: { + type: "group", + title: "JIS-BBAC", + icon: "folder", + }, + children: [ + { + path: "input", + meta: { + type: "group", + title: "数据输入", + icon: "folder", + }, + children: [ + { + path: "bbac_sa_service", + meta: { + type: "page", + title: "JIS结算数据", + icon: "file", + }, + }, + { + path: "bbac_se_detail", + meta: { + type: "page", + title: "JIS发运数据", + icon: "file", + }, + }, + { + path: "bbac_se_edi", + meta: { + type: "page", + title: "EDI数据", + icon: "file", + }, + }, + ], + }, + ], + + /* path: "business", + meta: { + type: "group", + title: "JIS-HBPO", + icon: "folder", + }, + path: "business", + meta: { + type: "group", + title: "直供件", + icon: "folder", + }, + path: "business", + meta: { + type: "group", + title: "备件", + icon: "folder", + }, + path: "business", + meta: { + type: "group", + title: "印度件", + icon: "folder", + }, + path: "business", + meta: { + type: "group", + title: "商务审核", + icon: "folder", + }, */ + }, +]; diff --git a/code/WebApp/vanilla/router/routes.js b/code/WebApp/vanilla/router/routes.js index 6a2777dc..146ad045 100644 --- a/code/WebApp/vanilla/router/routes.js +++ b/code/WebApp/vanilla/router/routes.js @@ -1,3 +1,5 @@ +import baseDate from "./base-date.js"; +import business from "./business.js"; export default [ { path: "home", @@ -8,227 +10,6 @@ export default [ public: true, }, }, - { - path: "base-data", - meta: { - type: "group", - title: "基础数据", - icon: "folder", - }, - children: [ - { - path: "user", - meta: { - type: "page", - title: "用户管理", - icon: "file", - permission: "AbpIdentity.Users", - }, - children: [ - { - path: "query", - meta: { - type: "button", - title: "查询", - icon: "file", - isTop: true, - }, - }, - { - path: "create", - meta: { - type: "button", - title: "新建", - icon: "file", - permission: "AbpIdentity.Users.Create", - isTop: true, - }, - }, - { - path: "update", - meta: { - type: "button", - title: "编辑", - icon: "file", - htmlClass: "el-button--primary", - permission: "AbpIdentity.Users.Update", - }, - }, - { - path: "delete", - meta: { - type: "button", - title: "删除", - icon: "file", - permission: "AbpIdentity.Users.Delete", - disabled: "o=>o.userName==='admin'", - }, - }, - { - path: "%s/reset-password", - meta: { - type: "button", - title: "重置密码", - icon: "file", - permission: "reset-password?", - method: "PUT", - }, - }, - ], - }, - // { - // path: "role", - // meta: { - // type: "page", - // title: "角色管理", - // icon: "file", - // permission: "AbpIdentity.Users", - // }, - // children: [ - // { - // path: "create", - // meta: { - // type: "button", - // title: "新建", - // icon: "file", - // permission: "AbpIdentity.Users.Create", - // isTop: true, - // }, - // }, - // { - // path: "update", - // meta: { - // type: "button", - // title: "编辑", - // icon: "file", - // htmlClass: "el-button--primary", - // permission: "AbpIdentity.Users.Update", - // disabled: `(o) => o.isStatic`, - // }, - // }, - // { - // path: "delete", - // meta: { - // type: "button", - // title: "删除", - // icon: "file", - // permission: "AbpIdentity.Users.Delete", - // disabled: `(o) => o.isStatic`, - // }, - // }, - // ], - // }, - { - path: "centralized-control", - meta: { - type: "page", - title: "期间设置", - icon: "file", - children: [ - { - path: "query", - meta: { - type: "button", - title: "查询", - icon: "file", - isTop: true, - }, - }, - { - path: "create", - meta: { - type: "button", - title: "新建", - icon: "file", - isTop: true, - }, - }, - { - path: "open-version", - meta: { - type: "button", - title: "启用", - icon: "file", - isTop: true, - }, - }, - { - path: "closed-version", - meta: { - type: "button", - title: "停用", - icon: "file", - isTop: true, - }, - }, - { - path: "delete", - meta: { - type: "button", - title: "删除", - icon: "file", - isTop: true, - }, - }, - ], - }, - }, - { - path: "code-setting", - meta: { - type: "page", - title: "通用代码", - icon: "file", - children: [ - { - path: "query", - meta: { - type: "button", - title: "查询", - icon: "file", - isTop: true, - }, - }, - { - path: "create", - meta: { - type: "button", - title: "新建", - icon: "file", - isTop: true, - }, - }, - { - path: "delete", - meta: { - type: "button", - title: "删除", - icon: "file", - isTop: true, - }, - }, - { - path: "import", - meta: { - type: "button", - title: "导入", - icon: "file", - isTop: true, - }, - }, - { - path: "export", - meta: { - type: "button", - title: "导出", - icon: "file", - isTop: true, - pattern: "paged", - }, - }, - ], - }, - }, - ], - }, + ...baseDate, + ...business, ]; diff --git a/code/WebApp/vanilla/views/base-data/material.js b/code/WebApp/vanilla/views/base-data/material.js new file mode 100644 index 00000000..338f7975 --- /dev/null +++ b/code/WebApp/vanilla/views/base-data/material.js @@ -0,0 +1,15 @@ +import AppList from "../../components/list/index.js"; +import html from "html"; +import useConfig from "../../models/material.js"; + +export default { + components: { AppList }, + template: html``, + setup() { + const config = useConfig(); + const onCommand = async (item, rows) => { + console.log(item.path, item, rows); + }; + return { config, onCommand }; + }, +}; diff --git a/docs/demo/src/WTA.Application/Identity/Identity.zip b/docs/demo/src/WTA.Application/Identity/Identity.zip deleted file mode 100644 index dcfbf86e..00000000 Binary files a/docs/demo/src/WTA.Application/Identity/Identity.zip and /dev/null differ diff --git a/docs/demo/src/WTA/Properties/PublishProfiles/FolderProfile.pubxml b/docs/demo/src/WTA/Properties/PublishProfiles/FolderProfile.pubxml index d9d050e3..80807721 100644 --- a/docs/demo/src/WTA/Properties/PublishProfiles/FolderProfile.pubxml +++ b/docs/demo/src/WTA/Properties/PublishProfiles/FolderProfile.pubxml @@ -15,7 +15,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121. <_TargetId>Folder net7.0 - linux-x64 + win-x64 ffaca971-25fc-4652-a510-8bfc76e42d87 true