diff --git a/.env.dev b/.env.dev index 9a3b625b..8a59d958 100644 --- a/.env.dev +++ b/.env.dev @@ -1,7 +1,7 @@ ### # @Author: Do not edit # @Date: 2023-08-29 09:40:39 - # @LastEditTime: 2023-09-11 15:55:29 + # @LastEditTime: 2023-09-16 09:41:07 # @LastEditors: DY # @Description: ### @@ -14,8 +14,13 @@ VUE_APP_TITLE = 芋道管理系统 # 芋道管理系统/开发环境 # VUE_APP_BASE_API = 'http://192.168.1.49:48080' # VUE_APP_BASE_API = 'http://192.168.1.8:48080' +<<<<<<< HEAD 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:48080' +VUE_APP_BASE_API = 'http://192.168.1.188:48080' +>>>>>>> test # 路由懒加载 VUE_CLI_BABEL_TRANSPILE_MODULES = true diff --git a/.env.prod b/.env.prod index a1415ed3..4c6133c8 100644 --- a/.env.prod +++ b/.env.prod @@ -8,7 +8,9 @@ VUE_APP_TITLE = 芋道管理系统 VUE_APP_BASE_API = '/prod-api' # 根据服务器或域名修改 -PUBLIC_PATH = 'http://my-pi.com:8888/yudao-admin/' +# PUBLIC_PATH = 'http://my-pi.com:8888/yudao-admin/' +PUBLIC_PATH = 'http://192.168.0.33:8888/' + # 二级部署路径 VUE_APP_APP_NAME ='yudao-admin' diff --git a/package.json b/package.json index 090e7f14..0bbe53e6 100644 --- a/package.json +++ b/package.json @@ -55,8 +55,10 @@ "file-saver": "^2.0.5", "fuse.js": "6.6.2", "highlight.js": "9.18.5", + "html2canvas": "^1.4.1", "js-beautify": "1.13.0", "jsencrypt": "3.3.1", + "jspdf": "^2.5.1", "min-dash": "3.5.2", "mockjs": "^1.1.0", "moment": "^2.29.4", diff --git a/src/api/core/analysis/index.js b/src/api/core/analysis/index.js new file mode 100644 index 00000000..af791ff5 --- /dev/null +++ b/src/api/core/analysis/index.js @@ -0,0 +1,24 @@ +/* + * @Author: zhp + * @Date: 2023-09-12 14:07:04 + * @LastEditTime: 2023-09-13 09:53:45 + * @LastEditors: zhp + * @Description: + */ +import request from '@/utils/request' + +export function getYieldAnalysisPageData(data) { + return request({ + url: '/analysis/production-analysis/getOutput', + method: 'post', + data: data + }) +} + +export function getCT(data) { + return request({ + url: '/analysis/production-analysis/getCT', + method: 'post', + data: data + }) +} diff --git a/src/api/core/monitoring/auto.js b/src/api/core/monitoring/auto.js new file mode 100644 index 00000000..87b81a50 --- /dev/null +++ b/src/api/core/monitoring/auto.js @@ -0,0 +1,25 @@ +/* + * @Author: Do not edit + * @Date: 2023-09-12 09:44:53 + * @LastEditTime: 2023-09-13 16:11:41 + * @LastEditors: DY + * @Description: + */ +import request from '@/utils/request' + +// 获得工厂分页 +export function getPdlAutoReport(data) { + return request({ + url: '/monitoring/production-monitor/getPdlAutoReport', + method: 'post', + data: data + }) +} + +// 获得所有工厂产线列表 +export function getPdList() { + return request({ + url: '/base/production-line/listAll', + method: 'get' + }) +} \ No newline at end of file diff --git a/src/api/core/monitoring/data.js b/src/api/core/monitoring/data.js new file mode 100644 index 00000000..f9f44367 --- /dev/null +++ b/src/api/core/monitoring/data.js @@ -0,0 +1,25 @@ +/* + * @Author: Do not edit + * @Date: 2023-09-12 09:44:53 + * @LastEditTime: 2023-09-14 10:25:46 + * @LastEditors: DY + * @Description: + */ +import request from '@/utils/request' + +// 获得产线统计数据查询 +export function getPdlDataSearch(data) { + return request({ + url: '/monitoring/production-monitor/getPdlDataSearch', + method: 'post', + data: data + }) +} + +// 获得所有工厂产线列表 +export function getPdList() { + return request({ + url: '/base/production-line/listAll', + method: 'get' + }) +} \ No newline at end of file diff --git a/src/api/core/monitoring/data24.js b/src/api/core/monitoring/data24.js new file mode 100644 index 00000000..86afe0d8 --- /dev/null +++ b/src/api/core/monitoring/data24.js @@ -0,0 +1,17 @@ +/* + * @Author: Do not edit + * @Date: 2023-09-12 09:44:53 + * @LastEditTime: 2023-09-15 14:12:26 + * @LastEditors: DY + * @Description: + */ +import request from '@/utils/request' + +// 获得近24小时产线生产数据 +export function getPdlDataOneDay(data) { + return request({ + url: '/monitoring/production-monitor/getPdlDataOneDay', + method: 'post', + data: data + }) +} diff --git a/src/api/core/monitoring/index.js b/src/api/core/monitoring/index.js new file mode 100644 index 00000000..13eb6963 --- /dev/null +++ b/src/api/core/monitoring/index.js @@ -0,0 +1,16 @@ +/* + * @Author: zhp + * @Date: 2023-09-12 14:07:04 + * @LastEditTime: 2023-09-13 09:46:44 + * @LastEditors: zhp + * @Description: + */ +import request from '@/utils/request' + +export function getSectionDataSearch(data) { + return request({ + url: '/monitoring/production-monitor/getSectionDataSearch', + method: 'post', + data: data + }) +} diff --git a/src/api/core/monitoring/sectionStatistics.js b/src/api/core/monitoring/sectionStatistics.js new file mode 100644 index 00000000..7d098d22 --- /dev/null +++ b/src/api/core/monitoring/sectionStatistics.js @@ -0,0 +1,33 @@ +/* + * @Author: Do not edit + * @Date: 2023-09-12 09:44:53 + * @LastEditTime: 2023-09-14 14:01:12 + * @LastEditors: DY + * @Description: + */ +import request from '@/utils/request' + +// 获得工段自动统计数据查询 +export function getSectionAutoReport(data) { + return request({ + url: '/monitoring/production-monitor/getSectionAutoReport', + method: 'post', + data: data + }) +} + +// 获得所有工厂产线列表 +export function getPdList() { + return request({ + url: '/base/production-line/listAll', + method: 'get' + }) +} + +// 获得所有产线工段列表 +export function getWorkshopSectionList() { + return request({ + url: '/base/workshop-section/listAll', + method: 'get' + }) +} \ No newline at end of file diff --git a/src/assets/images/pay/icon/alipay_app.svg b/src/assets/images/pay/icon/alipay_app.svg index ebf11883..c77a3d9f 100644 --- a/src/assets/images/pay/icon/alipay_app.svg +++ b/src/assets/images/pay/icon/alipay_app.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/src/router/index.js b/src/router/index.js index 1d64f59b..ca26742b 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -247,7 +247,7 @@ Router.prototype.push = function push(location) { export default new Router({ base: process.env.VUE_APP_APP_NAME ? process.env.VUE_APP_APP_NAME : "/", - mode: 'history', // 去掉url中的# + mode: 'hash', // 去掉url中的# scrollBehavior: () => ({y: 0}), routes: constantRoutes }) diff --git a/src/views/base/equipmentBindSection/dialogForm.vue b/src/views/base/equipmentBindSection/dialogForm.vue new file mode 100644 index 00000000..91645365 --- /dev/null +++ b/src/views/base/equipmentBindSection/dialogForm.vue @@ -0,0 +1,219 @@ + + + + + + + diff --git a/src/views/base/equipmentBindSection/index.vue b/src/views/base/equipmentBindSection/index.vue index cd653693..cb46db05 100644 --- a/src/views/base/equipmentBindSection/index.vue +++ b/src/views/base/equipmentBindSection/index.vue @@ -37,7 +37,7 @@ @close="cancel" @cancel="cancel" @confirm="submitForm"> - + @@ -53,10 +53,10 @@ import { } from '@/api/base/equipmentBindSection'; import moment from 'moment'; import basicPageMixin from '@/mixins/lb/basicPageMixin'; - +import DialogForm from './dialogForm.vue'; export default { name: 'EquipmentBindSection', - components: {}, + components: { DialogForm }, mixins: [basicPageMixin], data() { return { @@ -181,8 +181,8 @@ export default { select: true, label: '工段', url: '/base/workshop-section/listByParentId', // 根据产线获取 - // depends: '__product_line', // 依赖产线获取数据 - depends: 'productionLineId', + // depends: '__product_line', // 依赖产线获取数据 + depends: 'productionLineId', prop: 'workshopSectionId', rules: [{ required: true, message: '不能为空', trigger: 'blur' }], }, diff --git a/src/views/base/equipmentPlcConnect/http.js b/src/views/base/equipmentPlcConnect/http.js index 16544450..b87d0ed7 100644 --- a/src/views/base/equipmentPlcConnect/http.js +++ b/src/views/base/equipmentPlcConnect/http.js @@ -1,6 +1,13 @@ +/* + * @Author: zhp + * @Date: 2023-09-11 16:18:44 + * @LastEditTime: 2023-09-12 14:25:01 + * @LastEditors: zhp + * @Description: + */ import Mock from 'mockjs'; -const baseURL = 'http://192.168.1.49:48080/admin-api'; +const baseURL = 'http://192.168.1.188:48080/admin-api'; Mock.setup({ timeout: 200, diff --git a/src/views/core/analysis/LineChart.vue b/src/views/core/analysis/LineChart.vue new file mode 100644 index 00000000..49c1565f --- /dev/null +++ b/src/views/core/analysis/LineChart.vue @@ -0,0 +1,93 @@ + + + + diff --git a/src/views/core/analysis/balanceAnalysis/index.vue b/src/views/core/analysis/balanceAnalysis/index.vue index e0de210b..ffa09229 100644 --- a/src/views/core/analysis/balanceAnalysis/index.vue +++ b/src/views/core/analysis/balanceAnalysis/index.vue @@ -1,159 +1,245 @@ - diff --git a/src/views/core/analysis/yieldAnalysis/index.vue b/src/views/core/analysis/yieldAnalysis/index.vue index ee6a5ce5..ed38a9fb 100644 --- a/src/views/core/analysis/yieldAnalysis/index.vue +++ b/src/views/core/analysis/yieldAnalysis/index.vue @@ -1,114 +1,95 @@ + + diff --git a/src/views/core/monitoring/sectionStatistics/index.vue b/src/views/core/monitoring/sectionStatistics/index.vue index 0aeaf6ad..8c00a956 100644 --- a/src/views/core/monitoring/sectionStatistics/index.vue +++ b/src/views/core/monitoring/sectionStatistics/index.vue @@ -1,7 +1,7 @@ @@ -9,6 +9,7 @@
+
+ + + + + + + + + + + + + +
+ + xlsx + pdf + + 取 消 + 确 定 + +