From 95afd175a35210e6e5272e3ddcae1f7e4feb9e2b Mon Sep 17 00:00:00 2001 From: Fanzink <460995166@qq.com> Date: Mon, 7 Mar 2022 08:43:56 +0800 Subject: [PATCH 1/2] '' --- vue.config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vue.config.js b/vue.config.js index ee7ccf1..f778620 100644 --- a/vue.config.js +++ b/vue.config.js @@ -46,9 +46,9 @@ module.exports = { // 这里写入需要代理的api和对应的目标地址 proxy: { '/api': { - target: 'http://localhost:8080', + // target: 'http://localhost:8080', // target: 'http://192.168.0.148:8080', - // target: 'http://a.wms.picaiba.com/api', + target: 'http://a.wms.picaiba.com/api', // target: 'http://192.168.0.127:8080', // target: 'http://192.168.0.165:8080', // target: 'http://192.168.43.105:8080', From 7afe3c3ec790e916e691957570002d1ec727a5bc Mon Sep 17 00:00:00 2001 From: Fanzink <460995166@qq.com> Date: Thu, 10 Mar 2022 21:15:33 +0800 Subject: [PATCH 2/2] =?UTF-8?q?'=E4=BF=AE=E6=94=B9bug'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/basicData/Cache/processLocation.js | 26 +++- src/api/report-manage/report.js | 5 +- src/lang/i18n.js | 4 + src/lang/i18n/en/btn/index.js | 8 +- src/lang/i18n/en/module/basicData.js | 23 ++- src/lang/i18n/zh/module/basicData.js | 22 +-- src/router/index.js | 2 + .../Cache/components/location-add.vue | 28 +++- .../Cache/components/locationAttr-add.vue | 45 +++++- .../Cache/components/locationBtn.vue | 7 +- .../basicData/Cache/components/shelf-add.vue | 8 +- .../Cache/components/shelfAttr-add.vue | 60 +++++--- .../Cache/components/storageBox-add.vue | 6 +- src/views/basicData/Cache/shelf.vue | 16 +-- src/views/basicData/Cache/storageBox.vue | 16 +-- .../components/equipmentInfo-add.vue | 41 ++++-- .../basicData/Equipment/equipmentInfo.vue | 21 ++- src/views/basicData/GroupModule/staff.vue | 9 +- .../Process/components/processInfo-add.vue | 131 ++++++++++++++---- src/views/basicData/Process/processInfo.vue | 58 ++++---- .../components/StorageBoxRack-add.vue | 4 +- src/views/report-manage/CurrentInventory.vue | 19 ++- .../report-manage/components/HeadForm.vue | 4 +- .../components/edit-substrate.vue | 3 +- .../components/viewSubstrate.vue | 9 +- 25 files changed, 419 insertions(+), 156 deletions(-) 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/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/lang/i18n.js b/src/lang/i18n.js index a150261..bebf9b3 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' 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 540e899..5fd471e 100644 --- a/src/lang/i18n/en/module/basicData.js +++ b/src/lang/i18n/en/module/basicData.js @@ -1,8 +1,8 @@ /* * @Author: gtz * @Date: 2021-03-04 16:13:51 - * @LastEditors: zwq - * @LastEditTime: 2022-03-04 10:13:58 + * @LastEditors: fzq + * @LastEditTime: 2022-03-10 14:05:21 * @Description: file content */ export default { @@ -126,6 +126,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 +161,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', diff --git a/src/lang/i18n/zh/module/basicData.js b/src/lang/i18n/zh/module/basicData.js index 61a1620..6db1a53 100644 --- a/src/lang/i18n/zh/module/basicData.js +++ b/src/lang/i18n/zh/module/basicData.js @@ -1,13 +1,8 @@ /* * @Author: gtz * @Date: 2021-03-04 16:13:51 -<<<<<<< HEAD * @LastEditors: fzq - * @LastEditTime: 2022-03-06 19:53:27 -======= - * @LastEditors: zwq - * @LastEditTime: 2022-03-04 10:13:41 ->>>>>>> develop + * @LastEditTime: 2022-03-10 14:05:01 * @Description: file content */ export default { @@ -157,7 +152,10 @@ export default { place: '位置', addCacheArea: '添加货架', addLocation: '添加库位', - status: '状态' + status: '状态', + warning: '行列标必须为整数!', + logisticsEquipment: '物流设备', + processEquipment: '工艺设备' }, storageBox: { name: '存储箱名称', @@ -254,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: '产品名称', diff --git a/src/router/index.js b/src/router/index.js index d149f69..72f24d0 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 } }, { @@ -411,6 +412,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/basicData/Cache/components/location-add.vue b/src/views/basicData/Cache/components/location-add.vue index 098eefe..12a5303 100644 --- a/src/views/basicData/Cache/components/location-add.vue +++ b/src/views/basicData/Cache/components/location-add.vue @@ -2,7 +2,7 @@ * @Author: zwq * @Date: 2020-12-29 15:41:11 * @LastEditors: fzq - * @LastEditTime: 2022-03-04 19:08:00 + * @LastEditTime: 2022-03-10 21:00:58 * @Description: -->