From 04cc50f504f5cbe07ab249f4bd1de579d38f64d9 Mon Sep 17 00:00:00 2001 From: Fanzink <460995166@qq.com> Date: Thu, 3 Mar 2022 20:48:59 +0800 Subject: [PATCH] =?UTF-8?q?'=E5=9F=BA=E7=A1=80=E8=B5=84=E6=96=99=E9=83=A8?= =?UTF-8?q?=E5=88=86'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/basicData/Cache/location.js | 16 +- .../basicData/Equipment/equipmentInfoAttr.js | 12 +- src/lang/i18n.js | 20 ++ src/lang/i18n/zh/module/basicData.js | 15 +- src/router/index.js | 64 +++++- src/views/basicData/Cache/cache.vue | 7 +- .../basicData/Cache/components/cache-add.vue | 31 ++- .../Cache/components/location-add.vue | 45 ++-- .../Cache/components/locationAttr-add.vue | 49 +++-- .../Cache/components/locationBtn.vue | 6 +- .../Cache/components/shelfAttr-add.vue | 26 ++- .../basicData/Cache/components/shelfBtn.vue | 6 +- src/views/basicData/Cache/shelf.vue | 73 ++++--- .../components/equipmentInfo-add.vue | 46 ++-- .../basicData/Equipment/equipmentInfo.vue | 45 ++-- src/views/basicData/Materials/material.vue | 5 +- .../Process/components/processInfo-add.vue | 135 ++++++++++++ src/views/basicData/Process/processInfo.vue | 204 ++++++++++++++++++ vue.config.js | 4 +- 19 files changed, 628 insertions(+), 181 deletions(-) create mode 100644 src/views/basicData/Process/components/processInfo-add.vue create mode 100644 src/views/basicData/Process/processInfo.vue diff --git a/src/api/basicData/Cache/location.js b/src/api/basicData/Cache/location.js index 908ace1..77f8b60 100644 --- a/src/api/basicData/Cache/location.js +++ b/src/api/basicData/Cache/location.js @@ -1,15 +1,15 @@ /* * @Author: zwq * @Date: 2020-12-29 16:00:14 - * @LastEditors: zwq - * @LastEditTime: 2021-01-28 09:38:31 + * @LastEditors: fzq + * @LastEditTime: 2022-03-03 14:29:17 * @Description: */ import request from '@/utils/request' export function locationList(data) { // 获取库位信息列表 return request({ - url: '/basic/stock/page', + url: '/api/wms/area/locationByShelf', method: 'post', data }) @@ -17,7 +17,7 @@ export function locationList(data) { // 获取库位信息列表 export function locationDetail(id) { // 获取库位信息单条数据 return request({ - url: '/basic/stock/get', + url: '/api/wms/area/locationById', method: 'post', data: { id } }) @@ -25,7 +25,7 @@ export function locationDetail(id) { // 获取库位信息单条数据 export function locationUpdate(data) { // 更新库位信息单条数据 return request({ - url: '/basic/stock/update', + url: '/api/wms/area/updatelocation', method: 'post', data }) @@ -33,7 +33,7 @@ export function locationUpdate(data) { // 更新库位信息单条数据 export function locationAdd(data) { // 新增库位信息单条数据 return request({ - url: '/basic/stock/add', + url: '/api/wms/area/addlocation', method: 'post', data }) @@ -41,14 +41,14 @@ export function locationAdd(data) { // 新增库位信息单条数据 export function locationCode() { // 获取库位信息code return request({ - url: '/basic/stock/get-code', + url: '/api/wms/area/getCode', method: 'post' }) } export function locationDelete(id) { // 删除库位信息单条数据 return request({ - url: '/basic/stock/delete', + url: '/api/wms/area/deletelocation', method: 'post', data: { id } }) diff --git a/src/api/basicData/Equipment/equipmentInfoAttr.js b/src/api/basicData/Equipment/equipmentInfoAttr.js index 572e245..ac209c4 100644 --- a/src/api/basicData/Equipment/equipmentInfoAttr.js +++ b/src/api/basicData/Equipment/equipmentInfoAttr.js @@ -1,8 +1,8 @@ /* * @Author: zwq * @Date: 2020-12-29 16:00:14 - * @LastEditors: zwq - * @LastEditTime: 2021-01-20 12:00:52 + * @LastEditors: fzq + * @LastEditTime: 2022-03-03 20:09:43 * @Description: */ import request from '@/utils/request' @@ -27,7 +27,7 @@ export function equipmentInfoAttrDetail(id) { // 获取设备属性单条数据 export function equipmentInfoAttrUpdate(data) { // 更新设备属性单条数据 return request({ - url: '/basic/equipment-attr/update', + url: '/api/wms/equipment/updateattr', method: 'post', data }) @@ -35,7 +35,7 @@ export function equipmentInfoAttrUpdate(data) { // 更新设备属性单条数 export function equipmentInfoAttrAdd(data) { // 新增设备属性单条数据 return request({ - url: '/basic/equipment-attr/add', + url: '/api/wms/equipment/addattr', method: 'post', data }) @@ -43,14 +43,14 @@ export function equipmentInfoAttrAdd(data) { // 新增设备属性单条数据 export function equipmentInfoAttrCode() { // 获取设备属性code return request({ - url: '/basic/equipment-attr/get-code', + url: '/api/wms/equipment/getCode', method: 'post' }) } export function equipmentInfoAttrDelete(id) { // 删除设备属性单条数据 return request({ - url: '/basic/equipment-attr/delete', + url: '/api/wms/equipment/deleteattr', method: 'post', data: { id } }) diff --git a/src/lang/i18n.js b/src/lang/i18n.js index a56ab68..7a304d3 100644 --- a/src/lang/i18n.js +++ b/src/lang/i18n.js @@ -567,10 +567,18 @@ export default { zh: '货架信息', en: 'Shelf Add' }, + shelfInfo: { + zh: '货位管理', + en: 'Shelf Info' + }, locationAdd: { zh: '库位信息', en: 'Location Add' }, + location: { + zh: '添加库位', + en: 'Location Management' + }, storageBox: { zh: '存储箱', en: 'Storage Box' @@ -580,6 +588,18 @@ export default { en: 'Position Detail Info' } }, + process: { + zh: '工序信息', + en: 'Process Info', + processInfo: { + zh: '工序信息', + en: 'Process Info' + }, + processInfoAdd: { + zh: '工序信息管理', + en: 'Process Manage' + } + }, equipment: { zh: '设备信息', en: 'Equipment Info', diff --git a/src/lang/i18n/zh/module/basicData.js b/src/lang/i18n/zh/module/basicData.js index 368d9d2..4248ed9 100644 --- a/src/lang/i18n/zh/module/basicData.js +++ b/src/lang/i18n/zh/module/basicData.js @@ -1,8 +1,8 @@ /* * @Author: gtz * @Date: 2021-03-04 16:13:51 - * @LastEditors: zwq - * @LastEditTime: 2022-01-17 15:12:12 + * @LastEditors: fzq + * @LastEditTime: 2022-03-03 19:52:51 * @Description: file content */ export default { @@ -135,6 +135,8 @@ export default { AreaName: '货架名称', rowNum: '行数', columnNum: '列数', + rowMark: '行标', + columnMark: '列标', Shelf: '货架', ManageShelves: '管理货架', ShelfCode: '货架编码', @@ -145,9 +147,12 @@ export default { ManageLocation: '管理货位', LocationCode: '库位编码', LocationName: '库位名称', - anotherName: '别名', + locationType: '库位类型', + anotherName: '库位别名', place: '位置', - addCacheArea: '添加货架' + addCacheArea: '添加货架', + addLocation: '添加库位', + status: '状态' }, storageBox: { name: '名称', @@ -162,6 +167,8 @@ export default { PositionCodeAlias: '位置编码别名' }, equipment: { + shortName: '名称缩写', + enName: '英文名称', EquipmentName: '设备名称', EquipmentCode: '设备编码', EquipmentType: '设备类型', diff --git a/src/router/index.js b/src/router/index.js index 89c6110..e4110eb 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -98,11 +98,19 @@ export const constantRoutes = [ name: 'basicData', meta: { title: routerTitle.basicData?.[language] || routerTitle.basicData.en, icon: 'form', iconPart: 'basicData', affix: true, required: true, requireToken: true }, children: [ + // 缓存区信息 + { + path: 'cache', + component: () => import('@/views/basicData/Cache/cache'), + name: 'cache', + hidden: true, + meta: { title: routerTitle.basicData.ports.ports?.[language] || routerTitle.basicData.ports.ports.en, icon: 'form', affix: true } + }, { path: 'ports', - component: () => import('@/views/basicData/Cache/cache'), + component: () => import('@/views/basicData/Cache/shelf'), name: 'ports', - meta: { title: routerTitle.basicData.ports.ports?.[language] || routerTitle.basicData.ports.ports.en, icon: 'form', affix: true } + meta: { title: routerTitle.basicData.ports.shelfInfo?.[language] || routerTitle.basicData.ports.shelfInfo.en, icon: 'form', affix: true } }, { path: 'area', @@ -147,6 +155,19 @@ export const constantRoutes = [ hidden: true, meta: { title: routerTitle.basicData.ports.PositionDetailInfo?.[language] || routerTitle.basicData.ports.PositionDetailInfo.en, icon: 'form', affix: true } }, + { + path: 'processInfo', + component: () => import('@/views/basicData/Process/processInfo'), + name: 'processInfo', + meta: { title: routerTitle.basicData.process.processInfo?.[language] || routerTitle.basicData.process.processInfo.en, icon: 'form', affix: true, required: true, requireToken: true } + }, + { + path: 'processInfoAdd', + component: () => import('@/views/basicData/Process/components/processInfo-add'), + name: 'processInfoAdd', + hidden: true, + meta: { title: routerTitle.basicData.process.processInfoAdd?.[language] || routerTitle.basicData.process.processInfoAdd.en, icon: 'form', affix: true, required: true, requireToken: true } + }, { path: 'equipmentInfo', component: () => import('@/views/basicData/Equipment/equipmentInfo'), @@ -278,6 +299,45 @@ export const constantRoutes = [ } ] }, + { + path: '/form', + component: Layout, + redirect: '/form', + name: 'formManage', + meta: { title: routerTitle.form?.[language] || routerTitle.form.en, icon: 'form', iconPart: 'formManage', affix: true, required: true, requireToken: true, unuse: false }, + children: [{ + path: 'report', + component: () => import('@/views/report-manage/ReportSortChoise'), + name: 'Report', + meta: { title: routerTitle.form.report?.[language] || routerTitle.form.report.en, icon: 'form', affix: true, required: true, requireToken: true } + }, + { + path: 'report-sort-list', + component: () => import('@/views/report-manage/Report'), + name: 'ReportSortList', + hidden: true, + meta: { title: routerTitle.form.reportSortList?.[language] || routerTitle.form.reportSortList.en, icon: 'form', affix: true, required: true, requireToken: true } + }, + { + path: 'report-view', + component: () => import('@/views/report-manage/ReportView'), + name: 'ReportDesign', + meta: { title: routerTitle.form.reportView?.[language] || routerTitle.form.reportView.en, icon: 'form', affix: true, required: true, requireToken: true }, + hidden: true + }, + { + path: 'report-design', + component: () => import('@/views/report-manage/ReportDesign'), + name: 'ReportDesign', + meta: { title: routerTitle.form.reportDesign?.[language] || routerTitle.form.reportDesign.en, icon: 'form', affix: true, required: true, requireToken: true } + }, + { + path: 'report-sort', + component: () => import('@/views/report-manage/ReportSort/index'), + name: 'ReportSort', + meta: { title: routerTitle.form.reportSort?.[language] || routerTitle.form.reportSort.en, icon: 'form', affix: true, required: true, requireToken: true } + }] + }, { path: '/interface', component: Layout, diff --git a/src/views/basicData/Cache/cache.vue b/src/views/basicData/Cache/cache.vue index 3d54870..5dbd264 100644 --- a/src/views/basicData/Cache/cache.vue +++ b/src/views/basicData/Cache/cache.vue @@ -1,8 +1,8 @@