diff --git a/src/api/cost/allCost.js b/src/api/cost/allCost.js index 81500a8d..6e29a9d0 100644 --- a/src/api/cost/allCost.js +++ b/src/api/cost/allCost.js @@ -52,3 +52,12 @@ export function exportRawCostStatisticsHisExcel(query) { responseType: 'blob' }) } + +// 获得成本首页 -获取首页数据 +export function getData(query) { + return request({ + url: '/monitoring/cost-homepage/getData', + method: 'get', + params: query + }) +} diff --git a/src/api/environmental/environmentalLog.js b/src/api/environmental/environmentalLog.js new file mode 100644 index 00000000..0709f7bc --- /dev/null +++ b/src/api/environmental/environmentalLog.js @@ -0,0 +1,10 @@ +import request from '@/utils/request' + +// 获得环保数据历史分页 +export function getCostEnviHisPage(query) { + return request({ + url: '/monitoring/cost-envi-his/page', + method: 'get', + params: query + }) +} diff --git a/src/assets/img/home-bg.png b/src/assets/img/home-bg.png new file mode 100644 index 00000000..5ef3977f Binary files /dev/null and b/src/assets/img/home-bg.png differ diff --git a/src/assets/img/home-progress-bg.png b/src/assets/img/home-progress-bg.png new file mode 100644 index 00000000..39ddb5ef Binary files /dev/null and b/src/assets/img/home-progress-bg.png differ diff --git a/src/router/index.js b/src/router/index.js index 509a429c..b53354c1 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -76,7 +76,7 @@ export const constantRoutes = [ children: [ { path: "index", - component: (resolve) => require(["@/views/cost/raw/costMaterial/index"], resolve), + component: (resolve) => require(["@/views/cost/index"], resolve), name: "首页", meta: { title: "首页", icon: "dashboard", affix: true }, hidden: true diff --git a/src/views/Environmental/Environmental-log.vue b/src/views/Environmental/Environmental-log.vue new file mode 100644 index 00000000..26a12f5d --- /dev/null +++ b/src/views/Environmental/Environmental-log.vue @@ -0,0 +1,125 @@ + + + + + diff --git a/src/views/base/materialPricing/index.vue b/src/views/base/materialPricing/index.vue index 006fc943..8ded58c4 100644 --- a/src/views/base/materialPricing/index.vue +++ b/src/views/base/materialPricing/index.vue @@ -65,7 +65,7 @@ const tableProps = [ }, { prop: 'price', - label: '单价(元/吨)', + label: '单价(元/千克)', align: 'right', }, { diff --git a/src/views/cost/costStatistics/index.vue b/src/views/cost/costStatistics/index.vue index a984c3e5..5c8be7a6 100644 --- a/src/views/cost/costStatistics/index.vue +++ b/src/views/cost/costStatistics/index.vue @@ -54,7 +54,7 @@ :page.sync="listQuery.pageNo" :limit.sync="listQuery.pageSize" :total="listQuery.total" - @pagination="getDataList" /> + @pagination="getNavDataList" /> + @pagination="getNavDataList" /> parseTime(val, '{y}年{m}月{d}日'), }, + { + prop: 'remark', + label: '备注', + }, { prop: 'energyTypeName', label: '能源类型', @@ -115,6 +119,10 @@ const tableProps = [ }, ]; const tableProps2 = [ + { + prop: 'remark', + label: '备注', + }, { prop: 'energyTypeName', label: '能源类型', @@ -329,6 +337,13 @@ export default { this.getDataList2(); } }, + getNavDataList(){ + if (this.activeName === 'his') { + this.getDataList(); + } else { + this.getDataList2(); + } + }, // 获取数据2列表 getDataList2() { if (this.listQuery.startTime) { diff --git a/src/views/cost/deep/costDeepOthercostHis/index.vue b/src/views/cost/deep/costDeepOthercostHis/index.vue index 74f25aa6..0acc63b1 100644 --- a/src/views/cost/deep/costDeepOthercostHis/index.vue +++ b/src/views/cost/deep/costDeepOthercostHis/index.vue @@ -54,7 +54,7 @@ :page.sync="listQuery.pageNo" :limit.sync="listQuery.pageSize" :total="listQuery.total" - @pagination="getDataList" /> + @pagination="getNavDataList" /> parseTime(val, '{y}年{m}月{d}日'), }, + { + prop: 'remark', + label: '备注', + }, { prop: 'otherCostName', label: '成本名称', @@ -102,6 +106,10 @@ const tableProps = [ }, ]; const tableProps2 = [ + { + prop: 'remark', + label: '备注', + }, { prop: 'otherCostName', label: '成本名称', @@ -304,6 +312,13 @@ export default { this.getDataList2(); } }, + getNavDataList(){ + if (this.activeName === 'his') { + this.getDataList(); + } else { + this.getDataList2(); + } + }, // 获取数据2列表 getDataList2() { getRawOthercostSunPage(this.listQuery).then((response) => { diff --git a/src/views/cost/deep/costDeepRatioHis/index.vue b/src/views/cost/deep/costDeepRatioHis/index.vue index 3dd40db1..5f14d01a 100644 --- a/src/views/cost/deep/costDeepRatioHis/index.vue +++ b/src/views/cost/deep/costDeepRatioHis/index.vue @@ -52,7 +52,7 @@ :page.sync="listQuery.pageNo" :limit.sync="listQuery.pageSize" :total="listQuery.total" - @pagination="getDataList" /> + @pagination="getNavDataList" /> parseTime(val, '{y}年{m}月{d}日'), }, + { + prop: 'remark', + label: '备注', + }, { prop: 'productionLineName', label: '产线', @@ -117,6 +121,10 @@ const tableProps2 = [ label: '日期', filter: (val) => parseTime(val, '{y}年{m}月{d}日'), }, + { + prop: 'remark', + label: '备注', + }, { prop: 'productionLineName', label: '产线', @@ -309,6 +317,13 @@ export default { this.otherMethods(val); } }, + getNavDataList(){ + if (this.activeName === 'his') { + this.getDataList(); + } else { + this.getDataList2(); + } + }, successSubmit() { this.handleCancel(); const val = this.activeName === 'his' ? '产线良品率' : 'now'; diff --git a/src/views/cost/deep/costStatistics/index.vue b/src/views/cost/deep/costStatistics/index.vue index 319db503..f23e7090 100644 --- a/src/views/cost/deep/costStatistics/index.vue +++ b/src/views/cost/deep/costStatistics/index.vue @@ -54,7 +54,7 @@ :page.sync="listQuery.pageNo" :limit.sync="listQuery.pageSize" :total="listQuery.total" - @pagination="getDataList" /> + @pagination="getNavDataList" /> parseTime(val, '{y}年{m}月{d}日'), }, + { + prop: 'remark', + label: '备注', + }, { prop: 'bindObjectName', label: '产线', @@ -129,6 +133,10 @@ const tableProps = [ }, ]; const tableProps2 = [ + { + prop: 'remark', + label: '备注', + }, { prop: 'bindObjectName', label: '产线', @@ -355,6 +363,13 @@ export default { this.getDataList2(); } }, + getNavDataList(){ + if (this.activeName === 'his') { + this.getDataList(); + } else { + this.getDataList2(); + } + }, // 获取数据2列表 getDataList2() { if (this.listQuery.startTime) { diff --git a/src/views/cost/index.vue b/src/views/cost/index.vue new file mode 100644 index 00000000..2414ce2d --- /dev/null +++ b/src/views/cost/index.vue @@ -0,0 +1,410 @@ + + + + + + diff --git a/src/views/cost/raw/costEnergy/index.vue b/src/views/cost/raw/costEnergy/index.vue index cba5f4f8..e86ebbbe 100644 --- a/src/views/cost/raw/costEnergy/index.vue +++ b/src/views/cost/raw/costEnergy/index.vue @@ -54,7 +54,7 @@ :page.sync="listQuery.pageNo" :limit.sync="listQuery.pageSize" :total="listQuery.total" - @pagination="getDataList" /> + @pagination="getNavDataList" /> parseTime(val, '{y}年{m}月{d}日'), }, + { + prop: 'remark', + label: '备注', + }, { prop: 'energyTypeName', label: '能源类型', @@ -115,6 +119,10 @@ const tableProps = [ }, ]; const tableProps2 = [ + { + prop: 'remark', + label: '备注', + }, { prop: 'energyTypeName', label: '能源类型', @@ -329,6 +337,13 @@ export default { this.getDataList2(); } }, + getNavDataList(){ + if (this.activeName === 'his') { + this.getDataList(); + } else { + this.getDataList2(); + } + }, // 获取数据2列表 getDataList2() { if (this.listQuery.startTime) { diff --git a/src/views/cost/raw/costMaterial/index.vue b/src/views/cost/raw/costMaterial/index.vue index f49526a3..13a4df4c 100644 --- a/src/views/cost/raw/costMaterial/index.vue +++ b/src/views/cost/raw/costMaterial/index.vue @@ -54,7 +54,7 @@ :page.sync="listQuery.pageNo" :limit.sync="listQuery.pageSize" :total="listQuery.total" - @pagination="getDataList" /> + @pagination="getNavDataList" /> parseTime(val, '{y}年{m}月{d}日'), }, + { + prop: 'remark', + label: '备注', + }, { prop: 'materialName', label: '原料名称', }, { prop: 'quantity', - label: '累计使用量(吨)', + label: '累计使用量(千克)', }, { prop: 'matPrice', - label: '单价(元/吨)', + label: '单价(元/千克)', align: 'right', }, { @@ -111,6 +115,10 @@ const tableProps = [ }, ]; const tableProps2 = [ + { + prop: 'remark', + label: '备注', + }, { prop: 'materialName', label: '原料名称', @@ -123,11 +131,11 @@ const tableProps2 = [ }, { prop: 'quantity', - label: '累计使用量(吨)', + label: '累计使用量(千克)', }, { prop: 'materialPrice', - label: '单价(元/吨)', + label: '单价(元/千克)', align: 'right', }, { @@ -326,6 +334,13 @@ export default { this.getDataList2(); } }, + getNavDataList(){ + if (this.activeName === 'his') { + this.getDataList(); + } else { + this.getDataList2(); + } + }, // 获取数据2列表 getDataList2() { if (this.listQuery.startTime) { diff --git a/src/views/cost/raw/costOriginRatioHis/index.vue b/src/views/cost/raw/costOriginRatioHis/index.vue index b1db84fa..f243e248 100644 --- a/src/views/cost/raw/costOriginRatioHis/index.vue +++ b/src/views/cost/raw/costOriginRatioHis/index.vue @@ -54,6 +54,10 @@ const tableProps = [ filter: (val) => parseTime(val, '{y}年{m}月{d}日'), width:130, }, + { + prop: 'remark', + label: '备注', + }, { prop: 'bindObjectName', label: '产线', diff --git a/src/views/cost/raw/costOthercostHis/index.vue b/src/views/cost/raw/costOthercostHis/index.vue index 1c6c8b29..250c4788 100644 --- a/src/views/cost/raw/costOthercostHis/index.vue +++ b/src/views/cost/raw/costOthercostHis/index.vue @@ -54,7 +54,7 @@ :page.sync="listQuery.pageNo" :limit.sync="listQuery.pageSize" :total="listQuery.total" - @pagination="getDataList" /> + @pagination="getNavDataList" /> parseTime(val, '{y}年{m}月{d}日'), }, + { + prop: 'remark', + label: '备注', + }, { prop: 'otherCostName', label: '成本名称', @@ -102,6 +106,10 @@ const tableProps = [ }, ]; const tableProps2 = [ + { + prop: 'remark', + label: '备注', + }, { prop: 'otherCostName', label: '成本名称', @@ -297,6 +305,13 @@ export default { this.getDataList2(); } }, + getNavDataList(){ + if (this.activeName === 'his') { + this.getDataList(); + } else { + this.getDataList2(); + } + }, // 获取数据2列表 getDataList2() { getRawOthercostSunPage(this.listQuery).then((response) => { diff --git a/src/views/cost/raw/costStatistics/index.vue b/src/views/cost/raw/costStatistics/index.vue index b5c5e36b..0ea9d401 100644 --- a/src/views/cost/raw/costStatistics/index.vue +++ b/src/views/cost/raw/costStatistics/index.vue @@ -54,7 +54,7 @@ :page.sync="listQuery.pageNo" :limit.sync="listQuery.pageSize" :total="listQuery.total" - @pagination="getDataList" /> + @pagination="getNavDataList" /> parseTime(val, '{y}年{m}月{d}日'), }, + { + prop: 'remark', + label: '备注', + }, { prop: 'bindObjectName', label: '产线', @@ -124,6 +128,10 @@ const tableProps = [ }, ]; const tableProps2 = [ + { + prop: 'remark', + label: '备注', + }, { prop: 'bindObjectName', label: '产线', @@ -354,6 +362,13 @@ export default { this.getDataList2(); } }, + getNavDataList(){ + if (this.activeName === 'his') { + this.getDataList(); + } else { + this.getDataList2(); + } + }, // 获取数据2列表 getDataList2() { if (this.listQuery.startTime) { diff --git a/src/views/dashboard/BarChart.vue b/src/views/dashboard/BarChart.vue index 88e7ef64..b8b20058 100644 --- a/src/views/dashboard/BarChart.vue +++ b/src/views/dashboard/BarChart.vue @@ -74,21 +74,21 @@ export default { } }], series: [{ - name: 'pageA', + name: '成本1', type: 'bar', stack: 'vistors', barWidth: '60%', data: [79, 52, 200, 334, 390, 330, 220], animationDuration }, { - name: 'pageB', + name: '成本2', type: 'bar', stack: 'vistors', barWidth: '60%', data: [80, 52, 200, 334, 390, 330, 220], animationDuration }, { - name: 'pageC', + name: '成本3', type: 'bar', stack: 'vistors', barWidth: '60%', diff --git a/src/views/monitoring/equipmentFullParams/index.vue b/src/views/monitoring/equipmentFullParams/index.vue index 4e681abe..9234357f 100644 --- a/src/views/monitoring/equipmentFullParams/index.vue +++ b/src/views/monitoring/equipmentFullParams/index.vue @@ -1,4 +1,4 @@ -