diff --git a/.env.production b/.env.production index 5a9ba7d..01e362e 100644 --- a/.env.production +++ b/.env.production @@ -2,6 +2,6 @@ ENV = 'production' # base api -VUE_APP_BASE_API = '' +VUE_APP_BASE_API = '/api' VUE_APP_REPORT_DESIGN_URL = '/ureport/designer' VUE_APP_REPORT_VIEW_URL = '/ureport/preview' diff --git a/src/api/basicData/Cache/processLocation.js b/src/api/basicData/Cache/processLocation.js new file mode 100644 index 0000000..2272052 --- /dev/null +++ b/src/api/basicData/Cache/processLocation.js @@ -0,0 +1,48 @@ +/* + * @Descripttion: + * @version: + * @Author: fzq + * @Date: 2022-03-06 18:13:49 + * @LastEditors: fzq + * @LastEditTime: 2022-03-06 18:29:43 + */ +import request from '@/utils/request' + +export function list(data) { // 获取工序库位信息列表 + return request({ + url: '/api/wms/processlocation/page', + method: 'post', + data + }) +} + +export function detail(id) { // 获取工序库位信息单条数据 + return request({ + url: '/api/wms/processlocation/getById', + method: 'post', + data: { id } + }) +} +export function update(data) { // 更新工序库位信息单条数据 + return request({ + url: '/api/wms/processlocation/update', + method: 'post', + data + }) +} + +export function add(data) { // 手动绑定工序库位 + return request({ + url: '/api/wms/processlocation/add', + method: 'post', + data + }) +} + +export function locaDelete(id) { // 删除工序库位信息单条数据 + return request({ + url: '/api/wms/processlocation/delete', + method: 'post', + data: { id } + }) +} diff --git a/src/api/basicData/Equipment/equipmentInfoAttr.js b/src/api/basicData/Equipment/equipmentInfoAttr.js index ac209c4..b273a90 100644 --- a/src/api/basicData/Equipment/equipmentInfoAttr.js +++ b/src/api/basicData/Equipment/equipmentInfoAttr.js @@ -2,7 +2,7 @@ * @Author: zwq * @Date: 2020-12-29 16:00:14 * @LastEditors: fzq - * @LastEditTime: 2022-03-03 20:09:43 + * @LastEditTime: 2022-03-05 10:22:28 * @Description: */ import request from '@/utils/request' @@ -10,7 +10,7 @@ import request from '@/utils/request' export function equipmentInfoAttrList(data) { // 获取设备属性列表 return request({ // url: '/basic/equipment-attr/page', - url: '/api/wms/equipment/page', + url: '/api/wms/equipment/attr', method: 'post', data }) diff --git a/src/api/report-manage/report.js b/src/api/report-manage/report.js index 5113b10..10cb9d2 100644 --- a/src/api/report-manage/report.js +++ b/src/api/report-manage/report.js @@ -1,19 +1,36 @@ /* * @Author: gtz * @Date: 2021-03-07 18:39:03 - * @LastEditors: zwq - * @LastEditTime: 2022-02-25 09:05:53 + * @LastEditors: fzq + * @LastEditTime: 2022-03-06 19:27:01 * @Description: file content */ import request from '@/utils/request' - -export function page(data) { +// 获取当前库存存储箱列表 +export function list(data) { return request({ - url: '/api/report/report-sheet/page', + url: '/api/report/report-storage-box/list', method: 'post', data }) } +// 获取当前库存存储箱分页报表 +export function page(data) { + return request({ + url: '/api/report/report-storage-box/page', + method: 'post', + data + }) +} +// 导出当前库存存储箱列表 +export function download(data) { + return request({ + url: '/api/report/report-storage-box/excel-download', + method: 'post', + data, + 'responseType': 'arraybuffer' + }) +} export function del(data) { return request({ @@ -47,3 +64,44 @@ export function listCategory(data) { data }) } + +// 获取当前存储箱对应基板列表 +export function listSubstrate(data) { + return request({ + url: '/api/report/report-substrate/list', + method: 'post', + data + }) +} +// 删除基板信息 +export function deleSubstrate(data) { + return request({ + url: '/api/report/report-substrate/delete', + method: 'post', + data + }) +} +// 获取当前存储箱对应基板分页报表 +export function pageSubstrate(data) { + return request({ + url: '/api/report/report-substrate/page', + method: 'post', + data + }) +} +// 更新基板信息 +export function updateSubstrate(data) { + return request({ + url: '/api/report/report-substrate/update', + method: 'post', + data + }) +} +// 导出当前存储箱对应基板列表 +export function downloadSubstrate(data) { + return request({ + url: '/api/report/report-substrate/excel-download', + method: 'post', + data + }) +} diff --git a/src/filters/index.js b/src/filters/index.js index 4ae44e7..3b3add6 100644 --- a/src/filters/index.js +++ b/src/filters/index.js @@ -1,7 +1,7 @@ /* * @Date: 2020-12-14 09:07:03 - * @LastEditors: Please set LastEditors - * @LastEditTime: 2021-07-22 09:12:23 + * @LastEditors: fzq + * @LastEditTime: 2022-03-05 11:13:00 * @FilePath: \basic-admin\src\filters\index.js * @Description: 过滤器定义、多语言过滤器修改 */ diff --git a/src/lang/i18n.js b/src/lang/i18n.js index f3416b2..a150261 100644 --- a/src/lang/i18n.js +++ b/src/lang/i18n.js @@ -594,14 +594,14 @@ export default { }, process: { zh: '工序信息', - en: 'Process Info', + en: 'ProcessLocation Info', processInfo: { - zh: '工序信息', - en: 'Process Info' + zh: '工序库位信息', + en: 'ProcessLocation Info' }, processInfoAdd: { - zh: '工序信息管理', - en: 'Process Manage' + zh: '工序库位信息管理', + en: 'ProcessLocation Manage' } }, equipment: { @@ -940,6 +940,26 @@ export default { form: { zh: '报表管理', en: 'Report Form', + currentInventory: { + zh: '当前库存', + en: 'Current Inventory' + }, + currentEmptyBox: { + zh: '当前仓库空箱信息', + en: 'Current Empty Box' + }, + currentSubstrate: { + zh: '当前基板流转情况', + en: 'Current Substrate' + }, + viewSubstrate: { + zh: '查看基板', + en: 'View Substrate' + }, + editSubstrate: { + zh: '编辑基板', + en: 'Edit Substrate' + }, report: { zh: '报表列表', en: 'Report List' diff --git a/src/lang/i18n/zh/module/basicData.js b/src/lang/i18n/zh/module/basicData.js index 1ad977e..61a1620 100644 --- a/src/lang/i18n/zh/module/basicData.js +++ b/src/lang/i18n/zh/module/basicData.js @@ -3,7 +3,7 @@ * @Date: 2021-03-04 16:13:51 <<<<<<< HEAD * @LastEditors: fzq - * @LastEditTime: 2022-03-03 19:52:51 + * @LastEditTime: 2022-03-06 19:53:27 ======= * @LastEditors: zwq * @LastEditTime: 2022-03-04 10:13:41 @@ -160,8 +160,8 @@ export default { status: '状态' }, storageBox: { - name: '名称', - code: '编码', + name: '存储箱名称', + code: '存储箱编码', alias: '别名', StorageQuantity: '存储数量', status: '状态', @@ -251,6 +251,14 @@ export default { manual: '手动', workOrderId: '工单名称' }, + processLocation: { + sequence: '顺序', + locationName: '库位名', + isProcess: '是否为工序准备箱', + locationId: '库位ID', + workSequenId: '工序ID', + equipmentMark: '设备标记' + }, productPool: { productName: '产品名称', productCode: '产品编码' diff --git a/src/lang/i18n/zh/module/report.js b/src/lang/i18n/zh/module/report.js index 669a863..ff6d805 100644 --- a/src/lang/i18n/zh/module/report.js +++ b/src/lang/i18n/zh/module/report.js @@ -1,8 +1,8 @@ /* * @Author: gtz * @Date: 2021-04-22 19:48:46 - * @LastEditors: gtz - * @LastEditTime: 2021-04-27 12:13:25 + * @LastEditors: fzq + * @LastEditTime: 2022-03-06 16:50:50 * @Description: file content */ @@ -11,7 +11,30 @@ export default { reportName: '报表名称', reportSort: '报表分类', createTime: '添加时间', - operation: '操作' + operation: '操作', + storageBoxNumber: '存储箱号', + queryFiltering: '查询过滤' + }, + inventory: { + code: '存储箱号', + status: '存储箱状态', + inprocessCode: '完成工序', + nextprocessCode: '下一个工序', + currentLocation: '当前库位', + storeTime: '存放时间', + orderName: '工单名', + substrateDetails: '详情基板', + viewSubstrates: '查看基板', + manual: '使用流程', + downl: '导出' + }, + substrate: { + substrateCode: '基板编码', + location: '当前位置', + storeTime: '入库时间', + substrateStatus: '基板状态', + editSubstrate: '编辑基板', + interCode: '内部编码' }, reportSort: { all: '全部' diff --git a/src/router/index.js b/src/router/index.js index fa863f4..d149f69 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -185,6 +185,7 @@ export const constantRoutes = [ path: '/Materials', component: () => import('@/views/basicData/index'), name: 'Materials', + hidden: true, meta: { title: routerTitle.basicData.materials?.[language] || routerTitle.basicData.materials.en, icon: 'form', affix: true, required: true, requireToken: true }, children: [ { @@ -323,45 +324,6 @@ 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, @@ -434,36 +396,36 @@ export const constantRoutes = [ 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: 'currentInventory', + component: () => import('@/views/report-manage/CurrentInventory'), + name: 'currentInventory', + meta: { title: routerTitle.form.currentInventory?.[language] || routerTitle.form.currentInventory.en, icon: 'form', affix: true, required: true, requireToken: true } }, { - path: 'report-sort-list', - component: () => import('@/views/report-manage/Report'), - name: 'ReportSortList', + path: 'currentEmptyBox', + component: () => import('@/views/report-manage/CurrentEmptyBox'), + name: 'currentEmptyBox', + meta: { title: routerTitle.form.currentEmptyBox?.[language] || routerTitle.form.currentEmptyBox.en, icon: 'form', affix: true, required: true, requireToken: true } + }, + { + path: 'currentSubstrate', + component: () => import('@/views/report-manage/CurrentSubstrate'), + name: 'currentSubstrate', + meta: { title: routerTitle.form.currentSubstrate?.[language] || routerTitle.form.currentSubstrate.en, icon: 'form', affix: true, required: true, requireToken: true } + }, + { + path: 'editSubstrate', + component: () => import('@/views/report-manage/components/edit-substrate'), + name: 'editSubstrate', hidden: true, - meta: { title: routerTitle.form.reportSortList?.[language] || routerTitle.form.reportSortList.en, icon: 'form', affix: true, required: true, requireToken: true } + meta: { title: routerTitle.form.editSubstrate?.[language] || routerTitle.form.editSubstrate.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: 'viewSubstrate', + component: () => import('@/views/report-manage/components/viewSubstrate'), + name: 'viewSubstrate', + hidden: true, + meta: { title: routerTitle.form.viewSubstrate?.[language] || routerTitle.form.viewSubstrate.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 b3907e9..098eefe 100644 --- a/src/views/basicData/Cache/components/location-add.vue +++ b/src/views/basicData/Cache/components/location-add.vue @@ -2,15 +2,22 @@ * @Author: zwq * @Date: 2020-12-29 15:41:11 * @LastEditors: fzq - * @LastEditTime: 2022-03-03 19:37:48 + * @LastEditTime: 2022-03-04 19:08:00 * @Description: -->