From ac4565e587242c0310fd0c2e086de68a1b209220 Mon Sep 17 00:00:00 2001 From: juzi <819872918@qq.com> Date: Tue, 24 Oct 2023 15:16:20 +0800 Subject: [PATCH] =?UTF-8?q?=E7=8F=AD=E7=BB=84&=E8=83=BD=E6=BA=90=E5=9F=BA?= =?UTF-8?q?=E7=A1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.dev | 8 +- src/api/base/customer.js | 8 + src/api/base/factory.js | 2 +- src/api/base/groupTeam.js | 46 +++ src/api/base/groupTeamScheduling.js | 9 + src/api/base/orderManage.js | 44 +++ src/api/base/product.js | 8 + src/api/base/productionLine.js | 2 +- src/api/base/workOrder.js | 8 + src/api/base/worker.js | 17 + src/api/base/workshopSection.js | 2 +- src/api/monitoring/groupTeamView.js | 27 ++ src/api/monitoring/orderEnergy.js | 19 ++ src/utils/dict.js | 7 +- .../components/energyPlcConnectAdd.vue | 7 +- .../energy/base/energyPlcConnect/index.vue | 4 - .../base/energyQuantityRealtime/index.vue | 4 +- .../energy/monitoring/energyLimit/index.vue | 5 +- .../monitoring/energyOverlimitLog/index.vue | 4 +- .../components/energyStatisticsDet.vue | 4 +- .../components/energyStatisticsDetAdd.vue | 4 +- .../orderEnergy/components/barChart.vue | 93 ++++++ .../energy/monitoring/orderEnergy/index.vue | 269 ++++++++++++++++ src/views/group/base/groupClasses/index.vue | 28 +- .../groupTeam/components/groupTeamAdd.vue | 49 ++- .../base/groupTeam/components/statusBtn.vue | 16 +- .../base/groupTeam/components/workerEdit.vue | 298 ++++++++++++++++++ .../groupTeam/components/workerOperate.vue | 41 +++ .../groupTeam/components/workerTeamAdd.vue | 113 +++++++ src/views/group/base/groupTeam/index.vue | 53 +++- .../components/schedulingMonitoringDetail.vue | 46 +++ .../monitoring/groupTeamScheduling/index.vue | 154 +++++++++ .../components/groupTeamViewDetail.vue | 85 +++++ .../group/monitoring/groupTeamView/index.vue | 130 ++++++++ .../base/orderManage/components/orderAdd.vue | 243 ++++++++++++++ src/views/order/base/orderManage/index.vue | 244 ++++++++++++++ vue.config.js | 2 +- 37 files changed, 2029 insertions(+), 74 deletions(-) create mode 100644 src/api/base/customer.js create mode 100644 src/api/base/orderManage.js create mode 100644 src/api/base/product.js create mode 100644 src/api/base/workOrder.js create mode 100644 src/api/base/worker.js create mode 100644 src/api/monitoring/groupTeamView.js create mode 100644 src/api/monitoring/orderEnergy.js create mode 100644 src/views/energy/monitoring/orderEnergy/components/barChart.vue create mode 100644 src/views/energy/monitoring/orderEnergy/index.vue create mode 100644 src/views/group/base/groupTeam/components/workerEdit.vue create mode 100644 src/views/group/base/groupTeam/components/workerOperate.vue create mode 100644 src/views/group/base/groupTeam/components/workerTeamAdd.vue create mode 100644 src/views/group/monitoring/groupTeamScheduling/components/schedulingMonitoringDetail.vue create mode 100644 src/views/group/monitoring/groupTeamScheduling/index.vue create mode 100644 src/views/group/monitoring/groupTeamView/components/groupTeamViewDetail.vue create mode 100644 src/views/group/monitoring/groupTeamView/index.vue create mode 100644 src/views/order/base/orderManage/components/orderAdd.vue create mode 100644 src/views/order/base/orderManage/index.vue diff --git a/.env.dev b/.env.dev index 2f15db72..74d7cc86 100644 --- a/.env.dev +++ b/.env.dev @@ -9,13 +9,11 @@ ENV = 'development' # 页面标题 -VUE_APP_TITLE = 产线监控系统 +VUE_APP_TITLE = MES系统 # 芋道管理系统/开发环境 -# VUE_APP_BASE_API = 'http://192.168.1.49:48080' -# VUE_APP_BASE_API = 'http://192.168.1.8:48080' -VUE_APP_BASE_API = 'http://192.168.0.33:48080' -# VUE_APP_BASE_API = 'http://192.168.1.188:48080' +VUE_APP_BASE_API = 'http://192.168.0.33:48082' +# VUE_APP_BASE_API = 'http://192.168.2.173:48080' # 路由懒加载 VUE_CLI_BABEL_TRANSPILE_MODULES = true diff --git a/src/api/base/customer.js b/src/api/base/customer.js new file mode 100644 index 00000000..3408429d --- /dev/null +++ b/src/api/base/customer.js @@ -0,0 +1,8 @@ +import request from '@/utils/request' +// 获得所有客户列表 +export function getCustomerList() { + return request({ + url: '/base/core-customer/listAll', + method: 'get' + }) +} \ No newline at end of file diff --git a/src/api/base/factory.js b/src/api/base/factory.js index 76829191..6597ec2d 100644 --- a/src/api/base/factory.js +++ b/src/api/base/factory.js @@ -2,7 +2,7 @@ import request from '@/utils/request' // 获得工厂产线工段设备树形结构 export function getTree() { return request({ - url: '/base/factory/getTree', + url: '/base/core-factory/getTree', method: 'get' }) } \ No newline at end of file diff --git a/src/api/base/groupTeam.js b/src/api/base/groupTeam.js index 04a3ca19..32d752aa 100644 --- a/src/api/base/groupTeam.js +++ b/src/api/base/groupTeam.js @@ -58,3 +58,49 @@ export function listEnabled() { method: 'get' }) } + +// 获得班组组员信息分页 +export function groupTeamPage(query) { + return request({ + url: '/base/group-team-det/page', + method: 'get', + params: query + }) +} + +// 获得班组组员信息 +export function groupTeamDet(query) { + return request({ + url: '/base/group-team-det/get', + method: 'get', + params: query + }) +} + + +// 创建班组组员信息 +export function teamDetCreate(data) { + return request({ + url: '/base/group-team-det/create', + method: 'post', + data: data + }) +} + +// 更新班组组员信息 +export function teamDetUpdate(data) { + return request({ + url: '/base/group-team-det/update', + method: 'put', + data: data + }) +} + +// 删除班组组员信息 +export function teamDetDelete(query) { + return request({ + url: '/base/group-team-det/delete', + method: 'delete', + params: query + }) +} diff --git a/src/api/base/groupTeamScheduling.js b/src/api/base/groupTeamScheduling.js index 95e38dd6..35f754bf 100644 --- a/src/api/base/groupTeamScheduling.js +++ b/src/api/base/groupTeamScheduling.js @@ -25,4 +25,13 @@ export function autoSet(query) { method: 'get', params: query }) +} + +// 获得排班信息分页 建议size 150 +export function groupTeamSchedulingPage(query) { + return request({ + url: '/base/group-team-scheduling/page', + method: 'get', + params: query + }) } \ No newline at end of file diff --git a/src/api/base/orderManage.js b/src/api/base/orderManage.js new file mode 100644 index 00000000..8f8d1cf5 --- /dev/null +++ b/src/api/base/orderManage.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' +// 条件获得订单列表 +export function orderList(query) { + return request({ + url: '/base/order/listbyfilter', + method: 'get', + params: query + }) +} + +// 条件获得工单列表 +export function workOrderList(query) { + return request({ + url: '/base/core-work-order/listbyfilter', + method: 'get', + params: query + }) +} + +// 获得订单分页 +export function getOrderPage(query) { + return request({ + url: '/base/order/page', + method: 'get', + params: query + }) +} + +// 获取订单code +export function getOrderCode() { + return request({ + url: '/base/order/getOrderCode', + method: 'get' + }) +} + +// 获得订单 +export function getOrderById(query) { + return request({ + url: '/base/order/get', + method: 'get', + params: query + }) +} \ No newline at end of file diff --git a/src/api/base/product.js b/src/api/base/product.js new file mode 100644 index 00000000..4956018b --- /dev/null +++ b/src/api/base/product.js @@ -0,0 +1,8 @@ +import request from '@/utils/request' +// 获得产品列表 +export function getProductAll() { + return request({ + url: '/base/core-product/listAll', + method: 'get' + }) +} \ No newline at end of file diff --git a/src/api/base/productionLine.js b/src/api/base/productionLine.js index 7fade9c9..add39173 100644 --- a/src/api/base/productionLine.js +++ b/src/api/base/productionLine.js @@ -2,7 +2,7 @@ import request from '@/utils/request' // 获得所有工厂产线列表 export function getLineAll() { return request({ - url: '/base/production-line/listAll', + url: '/base/core-production-line/listAll', method: 'get' }) } \ No newline at end of file diff --git a/src/api/base/workOrder.js b/src/api/base/workOrder.js new file mode 100644 index 00000000..a7ae35f5 --- /dev/null +++ b/src/api/base/workOrder.js @@ -0,0 +1,8 @@ +import request from '@/utils/request' +// 获得工单列表 +export function workOrderList() { + return request({ + url: '/base/core-work-order/listbyfilter', + method: 'get' + }) +} \ No newline at end of file diff --git a/src/api/base/worker.js b/src/api/base/worker.js new file mode 100644 index 00000000..2fcee54c --- /dev/null +++ b/src/api/base/worker.js @@ -0,0 +1,17 @@ +import request from '@/utils/request' +// 获得所有员工列表 +export function getWorkerList() { + return request({ + url: '/base/core-worker/listAll', + method: 'get' + }) +} + +// 获得员工 +export function getWorker(query) { + return request({ + url: '/base/core-worker/get', + method: 'get', + params: query + }) +} \ No newline at end of file diff --git a/src/api/base/workshopSection.js b/src/api/base/workshopSection.js index bf5e65d5..9f3fe108 100644 --- a/src/api/base/workshopSection.js +++ b/src/api/base/workshopSection.js @@ -2,7 +2,7 @@ import request from '@/utils/request' // 获得所有产线工段列表 export function getWorkShopAll() { return request({ - url: '/base/workshop-section/listAll', + url: '/base/core-workshop-section/listAll', method: 'get' }) } \ No newline at end of file diff --git a/src/api/monitoring/groupTeamView.js b/src/api/monitoring/groupTeamView.js new file mode 100644 index 00000000..81cbcd00 --- /dev/null +++ b/src/api/monitoring/groupTeamView.js @@ -0,0 +1,27 @@ +import request from '@/utils/request' +// 执行班组追溯 根据工单 +export function getByWorkOrder(query) { + return request({ + url: '/monitoring/schedulingmonitoring/getByWorkOrder', + method: 'get', + params: query + }) +} + +// 执行班组追溯详情 根据工单班组 +export function getByTeam(query) { + return request({ + url: '/monitoring/schedulingmonitoring/getByTeam', + method: 'get', + params: query + }) +} + +// 获取某次排班的生产情况详情 +export function getByScheduling(query) { + return request({ + url: '/monitoring/schedulingmonitoring/getByScheduling', + method: 'get', + params: query + }) +} diff --git a/src/api/monitoring/orderEnergy.js b/src/api/monitoring/orderEnergy.js new file mode 100644 index 00000000..4cb77e30 --- /dev/null +++ b/src/api/monitoring/orderEnergy.js @@ -0,0 +1,19 @@ +import request from '@/utils/request' +// 获取工单信息 +export function getWorkOrderMsg(data) { + return request({ + url: '/monitoring/energy-work-order/getWorkOrderMsg', + method: 'post', + data: data + }) +} + +// 获取工单能源消耗数据 +export function getOrderEnergyData(data) { + return request({ + url: '/monitoring/energy-work-order/getData', + method: 'post', + data: data + }) +} + diff --git a/src/utils/dict.js b/src/utils/dict.js index 77b6b2b6..a7621c32 100644 --- a/src/utils/dict.js +++ b/src/utils/dict.js @@ -95,7 +95,12 @@ export const DICT_TYPE = { MONITOR_INDEX_TYPE: 'monitor_index_type', OBJECT_TYPE: 'object_type', STATISTIC_TYPE: 'statistic_type', - TIME_DIM: 'time_dim' + TIME_DIM: 'time_dim', + + // ============== ORDER - 订单模块 ============= + ORDER_STATUS: 'order_status', + ORDER_ORIGIN: 'order_origin', + ORDER_PRIORITY: 'order_priority' } /** diff --git a/src/views/energy/base/energyPlcConnect/components/energyPlcConnectAdd.vue b/src/views/energy/base/energyPlcConnect/components/energyPlcConnectAdd.vue index d94c6478..412e649d 100644 --- a/src/views/energy/base/energyPlcConnect/components/energyPlcConnectAdd.vue +++ b/src/views/energy/base/energyPlcConnect/components/energyPlcConnectAdd.vue @@ -20,9 +20,6 @@ @change="selectObj" clearable> - - - \ No newline at end of file diff --git a/src/views/energy/monitoring/orderEnergy/index.vue b/src/views/energy/monitoring/orderEnergy/index.vue new file mode 100644 index 00000000..9918fe5b --- /dev/null +++ b/src/views/energy/monitoring/orderEnergy/index.vue @@ -0,0 +1,269 @@ + + + \ No newline at end of file diff --git a/src/views/group/base/groupClasses/index.vue b/src/views/group/base/groupClasses/index.vue index 09a52985..a38f97c7 100644 --- a/src/views/group/base/groupClasses/index.vue +++ b/src/views/group/base/groupClasses/index.vue @@ -108,20 +108,22 @@ export default { ], tableProps, tableBtn: [ - { - type: 'cancel', - btnName: '作废', - showParam: { - type: '&', - data: [ - { - type: 'unequal', - name: 'status', - value: '不可用' - } - ] + this.$auth.hasPermi('base:group-classes:cancel') + ? { + type: 'cancel', + btnName: '作废', + showParam: { + type: '&', + data: [ + { + type: 'unequal', + name: 'status', + value: '不可用' + } + ] + } } - }, + : undefined, this.$auth.hasPermi('base:group-classes:update') ? { type: 'edit', diff --git a/src/views/group/base/groupTeam/components/groupTeamAdd.vue b/src/views/group/base/groupTeam/components/groupTeamAdd.vue index aaffb276..249facd2 100644 --- a/src/views/group/base/groupTeam/components/groupTeamAdd.vue +++ b/src/views/group/base/groupTeam/components/groupTeamAdd.vue @@ -1,5 +1,5 @@ + \ No newline at end of file diff --git a/src/views/group/base/groupTeam/components/workerOperate.vue b/src/views/group/base/groupTeam/components/workerOperate.vue new file mode 100644 index 00000000..956bf89f --- /dev/null +++ b/src/views/group/base/groupTeam/components/workerOperate.vue @@ -0,0 +1,41 @@ + + + \ No newline at end of file diff --git a/src/views/group/base/groupTeam/components/workerTeamAdd.vue b/src/views/group/base/groupTeam/components/workerTeamAdd.vue new file mode 100644 index 00000000..6f233917 --- /dev/null +++ b/src/views/group/base/groupTeam/components/workerTeamAdd.vue @@ -0,0 +1,113 @@ + + \ No newline at end of file diff --git a/src/views/group/base/groupTeam/index.vue b/src/views/group/base/groupTeam/index.vue index 0f761324..14d3ce47 100644 --- a/src/views/group/base/groupTeam/index.vue +++ b/src/views/group/base/groupTeam/index.vue @@ -41,14 +41,18 @@ > + + + \ No newline at end of file diff --git a/src/views/group/monitoring/groupTeamScheduling/index.vue b/src/views/group/monitoring/groupTeamScheduling/index.vue new file mode 100644 index 00000000..3e3c6e09 --- /dev/null +++ b/src/views/group/monitoring/groupTeamScheduling/index.vue @@ -0,0 +1,154 @@ + + \ No newline at end of file diff --git a/src/views/group/monitoring/groupTeamView/components/groupTeamViewDetail.vue b/src/views/group/monitoring/groupTeamView/components/groupTeamViewDetail.vue new file mode 100644 index 00000000..702ab09f --- /dev/null +++ b/src/views/group/monitoring/groupTeamView/components/groupTeamViewDetail.vue @@ -0,0 +1,85 @@ + + + \ No newline at end of file diff --git a/src/views/group/monitoring/groupTeamView/index.vue b/src/views/group/monitoring/groupTeamView/index.vue new file mode 100644 index 00000000..63e0f837 --- /dev/null +++ b/src/views/group/monitoring/groupTeamView/index.vue @@ -0,0 +1,130 @@ + + \ No newline at end of file diff --git a/src/views/order/base/orderManage/components/orderAdd.vue b/src/views/order/base/orderManage/components/orderAdd.vue new file mode 100644 index 00000000..9462cff6 --- /dev/null +++ b/src/views/order/base/orderManage/components/orderAdd.vue @@ -0,0 +1,243 @@ + + \ No newline at end of file diff --git a/src/views/order/base/orderManage/index.vue b/src/views/order/base/orderManage/index.vue new file mode 100644 index 00000000..6b266769 --- /dev/null +++ b/src/views/order/base/orderManage/index.vue @@ -0,0 +1,244 @@ + + \ No newline at end of file diff --git a/vue.config.js b/vue.config.js index 89fa889a..16ce2e35 100644 --- a/vue.config.js +++ b/vue.config.js @@ -36,7 +36,7 @@ module.exports = { proxy: { // detail: https://cli.vuejs.org/config/#devserver-proxy ['/proxy-api']: { - target: `http://localhost:48080`, + target: `http://localhost:80`, // target: `http://api-dashboard.yudao.iocoder.cn`, changeOrigin: true, pathRewrite: { -- 2.45.2