diff --git a/src/api/basicData/Cache/processLocation.js b/src/api/basicData/Cache/processLocation.js index 2272052..d6863f2 100644 --- a/src/api/basicData/Cache/processLocation.js +++ b/src/api/basicData/Cache/processLocation.js @@ -4,7 +4,7 @@ * @Author: fzq * @Date: 2022-03-06 18:13:49 * @LastEditors: fzq - * @LastEditTime: 2022-03-06 18:29:43 + * @LastEditTime: 2022-03-09 10:44:04 */ import request from '@/utils/request' @@ -46,3 +46,27 @@ export function locaDelete(id) { // 删除工序库位信息单条数据 data: { id } }) } + +export function locationList(data) { // 获取库位id列表 + return request({ + url: '/api/wms/processlocation/locationList', + method: 'post', + data + }) +} + +export function portAttrList(data) { // 获取库位属性列表,关联数据字典 + return request({ + url: '/api/wms/processlocation/portAttrList', + method: 'post', + data + }) +} + +export function workSequenList(data) { // 获取工序id列表 + return request({ + url: '/api/wms/processlocation/workSequenList', + method: 'post', + data + }) +} diff --git a/src/api/menu.js b/src/api/menu.js index 16b6cb6..46817cd 100644 --- a/src/api/menu.js +++ b/src/api/menu.js @@ -1,7 +1,7 @@ /* * @Date: 2020-12-28 20:46:53 * @LastEditors: zwq - * @LastEditTime: 2021-04-25 14:52:11 + * @LastEditTime: 2022-03-11 09:16:13 * @FilePath: \basic-admin\src\api\menu.js * @Description: 菜单api接口定义 */ @@ -10,7 +10,7 @@ import request from '@/utils/request' // 获取菜单列表 export function getMenuList(data) { return request({ - url: '/upms/menu/list', + url: '/api/upms/menu/list', method: 'post', data }) @@ -19,7 +19,7 @@ export function getMenuList(data) { // 获取菜单详情 export function getMenuDetail(id) { return request({ - url: '/upms/menu/get', + url: '/api/upms/menu/get', method: 'post', data: { id } }) @@ -28,7 +28,7 @@ export function getMenuDetail(id) { // 新增菜单 export function addMenu(data) { return request({ - url: '/upms/menu/add', + url: '/api/upms/menu/add', method: 'post', data }) @@ -37,7 +37,7 @@ export function addMenu(data) { // 删除菜单 export function delMenu(id) { return request({ - url: '/upms/menu/delete', + url: '/api/upms/menu/delete', method: 'post', data: { id } }) @@ -46,7 +46,7 @@ export function delMenu(id) { // 启停菜单 export function enableMenu(data) { return request({ - url: '/upms/menu/enabled', + url: '/api/upms/menu/enabled', method: 'post', data }) @@ -55,7 +55,7 @@ export function enableMenu(data) { // 修改菜单 export function editMenu(data) { return request({ - url: '/upms/menu/update', + url: '/api/upms/menu/update', method: 'post', data }) @@ -64,7 +64,7 @@ export function editMenu(data) { // 菜单-角色关联授权 export function saveRoleMenu(data) { return request({ - url: '/upms/menu/saveRoleMenu', + url: '/api/upms/menu/saveRoleMenu', method: 'post', data }) @@ -73,7 +73,7 @@ export function saveRoleMenu(data) { // 菜单-角色关联获取 export function listByRole(id) { return request({ - url: '/upms/menu/listByRole', + url: '/api/upms/menu/listByRole', method: 'post', data: { id } }) diff --git a/src/api/orderManage/00A.js b/src/api/orderManage/00A.js index 1c62726..a0c93df 100644 --- a/src/api/orderManage/00A.js +++ b/src/api/orderManage/00A.js @@ -2,7 +2,7 @@ * @Author: zwq * @Date: 2022-01-17 14:55:09 * @LastEditors: zwq - * @LastEditTime: 2022-01-17 14:59:07 + * @LastEditTime: 2022-03-10 14:13:22 * @Description: */ @@ -16,6 +16,14 @@ export function ProcessInfoList(data) { // 获取工单工艺列表 }) } +export function ProcessInfoUpdata(data) { // 获取工单工艺列表 + return request({ + url: '/api/wms/work/order/update', + method: 'post', + data + }) +} + export function ProcessInfoDetail(id) { // 获取工单工艺单条数据 const data = { 'id': id diff --git a/src/api/org.js b/src/api/org.js index 9199156..409fe20 100644 --- a/src/api/org.js +++ b/src/api/org.js @@ -1,7 +1,7 @@ /* * @Date: 2021-01-04 17:34:38 * @LastEditors: zwq - * @LastEditTime: 2021-04-12 14:23:30 + * @LastEditTime: 2022-03-10 16:42:55 * @FilePath: \basic-admin\src\api\org.js * @Description: 框架基础模块——组织结构 */ @@ -10,7 +10,7 @@ import request from '@/utils/request' // 获取组织结构列表 export function getOrgList(data) { return request({ - url: '/upms/org/page', + url: '/api/upms/org/page', method: 'post', data }) @@ -18,7 +18,7 @@ export function getOrgList(data) { export function getOrgDetail(id) { // 获取组织结构单条数据 return request({ - url: '/upms/org/get', + url: '/api/upms/org/get', method: 'post', data: { id } }) @@ -26,7 +26,7 @@ export function getOrgDetail(id) { // 获取组织结构单条数据 // export function getOrgAllList(data) { // return request({ -// url: '/upms/org/list', +// url: '/api/upms/org/list', // method: 'post', // data // }) @@ -35,7 +35,7 @@ export function getOrgDetail(id) { // 获取组织结构单条数据 // 添加组织结构 export function addOrg(data) { return request({ - url: '/upms/org/add', + url: '/api/upms/org/add', method: 'post', data }) @@ -44,7 +44,7 @@ export function addOrg(data) { // 修改组织 export function editOrg(data) { return request({ - url: '/upms/org/update', + url: '/api/upms/org/update', method: 'post', data }) @@ -53,7 +53,7 @@ export function editOrg(data) { // 删除组织结构 export function delOrg(id) { return request({ - url: '/upms/org/delete', + url: '/api/upms/org/delete', method: 'post', data: { id } }) diff --git a/src/api/report-manage/report.js b/src/api/report-manage/report.js index 10cb9d2..da982a5 100644 --- a/src/api/report-manage/report.js +++ b/src/api/report-manage/report.js @@ -2,7 +2,7 @@ * @Author: gtz * @Date: 2021-03-07 18:39:03 * @LastEditors: fzq - * @LastEditTime: 2022-03-06 19:27:01 + * @LastEditTime: 2022-03-08 15:31:13 * @Description: file content */ import request from '@/utils/request' @@ -28,7 +28,8 @@ export function download(data) { url: '/api/report/report-storage-box/excel-download', method: 'post', data, - 'responseType': 'arraybuffer' + responseType: 'blob', + timeout: 60000 }) } diff --git a/src/api/role.js b/src/api/role.js index 4d2a51b..3f28695 100644 --- a/src/api/role.js +++ b/src/api/role.js @@ -10,7 +10,7 @@ import request from '@/utils/request' // 获取角色详细信息 export function getRoleInfo(data) { return request({ - url: `/upms/role/get`, + url: `/api/upms/role/get`, method: 'post', data }) @@ -18,7 +18,7 @@ export function getRoleInfo(data) { export function RoleCode() { // 获取code return request({ - url: '/upms/role/get-code', + url: '/api/upms/role/get-code', method: 'post' }) } @@ -26,7 +26,7 @@ export function RoleCode() { // 获取code // 获取角色列表 export function getRoleList(data) { return request({ - url: '/upms/role/list', + url: '/api/upms/role/list', method: 'post', data }) @@ -35,7 +35,7 @@ export function getRoleList(data) { // 添加角色 export function addRole(data) { return request({ - url: '/upms/role/add', + url: '/api/upms/role/add', method: 'post', data }) @@ -44,7 +44,7 @@ export function addRole(data) { // 修改角色 export function updateRole(data) { return request({ - url: '/upms/role/update', + url: '/api/upms/role/update', method: 'post', data }) @@ -53,7 +53,7 @@ export function updateRole(data) { // 删除角色 export function deleteRole(data) { return request({ - url: `/upms/role/delete`, + url: `/api/upms/role/delete`, method: 'post', data }) @@ -62,7 +62,7 @@ export function deleteRole(data) { // 启停角色 export function enableRole(data) { return request({ - url: `/upms/role/enabled`, + url: `/api/upms/role/enabled`, method: 'post', data }) @@ -71,7 +71,7 @@ export function enableRole(data) { // 用户-角色关联授权 export function saveUserRole(data) { return request({ - url: '/upms/role/saveUserRole', + url: '/api/upms/role/saveUserRole', method: 'post', data }) @@ -80,7 +80,7 @@ export function saveUserRole(data) { // 用户-角色关联获取 export function listByUser(id) { return request({ - url: '/upms/role/listByUser', + url: '/api/upms/role/listByUser', method: 'post', data: { id } }) diff --git a/src/api/user.js b/src/api/user.js index e2943f7..e2030b4 100644 --- a/src/api/user.js +++ b/src/api/user.js @@ -1,7 +1,7 @@ /* * @Date: 2020-12-14 09:07:03 * @LastEditors: zwq - * @LastEditTime: 2022-01-11 15:45:54 + * @LastEditTime: 2022-03-10 16:41:55 * @FilePath: \basic-admin\src\api\user.js * @Description: 用户管理 & 登录用户的相关api接口定义 */ @@ -38,7 +38,7 @@ export function getUserInfo(data) { // 修改当前用户密码 export function editUserPW(data) { return request({ - url: '/upms/user/modifyPassword', + url: '/api/upms/user/modifyPassword', method: 'post', data }) @@ -47,17 +47,17 @@ export function editUserPW(data) { // 当前用户 找回密码 export function findUserPW(data) { return request({ - url: '/upms/user/findPassword', + url: '/api/upms/user/findPassword', method: 'post', data }) } // 下面为:用户管理列表 -// 获取用户列表 (根据需求可以考虑换成带分页的 /upms/user/page) +// 获取用户列表 (根据需求可以考虑换成带分页的 /api/upms/user/page) export function getUserList(data) { return request({ - url: '/upms/user/page', + url: '/api/upms/user/page', method: 'post', data }) @@ -66,7 +66,7 @@ export function getUserList(data) { // 新增用户 export function addUser(data) { return request({ - url: '/upms/user/add', + url: '/api/upms/user/add', method: 'post', data }) @@ -75,7 +75,7 @@ export function addUser(data) { // 删除用户 export function delUser(data) { return request({ - url: '/upms/user/delete', + url: '/api/upms/user/delete', method: 'post', data }) @@ -84,7 +84,7 @@ export function delUser(data) { // 修改用户信息 export function editUser(data) { return request({ - url: '/upms/user/update', + url: '/api/upms/user/update', method: 'post', data }) @@ -93,7 +93,7 @@ export function editUser(data) { // 获取用户详细信息 export function getUserDetail(data) { return request({ - url: '/upms/user/get', + url: '/api/upms/user/get', method: 'post', data }) @@ -102,7 +102,7 @@ export function getUserDetail(data) { // 管理员重置用户的密码 export function resetUserPW(data) { return request({ - url: '/upms/user/resetPassword', + url: '/api/upms/user/resetPassword', method: 'post', data }) @@ -111,7 +111,7 @@ export function resetUserPW(data) { // 启停用户信息 export function enableUser(data) { return request({ - url: '/upms/user/enabled', + url: '/api/upms/user/enabled', method: 'post', data }) diff --git a/src/lang/i18n.js b/src/lang/i18n.js index b36fdc0..b655161 100644 --- a/src/lang/i18n.js +++ b/src/lang/i18n.js @@ -68,6 +68,10 @@ export default { zh: '返回', en: 'Back' }, + export: { + zh: '导出', + en: 'Export' + }, checkLog: { zh: '查看日志', en: 'Check Log' @@ -761,8 +765,8 @@ export default { en: 'Power Classification' }, ProcessInfo: { - zh: '工艺信息', - en: 'Process Info' + zh: '工单工艺信息', + en: 'Order Process Info' }, ExecutionInfo: { zh: '执行信息', diff --git a/src/lang/i18n/en/btn/index.js b/src/lang/i18n/en/btn/index.js index 026b468..2a0cae4 100644 --- a/src/lang/i18n/en/btn/index.js +++ b/src/lang/i18n/en/btn/index.js @@ -1,8 +1,8 @@ /* * @Author: gtz * @Date: 2021-03-04 16:19:14 - * @LastEditors: Please set LastEditors - * @LastEditTime: 2021-07-13 20:32:02 + * @LastEditors: fzq + * @LastEditTime: 2022-03-08 15:48:54 * @Description: file content */ @@ -90,5 +90,9 @@ export default { download: { zh: '下载', en: 'download' + }, + export: { + zh: '导出', + en: 'export' } } diff --git a/src/lang/i18n/en/module/basicData.js b/src/lang/i18n/en/module/basicData.js index 6b0ec17..ae4cedb 100644 --- a/src/lang/i18n/en/module/basicData.js +++ b/src/lang/i18n/en/module/basicData.js @@ -2,7 +2,7 @@ * @Author: gtz * @Date: 2021-03-04 16:13:51 * @LastEditors: zwq - * @LastEditTime: 2022-03-04 15:24:39 + * @LastEditTime: 2022-03-11 08:28:27 * @Description: file content */ export default { @@ -30,6 +30,7 @@ export default { cancelButtonText: 'cancel', Tips: 'Tips', TipsBefore: 'Are you sure you want to delete', + TipsStorageBefore: 'Confirm to add location:', Description: 'Description', Remarks: 'Remarks', Yes: 'Yes', @@ -126,6 +127,20 @@ export default { AlarmTypeCode: 'Alarm Type Code', LevelCode: 'Level Code' }, + processLocation: { + sequence: 'Sequence', + locationName: 'Location Name', + isProcess: 'Location Type', + locationId: 'Location Id', + workSequenId: 'Work Sequence Id', + equipmentMark: 'Equipment Mark', + portAttrId: 'Port Attribute Id', + goodsShelves: 'Goods Shelves', + ProcessLocation: 'Process Location', + CacheLocation: 'Cache Location', + aShelf: 'Shelf A', + bShelf: 'Shelf B' + }, cache: { CacheCode: 'Ports Code', CacheName: 'Ports Name', @@ -147,7 +162,10 @@ export default { LocationName: 'Location Name', anotherName: 'Another Name', place: 'Place', - addCacheArea: 'add Ports Shelf' + addCacheArea: 'add Ports Shelf', + warning: 'Layers and Columns must be integer!', + logisticsEquipment: 'Logistics Equipment', + processEquipment: 'Process Equipment' }, storageBox: { name: 'Name', @@ -295,15 +313,20 @@ export default { TaskLocation: 'Task Location', TargetLocation: 'Target Location', OrderName: 'Order Name', + OrderType: 'Order Type', OrderCode: 'Order Code', IssueOrderTime: 'Issue Order Time', + startProduceTime: 'Start Produce Time', TotalProcessName: 'Total Process Name', Priority: 'Priority', OrderStatus: 'Order Status', + triggerOrigin: 'Trigger Origin', ProcessOrNot: 'Process Or Not', Unit: 'Unit', + scrapQuantity: 'Scrap Quantity', RelateProcess: 'Relate Process', PlanProcessQuantity: 'Plan Process Quantity', + actualProcessQuantity: 'Actual Process Quantity', SubProcessName: 'Sub Process Name', TaskBoxNumber: 'Task Box Number', FullBoxNumber: 'Full Box Number', @@ -318,6 +341,8 @@ export default { LocationName: 'Location Name', LocationCode: 'Location Code', PerformTaskManual: 'Perform Task Manual', - processStorageLink: 'Process Storage Link' + processStorageLink: 'Process Storage Link', + SelectStorageType: 'Select Storage Type', + LocationStorageSetting: 'Location Storage Setting' } } diff --git a/src/lang/i18n/zh/module/basicData.js b/src/lang/i18n/zh/module/basicData.js index ad889f2..14a5168 100644 --- a/src/lang/i18n/zh/module/basicData.js +++ b/src/lang/i18n/zh/module/basicData.js @@ -2,7 +2,7 @@ * @Author: gtz * @Date: 2021-03-04 16:13:51 * @LastEditors: zwq - * @LastEditTime: 2022-03-07 09:14:33 + * @LastEditTime: 2022-03-11 08:28:40 */ export default { visual: { @@ -29,6 +29,7 @@ export default { cancelButtonText: '取消', Tips: '提示', TipsBefore: '确定删除', + TipsStorageBefore: '确定添加库位:', Description: '描述', Remarks: '备注', Or: '或', @@ -151,7 +152,10 @@ export default { place: '位置', addCacheArea: '添加货架', addLocation: '添加库位', - status: '状态' + status: '状态', + warning: '行列标必须为整数!', + logisticsEquipment: '物流设备', + processEquipment: '工艺设备' }, storageBox: { name: '存储箱名称', @@ -248,10 +252,16 @@ export default { processLocation: { sequence: '顺序', locationName: '库位名', - isProcess: '是否为工序准备箱', + isProcess: '库位类型', locationId: '库位ID', workSequenId: '工序ID', - equipmentMark: '设备标记' + equipmentMark: '设备标记', + portAttrId: '库位属性ID', + goodsShelves: '货架', + CacheLocation: '缓存区库位', + ProcessLocation: '工序库位', + aShelf: 'a货架', + bShelf: 'b货架' }, productPool: { productName: '产品名称', @@ -309,15 +319,20 @@ export default { TaskLocation: '任务库位', TargetLocation: '目标库位', OrderName: '工单名', + OrderType: '工单类型', OrderCode: '工单编码', IssueOrderTime: '下发工单时间', + startProduceTime: '开始生产时间', TotalProcessName: '总工艺名称', Priority: '优先级', + scrapQuantity: '废片数量', OrderStatus: '工单状态', + triggerOrigin: '工单发起方', ProcessOrNot: '是否关联工艺', Unit: '单位', RelateProcess: '关联工艺', PlanProcessQuantity: '计划加工数量', + actualProcessQuantity: '实际加工数量', SubProcessName: '分工艺', TaskBoxNumber: '任务箱号', FullBoxNumber: '空箱号', @@ -332,6 +347,8 @@ export default { LocationName: '库位名', LocationCode: '库位编码', PerformTaskManual: '手动执行任务', - processStorageLink: '工序关联库位' + processStorageLink: '工序关联库位', + SelectStorageType: '选择库位类型', + LocationStorageSetting: '库位存储箱设置' } } diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue index e968af1..80e37a8 100644 --- a/src/layout/components/Navbar.vue +++ b/src/layout/components/Navbar.vue @@ -34,16 +34,6 @@ - - - - {{ 'navbar.profile' | i18nFilter }} - - - - - {{ 'navbar.help' | i18nFilter }} - {{ 'navbar.logOut' | i18nFilter }} diff --git a/src/router/index.js b/src/router/index.js index fef6691..ed1f480 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -159,6 +159,7 @@ export const constantRoutes = [ path: 'processInfo', component: () => import('@/views/basicData/Process/processInfo'), name: 'processInfo', + hidden: true, meta: { title: routerTitle.basicData.process.processInfo?.[language] || routerTitle.basicData.process.processInfo.en, icon: 'form', affix: true, required: true, requireToken: true } }, { @@ -313,6 +314,14 @@ export const constantRoutes = [ import('@/views/basicData/Warehouse/components/ProcessStorageManagement-info'), name: 'ProcessStorageManagementInfo', meta: { title: routerTitle.Warehouse.ProcessStorageManagement?.[language] || routerTitle.Warehouse.ProcessStorageManagement.en, icon: 'form', affix: true, required: true, requireToken: true } + }, + { + path: '/ProcessStorageLink', + hidden: true, + component: () => + import('@/views/basicData/Warehouse/components/processStorageLink'), + name: 'ProcessStorageLink', + meta: { title: routerTitle.Warehouse.ProcessStorageManagement?.[language] || routerTitle.Warehouse.ProcessStorageManagement.en, icon: 'form', affix: true, required: true, requireToken: true } } ] }, @@ -426,6 +435,7 @@ export const constantRoutes = [ path: 'currentSubstrate', component: () => import('@/views/report-manage/CurrentSubstrate'), name: 'currentSubstrate', + hidden: true, meta: { title: routerTitle.form.currentSubstrate?.[language] || routerTitle.form.currentSubstrate.en, icon: 'form', affix: true, required: true, requireToken: true } }, { diff --git a/src/views/QualityManager/scrap/ScrapInfo-add.vue b/src/views/QualityManager/scrap/ScrapInfo-add.vue index a7fffff..aca8d97 100644 --- a/src/views/QualityManager/scrap/ScrapInfo-add.vue +++ b/src/views/QualityManager/scrap/ScrapInfo-add.vue @@ -2,7 +2,7 @@ * @Author: zwq * @Date: 2020-12-29 16:37:56 * @LastEditors: zwq - * @LastEditTime: 2022-03-04 10:39:52 + * @LastEditTime: 2022-03-11 09:48:52 * @Description: -->