From 42c009451ec913dfbf0f4df297a70ac6c6d2f464 Mon Sep 17 00:00:00 2001 From: TianyangZhang Date: Sun, 4 Jan 2026 14:11:28 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E5=85=89=E8=8A=AFOA-=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E6=8A=A5=E4=BB=B7=E5=8D=95=E5=AE=A1=E6=A0=B8=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/model/pum.js | 34 ++++++ src/views/bigScreen/index_enm_bh.vue | 17 +-- src/views/pum/quotation.vue | 57 ++++++++++ src/views/pum/quotation_form.vue | 149 +++++++++++++++++++++++++++ 4 files changed, 249 insertions(+), 8 deletions(-) create mode 100644 src/views/pum/quotation.vue create mode 100644 src/views/pum/quotation_form.vue diff --git a/src/api/model/pum.js b/src/api/model/pum.js index 3dc6ec7a..7ae2d41c 100644 --- a/src/api/model/pum.js +++ b/src/api/model/pum.js @@ -313,5 +313,39 @@ export default { ); } }, + }, + quotation: { + list: { + name: "报价单列表", + req: async function(data){ + return await http.get( + `${config.API_URL}/pum/quotation/`, + data + ); + } + }, + item: { + req: async function(id){ + return await http.get( + `${config.API_URL}/pum/quotation/${id}/`, + ); + } + }, + create: { + name: "新增", + req: async function(data){ + return await http.post( + `${config.API_URL}/pum/quotation/`, + data); + } + }, + delete: { + name: "删除", + req: async function(id){ + return await http.delete( + `${config.API_URL}/pum/quotation/${id}/` + ); + } + }, } } \ No newline at end of file diff --git a/src/views/bigScreen/index_enm_bh.vue b/src/views/bigScreen/index_enm_bh.vue index 4e1af981..a99ad2ad 100644 --- a/src/views/bigScreen/index_enm_bh.vue +++ b/src/views/bigScreen/index_enm_bh.vue @@ -19,7 +19,7 @@
- 本月石灰产量 + 本月氧化钙产量
{{ totalData.shuliao }}
@@ -207,12 +207,12 @@
-
能源数据
+
本月能源单耗
- 本月氧化钙综合电耗 + 氧化钙综合电耗

{{ (Number(hotData.celec_consume_unit)+Number(dicData.elec_month)).toFixed(2) }} kW·h @@ -221,7 +221,7 @@

- 本月氧化钙综合煤耗 + 氧化钙综合煤耗

{{ (Number(hotData.coal_consume_unit)*1000+Number(dicData.elec_year)*1000).toFixed(2) }} kgce/t @@ -230,7 +230,7 @@

- 本月氧化钙综合能耗 + 氧化钙综合能耗

{{ (Number(hotData.cen_consume_unit)).toFixed(2)}} kgce/t @@ -1122,16 +1122,17 @@ export default { that.hotData.cen_consume_unit = Number(ress[0].cen_consume_unit).toFixed(2); that.hotData.celec_consume_unit =Number(ress[0].celec_consume_unit).toFixed(2); params.mpoint = mpoint - total_production = ress[0].total_production; + total_production = ress[0].total_production; // 出窑的产量(氧化钙) return that.$API.enm.mpointstat.list.req(params); // that.hotData.coal_consume_unit =Number(ress[0].coal_consume_unit).toFixed(2); }).then((res) => { if( res.length>0 ){ - let ratio = (Number(res[0].val)/Number(total_production)); + // + let ratio = (Number(res[0].val)/Number(total_production)); //煤粉消耗量/出窑的产量(氧化钙) if (ratio > 0.135){ that.hotData.coal_consume_unit = 0.130; }else{ - that.hotData.coal_consume_unit = Number(ratio[0].val)/Number(total_production).toFixed(2); + that.hotData.coal_consume_unit = ratio; //煤粉消耗量/出窑的产量(氧化钙) } } } diff --git a/src/views/pum/quotation.vue b/src/views/pum/quotation.vue new file mode 100644 index 00000000..7101a691 --- /dev/null +++ b/src/views/pum/quotation.vue @@ -0,0 +1,57 @@ + + \ No newline at end of file diff --git a/src/views/pum/quotation_form.vue b/src/views/pum/quotation_form.vue new file mode 100644 index 00000000..4e31623d --- /dev/null +++ b/src/views/pum/quotation_form.vue @@ -0,0 +1,149 @@ + + + \ No newline at end of file