diff --git a/.env.dev b/.env.dev index c9990cf5..5e7d20c9 100644 --- a/.env.dev +++ b/.env.dev @@ -12,8 +12,8 @@ ENV = 'development' VUE_APP_TITLE = MES系统 # 芋道管理系统/开发环境 -# VUE_APP_BASE_API = 'http://100.64.0.26:48082' -VUE_APP_BASE_API = 'http://192.168.0.33:48082' +VUE_APP_BASE_API = 'http://100.64.0.26:48082' +# VUE_APP_BASE_API = 'http://192.168.0.33:48082' # VUE_APP_BASE_API = 'http://192.168.4.173:48080' # VUE_APP_BASE_API = 'http://192.168.2.173:48080' # VUE_APP_BASE_API = 'http://192.168.1.49:48080' @@ -21,6 +21,10 @@ VUE_APP_BASE_API = 'http://192.168.0.33:48082' # VUE_APP_BASE_API = 'http://192.168.4.159:48080' # VUE_APP_BASE_API = 'http://192.168.1.56:48080' # VUE_APP_BASE_API = 'http://192.168.4.159:48080' + +# 积木报表指向地址 +VUE_APP_JIMU_API = 'http://192.168.0.33:48082' + # 路由懒加载 VUE_CLI_BABEL_TRANSPILE_MODULES = true diff --git a/.env.prod b/.env.prod index 43504e8f..4fa71c08 100644 --- a/.env.prod +++ b/.env.prod @@ -1,3 +1,10 @@ +### + # @Author: zhp + # @Date: 2023-11-07 19:11:40 + # @LastEditTime: 2023-11-16 16:40:59 + # @LastEditors: zhp + # @Description: +### # 生产环境配置 ENV = 'production' @@ -7,6 +14,10 @@ VUE_APP_TITLE = MES系统 # 芋道管理系统/生产环境 VUE_APP_BASE_API = '/prod-api' +# 积木报表指向地址 +VUE_APP_JIMU_API = 'http://192.168.0.33:48082' + + # 根据服务器或域名修改 # PUBLIC_PATH = 'http://my-pi.com:8888/yudao-admin/' PUBLIC_PATH = 'http://192.168.0.33:8889/' diff --git a/public/static/videos/login.webm b/public/static/videos/login.webm index 43e188f6..18203c39 100644 Binary files a/public/static/videos/login.webm and b/public/static/videos/login.webm differ diff --git a/src/api/equipment/base/inspection/record.js b/src/api/equipment/base/inspection/record.js index 7cf3941c..31bb481e 100644 --- a/src/api/equipment/base/inspection/record.js +++ b/src/api/equipment/base/inspection/record.js @@ -1,7 +1,7 @@ /* * @Author: Do not edit * @Date: 2023-11-08 15:56:52 - * @LastEditTime: 2023-11-13 09:15:17 + * @LastEditTime: 2023-11-16 20:15:02 * @LastEditors: DY * @Description: */ @@ -60,3 +60,11 @@ export function getcheckConfigByEqList(query) { params: query }) } + +// 删除设备巡检记录 +export function deleteEqCheckLog(id) { + return request({ + url: '/base/equipment-check-log/delete?id=' + id, + method: 'delete' + }) +} diff --git a/src/api/equipment/base/maintain/record.js b/src/api/equipment/base/maintain/record.js new file mode 100644 index 00000000..e4385ea6 --- /dev/null +++ b/src/api/equipment/base/maintain/record.js @@ -0,0 +1,16 @@ +/* + * @Author: Do not edit + * @Date: 2023-11-08 15:56:52 + * @LastEditTime: 2023-11-16 20:22:12 + * @LastEditors: DY + * @Description: + */ +import request from '@/utils/request' + +// 删除设备保养记录 +export function deleteEqMaintainLog(id) { + return request({ + url: '/base/equipment-maintain-log/delete?id=' + id, + method: 'delete' + }) +} diff --git a/src/api/equipment/base/repair.js b/src/api/equipment/base/repair.js index a93e4a9f..c8b115e2 100644 --- a/src/api/equipment/base/repair.js +++ b/src/api/equipment/base/repair.js @@ -1,7 +1,7 @@ /* * @Author: Do not edit * @Date: 2023-11-10 16:09:33 - * @LastEditTime: 2023-11-10 16:50:08 + * @LastEditTime: 2023-11-16 18:57:08 * @LastEditors: DY * @Description: */ @@ -22,4 +22,12 @@ export function updateEqRepair(data) { method: 'put', data: data }) -} \ No newline at end of file +} + +// 删除维修记录 +export function deleteRepair(id) { + return request({ + url: '/base/equipment-repair-log/delete?id=' + id, + method: 'delete' + }) +} diff --git a/src/api/equipment/base/spare-parts/config.js b/src/api/equipment/base/spare-parts/config.js index b2201cad..0abc7f56 100644 --- a/src/api/equipment/base/spare-parts/config.js +++ b/src/api/equipment/base/spare-parts/config.js @@ -1,7 +1,7 @@ /* * @Author: Do not edit * @Date: 2023-11-11 16:18:57 - * @LastEditTime: 2023-11-11 17:28:54 + * @LastEditTime: 2023-11-16 20:52:06 * @LastEditors: DY * @Description: */ @@ -48,4 +48,21 @@ export function getSparePartList(query) { method: 'get', params: query }) -} \ No newline at end of file +} + +// 删除设备备品备件配置 +export function deleteConfig(id) { + return request({ + url: '/base/equipment-spare-part-config/delete?id=' + id, + method: 'delete' + }) +} + +// 获得备品备件分页 +export function getSparePartPage(query) { + return request({ + url: '/base/equipment-spare-part/page', + method: 'get', + params: query + }) +} diff --git a/src/api/extend/processEquMaterialBom.js b/src/api/extend/processEquMaterialBom.js index 5be7bfb0..def6ad48 100644 --- a/src/api/extend/processEquMaterialBom.js +++ b/src/api/extend/processEquMaterialBom.js @@ -1,7 +1,7 @@ /* * @Author: zhp * @Date: 2023-11-07 19:47:48 - * @LastEditTime: 2023-11-08 16:59:32 + * @LastEditTime: 2023-11-16 17:49:23 * @LastEditors: zhp * @Description: */ @@ -12,7 +12,7 @@ export function processEquMaterialBomPage(data) { return request({ url: '/extend/process-equ-material-bom/page', method: 'get', - data: data + params: data }) } diff --git a/src/api/extend/processEquValueBom.js b/src/api/extend/processEquValueBom.js index 8048c56b..93d6a740 100644 --- a/src/api/extend/processEquValueBom.js +++ b/src/api/extend/processEquValueBom.js @@ -1,18 +1,18 @@ /* * @Author: zhp * @Date: 2023-11-09 09:37:14 - * @LastEditTime: 2023-11-09 14:20:02 + * @LastEditTime: 2023-11-16 17:47:21 * @LastEditors: zhp * @Description: */ import request from '@/utils/request' -// 获得能耗统计查询分页 + export function processEquValueBomPage(data) { return request({ url: '/extend/process-equ-value-bom/page', method: 'get', - data: data + params: data }) } diff --git a/src/api/monitoring/statisticalData.js b/src/api/monitoring/statisticalData.js index cdf92812..2d0f19be 100644 --- a/src/api/monitoring/statisticalData.js +++ b/src/api/monitoring/statisticalData.js @@ -1,7 +1,7 @@ /* * @Author: zhp * @Date: 2023-11-07 14:10:18 - * @LastEditTime: 2023-11-14 14:46:04 + * @LastEditTime: 2023-11-16 17:49:52 * @LastEditors: zhp * @Description: */ @@ -12,7 +12,7 @@ export function getStatisticalDataPage(query) { return request({ url: '/base/statistical-data/getStatisticData', method: 'get', - data: query + params: query }) } diff --git a/src/assets/styles/login.scss b/src/assets/styles/login.scss index 55889fcb..bea1fe9d 100644 --- a/src/assets/styles/login.scss +++ b/src/assets/styles/login.scss @@ -94,8 +94,11 @@ $buttonHeight: $buttonH * 1px; display: flex; .pic { + flex: 3; + width: 1px; + min-width: 800px; // 元素 - width: $picWidth; + // width: $picWidth; height: $picHeight; background-image: url($picImage); background-repeat: no-repeat; @@ -116,7 +119,8 @@ $buttonHeight: $buttonH * 1px; .field { position: relative; margin-top: 8%; - flex: 1; + flex: 2; + // width: 800px; display: flex; flex-direction: column; align-items: center; @@ -170,7 +174,7 @@ $buttonHeight: $buttonH * 1px; } .form { - margin-top: 32px; + margin-top: 0; box-sizing: border-box; // width: $formWidth; width: 100%; @@ -307,6 +311,19 @@ $buttonHeight: $buttonH * 1px; } // - - - - - PC 最小尺寸设置 +@media screen and (min-width: 1920px) { + .container { + .content { + + .field { + flex: initial; + width: 800px; + } + } + } +} + + @media screen and (min-width: 599px) and (max-width: 1366px) { .container { min-width: 599px; diff --git a/src/views/base/coreEquipment/index.vue b/src/views/base/coreEquipment/index.vue index 2c51a435..e8914ba1 100644 --- a/src/views/base/coreEquipment/index.vue +++ b/src/views/base/coreEquipment/index.vue @@ -17,7 +17,7 @@ - @@ -424,6 +424,7 @@ export default { // 表单参数 form: { id: null, + files: [] }, showUploadComponents: false, // 是否显示上传组件 }; @@ -506,6 +507,7 @@ export default { spec: undefined, description: undefined, remark: undefined, + files: [] }; this.resetForm('form'); }, diff --git a/src/views/base/custom/index.vue b/src/views/base/custom/index.vue index 4f5ffd56..23b591f5 100644 --- a/src/views/base/custom/index.vue +++ b/src/views/base/custom/index.vue @@ -202,7 +202,7 @@ export default { } }, created() { - this.init() + // this.init() // console.log('aaaaaa') // this.otherPaper() }, @@ -227,64 +227,67 @@ export default { changeMode() { // hiprintTemplate.clear() // console.log(this.modelData) - const { mode } = this - const provider = providers[mode] - hiprint.init({ - providers: [provider.f] - }) + this.$nextTick(() => { + const { mode } = this + const provider = providers[mode] + hiprint.init({ + providers: [provider.f] + }) - // $('#hiprint-printTemplate').empty() - // console.log(JSON.parse(this.modelData)) - hiprint.setConfig() - // 替换配置 - hiprint.setConfig({ - movingDistance: 2.5, - text: { - supportOptions: [ - { - name: 'styler', - hidden: true - }, - { - name: 'formatter', - hidden: true - } - ] + // $('#hiprint-printTemplate').empty() + // console.log(JSON.parse(this.modelData)) + hiprint.setConfig() + // 替换配置 + hiprint.setConfig({ + movingDistance: 2.5, + text: { + supportOptions: [ + { + name: 'styler', + hidden: true + }, + { + name: 'formatter', + hidden: true + } + ] + } + }) + + // console.log(this.modelData) + // console.log($('#hiprint-printTemplate').empty()) + if (this.modelData != {}) { + console.log(this.modelData); + $('.hiprintEpContainer').empty() + hiprint.PrintElementTypeManager.build('.hiprintEpContainer', provider.value) + $('.hiprint-printTemplate').empty() + hiprintTemplate = new hiprint.PrintTemplate({ + template: JSON.parse(this.modelData), + settingContainer: '#PrintElementOptionSetting', + paginationContainer: '.hiprint-printPagination' + }) + } else { + $('.hiprintEpContainer').empty() + console.log(this.modelData); + hiprint.PrintElementTypeManager.build('.hiprintEpContainer', provider.value) + $('.hiprint-printTemplate').empty() + // const templates = this.$ls.get('KEY_TEMPLATES', {}) + const template = provider.value + // console.log(template) + hiprintTemplate = new hiprint.PrintTemplate({ + template: template, + settingContainer: '#PrintElementOptionSetting', + paginationContainer: '.hiprint-printPagination' + }) } + hiprintTemplate.design('#hiprint-printTemplate') + // console.log(hiprintTemplate) + console.log(hiprintTemplate); + // hiprintTemplate.design('#hiprint-printTemplate', { grid: true }) + // 获取当前放大比例, 当zoom时传true 才会有 + this.scaleValue = hiprintTemplate.editingPanel.scale || 1 + // this.scaleValue = hiprintTemplate.editingPanel.scale || 1 }) - - // console.log(this.modelData) - // console.log($('#hiprint-printTemplate').empty()) - if (this.modelData) { - // console.log(this.modelData); - $('.hiprintEpContainer').empty() - hiprint.PrintElementTypeManager.build('.hiprintEpContainer', provider.value) - $('.hiprint-printTemplate').empty() - hiprintTemplate = new hiprint.PrintTemplate({ - template: JSON.parse(this.modelData), - settingContainer: '#PrintElementOptionSetting', - paginationContainer: '.hiprint-printPagination' - }) - } else { - $('.hiprintEpContainer').empty() - hiprint.PrintElementTypeManager.build('.hiprintEpContainer', provider.value) - $('.hiprint-printTemplate').empty() - // const templates = this.$ls.get('KEY_TEMPLATES', {}) - const template = provider.value - // console.log(template) - hiprintTemplate = new hiprint.PrintTemplate({ - template: template, - settingContainer: '#PrintElementOptionSetting', - paginationContainer: '.hiprint-printPagination' - }) - } - // hiprintTemplate.design('#hiprint-printTemplate') - // console.log(hiprintTemplate) - console.log(hiprintTemplate); - hiprintTemplate.design('#hiprint-printTemplate', { grid: true }) - // 获取当前放大比例, 当zoom时传true 才会有 - this.scaleValue = hiprintTemplate.editingPanel.scale || 1 - // this.scaleValue = hiprintTemplate.editingPanel.scale || 1 }, /** * 设置纸张大小 diff --git a/src/views/core/monitoring/data24/index.vue b/src/views/core/monitoring/data24/index.vue index 3b5b1365..3f2c7e06 100644 --- a/src/views/core/monitoring/data24/index.vue +++ b/src/views/core/monitoring/data24/index.vue @@ -127,18 +127,19 @@ export default { lineData[it.recordTime + '_area'] = it.area }) console.log('你好', this.monitorList) - this.monitorList.forEach(m => { - console.log('455', m) - if (m.lineName === lineData.proLineName) { - m.data.forEach(bad => { - // 转成时间戳 - // console.log('233', Date.parse(bad.dynamicName)) - const stamp = Date.parse(bad.dynamicName) - lineData[stamp + '_bad'] = bad.dynamicValue - lineData[stamp + '_percent'] = (lineData[stamp + '_bad'] / lineData[stamp + '_down'] * 100).toFixed(2) + '%' - }) - } - }) + if (this.monitorList.length > 0) { + this.monitorList.forEach(m => { + if (m.lineName === lineData.proLineName) { + m.data.forEach(bad => { + // 转成时间戳 + // console.log('233', Date.parse(bad.dynamicName)) + const stamp = Date.parse(bad.dynamicName) + lineData[stamp + '_bad'] = bad.dynamicValue + lineData[stamp + '_percent'] = (lineData[stamp + '_bad'] / lineData[stamp + '_down'] * 100).toFixed(2) + '%' + }) + } + }) + } lineData['workOrderName'] = works.join(',') lineData['spec'] = specs.join(',') this.tableData.push(lineData) diff --git a/src/views/equipment/base/config/AlarmGroup/index.vue b/src/views/equipment/base/config/AlarmGroup/index.vue index e03c4e79..68d314ee 100644 --- a/src/views/equipment/base/config/AlarmGroup/index.vue +++ b/src/views/equipment/base/config/AlarmGroup/index.vue @@ -38,7 +38,7 @@ @close="cancel" @cancel="cancel" @confirm="submitForm"> - + diff --git a/src/views/equipment/base/config/BindGroup/index.vue b/src/views/equipment/base/config/BindGroup/index.vue index 0e13b9aa..f46c177b 100644 --- a/src/views/equipment/base/config/BindGroup/index.vue +++ b/src/views/equipment/base/config/BindGroup/index.vue @@ -38,7 +38,7 @@ @close="cancel" @cancel="cancel" @confirm="submitForm"> - + diff --git a/src/views/equipment/base/inspection/Record/addRecord.vue b/src/views/equipment/base/inspection/Record/addRecord.vue index 6960f96b..b3c87a72 100644 --- a/src/views/equipment/base/inspection/Record/addRecord.vue +++ b/src/views/equipment/base/inspection/Record/addRecord.vue @@ -49,7 +49,8 @@ filterable :disabled="isdetail" style="width: 100%" - placeholder="请选择巡检配置"> + placeholder="请选择巡检配置" + @change="setInspectionContet"> 确定 - - diff --git a/src/views/extend/processFlowView/components/ProcessDetail.vue b/src/views/extend/processFlowView/components/ProcessDetail.vue index ed9a8689..b1f71270 100644 --- a/src/views/extend/processFlowView/components/ProcessDetail.vue +++ b/src/views/extend/processFlowView/components/ProcessDetail.vue @@ -9,25 +9,57 @@
-
- +
+ 撤销 - + 下一步 - - 刷新布局 - + + 刷新布局 + + 新建工序 - 编辑 + + 编辑 +
- @@ -36,11 +68,15 @@