diff --git a/.env.dev b/.env.dev index 22e87a41..b1305aa6 100644 --- a/.env.dev +++ b/.env.dev @@ -1,7 +1,7 @@ ### # @Author: Do not edit # @Date: 2023-08-29 09:40:39 - # @LastEditTime: 2023-12-15 15:24:52 + # @LastEditTime: 2023-12-15 16:28:20 # @LastEditors: zhp # @Description: ### diff --git a/.env.prod b/.env.prod index 085ca647..d89ed16a 100644 --- a/.env.prod +++ b/.env.prod @@ -15,7 +15,7 @@ VUE_APP_TITLE = MES系统 VUE_APP_BASE_API = '/prod-api' # 积木报表指向地址 -VUE_APP_JIMU_API = 'http://10.70.2.2:8080' +VUE_APP_JIMU_API = 'http://10.70.2.22:8080' # 根据服务器或域名修改 diff --git a/src/api/base/coreHotMaterial.js b/src/api/base/coreHotMaterial.js index 3610dc78..c4dc05da 100644 --- a/src/api/base/coreHotMaterial.js +++ b/src/api/base/coreHotMaterial.js @@ -1,7 +1,7 @@ /* * @Author: Do not edit * @Date: 2023-10-21 11:50:46 - * @LastEditTime: 2023-11-15 15:56:14 + * @LastEditTime: 2023-12-14 10:57:24 * @LastEditors: DY * @Description: */ @@ -65,4 +65,31 @@ export function getHotMaterialList(query) { method: 'get', params: query }) +} + +// 创建原料质量检测条目 +export function createHotMaterialCheck(data) { + return request({ + url: '/base/core-hot-material-check/create', + method: 'post', + data: data + }) +} + +// 更新原料质量检测条目 +export function updateHotMaterialCheck(data) { + return request({ + url: '/base/core-hot-material-check/update', + method: 'put', + data: data + }) +} + +// 获得质量检测条目列表 +export function getHotCheckList(query) { + return request({ + url: '/base/core-hot-material-check/listByMaterial', + method: 'get', + params: query + }) } \ No newline at end of file diff --git a/src/api/report/glass.js b/src/api/report/glass.js new file mode 100644 index 00000000..00b52fd3 --- /dev/null +++ b/src/api/report/glass.js @@ -0,0 +1,61 @@ +/* + * @Author: Do not edit + * @Date: 2023-12-08 10:26:48 + * @LastEditTime: 2023-12-13 17:16:00 + * @LastEditors: DY + * @Description: + */ +import request from '@/utils/request' + +// 创建原片自动报 +export function createGlass(data) { + return request({ + url: '/base/report-auto-original-glass/create', + method: 'post', + data: data + }) +} + +// 批量更新原片自动报 +export function updateGlass(data) { + return request({ + url: '/base/report-auto-original-glass/updatePlus', + method: 'put', + data: data + }) +} +// 更新原片自动报 +export function updateGlassRemark(data) { + return request({ + url: '/base/report-auto-original-glass/update', + method: 'put', + data: data + }) +} + +// 获得原片自动报 +export function getGlass(id) { + return request({ + url: '/base/report-auto-original-glass/get?id=' + id, + method: 'get' + }) +} + +// 获得原片分页 +export function getGlassPage(query) { + return request({ + url: '/base/report-auto-original-glass/listPlus', + method: 'get', + params: query + }) +} + +// 导出原片自动报 Excel +export function exportGlasscExcel(query) { + return request({ + url: '/base/report-auto-original-glass/export-excel', + method: 'get', + params: query, + responseType: 'blob' + }) +} diff --git a/src/components/ImageUpload/index.vue b/src/components/ImageUpload/index.vue index dc64e8dc..63308ee3 100644 --- a/src/components/ImageUpload/index.vue +++ b/src/components/ImageUpload/index.vue @@ -15,6 +15,7 @@ :headers="headers" :file-list="fileList" :on-preview="handlePictureCardPreview" + :disabled="disabled" :class="{hide: this.fileList.length >= this.limit}" > @@ -44,6 +45,7 @@ diff --git a/src/views/base/coreCustomer/index.vue b/src/views/base/coreCustomer/index.vue index 0a1a9a1a..dc1dbeff 100644 --- a/src/views/base/coreCustomer/index.vue +++ b/src/views/base/coreCustomer/index.vue @@ -88,13 +88,19 @@ export default { }, tableProps, tableBtn: [ + this.$auth.hasPermi(`base:core-customer:detail`) + ? { + type: 'detail', + btnName: '详情', + } + : undefined, this.$auth.hasPermi(`base:core-customer:update`) ? { type: 'edit', btnName: '编辑', } : undefined, - this.$auth.hasPermi(`base:core-customer:delete`) + this.$auth.hasPermi(`base:core-customer:delete`) ? { type: 'delete', btnName: '删除', @@ -171,6 +177,13 @@ export default { console.log(val); } }, + otherMethods(val) { + this.addOrUpdateVisible = true; + this.addOrEditTitle = "详情"; + this.$nextTick(() => { + this.$refs.addOrUpdate.init(val.data.id, true); + }); + } }, }; diff --git a/src/views/base/coreHotMaterial/SmallTitle.vue b/src/views/base/coreHotMaterial/SmallTitle.vue new file mode 100644 index 00000000..93b4a18f --- /dev/null +++ b/src/views/base/coreHotMaterial/SmallTitle.vue @@ -0,0 +1,65 @@ + + + + + + + + + + diff --git a/src/views/base/coreHotMaterial/add-or-updata.vue b/src/views/base/coreHotMaterial/add-or-updata.vue index 4ffcd316..95484ca1 100644 --- a/src/views/base/coreHotMaterial/add-or-updata.vue +++ b/src/views/base/coreHotMaterial/add-or-updata.vue @@ -2,7 +2,7 @@ * @Author: zwq * @Date: 2021-11-18 14:16:25 * @LastEditors: DY - * @LastEditTime: 2023-11-27 20:12:00 + * @LastEditTime: 2023-12-14 13:52:42 * @Description: --> @@ -15,19 +15,19 @@ - + - + - + @@ -35,6 +35,7 @@ - + + + + 质量信息 + + + + + 新增 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/base/coreHotMaterial/index.vue b/src/views/base/coreHotMaterial/index.vue index 0667b5c9..d661316e 100644 --- a/src/views/base/coreHotMaterial/index.vue +++ b/src/views/base/coreHotMaterial/index.vue @@ -83,13 +83,19 @@ export default { }, tableProps, tableBtn: [ - this.$auth.hasPermi(`base:core-hot-material:update`) + this.$auth.hasPermi(`base:core-hot-material-check:detail`) + ? { + type: 'detail', + btnName: '详情', + } + : undefined, + this.$auth.hasPermi(`base:core-hot-material-check:update`) ? { type: 'edit', btnName: '编辑', } : undefined, - this.$auth.hasPermi(`base:core-hot-material:delete`) + this.$auth.hasPermi(`base:core-hot-material-check:delete`) ? { type: 'delete', btnName: '删除', @@ -120,7 +126,7 @@ export default { type: 'separate', }, { - type: this.$auth.hasPermi('base:core-hot-material:create') ? 'button' : '', + type: this.$auth.hasPermi('base:core-hot-material-check:create') ? 'button' : '', btnName: '新增', name: 'add', color: 'success', @@ -143,6 +149,14 @@ export default { // this.dataListLoading = false; // }); // }, + otherMethods(val) { + // 详情 + this.addOrUpdateVisible = true; + this.addOrEditTitle = "详情"; + this.$nextTick(() => { + this.$refs.addOrUpdate.init(val.data.id, true); + }); + }, buttonClick(val) { switch (val.btnName) { case 'search': diff --git a/src/views/base/coreProduct/add-or-updata.vue b/src/views/base/coreProduct/add-or-updata.vue index a3cee7eb..8c855299 100644 --- a/src/views/base/coreProduct/add-or-updata.vue +++ b/src/views/base/coreProduct/add-or-updata.vue @@ -2,7 +2,7 @@ * @Author: zwq * @Date: 2021-11-18 14:16:25 * @LastEditors: DY - * @LastEditTime: 2023-11-27 20:07:09 + * @LastEditTime: 2023-12-06 10:36:56 * @Description: --> @@ -91,27 +91,30 @@ - + - + - + - - + + + + + @@ -240,7 +243,8 @@ export default { specifications: undefined, processTime: 0, remark: undefined, - unit: undefined + unit: undefined, + weight: undefined }, productAttrList: [], visible: false, @@ -257,6 +261,24 @@ export default { }, mounted() {}, methods: { + clearArea() { + this.$set(this.dataForm, 'area', 0) + this.$set(this.dataForm, 'weight', 0) + }, + setArea() { + if (this.dataForm.specifications) { + const height = Number(this.dataForm.specifications.slice(2,4)) + const length = Number(this.dataForm.specifications.slice(4,8)) + const width = Number(this.dataForm.specifications.slice(8)) + // this.dataForm.area = length * width + // this.dataForm.weight = 2.5 * height * length * width + this.$set(this.dataForm, 'area', length * width) + this.$set(this.dataForm, 'weight', 2.5 * height * length * width) + } else { + this.dataForm.area = 0 + this.dataForm.weight = 0 + } + }, initData() { this.productAttrList.splice(0); this.listQuery.total = 0; @@ -317,6 +339,10 @@ export default { // 获取产品详情 this.urlOptions.infoURL(id).then(response => { this.dataForm = response.data + // this.dataForm.area = response.data.area || 0 + // this.dataForm.weight = response.data.weight || 0 + // this.dataForm.specifications = response.data.specifications || undefined + console.log('11res112', this.dataForm.specifications, this.dataForm.weight, this.dataForm.area) if (this.dataForm.unit !== undefined) { this.dataForm.unit = String(this.dataForm.unit) } @@ -339,7 +365,7 @@ export default { goback() { this.$emit('refreshDataList'); this.visible = false; - // this.initData(); + this.initData(); }, goEdit() { this.isdetail = false; @@ -370,6 +396,7 @@ export default { this.urlOptions.createURL(this.dataForm).then(response => { this.$modal.msgSuccess("新增成功"); this.idAttrShow = true + this.dataForm.id = response.data // this.visible = false; this.$emit("refreshDataList"); }); diff --git a/src/views/base/coreWorkOrder/index.vue b/src/views/base/coreWorkOrder/index.vue index f03890b6..c34c1553 100644 --- a/src/views/base/coreWorkOrder/index.vue +++ b/src/views/base/coreWorkOrder/index.vue @@ -140,12 +140,13 @@ export default { allocationVisible: false, tableProps, tableBtn: [ - this.$auth.hasPermi(`base:core-work-order:material`) - ? { - type: 'material', - btnName: '原料信息', - } - : undefined, + // this.$auth.hasPermi(`base:core-work-order:material`) + // ? { + // type: 'material', + // btnName: '原料信息', + // showTip: '预使用原料信息' + // } + // : undefined, { type: 'active', btnName: '激活', diff --git a/src/views/base/custom/index.vue b/src/views/base/custom/index.vue index c8de9091..6deb1a50 100644 --- a/src/views/base/custom/index.vue +++ b/src/views/base/custom/index.vue @@ -268,7 +268,7 @@ export default { // }) // } else { $('.hiprintEpContainer').empty() - console.log(this.modelData); + console.log(this.modelData || {}); hiprint.PrintElementTypeManager.build('.hiprintEpContainer', provider.value) $('.hiprint-printTemplate').empty() // const templates = this.$ls.get('KEY_TEMPLATES', {}) diff --git a/src/views/base/material/add-or-updata.vue b/src/views/base/material/add-or-updata.vue index 0c082ef9..b88d7e9d 100644 --- a/src/views/base/material/add-or-updata.vue +++ b/src/views/base/material/add-or-updata.vue @@ -2,7 +2,7 @@ * @Author: zwq * @Date: 2021-11-18 14:16:25 * @LastEditors: DY - * @LastEditTime: 2023-11-27 15:26:12 + * @LastEditTime: 2023-12-04 15:10:11 * @Description: --> @@ -377,6 +377,7 @@ export default { this.urlOptions.createURL(this.dataForm).then(response => { this.$modal.msgSuccess("新增成功"); this.idAttrShow = true + this.dataForm.id = response.data this.$emit("refreshDataList"); }); }); diff --git a/src/views/energy/base/energyQuantityManual/index.vue b/src/views/energy/base/energyQuantityManual/index.vue index 39d25b8b..49b80890 100644 --- a/src/views/energy/base/energyQuantityManual/index.vue +++ b/src/views/energy/base/energyQuantityManual/index.vue @@ -106,7 +106,7 @@ export default { }, { type: 'datePicker', - label: '时间', + label: '抄表日期', dateType: 'daterange', format: 'yyyy-MM-dd', valueFormat: "timestamp", diff --git a/src/views/energy/monitoring/energyLimit/components/energyLimitAdd.vue b/src/views/energy/monitoring/energyLimit/components/energyLimitAdd.vue index 6a26d269..0650b380 100644 --- a/src/views/energy/monitoring/energyLimit/components/energyLimitAdd.vue +++ b/src/views/energy/monitoring/energyLimit/components/energyLimitAdd.vue @@ -118,8 +118,8 @@ export default { type: '', plcParamId: '', limitType: '', - minValue: null, - maxValue: null + minValue: 0, + maxValue: 0 }, objIds: [],// 回显数组 isEdit: false, //是否是编辑 @@ -239,7 +239,8 @@ export default { return false } } - // this.form.limitType = Number(this.form.limitType) + this.form.minValue = this.form.minValue || 0 + this.form.maxValue = this.form.maxValue || 0 if (this.isEdit) { // 编辑 updateEnergyLimit({...this.form}).then((res) => { diff --git a/src/views/equipment/base/inspection/Record/addRecord.vue b/src/views/equipment/base/inspection/Record/addRecord.vue index edb4cf81..961fda3e 100644 --- a/src/views/equipment/base/inspection/Record/addRecord.vue +++ b/src/views/equipment/base/inspection/Record/addRecord.vue @@ -125,7 +125,7 @@ \ No newline at end of file diff --git a/src/views/report/glass/month.vue b/src/views/report/glass/month.vue new file mode 100644 index 00000000..caa0b23b --- /dev/null +++ b/src/views/report/glass/month.vue @@ -0,0 +1,177 @@ + + + + + + + + + + 查询 + 导出 + + + + + + + + + + + diff --git a/src/views/report/glass/weekly.vue b/src/views/report/glass/weekly.vue new file mode 100644 index 00000000..cf36a70b --- /dev/null +++ b/src/views/report/glass/weekly.vue @@ -0,0 +1,198 @@ + + + + + + + + + + + 查询 + 导出 + + + + + + + + + + diff --git a/src/views/report/glass/year.vue b/src/views/report/glass/year.vue new file mode 100644 index 00000000..ff487c79 --- /dev/null +++ b/src/views/report/glass/year.vue @@ -0,0 +1,158 @@ + + + + + + + + + + 查询 + 导出 + + + + + + + + + + diff --git a/src/views/safetyEnvironmental/environmental/components/lineChart.vue b/src/views/safetyEnvironmental/environmental/components/lineChart.vue index 05860c12..0db397d9 100644 --- a/src/views/safetyEnvironmental/environmental/components/lineChart.vue +++ b/src/views/safetyEnvironmental/environmental/components/lineChart.vue @@ -68,7 +68,6 @@ export default { } obj.name = item obj.type = 'line' - obj.stack = 'Total' obj.symbol = 'none' obj.data = data seriesData.push(obj) @@ -118,7 +117,7 @@ export default { } }, grid: { - left: '3%', + left: '4%', right: '2%', bottom: '3%', containLabel: true diff --git a/src/views/safetyEnvironmental/environmental/voc/vocDetectionIndication/index.vue b/src/views/safetyEnvironmental/environmental/voc/vocDetectionIndication/index.vue index 356822e0..21444f6f 100644 --- a/src/views/safetyEnvironmental/environmental/voc/vocDetectionIndication/index.vue +++ b/src/views/safetyEnvironmental/environmental/voc/vocDetectionIndication/index.vue @@ -56,7 +56,7 @@ const tableProps = [ }, { prop: 'code', - label: '指示编码', + label: '指标编码', minWidth: 120 }, { diff --git a/src/views/safetyEnvironmental/environmental/voc/vocManagement/index.vue b/src/views/safetyEnvironmental/environmental/voc/vocManagement/index.vue index eaf0dccd..ab5ccdd5 100644 --- a/src/views/safetyEnvironmental/environmental/voc/vocManagement/index.vue +++ b/src/views/safetyEnvironmental/environmental/voc/vocManagement/index.vue @@ -35,13 +35,14 @@ import { environmentalCheckRealtime, environmentalCheckRealtimeTrend } from '@/api/safetyEnvironmental/environmental' import LineChart from './../../components/lineChart' import SearchArea from './../../components/searchArea' +import moment from 'moment' export default { name: 'Voc', data(){ return { realtimeList:[], queryParams:{ - checkType: 1, + checkType: 3, timeDim: null, timeRange: [] }, @@ -51,6 +52,9 @@ export default { components: { LineChart, SearchArea }, mounted() { this.getMsg() + this.queryParams.timeDim = this.getDictDatas(this.DICT_TYPE.TIME_DIM)[0].value // 默认时 + this.queryParams.timeRange = [moment().startOf('day')+0, moment().endOf('day')-59*61*1000] + this.getTrend() }, methods: { getMsg() { @@ -59,19 +63,21 @@ export default { this.realtimeList = res.data || [] }) }, - getTrend(params) { - console.log(params) - this.queryParams.timeDim = params.timeDim - this.queryParams.timeRange[0] = params.startTime - this.queryParams.timeRange[1] = params.endTime + getTrend() { environmentalCheckRealtimeTrend({...this.queryParams}).then(res => { - console.log(res) if (res.code === 0) { this.chartData = res.data } else { this.chartData = {} } }) + }, + submitClick(params) { + console.log(params) + this.queryParams.timeDim = params.timeDim + this.queryParams.timeRange[0] = params.startTime + this.queryParams.timeRange[1] = params.endTime + this.getTrend() } } } diff --git a/src/views/safetyEnvironmental/environmental/wasteGas/wasteGasDetectionIndication/index.vue b/src/views/safetyEnvironmental/environmental/wasteGas/wasteGasDetectionIndication/index.vue index 58c113b9..3a4a5fe5 100644 --- a/src/views/safetyEnvironmental/environmental/wasteGas/wasteGasDetectionIndication/index.vue +++ b/src/views/safetyEnvironmental/environmental/wasteGas/wasteGasDetectionIndication/index.vue @@ -56,7 +56,7 @@ const tableProps = [ }, { prop: 'code', - label: '指示编码', + label: '指标编码', minWidth: 120 }, { diff --git a/src/views/safetyEnvironmental/environmental/wasteGas/wasteGasManagement/index.vue b/src/views/safetyEnvironmental/environmental/wasteGas/wasteGasManagement/index.vue index 854cb516..3e0e80f4 100644 --- a/src/views/safetyEnvironmental/environmental/wasteGas/wasteGasManagement/index.vue +++ b/src/views/safetyEnvironmental/environmental/wasteGas/wasteGasManagement/index.vue @@ -35,6 +35,7 @@ import { environmentalCheckRealtime, environmentalCheckRealtimeTrend } from '@/api/safetyEnvironmental/environmental' import LineChart from './../../components/lineChart' import SearchArea from './../../components/searchArea' +import moment from 'moment' export default { name: 'WasteGasManagement', data(){ @@ -51,6 +52,9 @@ export default { components: { LineChart, SearchArea }, mounted() { this.getMsg() + this.queryParams.timeDim = this.getDictDatas(this.DICT_TYPE.TIME_DIM)[0].value // 默认时 + this.queryParams.timeRange = [moment().startOf('day')+0, moment().endOf('day')-59*61*1000] + this.getTrend() }, methods: { getMsg() { @@ -59,19 +63,21 @@ export default { this.realtimeList = res.data || [] }) }, - getTrend(params) { - console.log(params) - this.queryParams.timeDim = params.timeDim - this.queryParams.timeRange[0] = params.startTime - this.queryParams.timeRange[1] = params.endTime + getTrend() { environmentalCheckRealtimeTrend({...this.queryParams}).then(res => { - console.log(res) if (res.code === 0) { this.chartData = res.data } else { this.chartData = {} } }) + }, + submitClick(params) { + console.log(params) + this.queryParams.timeDim = params.timeDim + this.queryParams.timeRange[0] = params.startTime + this.queryParams.timeRange[1] = params.endTime + this.getTrend() } } } diff --git a/src/views/safetyEnvironmental/environmental/wasteWater/wasteWaterDetectionIndication/index.vue b/src/views/safetyEnvironmental/environmental/wasteWater/wasteWaterDetectionIndication/index.vue index 7a54de38..818ab7fe 100644 --- a/src/views/safetyEnvironmental/environmental/wasteWater/wasteWaterDetectionIndication/index.vue +++ b/src/views/safetyEnvironmental/environmental/wasteWater/wasteWaterDetectionIndication/index.vue @@ -56,7 +56,7 @@ const tableProps = [ }, { prop: 'code', - label: '指示编码', + label: '指标编码', minWidth: 120 }, { diff --git a/src/views/safetyEnvironmental/environmental/wasteWater/wasteWaterManagement/index.vue b/src/views/safetyEnvironmental/environmental/wasteWater/wasteWaterManagement/index.vue index 0545cb4c..c9a5d6f5 100644 --- a/src/views/safetyEnvironmental/environmental/wasteWater/wasteWaterManagement/index.vue +++ b/src/views/safetyEnvironmental/environmental/wasteWater/wasteWaterManagement/index.vue @@ -22,7 +22,7 @@ 检测指标趋势图 - + @@ -33,6 +33,7 @@ import { environmentalCheckRealtime, environmentalCheckRealtimeTrend } from '@/api/safetyEnvironmental/environmental' import LineChart from './../../components/lineChart' import SearchArea from './../../components/searchArea' +import moment from 'moment' export default { name: 'WasteWaterManagement', data(){ @@ -49,27 +50,31 @@ export default { components: { LineChart, SearchArea }, mounted() { this.getMsg() + this.queryParams.timeDim = this.getDictDatas(this.DICT_TYPE.TIME_DIM)[0].value // 默认时 + this.queryParams.timeRange = [moment().startOf('day')+0, moment().endOf('day')-59*61*1000] + this.getTrend() }, methods: { getMsg() { environmentalCheckRealtime({checkType: 1}).then(res => { - console.log(res) this.realtimeList = res.data || [] }) }, - getTrend(params) { - console.log(params) - this.queryParams.timeDim = params.timeDim - this.queryParams.timeRange[0] = params.startTime - this.queryParams.timeRange[1] = params.endTime + getTrend() { environmentalCheckRealtimeTrend({...this.queryParams}).then(res => { - console.log(res) if (res.code === 0) { this.chartData = res.data } else { this.chartData = {} } }) + }, + submitClick(params) { + console.log(params) + this.queryParams.timeDim = params.timeDim + this.queryParams.timeRange[0] = params.startTime + this.queryParams.timeRange[1] = params.endTime + this.getTrend() } } }