From 82f44b5a620112bb3f9955e380989ca54ca9dc71 Mon Sep 17 00:00:00 2001 From: Fanzink <460995166@qq.com> Date: Sat, 5 Mar 2022 19:43:42 +0800 Subject: [PATCH 1/3] =?UTF-8?q?'=E5=9F=BA=E7=A1=80+=E6=8A=A5=E8=A1=A8'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.production | 2 +- .../basicData/Equipment/equipmentInfoAttr.js | 4 +- src/api/report-manage/report.js | 65 +++++- src/filters/index.js | 4 +- src/lang/i18n.js | 20 ++ src/lang/i18n/zh/module/report.js | 26 ++- src/router/index.js | 91 +++----- .../Cache/components/location-add.vue | 25 ++- .../Cache/components/locationAttr-add.vue | 8 +- src/views/basicData/Cache/shelf.vue | 10 +- .../components/equipmentInfo-add.vue | 132 +++++------ .../components/equipmentInfoAttr-add.vue | 19 +- .../basicData/Equipment/equipmentInfo.vue | 2 +- src/views/report-manage/CurrentEmptyBox.vue | 203 +++++++++++++++++ src/views/report-manage/CurrentInventory.vue | 211 ++++++++++++++++++ src/views/report-manage/CurrentSubstrate.vue | 203 +++++++++++++++++ .../components/edit-substrate.vue | 109 +++++++++ .../report-manage/components/substrateBtn.vue | 35 +++ .../components/viewSubstrate.vue | 191 ++++++++++++++++ vue.config.js | 4 +- 20 files changed, 1198 insertions(+), 166 deletions(-) create mode 100644 src/views/report-manage/CurrentEmptyBox.vue create mode 100644 src/views/report-manage/CurrentInventory.vue create mode 100644 src/views/report-manage/CurrentSubstrate.vue create mode 100644 src/views/report-manage/components/edit-substrate.vue create mode 100644 src/views/report-manage/components/substrateBtn.vue create mode 100644 src/views/report-manage/components/viewSubstrate.vue 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/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..3ea3900 100644 --- a/src/api/report-manage/report.js +++ b/src/api/report-manage/report.js @@ -1,15 +1,31 @@ /* * @Author: gtz * @Date: 2021-03-07 18:39:03 - * @LastEditors: zwq - * @LastEditTime: 2022-02-25 09:05:53 + * @LastEditors: fzq + * @LastEditTime: 2022-03-05 17:05:03 * @Description: file content */ import request from '@/utils/request' - +// 获取当前库存存储箱列表 +export function list(data) { + return request({ + url: '/api/report/report-storage-box/list', + method: 'post', + data + }) +} +// 获取当前库存存储箱分页报表 export function page(data) { return request({ - url: '/api/report/report-sheet/page', + 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 }) @@ -47,3 +63,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..082526c 100644 --- a/src/lang/i18n.js +++ b/src/lang/i18n.js @@ -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/report.js b/src/lang/i18n/zh/module/report.js index 669a863..8314e43 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-05 18:24:15 * @Description: file content */ @@ -11,7 +11,27 @@ export default { reportName: '报表名称', reportSort: '报表分类', createTime: '添加时间', - operation: '操作' + operation: '操作', + storageBoxNumber: '存储箱号', + queryFiltering: '查询过滤' + }, + inventory: { + code: '存储箱号', + status: '存储箱状态', + inprocessCode: '完成工序', + nextprocessCode: '下一个工序', + currentLocation: '当前库位', + storeTime: '存放时间', + orderName: '工单名', + substrateDetails: '详情基板', + viewSubstrates: '查看基板' + }, + substrate: { + substrateCode: '基板编码', + location: '当前位置', + storeTime: '入库时间', + substrateStatus: '基板状态', + editSubstrate: '编辑基板' }, reportSort: { all: '全部' diff --git a/src/router/index.js b/src/router/index.js index fa863f4..44c2f4a 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 } }, { @@ -185,6 +186,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 +325,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 +397,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: -->