diff --git a/src/api/environmental/environmentalLog.js b/src/api/environmental/environmentalLog.js
index 0709f7bc..9dfae29e 100644
--- a/src/api/environmental/environmentalLog.js
+++ b/src/api/environmental/environmentalLog.js
@@ -8,3 +8,12 @@ export function getCostEnviHisPage(query) {
params: query
})
}
+
+// 获得余热发电page
+export function yurepage(query) {
+ return request({
+ url: '/base/energy-quantity-day/yurepage',
+ method: 'get',
+ params: query
+ })
+}
diff --git a/src/mixins/basic-page.js b/src/mixins/basic-page.js
index 549a15a6..46218a24 100644
--- a/src/mixins/basic-page.js
+++ b/src/mixins/basic-page.js
@@ -2,7 +2,7 @@
* @Author: zwq
* @Date: 2022-08-24 11:19:43
* @LastEditors: zwq
- * @LastEditTime: 2024-04-02 09:33:29
+ * @LastEditTime: 2025-02-21 13:18:46
* @Description:
*/
export default {
@@ -16,7 +16,7 @@ export default {
},
tableData: [], //table数据
listQuery: { //分页
- pageSize: 10,
+ pageSize: 20,
pageNo: 1,
total: 1,
},
diff --git a/src/views/Environmental/Envi-yure-log.vue b/src/views/Environmental/Envi-yure-log.vue
new file mode 100644
index 00000000..04031881
--- /dev/null
+++ b/src/views/Environmental/Envi-yure-log.vue
@@ -0,0 +1,121 @@
+
+
+
+
+
+
+
diff --git a/src/views/Environmental/Environmental-log.vue b/src/views/Environmental/Environmental-log.vue
index 26a12f5d..4710e14c 100644
--- a/src/views/Environmental/Environmental-log.vue
+++ b/src/views/Environmental/Environmental-log.vue
@@ -2,7 +2,7 @@
* @Author: zwq
* @Date: 2024-11-13 14:01:16
* @LastEditors: zwq
- * @LastEditTime: 2024-11-13 15:36:35
+ * @LastEditTime: 2025-02-21 14:31:00
* @Description:
-->
@@ -40,7 +40,6 @@ const tableProps = [
prop: 'recTime',
label: '记录时间',
filter: parseTime,
- minWidth: 150,
},
{
prop: 'remark',
@@ -49,14 +48,17 @@ const tableProps = [
{
prop: 'envi1',
label: '二氧化硫mg/Nm3',
+ filter: (val) => (val != null ? Number(val).toFixed(2) : '-'),
},
{
prop: 'envi2',
label: '氮氧化物mg/Nm3',
+ filter: (val) => (val != null ? Number(val).toFixed(2) : '-'),
},
{
prop: 'envi3',
label: '粉尘mg/Nm3',
+ filter: (val) => (val != null ? Number(val).toFixed(2) : '-'),
},
];
export default {
@@ -101,15 +103,19 @@ export default {
const start = new Date();
this.listQuery.startTime = parseTime(start).substr(0, 10) + ' 00:00:00';
this.listQuery.endTime = parseTime(end).substr(0, 10) + ' 23:59:59';
- this.formConfig[0].startPlaceholder = parseTime(start).substr(0, 10);
- this.formConfig[0].endPlaceholder = parseTime(end).substr(0, 10);
+ this.$nextTick(() => {
+ this.$refs.searchBarForm.formInline.searchTime = [
+ this.listQuery.startTime,
+ this.listQuery.endTime,
+ ];
+ });
},
methods: {
buttonClick(val) {
switch (val.btnName) {
case 'search':
this.listQuery.pageNo = 1;
- this.listQuery.pageSize = 10;
+ this.listQuery.pageSize = 20;
this.listQuery.statisticType = 1;
this.listQuery.startTime = val.searchTime ? val.searchTime[0] : null;
this.listQuery.endTime = val.searchTime ? val.searchTime[1] : null;
diff --git a/src/views/base/material/index.vue b/src/views/base/material/index.vue
index edcbbd8f..8a074d7f 100644
--- a/src/views/base/material/index.vue
+++ b/src/views/base/material/index.vue
@@ -57,7 +57,6 @@ const tableProps = [
prop: 'createTime',
label: '添加时间',
filter: parseTime,
- minWidth: 150
},
{
prop: 'name',
@@ -68,6 +67,10 @@ const tableProps = [
label: '原料编码',
width: 180,
},
+ {
+ prop: 'level',
+ label: '原料等级',
+ },
{
prop: 'unit',
label: '单位',
@@ -149,7 +152,7 @@ export default {
switch (val.btnName) {
case 'search':
this.listQuery.pageNo = 1;
- this.listQuery.pageSize = 10;
+ this.listQuery.pageSize = 20;
this.listQuery.name = val.name;
this.listQuery.code = val.code;
this.getDataList();
diff --git a/src/views/base/materialPricing/index.vue b/src/views/base/materialPricing/index.vue
index b460d22b..91d3cdd8 100644
--- a/src/views/base/materialPricing/index.vue
+++ b/src/views/base/materialPricing/index.vue
@@ -152,7 +152,7 @@ export default {
switch (val.btnName) {
case 'search':
this.listQuery.pageNo = 1;
- this.listQuery.pageSize = 10;
+ this.listQuery.pageSize = 20;
this.listQuery.materialId = val.name;
this.getDataList();
break;
diff --git a/src/views/core/base/factory/index.vue b/src/views/core/base/factory/index.vue
index d03a3b4e..949d0290 100644
--- a/src/views/core/base/factory/index.vue
+++ b/src/views/core/base/factory/index.vue
@@ -154,7 +154,7 @@ export default {
switch (val.btnName) {
case 'search':
this.listQuery.pageNo = 1;
- this.listQuery.pageSize = 10;
+ this.listQuery.pageSize = 20;
this.listQuery.name = val.name;
this.listQuery.code = val.code;
this.getDataList();
diff --git a/src/views/core/base/lineBindProduct/index.vue b/src/views/core/base/lineBindProduct/index.vue
index 3abff327..5ed6b4ed 100644
--- a/src/views/core/base/lineBindProduct/index.vue
+++ b/src/views/core/base/lineBindProduct/index.vue
@@ -85,7 +85,7 @@ export default {
switch (val.btnName) {
case 'search':
this.listQuery.pageNo = 1;
- this.listQuery.pageSize = 10;
+ this.listQuery.pageSize = 20;
this.getDataList();
break;
default:
diff --git a/src/views/core/base/lineBindProductLog/index.vue b/src/views/core/base/lineBindProductLog/index.vue
index e8a1f613..f107a2db 100644
--- a/src/views/core/base/lineBindProductLog/index.vue
+++ b/src/views/core/base/lineBindProductLog/index.vue
@@ -120,7 +120,7 @@ export default {
switch (val.btnName) {
case 'search':
this.listQuery.pageNo = 1;
- this.listQuery.pageSize = 10;
+ this.listQuery.pageSize = 20;
this.listQuery.productionLineId = val.productionLineId;
this.listQuery.productId = val.productId;
this.listQuery.startTime = val.startTime;
diff --git a/src/views/core/base/product/index.vue b/src/views/core/base/product/index.vue
index 7090b1bf..bfee8af4 100644
--- a/src/views/core/base/product/index.vue
+++ b/src/views/core/base/product/index.vue
@@ -162,7 +162,7 @@ export default {
switch (val.btnName) {
case 'search':
this.listQuery.pageNo = 1;
- this.listQuery.pageSize = 10;
+ this.listQuery.pageSize = 20;
this.listQuery.name = val.name;
this.listQuery.code = val.code;
this.getDataList();
diff --git a/src/views/core/base/productionLine/index.vue b/src/views/core/base/productionLine/index.vue
index 31a4fcd3..1215d78f 100644
--- a/src/views/core/base/productionLine/index.vue
+++ b/src/views/core/base/productionLine/index.vue
@@ -196,7 +196,7 @@ export default {
switch (val.btnName) {
case 'search':
this.listQuery.pageNo = 1;
- this.listQuery.pageSize = 10;
+ this.listQuery.pageSize = 20;
this.listQuery.name = val.name;
this.getDataList();
break;
diff --git a/src/views/core/base/workshopSection/index.vue b/src/views/core/base/workshopSection/index.vue
index 7bc1514f..56a9cfc2 100644
--- a/src/views/core/base/workshopSection/index.vue
+++ b/src/views/core/base/workshopSection/index.vue
@@ -152,7 +152,7 @@ export default {
switch (val.btnName) {
case 'search':
this.listQuery.pageNo = 1;
- this.listQuery.pageSize = 10;
+ this.listQuery.pageSize = 20;
this.listQuery.name = val.name;
this.getDataList();
break;
diff --git a/src/views/core/monitoring/auto/index.vue b/src/views/core/monitoring/auto/index.vue
index 04e9788c..8bce3732 100644
--- a/src/views/core/monitoring/auto/index.vue
+++ b/src/views/core/monitoring/auto/index.vue
@@ -309,7 +309,7 @@ export default {
switch (val.btnName) {
case 'search':
this.listQuery.pageNo = 1;
- this.listQuery.pageSize = 10;
+ this.listQuery.pageSize = 20;
this.listQuery.lineId = val.line ? val.line : undefined;
this.listQuery.reportType = val.reportType ? val.reportType : undefined;
this.listQuery.reportStartTime = val.timeVal ? [new Date(val.timeVal[0]).getTime()] : undefined;
diff --git a/src/views/core/monitoring/data/index.vue b/src/views/core/monitoring/data/index.vue
index 888e2401..483547f1 100644
--- a/src/views/core/monitoring/data/index.vue
+++ b/src/views/core/monitoring/data/index.vue
@@ -263,7 +263,7 @@ export default {
switch (val.btnName) {
case 'search':
this.listQuery.pageNo = 1;
- this.listQuery.pageSize = 10;
+ this.listQuery.pageSize = 20;
this.listQuery.proLineId = val.line ? val.line : undefined;
this.listQuery.startTime = val.timeVal ? new Date(val.timeVal[0]).getTime() : undefined;
this.listQuery.endTime = val.timeVal ? new Date(val.timeVal[1]).getTime() : undefined;
diff --git a/src/views/core/monitoring/sectionStatistics/index.vue b/src/views/core/monitoring/sectionStatistics/index.vue
index 9587ebf7..aa5c57dd 100644
--- a/src/views/core/monitoring/sectionStatistics/index.vue
+++ b/src/views/core/monitoring/sectionStatistics/index.vue
@@ -305,7 +305,7 @@ export default {
switch (val.btnName) {
case 'search':
this.listQuery.pageNo = 1;
- this.listQuery.pageSize = 10;
+ this.listQuery.pageSize = 20;
this.listQuery.lineId = val.line ? val.line : undefined;
this.listQuery.sectionId = val.section ? val.section : undefined;
this.listQuery.reportType = val.reportType ? val.reportType : undefined;
diff --git a/src/views/core/monitoring/sectionStatisticsSearch/index.vue b/src/views/core/monitoring/sectionStatisticsSearch/index.vue
index 1fa010ee..5b8c18a7 100644
--- a/src/views/core/monitoring/sectionStatisticsSearch/index.vue
+++ b/src/views/core/monitoring/sectionStatisticsSearch/index.vue
@@ -321,7 +321,7 @@ export default {
console.log(val.timeSlot);
// this.listQuery.pageNo = 1;
- // this.listQuery.pageSize = 10;
+ // this.listQuery.pageSize = 20;
this.listQuery.proLineId = val.proLineId ? val.proLineId : undefined
this.listQuery.sectionId = val.sectionId ? val.sectionId : undefined
this.listQuery.startTime = val.timeSlot ? new Date(val.timeSlot[0]).getTime() : undefined
diff --git a/src/views/cost/costStatistics/index.vue b/src/views/cost/costStatistics/index.vue
index 0581442d..5aa07486 100644
--- a/src/views/cost/costStatistics/index.vue
+++ b/src/views/cost/costStatistics/index.vue
@@ -86,32 +86,36 @@ import ButtonNav from '@/components/ButtonNav';
const tableProps = [
{
- prop: 'recTime',
+ prop: 'time',
label: '日期',
- filter: (val) => parseTime(val, '{y}年{m}月{d}日'),
},
{
prop: 'originArea',
label: '原片下片面积',
+ filter: (val) => (val != null ? Number(val).toFixed(2) : '-'),
},
{
prop: 'deepArea',
label: '深加工下片面积',
+ filter: (val) => (val != null ? Number(val).toFixed(2) : '-'),
},
{
prop: 'originPrice',
label: '原片成本/元',
align: 'right',
+ filter: (val) => (val != null ? Number(val).toFixed(2) : '-'),
},
{
prop: 'deepPrice',
label: '深加工成本/元',
align: 'right',
+ filter: (val) => (val != null ? Number(val).toFixed(2) : '-'),
},
{
prop: 'price',
label: '总成本/元',
align: 'right',
+ filter: (val) => (val != null ? Number(val).toFixed(2) : '-'),
},
];
const tableProps2 = [
@@ -244,19 +248,12 @@ export default {
},
methods: {
buttonClick(val) {
- if (val.statisticType === 2) {
- this.tableProps[0].filter = (val) =>
- parseTime(val, '{y}年第{w}周');
- }else{
- this.tableProps[0].filter = (val) =>
- parseTime(val, '{y}年{m}月{d}日');
- }
this.formConfig2[0].startPlaceholder = '开始时间';
this.formConfig2[0].endPlaceholder = '结束时间';
switch (val.btnName) {
case 'search':
this.listQuery.pageNo = 1;
- this.listQuery.pageSize = 10;
+ this.listQuery.pageSize = 20;
this.listQuery.bindObjectId = val.name || null;
this.listQuery.statisticType = val.statisticType || 1;
this.listQuery.startTime = val.searchTime ? val.searchTime[0] : null;
@@ -274,7 +271,7 @@ export default {
break;
case 'export':
this.listQuery.pageNo = 1;
- this.listQuery.pageSize = 10;
+ this.listQuery.pageSize = 20;
this.listQuery.bindObjectId = val.name || null;
this.listQuery.statisticType = val.statisticType || 1;
this.listQuery.startTime = val.searchTime ? val.searchTime[0] : null;
diff --git a/src/views/cost/deep/24hourCostMonitor/index.vue b/src/views/cost/deep/24hourCostMonitor/index.vue
index 5210f68b..6fbb11fc 100644
--- a/src/views/cost/deep/24hourCostMonitor/index.vue
+++ b/src/views/cost/deep/24hourCostMonitor/index.vue
@@ -77,7 +77,7 @@ export default {
switch (val.btnName) {
case 'search':
this.listQuery.pageNo = 1;
- this.listQuery.pageSize = 10;
+ this.listQuery.pageSize = 20;
this.listQuery.name = val.name||null;
this.listQuery.startTime = val.searchTime ? val.searchTime[0] : null;
this.listQuery.endTime = val.searchTime
@@ -90,7 +90,7 @@ export default {
break;
case 'export':
this.listQuery.pageNo = 1;
- this.listQuery.pageSize = 10;
+ this.listQuery.pageSize = 20;
this.listQuery.name = val.name;
this.listQuery.recTime = val.searchTime;
this.handleExport();
diff --git a/src/views/cost/deep/costDeepEnergy/index.vue b/src/views/cost/deep/costDeepEnergy/index.vue
index 0d9fd475..3813a81e 100644
--- a/src/views/cost/deep/costDeepEnergy/index.vue
+++ b/src/views/cost/deep/costDeepEnergy/index.vue
@@ -86,9 +86,8 @@ import ButtonNav from '@/components/ButtonNav';
const tableProps = [
{
- prop: 'recTime',
+ prop: 'time',
label: '日期',
- filter: (val) => parseTime(val, '{y}年{m}月{d}日'),
},
{
prop: 'remark',
@@ -98,16 +97,16 @@ const tableProps = [
prop: 'energyTypeName',
label: '能源类型',
},
- {
- prop: 'bindObjectName',
- label: '监控对象',
- filter: (val) => (val != null ? val : '--'),
- },
- {
- prop: 'meterName',
- label: '抄表名',
- filter: (val) => (val != null ? val : '--'),
- },
+ // {
+ // prop: 'bindObjectName',
+ // label: '监控对象',
+ // filter: (val) => (val != null ? val : '--'),
+ // },
+ // {
+ // prop: 'meterName',
+ // label: '抄表名',
+ // filter: (val) => (val != null ? val : '--'),
+ // },
{
prop: 'quantity',
label: '累计使用量',
@@ -127,16 +126,16 @@ const tableProps2 = [
prop: 'energyTypeName',
label: '能源类型',
},
- {
- prop: 'bindObjectName',
- label: '监控对象',
- filter: (val) => (val != null ? val : '--'),
- },
- {
- prop: 'meter',
- label: '抄表名',
- filter: (val) => (val != null ? val : '--'),
- },
+ // {
+ // prop: 'bindObjectName',
+ // label: '监控对象',
+ // filter: (val) => (val != null ? val : '--'),
+ // },
+ // {
+ // prop: 'meter',
+ // label: '抄表名',
+ // filter: (val) => (val != null ? val : '--'),
+ // },
{
prop: 'quantity',
label: '累计使用量',
@@ -273,17 +272,10 @@ export default {
},
methods: {
buttonClick(val) {
- if (val.statisticType === 2) {
- this.tableProps[0].filter = (val) =>
- parseTime(val, '{y}年第{w}周');
- }else{
- this.tableProps[0].filter = (val) =>
- parseTime(val, '{y}年{m}月{d}日');
- }
switch (val.btnName) {
case 'search':
this.listQuery.pageNo = 1;
- this.listQuery.pageSize = 10;
+ this.listQuery.pageSize = 20;
this.listQuery.energyTypeId = val.name || null;
this.listQuery.statisticType = val.statisticType || 1;
this.listQuery.startTime = val.searchTime ? val.searchTime[0] : null;
@@ -302,7 +294,7 @@ export default {
break;
case 'export':
this.listQuery.pageNo = 1;
- this.listQuery.pageSize = 10;
+ this.listQuery.pageSize = 20;
this.listQuery.energyTypeId = val.name || null;
this.listQuery.statisticType = val.statisticType || 1;
this.listQuery.startTime = val.searchTime ? val.searchTime[0] : null;
diff --git a/src/views/cost/deep/costDeepOthercostHis/index.vue b/src/views/cost/deep/costDeepOthercostHis/index.vue
index 7726da3e..875f1e8d 100644
--- a/src/views/cost/deep/costDeepOthercostHis/index.vue
+++ b/src/views/cost/deep/costDeepOthercostHis/index.vue
@@ -87,9 +87,8 @@ import ButtonNav from '@/components/ButtonNav';
const tableProps = [
{
- prop: 'recTime',
+ prop: 'time',
label: '日期',
- filter: (val) => parseTime(val, '{y}年{m}月{d}日'),
},
{
prop: 'remark',
@@ -103,13 +102,14 @@ const tableProps = [
prop: 'price',
label: '总价(元)',
align: 'right',
+ filter: (val) => (val != null ? Number(val).toFixed(2) : '-'),
},
];
const tableProps2 = [
- {
- prop: 'remark',
- label: '备注',
- },
+ // {
+ // prop: 'remark',
+ // label: '备注',
+ // },
{
prop: 'otherCostName',
label: '成本名称',
@@ -118,6 +118,7 @@ const tableProps2 = [
prop: 'price',
label: '总价(元)',
align: 'right',
+ filter: (val) => (val != null ? Number(val).toFixed(2) : '-'),
},
];
export default {
@@ -248,17 +249,10 @@ export default {
},
methods: {
buttonClick(val) {
- if (val.statisticType === 2) {
- this.tableProps[0].filter = (val) =>
- parseTime(val, '{y}年第{w}周');
- }else{
- this.tableProps[0].filter = (val) =>
- parseTime(val, '{y}年{m}月{d}日');
- }
switch (val.btnName) {
case 'search':
this.listQuery.pageNo = 1;
- this.listQuery.pageSize = 10;
+ this.listQuery.pageSize = 20;
this.listQuery.name = val.name || null;
this.listQuery.statisticType = val.statisticType || 1;
this.listQuery.startTime = val.searchTime ? val.searchTime[0] : null;
@@ -279,7 +273,7 @@ export default {
break;
case 'export':
this.listQuery.pageNo = 1;
- this.listQuery.pageSize = 10;
+ this.listQuery.pageSize = 20;
this.listQuery.name = val.name || null;
this.listQuery.statisticType = val.statisticType || 1;
this.listQuery.startTime = val.searchTime ? val.searchTime[0] : null;
diff --git a/src/views/cost/deep/costDeepOthercostLog/index.vue b/src/views/cost/deep/costDeepOthercostLog/index.vue
index 0e41f5f7..d8b76d4c 100644
--- a/src/views/cost/deep/costDeepOthercostLog/index.vue
+++ b/src/views/cost/deep/costDeepOthercostLog/index.vue
@@ -65,6 +65,7 @@ const tableProps = [
prop: 'price',
label: '成本金额',
align: 'right',
+ filter: (val) => (val != null ? Number(val).toFixed(2) : '-'),
},
{
prop: 'remark',
@@ -161,7 +162,7 @@ export default {
switch (val.btnName) {
case 'search':
this.listQuery.pageNo = 1;
- this.listQuery.pageSize = 10;
+ this.listQuery.pageSize = 20;
this.listQuery.name = val.name||null;
this.listQuery.startTime = val.searchTime ? val.searchTime[0] : null;
this.listQuery.endTime = val.searchTime
@@ -174,7 +175,7 @@ export default {
break;
case 'export':
this.listQuery.pageNo = 1;
- this.listQuery.pageSize = 10;
+ this.listQuery.pageSize = 20;
this.listQuery.name = val.name||null;
this.listQuery.startTime = val.searchTime ? val.searchTime[0] : null;
this.listQuery.endTime = val.searchTime
diff --git a/src/views/cost/deep/costDeepRatioHis/index.vue b/src/views/cost/deep/costDeepRatioHis/index.vue
index 9bdf4e4c..04248d6e 100644
--- a/src/views/cost/deep/costDeepRatioHis/index.vue
+++ b/src/views/cost/deep/costDeepRatioHis/index.vue
@@ -85,9 +85,8 @@ import ButtonNav from '@/components/ButtonNav';
const tableProps = [
{
- prop: 'recTime',
+ prop: 'time',
label: '日期',
- filter: (val) => parseTime(val, '{y}年{m}月{d}日'),
},
{
prop: 'remark',
@@ -104,22 +103,23 @@ const tableProps = [
{
prop: 'innum',
label: '上片数量',
+ filter: (val) => (val != null ? Number(val).toFixed(2) : '-'),
},
{
prop: 'outnum',
label: '下片数量',
+ filter: (val) => (val != null ? Number(val).toFixed(2) : '-'),
},
{
prop: 'ratio',
label: '良品率',
- filter: (val) => (val ? val * 100 + '%' : '-'),
+ filter: (val) => (val ? Number(val * 100).toFixed(2) + '%' : '-'),
},
];
const tableProps2 = [
{
- prop: 'recTime',
+ prop: 'time',
label: '日期',
- filter: (val) => parseTime(val, '{y}年{m}月{d}日'),
},
{
prop: 'remark',
@@ -136,15 +136,17 @@ const tableProps2 = [
{
prop: 'innum',
label: '进片数量',
+ filter: (val) => (val != null ? Number(val).toFixed(2) : '-'),
},
{
prop: 'outnum',
label: '出片数量',
+ filter: (val) => (val != null ? Number(val).toFixed(2) : '-'),
},
{
prop: 'ratio',
label: '良品率',
- filter: (val) => (val ? val * 100 + '%' : '-'),
+ filter: (val) => (val ? Number(val * 100).toFixed(2) + '%' : '-'),
},
];
export default {
@@ -235,17 +237,10 @@ export default {
},
methods: {
buttonClick(val) {
- if (val.statisticType === 2) {
- this.tableProps[0].filter = (val) =>
- parseTime(val, '{y}年第{w}周');
- }else{
- this.tableProps[0].filter = (val) =>
- parseTime(val, '{y}年{m}月{d}日');
- }
switch (val.btnName) {
case 'search':
this.listQuery.pageNo = 1;
- this.listQuery.pageSize = 10;
+ this.listQuery.pageSize = 20;
this.listQuery.productionLineId = val.name || null;
this.listQuery.statisticType = val.statisticType || 1;
this.listQuery.startTime = val.searchTime ? val.searchTime[0] : null;
@@ -263,7 +258,7 @@ export default {
break;
case 'export':
this.listQuery.pageNo = 1;
- this.listQuery.pageSize = 10;
+ this.listQuery.pageSize = 20;
this.listQuery.productionLineId = val.name || null;
this.listQuery.statisticType = val.statisticType || 1;
this.listQuery.startTime = val.searchTime ? val.searchTime[0] : null;
diff --git a/src/views/cost/deep/costStatistics/index.vue b/src/views/cost/deep/costStatistics/index.vue
index 3d5a04cc..5ae2769e 100644
--- a/src/views/cost/deep/costStatistics/index.vue
+++ b/src/views/cost/deep/costStatistics/index.vue
@@ -87,9 +87,8 @@ import ButtonNav from '@/components/ButtonNav';
const tableProps = [
{
- prop: 'recTime',
+ prop: 'time',
label: '时间',
- filter: (val) => parseTime(val, '{y}年{m}月{d}日'),
},
{
prop: 'remark',
@@ -106,30 +105,35 @@ const tableProps = [
{
prop: 'inCount',
label: '上片数量',
+ filter: (val) => (val != null ? Number(val).toFixed(2) : '-'),
},
{
prop: 'outCount',
label: '下片数量',
+ filter: (val) => (val != null ? Number(val).toFixed(2) : '-'),
},
{
prop: 'ratio',
label: '良品率',
- filter: (val) => (val ? val * 100 + '%' : '-'),
+ filter: (val) => (val ? Number(val * 100).toFixed(2) + '%' : '-'),
},
{
prop: 'costSum',
label: '深加工成本/元',
align: 'right',
+ filter: (val) => (val != null ? Number(val).toFixed(2) : '-'),
},
{
prop: 'costPiece',
label: '单片成本/元',
align: 'right',
+ filter: (val) => (val != null ? Number(val).toFixed(2) : '-'),
},
{
prop: 'costArea',
label: '每平米成本/元',
align: 'right',
+ filter: (val) => (val != null ? Number(val).toFixed(2) : '-'),
},
];
const tableProps2 = [
@@ -148,30 +152,35 @@ const tableProps2 = [
{
prop: 'inCount',
label: '上片数量',
+ filter: (val) => (val != null ? Number(val).toFixed(2) : '-'),
},
{
prop: 'outCount',
label: '下片数量',
+ filter: (val) => (val != null ? Number(val).toFixed(2) : '-'),
},
{
prop: 'ratio',
label: '良品率',
- filter: (val) => (val ? val * 100 + '%' : '-'),
+ filter: (val) => (val ? Number(val * 100).toFixed(2) + '%' : '-'),
},
{
prop: 'costSum',
label: '深加工成本/元',
align: 'right',
+ filter: (val) => (val != null ? Number(val).toFixed(2) : '-'),
},
{
prop: 'costPiece',
label: '单片成本/元',
align: 'right',
+ filter: (val) => (val != null ? Number(val).toFixed(2) : '-'),
},
{
prop: 'costArea',
label: '每平米成本/元',
align: 'right',
+ filter: (val) => (val != null ? Number(val).toFixed(2) : '-'),
},
];
export default {
@@ -299,17 +308,10 @@ export default {
},
methods: {
buttonClick(val) {
- if (val.statisticType === 2) {
- this.tableProps[0].filter = (val) =>
- parseTime(val, '{y}年第{w}周');
- }else{
- this.tableProps[0].filter = (val) =>
- parseTime(val, '{y}年{m}月{d}日');
- }
switch (val.btnName) {
case 'search':
this.listQuery.pageNo = 1;
- this.listQuery.pageSize = 10;
+ this.listQuery.pageSize = 20;
this.listQuery.bindObjectId = val.name || null;
this.listQuery.statisticType = val.statisticType || 1;
this.listQuery.startTime = val.searchTime ? val.searchTime[0] : null;
@@ -330,7 +332,7 @@ export default {
break;
case 'export':
this.listQuery.pageNo = 1;
- this.listQuery.pageSize = 10;
+ this.listQuery.pageSize = 20;
this.listQuery.bindObjectId = val.name || null;
this.listQuery.statisticType = val.statisticType || 1;
this.listQuery.startTime = val.searchTime ? val.searchTime[0] : null;
diff --git a/src/views/cost/indexDetail.vue b/src/views/cost/indexDetail.vue
index b3f37cc4..3d469aaa 100644
--- a/src/views/cost/indexDetail.vue
+++ b/src/views/cost/indexDetail.vue
@@ -45,14 +45,8 @@ const tableProps1 = [
],
},
{
- prop: 'f2',
+ prop: 'sprice',
label: '单位成本',
- children: [
- {
- prop: 'sprice',
- label: '本月',
- },
- ],
},
];
@@ -74,14 +68,8 @@ const tableProps2 = [
label: '总成本',
},
{
- prop: 'f2',
+ prop: 'sprice',
label: '综合单位成本',
- children: [
- {
- prop: 'sprice',
- label: '本月',
- },
- ],
},
];
export default {
diff --git a/src/views/cost/raw/24hourCostMonitor/index.vue b/src/views/cost/raw/24hourCostMonitor/index.vue
index 5210f68b..6fbb11fc 100644
--- a/src/views/cost/raw/24hourCostMonitor/index.vue
+++ b/src/views/cost/raw/24hourCostMonitor/index.vue
@@ -77,7 +77,7 @@ export default {
switch (val.btnName) {
case 'search':
this.listQuery.pageNo = 1;
- this.listQuery.pageSize = 10;
+ this.listQuery.pageSize = 20;
this.listQuery.name = val.name||null;
this.listQuery.startTime = val.searchTime ? val.searchTime[0] : null;
this.listQuery.endTime = val.searchTime
@@ -90,7 +90,7 @@ export default {
break;
case 'export':
this.listQuery.pageNo = 1;
- this.listQuery.pageSize = 10;
+ this.listQuery.pageSize = 20;
this.listQuery.name = val.name;
this.listQuery.recTime = val.searchTime;
this.handleExport();
diff --git a/src/views/cost/raw/costEnergy/index.vue b/src/views/cost/raw/costEnergy/index.vue
index 8c4260ec..0177d17e 100644
--- a/src/views/cost/raw/costEnergy/index.vue
+++ b/src/views/cost/raw/costEnergy/index.vue
@@ -86,9 +86,8 @@ import ButtonNav from '@/components/ButtonNav';
const tableProps = [
{
- prop: 'recTime',
+ prop: 'time',
label: '日期',
- filter: (val) => parseTime(val, '{y}年{m}月{d}日'),
},
{
prop: 'remark',
@@ -98,16 +97,16 @@ const tableProps = [
prop: 'energyTypeName',
label: '能源类型',
},
- {
- prop: 'bindObjectName',
- label: '监控对象',
- filter: (val) => (val != null ? val : '--'),
- },
- {
- prop: 'meterName',
- label: '抄表名',
- filter: (val) => (val != null ? val : '--'),
- },
+ // {
+ // prop: 'bindObjectName',
+ // label: '监控对象',
+ // filter: (val) => (val != null ? val : '--'),
+ // },
+ // {
+ // prop: 'meterName',
+ // label: '抄表名',
+ // filter: (val) => (val != null ? val : '--'),
+ // },
{
prop: 'quantity',
label: '累计使用量',
@@ -127,16 +126,16 @@ const tableProps2 = [
prop: 'energyTypeName',
label: '能源类型',
},
- {
- prop: 'bindObjectName',
- label: '监控对象',
- filter: (val) => (val != null ? val : '--'),
- },
- {
- prop: 'meter',
- label: '抄表名',
- filter: (val) => (val != null ? val : '--'),
- },
+ // {
+ // prop: 'bindObjectName',
+ // label: '监控对象',
+ // filter: (val) => (val != null ? val : '--'),
+ // },
+ // {
+ // prop: 'meter',
+ // label: '抄表名',
+ // filter: (val) => (val != null ? val : '--'),
+ // },
{
prop: 'quantity',
label: '累计使用量',
@@ -274,15 +273,10 @@ export default {
},
methods: {
buttonClick(val) {
- if (val.statisticType === 2) {
- this.tableProps[0].filter = (val) => parseTime(val, '{y}年第{w}周');
- } else {
- this.tableProps[0].filter = (val) => parseTime(val, '{y}年{m}月{d}日');
- }
switch (val.btnName) {
case 'search':
this.listQuery.pageNo = 1;
- this.listQuery.pageSize = 10;
+ this.listQuery.pageSize = 20;
this.listQuery.energyTypeId = val.name || null;
this.listQuery.statisticType = val.statisticType || 1;
this.listQuery.startTime = val.searchTime ? val.searchTime[0] : null;
@@ -301,7 +295,7 @@ export default {
break;
case 'export':
this.listQuery.pageNo = 1;
- this.listQuery.pageSize = 10;
+ this.listQuery.pageSize = 20;
this.listQuery.energyTypeId = val.name || null;
this.listQuery.statisticType = val.statisticType || 1;
this.listQuery.startTime = val.searchTime ? val.searchTime[0] : null;
diff --git a/src/views/cost/raw/costMaterial/index.vue b/src/views/cost/raw/costMaterial/index.vue
index 6a68f686..46e2e6c9 100644
--- a/src/views/cost/raw/costMaterial/index.vue
+++ b/src/views/cost/raw/costMaterial/index.vue
@@ -87,9 +87,8 @@ import ButtonNav from '@/components/ButtonNav';
const tableProps = [
{
- prop: 'recTime',
+ prop: 'time',
label: '日期',
- filter: (val) => parseTime(val, '{y}年{m}月{d}日'),
},
{
prop: 'remark',
@@ -115,10 +114,10 @@ const tableProps = [
},
];
const tableProps2 = [
- {
- prop: 'remark',
- label: '备注',
- },
+ // {
+ // prop: 'remark',
+ // label: '备注',
+ // },
{
prop: 'materialName',
label: '原料名称',
@@ -271,15 +270,10 @@ export default {
},
methods: {
buttonClick(val) {
- if (val.statisticType === 2) {
- this.tableProps[0].filter = (val) => parseTime(val, '{y}年第{w}周');
- } else {
- this.tableProps[0].filter = (val) => parseTime(val, '{y}年{m}月{d}日');
- }
switch (val.btnName) {
case 'search':
this.listQuery.pageNo = 1;
- this.listQuery.pageSize = 10;
+ this.listQuery.pageSize = 20;
this.listQuery.materialId = val.name || null;
this.listQuery.statisticType = val.statisticType || 1;
this.listQuery.startTime = val.searchTime ? val.searchTime[0] : null;
@@ -300,7 +294,7 @@ export default {
break;
case 'export':
this.listQuery.pageNo = 1;
- this.listQuery.pageSize = 10;
+ this.listQuery.pageSize = 20;
this.listQuery.materialId = val.name || null;
this.listQuery.statisticType = val.statisticType || 1;
this.listQuery.startTime = val.searchTime ? val.searchTime[0] : null;
diff --git a/src/views/cost/raw/costOriginRatioHis/index.vue b/src/views/cost/raw/costOriginRatioHis/index.vue
index f243e248..6f86faee 100644
--- a/src/views/cost/raw/costOriginRatioHis/index.vue
+++ b/src/views/cost/raw/costOriginRatioHis/index.vue
@@ -49,9 +49,8 @@ import { parseTime } from '@/filter/code-filter';
import tableHeightMixin from '@/mixins/lb/tableHeightMixin';
const tableProps = [
{
- prop: 'recTime',
+ prop: 'time',
label: '日期',
- filter: (val) => parseTime(val, '{y}年{m}月{d}日'),
width:130,
},
{
@@ -66,27 +65,32 @@ const tableProps = [
{
prop: 'thick',
label: '厚度',
+ filter: (val) => (val != null ? Number(val).toFixed(1) : '-'),
},
{
prop: 'speed',
label: '在线速度',
+ filter: (val) => (val != null ? Number(val).toFixed(2) : '-'),
},
{
prop: 'width',
label: '掰边宽度',
+ filter: (val) => (val != null ? Number(val).toFixed(2) : '-'),
},
{
prop: 'inArea',
label: '拉引量/m²',
+ filter: (val) => (val != null ? Number(val).toFixed(2) : '-'),
},
{
prop: 'outArea',
label: '下片面积/m²',
+ filter: (val) => (val != null ? Number(val).toFixed(2) : '-'),
},
{
prop: 'ratio',
label: '良品率',
- filter: (val) => (val ? val * 100 + '%' : '-'),
+ filter: (val) => (val ? Number(val * 100).toFixed(2) + '%' : '-'),
},
];
export default {
@@ -171,17 +175,10 @@ export default {
},
methods: {
buttonClick(val) {
- if (val.statisticType === 2) {
- this.tableProps[0].filter = (val) =>
- parseTime(val, '{y}年第{w}周');
- }else{
- this.tableProps[0].filter = (val) =>
- parseTime(val, '{y}年{m}月{d}日');
- }
switch (val.btnName) {
case 'search':
this.listQuery.pageNo = 1;
- this.listQuery.pageSize = 10;
+ this.listQuery.pageSize = 20;
this.listQuery.bindObjectId = val.name || null;
this.listQuery.statisticType = val.statisticType || 1;
this.listQuery.startTime = val.searchTime ? val.searchTime[0] : null;
@@ -195,7 +192,7 @@ export default {
break;
case 'export':
this.listQuery.pageNo = 1;
- this.listQuery.pageSize = 10;
+ this.listQuery.pageSize = 20;
this.listQuery.bindObjectId = val.name || null;
this.listQuery.statisticType = val.statisticType || 1;
this.listQuery.startTime = val.searchTime ? val.searchTime[0] : null;
diff --git a/src/views/cost/raw/costOthercostHis/index.vue b/src/views/cost/raw/costOthercostHis/index.vue
index 988e21f1..8a3cff11 100644
--- a/src/views/cost/raw/costOthercostHis/index.vue
+++ b/src/views/cost/raw/costOthercostHis/index.vue
@@ -87,9 +87,8 @@ import ButtonNav from '@/components/ButtonNav';
const tableProps = [
{
- prop: 'recTime',
+ prop: 'time',
label: '日期',
- filter: (val) => parseTime(val, '{y}年{m}月{d}日'),
},
{
prop: 'remark',
@@ -106,10 +105,10 @@ const tableProps = [
},
];
const tableProps2 = [
- {
- prop: 'remark',
- label: '备注',
- },
+ // {
+ // prop: 'remark',
+ // label: '备注',
+ // },
{
prop: 'otherCostName',
label: '成本名称',
@@ -248,17 +247,10 @@ export default {
},
methods: {
buttonClick(val) {
- if (val.statisticType === 2) {
- this.tableProps[0].filter = (val) =>
- parseTime(val, '{y}年第{w}周');
- }else{
- this.tableProps[0].filter = (val) =>
- parseTime(val, '{y}年{m}月{d}日');
- }
switch (val.btnName) {
case 'search':
this.listQuery.pageNo = 1;
- this.listQuery.pageSize = 10;
+ this.listQuery.pageSize = 20;
this.listQuery.name = val.name || null;
this.listQuery.statisticType = val.statisticType || 1;
this.listQuery.startTime = val.searchTime ? val.searchTime[0] : null;
@@ -279,7 +271,7 @@ export default {
break;
case 'export':
this.listQuery.pageNo = 1;
- this.listQuery.pageSize = 10;
+ this.listQuery.pageSize = 20;
this.listQuery.name = val.name || null;
this.listQuery.statisticType = val.statisticType || 1;
this.listQuery.startTime = val.searchTime ? val.searchTime[0] : null;
diff --git a/src/views/cost/raw/costOthercostLog/index.vue b/src/views/cost/raw/costOthercostLog/index.vue
index a15d2453..b34aae95 100644
--- a/src/views/cost/raw/costOthercostLog/index.vue
+++ b/src/views/cost/raw/costOthercostLog/index.vue
@@ -65,6 +65,7 @@ const tableProps = [
prop: 'price',
label: '成本金额',
align: 'right',
+ filter: (val) => (val != null ? Number(val).toFixed(2) : '-'),
},
{
prop: 'remark',
@@ -161,7 +162,7 @@ export default {
switch (val.btnName) {
case 'search':
this.listQuery.pageNo = 1;
- this.listQuery.pageSize = 10;
+ this.listQuery.pageSize = 20;
this.listQuery.name = val.name||null;
this.listQuery.startTime = val.searchTime ? val.searchTime[0] : null;
this.listQuery.endTime = val.searchTime
@@ -174,7 +175,7 @@ export default {
break;
case 'export':
this.listQuery.pageNo = 1;
- this.listQuery.pageSize = 10;
+ this.listQuery.pageSize = 20;
this.listQuery.name = val.name||null;
this.listQuery.startTime = val.searchTime ? val.searchTime[0] : null;
this.listQuery.endTime = val.searchTime
diff --git a/src/views/cost/raw/costStatistics/index.vue b/src/views/cost/raw/costStatistics/index.vue
index f4a889c3..b416e1f5 100644
--- a/src/views/cost/raw/costStatistics/index.vue
+++ b/src/views/cost/raw/costStatistics/index.vue
@@ -87,9 +87,8 @@ import ButtonNav from '@/components/ButtonNav';
const tableProps = [
{
- prop: 'recTime',
+ prop: 'time',
label: '时间',
- filter: (val) => parseTime(val, '{y}年{m}月{d}日'),
},
{
prop: 'remark',
@@ -102,29 +101,34 @@ const tableProps = [
{
prop: 'thick',
label: '厚度',
+ filter: (val) => (val != null ? Number(val).toFixed(1) : '-'),
},
{
prop: 'inArea',
label: '拉引量/m²',
+ filter: (val) => (val != null ? Number(val).toFixed(2) : '-'),
},
{
prop: 'outArea',
label: '下片面积/m²',
+ filter: (val) => (val != null ? Number(val).toFixed(2) : '-'),
},
{
prop: 'ratio',
label: '良品率',
- filter: (val) => (val ? val * 100 + '%' : '-'),
+ filter: (val) => (val ? Number(val * 100).toFixed(2) + '%' : '-'),
},
{
prop: 'costSum',
label: '原片成本/元',
align: 'right',
+ filter: (val) => (val != null ? Number(val).toFixed(2) : '-'),
},
{
prop: 'costArea',
label: '每平米成本/元',
align: 'right',
+ filter: (val) => (val != null ? Number(val).toFixed(2) : '-'),
},
];
const tableProps2 = [
@@ -143,34 +147,40 @@ const tableProps2 = [
{
prop: 'inArea',
label: '拉引量/m²',
+ filter: (val) => (val != null ? Number(val).toFixed(2) : '-'),
},
{
prop: 'outArea',
label: '下片面积/m²',
+ filter: (val) => (val != null ? Number(val).toFixed(2) : '-'),
},
{
prop: 'outCount',
label: '下片数量',
+ filter: (val) => (val != null ? Number(val).toFixed(2) : '-'),
},
{
prop: 'ratio',
label: '良品率',
- filter: (val) => (val ? val * 100 + '%' : '-'),
+ filter: (val) => (val ? Number(val * 100).toFixed(2) + '%' : '-'),
},
{
prop: 'costSum',
label: '原片成本/元',
align: 'right',
+ filter: (val) => (val != null ? Number(val).toFixed(2) : '-'),
},
{
prop: 'costPiece',
label: '单片成本/元',
align: 'right',
+ filter: (val) => (val != null ? Number(val).toFixed(2) : '-'),
},
{
prop: 'costArea',
label: '每平米成本/元',
align: 'right',
+ filter: (val) => (val != null ? Number(val).toFixed(2) : '-'),
},
];
export default {
@@ -298,17 +308,10 @@ export default {
},
methods: {
buttonClick(val) {
- if (val.statisticType === 2) {
- this.tableProps[0].filter = (val) =>
- parseTime(val, '{y}年第{w}周');
- }else{
- this.tableProps[0].filter = (val) =>
- parseTime(val, '{y}年{m}月{d}日');
- }
switch (val.btnName) {
case 'search':
this.listQuery.pageNo = 1;
- this.listQuery.pageSize = 10;
+ this.listQuery.pageSize = 20;
this.listQuery.bindObjectId = val.name || null;
this.listQuery.statisticType = val.statisticType || 1;
this.listQuery.startTime = val.searchTime ? val.searchTime[0] : null;
@@ -329,7 +332,7 @@ export default {
break;
case 'export':
this.listQuery.pageNo = 1;
- this.listQuery.pageSize = 10;
+ this.listQuery.pageSize = 20;
this.listQuery.bindObjectId = val.name || null;
this.listQuery.statisticType = val.statisticType || 1;
this.listQuery.startTime = val.searchTime ? val.searchTime[0] : null;
diff --git a/src/views/energy/base/energyType/components/energyTypeAdd.vue b/src/views/energy/base/energyType/components/energyTypeAdd.vue
index 1ad4f753..ec193bcc 100644
--- a/src/views/energy/base/energyType/components/energyTypeAdd.vue
+++ b/src/views/energy/base/energyType/components/energyTypeAdd.vue
@@ -30,7 +30,7 @@
-
+
diff --git a/src/views/login.vue b/src/views/login.vue
index 0158efa0..15fcee01 100644
--- a/src/views/login.vue
+++ b/src/views/login.vue
@@ -108,14 +108,14 @@
-