From 1be8d2fbcf230f92400728025c2389229ac5d20a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BE=99=E8=BF=90=E6=A8=A1?= <1724894114@qq.com> Date: Tue, 29 Oct 2024 22:56:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=A4=87=E4=BB=B6=E4=BF=A1?= =?UTF-8?q?=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/model/system.js | 37 ++ src/config/route.js | 339 +++++------------- .../setting/partsMag/components/info.vue | 116 ++++++ .../setting/partsMag/components/library.vue | 179 +++++++++ src/views/setting/partsMag/index.vue | 177 +-------- src/views/setting/user/index.vue | 2 +- 6 files changed, 443 insertions(+), 407 deletions(-) create mode 100644 src/views/setting/partsMag/components/info.vue create mode 100644 src/views/setting/partsMag/components/library.vue diff --git a/src/api/model/system.js b/src/api/model/system.js index 6744e51..0f50fd7 100644 --- a/src/api/model/system.js +++ b/src/api/model/system.js @@ -544,5 +544,42 @@ export default { } } }, + spare:{ + list: { + url: `${config.API_URL}/spare.parts.list`, + name: "备件列表", + get: async function (params) { + return await http.post(this.url, params); + }, + }, + add:{ + url: `${config.API_URL}/spare.parts.add`, + name: "新增备件", + post: async function (params) { + return await http.post(this.url, params); + }, + }, + info:{ + url: `${config.API_URL}/spare.parts.info`, + name: "备件明细", + post: async function (params) { + return await http.post(this.url, params); + }, + }, + delete:{ + url: `${config.API_URL}/spare.parts.delete`, + name: "删除备件", + post: async function (params) { + return await http.post(this.url, params); + }, + }, + field:{ + url: `${config.API_URL}/spare.parts.field.list`, + name: "备件检索", + post: async function (params) { + return await http.post(this.url, params); + }, + }, + } }; diff --git a/src/config/route.js b/src/config/route.js index c752c07..8cfc0d2 100644 --- a/src/config/route.js +++ b/src/config/route.js @@ -67,250 +67,101 @@ const routes = [ } }] }, - { - name: "order", - path: "/order", - meta: { - icon: "sc-icon-order", - title: "维保工单", - hidden: true - }, - children: [{ - name: "order", - path: "/order", - component: "order/workOrder", - meta: { - icon: "sc-icon-Console", - title: "维保工单", - } - },{ - name: "plan", - path: "/plan", - component: "userCenter", - meta: { - icon: "sc-icon-UserInfo", - title: "维保计划", - } - },{ - name: "dataConfirm", - path: "/data-confirm", - component: "userCenter", - meta: { - icon: "sc-icon-UserInfo", - title: "数据确认", - } - }] - }, - { - name: "stock", - path: "/stock", - meta: { - icon: "sc-icon-Stock", - title: "库存管理", - hidden:true - }, - children: [{ - name: "stock", - path: "/stock", - component: "home", - meta: { - icon: "sc-icon-Console", - title: "库存列表", - } - },{ - name: "statistics", - path: "/statistics", - component: "userCenter", - meta: { - icon: "sc-icon-UserInfo", - title: "库存统计", - } - },{ - name: "accessForm", - path: "/access-form", - component: "userCenter", - meta: { - icon: "sc-icon-UserInfo", - title: "出入记录", - } - }] - }, - { - name: "sell", - path: "/sell", - meta: { - icon: "sc-icon-Shipment", - title: "出货管理", - hidden:true - }, - children: [{ - name: "shipment", - path: "/shipment", - component: "home", - meta: { - icon: "sc-icon-Console", - title: "出货清单", - } - },{ - name: "shipmentStatistics", - path: "/shipment-statistics", - component: "userCenter", - meta: { - icon: "sc-icon-UserInfo", - title: "出货统计", - } - },{ - name: "shipmentConfirm", - path: "/shipment-confirm", - component: "userCenter", - meta: { - icon: "sc-icon-UserInfo", - title: "数据确认", - } - }] - }, - { - name: "finance", - path: "/finance", - meta: { - icon: "sc-icon-Finance", - title: "财务管理", - hidden:true - }, - children: [{ - name: "finance", - path: "/finance", - component: "home", - meta: { - icon: "sc-icon-Console", - title: "费用成本", - } - },{ - name: "financeSummary", - path: "/finance-summary", - component: "userCenter", - meta: { - icon: "sc-icon-UserInfo", - title: "成本汇总", - } - }] - }, - { - name: "report", - path: "/report", - meta: { - icon: "sc-icon-ReportForms", - title: "报表统计", - hidden:true - }, - children: [{ - name: "report", - path: "/report", - component: "home", - meta: { - icon: "sc-icon-Console", - title: "维保报表", - } - },{ - name: "outReport", - path: "/out-report", - component: "userCenter", - meta: { - icon: "sc-icon-UserInfo", - title: "出货报表", - } - }] - }, - { - name: "setting", - path: "/setting", - meta: { - icon: "sc-icon-Setup", - title: "系统设置", - hidden: true - }, - children: [{ - name: "system", - path: "/setting/system", - component: "setting/system", - meta: { - icon: "sc-icon-System", - title: "系统设置", - } - },{ - name: "userManage", - path: "/setting/user", - component: "setting/user", - meta: { - icon: "sc-icon-UserManage", - title: "用户管理", - } - },{ - name: "role", - path: "/setting/role", - component: "setting/role", - meta: { - icon: "sc-icon-RoleManage", - title: "角色管理", - } - },{ - name: "dept", - path: "/setting/dept", - component: "setting/dept", - meta: { - icon: "sc-icon-DeptManage", - title: "部门管理", - } - },{ - name: "log", - path: "/setting/log", - component: "setting/log", - meta: { - icon: "sc-icon-Log", - title: "系统日志", - } - },{ - name: "client", - path: "/setting/client", - component: "setting/client", - meta: { - icon: "sc-icon-Application", - title: "应用管理", - } - },{ - name: "dic", - path: "/setting/dic", - component: "setting/dic", - meta: { - icon: "sc-icon-Dictionary", - title: "字典管理", - } - },{ - name: "menu", - path: "/setting/menu", - component: "setting/menu", - meta: { - icon: "sc-icon-MenuManage", - title: "菜单管理", - } - },{ - name: "table", - path: "/setting/table", - component: "setting/table", - meta: { - icon: "sc-icon-TableManage", - title: "表格管理", - } - },{ - name: "task", - path: "/setting/task", - component: "setting/task", - meta: { - icon: "sc-icon-TaskManage", - title: "任务管理", - } - }] - }, + + + + + + // { + // name: "setting", + // path: "/setting", + // meta: { + // icon: "sc-icon-Setup", + // title: "系统设置", + // hidden: true + // }, + // children: [{ + // name: "system", + // path: "/setting/system", + // component: "setting/system", + // meta: { + // icon: "sc-icon-System", + // title: "系统设置", + // } + // },{ + // name: "user", + // path: "/setting/user", + // component: "setting/user", + // meta: { + // icon: "sc-icon-UserManage", + // title: "用户管理", + // } + // },{ + // name: "role", + // path: "/setting/role", + // component: "setting/role", + // meta: { + // icon: "sc-icon-RoleManage", + // title: "角色管理", + // } + // },{ + // name: "dept", + // path: "/setting/dept", + // component: "setting/dept", + // meta: { + // icon: "sc-icon-DeptManage", + // title: "部门管理", + // } + // },{ + // name: "log", + // path: "/setting/log", + // component: "setting/log", + // meta: { + // icon: "sc-icon-Log", + // title: "系统日志", + // } + // },{ + // name: "client", + // path: "/setting/client", + // component: "setting/client", + // meta: { + // icon: "sc-icon-Application", + // title: "应用管理", + // } + // },{ + // name: "dic", + // path: "/setting/dic", + // component: "setting/dic", + // meta: { + // icon: "sc-icon-Dictionary", + // title: "字典管理", + // } + // },{ + // name: "menu", + // path: "/setting/menu", + // component: "setting/menu", + // meta: { + // icon: "sc-icon-MenuManage", + // title: "菜单管理", + // } + // },{ + // name: "table", + // path: "/setting/table", + // component: "setting/table", + // meta: { + // icon: "sc-icon-TableManage", + // title: "表格管理", + // } + // },{ + // name: "task", + // path: "/setting/task", + // component: "setting/task", + // meta: { + // icon: "sc-icon-TaskManage", + // title: "任务管理", + // } + // }] + // }, { name: "other", path: "/other", diff --git a/src/views/setting/partsMag/components/info.vue b/src/views/setting/partsMag/components/info.vue new file mode 100644 index 0000000..777e71d --- /dev/null +++ b/src/views/setting/partsMag/components/info.vue @@ -0,0 +1,116 @@ + + + + + + + diff --git a/src/views/setting/partsMag/components/library.vue b/src/views/setting/partsMag/components/library.vue new file mode 100644 index 0000000..cb67388 --- /dev/null +++ b/src/views/setting/partsMag/components/library.vue @@ -0,0 +1,179 @@ + + + + + 新增备件 + 批量导入 + 删除 + + + + + + + + + + + {{searchShow?'收起':'更多'}} + 查询 + 重置 + + + + + + + + + + + 查看详情 + 编辑 + 删除 + + + + + + + + + + + + + diff --git a/src/views/setting/partsMag/index.vue b/src/views/setting/partsMag/index.vue index e63abd5..a6016ce 100644 --- a/src/views/setting/partsMag/index.vue +++ b/src/views/setting/partsMag/index.vue @@ -1,182 +1,35 @@ - - - - 新增备件 - 批量导入 - - - - - - - - - 操作时间 - - - - 物料编码 - - - - 物料名称 - - - - 规格型号 - - - - 查询 - 重置 - - - - - - - - - - - - - - - - - - - - - 查看详情 - 编辑 - 删除 - - - - - - - - - - - - + + + + + + + + + + diff --git a/src/views/setting/user/index.vue b/src/views/setting/user/index.vue index 3c8cd07..b36dc15 100644 --- a/src/views/setting/user/index.vue +++ b/src/views/setting/user/index.vue @@ -136,7 +136,7 @@ import deptMagDialog from '/src/views/setting/deptMag/save' export default { - name:"user", + name:"userMag", components: { saveDialog, rePwdDialog, disRoleDialog, reviewDialog, deptMagDialog },