|
@@ -3,6 +3,7 @@
|
|
|
<el-form :inline="true" label-width="68px">
|
|
|
<el-form-item label="报告年份" prop="reportDate">
|
|
|
<el-date-picker
|
|
|
+ clearable
|
|
|
v-model="year"
|
|
|
@change="handleQueryYear()"
|
|
|
size="small"
|
|
@@ -23,7 +24,11 @@
|
|
|
</el-form>
|
|
|
<el-table border :data="tableCrackerRawMaterial" style="width: 100%;">
|
|
|
<el-table-column label="Cracker Raw Material">
|
|
|
- <el-table-column prop="title" label=""></el-table-column>
|
|
|
+ <el-table-column width="150" prop="title" label="">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <div @click="columnOnclick(scope.row)">{{scope.row.title}}</div>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column prop="unit" label="unit"></el-table-column>
|
|
|
<el-table-column prop="currently" label="currently"></el-table-column>
|
|
|
<el-table-column prop="jan" :label="this.monthList[0]"></el-table-column>
|
|
@@ -439,356 +444,503 @@
|
|
|
<el-table-column prop="total" label="total"></el-table-column>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
+ <!-- 趋势分析对话框 -->
|
|
|
+ <el-dialog @close="disposeChart" :title="analysis.title" :visible.sync="analysis.open" width="1400px" append-to-body>
|
|
|
+ <el-form :model="analysisQueryParams" ref="queryForm" :inline="true" label-width="68px">
|
|
|
+ <el-form-item label="开始时间" prop="startDate">
|
|
|
+ <el-date-picker
|
|
|
+ v-model="analysisDialogElement.startDate"
|
|
|
+ type="month"
|
|
|
+ placeholder="选择开始时间">
|
|
|
+ </el-date-picker>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="结束时间" prop="endDate">
|
|
|
+ <el-date-picker
|
|
|
+ v-model="analysisDialogElement.endDate"
|
|
|
+ type="month"
|
|
|
+ placeholder="选择结束时间">
|
|
|
+ </el-date-picker>
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+ <div id="trendChart" style="width:1340px;height:600px;"></div>
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
- export default {
|
|
|
- name: "Monthly",
|
|
|
- data() {
|
|
|
- return {
|
|
|
- // 年份
|
|
|
- year: null,
|
|
|
- // 月份的固定表示
|
|
|
- monthList: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
|
|
|
- tableCrackerRawMaterial: [
|
|
|
- {title: "Cracker Raw Material"},
|
|
|
- {title: "NAP"},
|
|
|
- {title: "C5"},
|
|
|
- {title: "NA"},
|
|
|
- {title: "Wison Ethane"},
|
|
|
- {title: "LPG to Furnace"},
|
|
|
- {title: "C4 Raff3 fr bd and 2ph"},
|
|
|
- {title: "C2 fr LDPE"},
|
|
|
- {title: "C3 fr OXO"},
|
|
|
- {title: "Mixed C3/C4 fr BD"},
|
|
|
- {title: "HC9"},
|
|
|
- {title: "Offgas fr AEU"},
|
|
|
- {title: "wash oil"},
|
|
|
- {title: "toluene"},
|
|
|
- {title: "C4 Recycle(ton)"},
|
|
|
- {title: "input total"},
|
|
|
- {title: "Total feed"},
|
|
|
- ],
|
|
|
- tableCrackerOutputProduct: [
|
|
|
- {title: "Cracker Output Product"},
|
|
|
- {title: "H2"},
|
|
|
- {title: "C2="},
|
|
|
- {title: "C3="},
|
|
|
- {title: "C3/C4 LPG"},
|
|
|
- {title: "C4'S"},
|
|
|
- {title: "RPG"},
|
|
|
- {title: "PO"},
|
|
|
- {title: "Naphthalene"},
|
|
|
- {title: "EBO"},
|
|
|
- {title: "Cracker Residue "},
|
|
|
- {title: "Methane"},
|
|
|
- {title: "OFFAGE"},
|
|
|
- {title: "output total"},
|
|
|
- ],
|
|
|
- tableAromaticsRawMaterial: [
|
|
|
- {title: "Aromatics Raw Material"},
|
|
|
- {title: "RPG fr EU"},
|
|
|
- {title: "H2 to PGU"},
|
|
|
- {title: "Mix BTX Product"},
|
|
|
- {title: "Mix BTX to AEU"},
|
|
|
- {title: "input total"},
|
|
|
- ],
|
|
|
- tableAromaticsOutputProduct: [
|
|
|
- {title:"Aromatics Output Product"},
|
|
|
- {title:"Benzene"},
|
|
|
- {title:"Toluene"},
|
|
|
- {title:"Xylene"},
|
|
|
- {title:"C6-C8 NA"},
|
|
|
- {title:"C5"},
|
|
|
- {title:"C9"},
|
|
|
- {title:"Wash oil"},
|
|
|
- {title:"offags"},
|
|
|
- {title:"MIX BTX change"},
|
|
|
- {title:"BTX Product"},
|
|
|
- {title:"Toluene Product(- EU)"},
|
|
|
- {title:"output total"},
|
|
|
- ],
|
|
|
- tableEligibleProductRate: [
|
|
|
- {title: "C2="},
|
|
|
- {title: "C3="},
|
|
|
- {title: "C4's"},
|
|
|
- ],
|
|
|
- tableProductYield: [
|
|
|
- {title: "gaseity"},
|
|
|
- {title: "tatal"},
|
|
|
- {title: "C3/C2"},
|
|
|
- {title: "H2"},
|
|
|
- {title: "ethylene"},
|
|
|
- {title: "propylene"},
|
|
|
- {title: "C3/C4 LPG"},
|
|
|
- {title: "C4'S"},
|
|
|
- {title: "PO"},
|
|
|
- {title: "Naphthalene"},
|
|
|
- {title: "EBO"},
|
|
|
- {title: "WS"},
|
|
|
- {title: "Methane"},
|
|
|
- {title: "OFFAGE"},
|
|
|
- {title: "RPG"},
|
|
|
- {title: "Benzene"},
|
|
|
- {title: "Toluene"},
|
|
|
- {title: "Xylene"},
|
|
|
- {title: "C6-C8 NA"},
|
|
|
- {title: "C5"},
|
|
|
- {title: "C9"},
|
|
|
- ],
|
|
|
- tableCrackerUtilityConsumption: [
|
|
|
- {title: "FG(include NG+Offage)"},
|
|
|
- {title: "SS"},
|
|
|
- {title: "HS"},
|
|
|
- {title: "MS"},
|
|
|
- {title: "LS"},
|
|
|
- {title: "Electricity"},
|
|
|
- {title: "coiling water"},
|
|
|
- {title: "Instru. Air"},
|
|
|
- {title: "Plant Air"},
|
|
|
- {title: "N2"},
|
|
|
- {title: "BFW"},
|
|
|
- {title: "Polished Condensate"},
|
|
|
- {title: "P. W. Water"},
|
|
|
- {title: "TC"},
|
|
|
- {title: "CNWW"},
|
|
|
- {title: "DWW"},
|
|
|
- {title: "waste oil"},
|
|
|
- {title: "Potable Water"},
|
|
|
- {title: "Production Water"},
|
|
|
- {title: "NG to furnace or offags to SUB"},
|
|
|
- {title: "offage product"},
|
|
|
- ],
|
|
|
- tableCrackerEnergyConsumption: [
|
|
|
- {title: "total energy"},
|
|
|
- {title: "total energy"},
|
|
|
- {title: "Energy/ethylene"},
|
|
|
- {title: "Energy/ethylene"},
|
|
|
- ],
|
|
|
- tableAromaticsUtilityConsumption: [
|
|
|
- {title: "SS"},
|
|
|
- {title: "HS"},
|
|
|
- {title: "MS"},
|
|
|
- {title: "LS"},
|
|
|
- {title: "Electricity"},
|
|
|
- {title: "coiling water"},
|
|
|
- {title: "Potable Water"},
|
|
|
- {title: "Production Water"},
|
|
|
- {title: "BFW"},
|
|
|
- {title: "N2"},
|
|
|
- {title: "PA&IA"},
|
|
|
- {title: "Turbine Condensate"},
|
|
|
- {title: "Contaminated WW"},
|
|
|
- {title: "Production WW"},
|
|
|
- {title: "DWW"},
|
|
|
- {title: "Waste Liquid"},
|
|
|
- ],
|
|
|
- tableAromaticsEnergyConsumption: [
|
|
|
- {title: "total energy"},
|
|
|
- {title: "total energy"},
|
|
|
- {title: "Energy/ethylene"},
|
|
|
- {title: "Energy/ethylene"},
|
|
|
- ],
|
|
|
- tablePlantLoad: [
|
|
|
- {title: "Cracker load"},
|
|
|
- {title: "C2+C3 Capacity"},
|
|
|
- {title: "Ethylene load"},
|
|
|
- {title: "Ethylene Capacity"},
|
|
|
- {title: "AEU load"},
|
|
|
- {title: "BTX Capacity"},
|
|
|
- ],
|
|
|
- tableCostFrEthylene: [
|
|
|
- {title: "the cost"},
|
|
|
- ],
|
|
|
- tableRuningRate: [
|
|
|
- {title: "run hour"},
|
|
|
- {title: "run rate"},
|
|
|
- {title: "calendar hour"},
|
|
|
- ],
|
|
|
- tableShoudownHour: [
|
|
|
- {title: "operation time"},
|
|
|
- {title: "hour"},
|
|
|
- {title: "equipment time"},
|
|
|
- {title: "hour"},
|
|
|
- {title: "instrument time"},
|
|
|
- {title: "hour"},
|
|
|
- {title: "electric time"},
|
|
|
- {title: "hour"},
|
|
|
- {title: "otherwise time"},
|
|
|
- {title: "hour"},
|
|
|
- {title: "total time"},
|
|
|
- {title: "total hour"},
|
|
|
- ],
|
|
|
- tableOtherside: [
|
|
|
- {title: "EU loss"},
|
|
|
- {title: "EU loss rate"},
|
|
|
- {title: "AEU loss"},
|
|
|
- {title: "AEU loss rate"},
|
|
|
- {title: "Total loss"},
|
|
|
- {title: "Total loss rate"},
|
|
|
- ],
|
|
|
- tableChemicalConsume: [
|
|
|
- {title: "Cracker and PGU"},
|
|
|
- {title: "PT-3000"},
|
|
|
- {title: "NAOH"},
|
|
|
- {title: "PT-4000"},
|
|
|
- {title: "EC3392A"},
|
|
|
- {title: "2W906"},
|
|
|
- {title: "EC1489A"},
|
|
|
- {title: "EC1486A"},
|
|
|
- {title: "20Y3483"},
|
|
|
- {title: "8Q202"},
|
|
|
- {title: "20Y97A"},
|
|
|
- {title: "EC3269A"},
|
|
|
- {title: "20Y25"},
|
|
|
- {title: "20Y77"},
|
|
|
- {title: "510WS"},
|
|
|
- {title: "N130"},
|
|
|
- {title: "H2SO4"},
|
|
|
- {title: "NaOH"},
|
|
|
- {title: "CH3OH"},
|
|
|
- {title: ""},
|
|
|
- {title: "PT-3000"},
|
|
|
- {title: ""},
|
|
|
- {title: ""},
|
|
|
- ],
|
|
|
- tableSCTUUtilityConsumption: [
|
|
|
- {title: "FG ( NG+Offage)"},
|
|
|
- {title: "MP"},
|
|
|
- {title: "LP"},
|
|
|
- {title: "Electric"},
|
|
|
- {title: "CW"},
|
|
|
- {title: "PA&IA"},
|
|
|
- {title: "SUB"},
|
|
|
- ],
|
|
|
- tableSUBUtilityConsumption: [
|
|
|
- {title: "Electric"},
|
|
|
- {title: "NG"},
|
|
|
- {title: "FG fr EU"},
|
|
|
- {title: "LPG"},
|
|
|
- {title: "HHP Steam"},
|
|
|
- {title: "MP Steam"},
|
|
|
- {title: "LP Steam"},
|
|
|
- {title: "P. Condensate"},
|
|
|
- {title: "CW"},
|
|
|
- {title: "N2"},
|
|
|
- {title: "IA&PA"},
|
|
|
- {title: "HPPA"},
|
|
|
- {title: "Production Water"},
|
|
|
- {title: "HP Steam fr SuB-net"},
|
|
|
- {title: "BFW"},
|
|
|
- {title: "EO/EG purge gas"},
|
|
|
- {title: "H2 fr Syngas as fule"},
|
|
|
- {title: "HP product"},
|
|
|
- {title: "SUB1# FG FIC1302"},
|
|
|
- {title: "SUB2#FG FIC2302"},
|
|
|
- {title: "total NG FC3702"},
|
|
|
- {title: "COST(output)"},
|
|
|
- {title: "总费用"},
|
|
|
- {title: "锅炉净产量"},
|
|
|
- {title: "产汽"},
|
|
|
- {title: "输出"},
|
|
|
- ],
|
|
|
- tableSCTFUtilityConsumption: [
|
|
|
- {title: "Electric"},
|
|
|
- {title: "NG"},
|
|
|
- {title: "FG fr EU"},
|
|
|
- {title: "LPG"},
|
|
|
- {title: "HHP Steam"},
|
|
|
- {title: "MP Steam"},
|
|
|
- {title: "LP Steam"},
|
|
|
- {title: "P. Condensate"},
|
|
|
- {title: "CW"},
|
|
|
- {title: "N2"},
|
|
|
- {title: "IA&PA"},
|
|
|
- {title: "HPPA"},
|
|
|
- {title: "Production Water"},
|
|
|
- {title: "HP Steam fr SuB-net"},
|
|
|
- {title: "BFW"},
|
|
|
- {title: "Contaminated WW"},
|
|
|
- {title: "Production WW"},
|
|
|
- ],
|
|
|
- tableKBI: [
|
|
|
- {kbi: "Plant capacity utilization rate"},
|
|
|
- {kbi: "Energy Consumption"},
|
|
|
- {kbi: "Product of Ethylene and Propylene and C4's base FEED"},
|
|
|
- {kbi: "C2+C3 Production"},
|
|
|
- {kbi: "C2+C3 target"},
|
|
|
- {kbi: "C2+C3 target"},
|
|
|
- {kbi: "C2 target"},
|
|
|
- {kbi: "C2 target"},
|
|
|
- {kbi: "LTI"},
|
|
|
- {kbi: "Yields of Ethylene and propylene base on furnace feeds"},
|
|
|
- {kbi: "Yields of Ethylene base on furnace feeds"},
|
|
|
- {kbi: "AEU Energy Consumption"},
|
|
|
- {kbi: "BTX Production"},
|
|
|
- {kbi: "BTX target"},
|
|
|
- {kbi: "BTX target"},
|
|
|
- ],
|
|
|
- tableSummary: [
|
|
|
- {item: "乙丙产量"},
|
|
|
- {item: "石脑油"},
|
|
|
- {item: "C5 raff"},
|
|
|
- {item: "乙烷"},
|
|
|
- {item: "加氢碳九"},
|
|
|
- {item: "乙烯焦油"},
|
|
|
- {item: "混合C4"},
|
|
|
- {item: "三苯"},
|
|
|
- {item: "裂解碳五"},
|
|
|
- {item: "裂解碳九"},
|
|
|
- {item: "重整石脑油"},
|
|
|
- {item: "蒸汽综合"},
|
|
|
- {item: "冷却水"},
|
|
|
- {item: "电"},
|
|
|
- {item: "燃料气"},
|
|
|
- {item: "精制水"},
|
|
|
- {item: "透平凝液"},
|
|
|
- {item: "乙丙收率"},
|
|
|
- {item: "石脑油"},
|
|
|
- {item: "C5 raff"},
|
|
|
- {item: "乙烷"},
|
|
|
- {item: "加氢碳九"},
|
|
|
- {item: "乙烯焦油"},
|
|
|
- {item: "混合C4"},
|
|
|
- {item: "三苯"},
|
|
|
- {item: "裂解碳五"},
|
|
|
- {item: "裂解碳九"},
|
|
|
- {item: "非芳"},
|
|
|
- {item: "蒸汽综合"},
|
|
|
- {item: "冷却水"},
|
|
|
- {item: "电"},
|
|
|
- {item: "燃料气"},
|
|
|
- {item: "精制水"},
|
|
|
- {item: "透平凝液"},
|
|
|
- ],
|
|
|
- }
|
|
|
- },
|
|
|
- created() {
|
|
|
- this.year = new Date();
|
|
|
- this.getMonthlyReport();
|
|
|
- },
|
|
|
- methods: {
|
|
|
- /** 设置表头 */
|
|
|
- setTableTitle() {
|
|
|
- let monthListTemp = [];
|
|
|
- for (let i = 0; i < this.monthList.length; i++) {
|
|
|
- // 拼接后的格式:月份-年份,如Feb-2022
|
|
|
- monthListTemp.push(this.monthList[i] + "-" + this.year.getFullYear());
|
|
|
- }
|
|
|
- this.monthList = monthListTemp;
|
|
|
+import {
|
|
|
+ getCrackerRawMaterial,
|
|
|
+} from "@/api/production/monthly";
|
|
|
+
|
|
|
+export default {
|
|
|
+ name: "Monthly",
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ // 趋势图y轴数值
|
|
|
+ valueList: [],
|
|
|
+ // 趋势图x轴日期
|
|
|
+ dateList: [],
|
|
|
+ // y轴最大值
|
|
|
+ maxValue: null,
|
|
|
+ // y轴最小值
|
|
|
+ minValue: null,
|
|
|
+ // 趋势图
|
|
|
+ chart: null,
|
|
|
+ // 趋势分析参数
|
|
|
+ analysis: {
|
|
|
+ // 是否显示弹出层
|
|
|
+ open: false,
|
|
|
+ // 弹出层标题
|
|
|
+ title: "",
|
|
|
},
|
|
|
- /** 处理年份控件change事件 */
|
|
|
- handleQueryYear() {
|
|
|
- this.getMonthlyReport();
|
|
|
+ // 趋势图查询参数
|
|
|
+ analysisQueryParams: {
|
|
|
+ // 指标
|
|
|
+ title: null,
|
|
|
+ // 截止年份
|
|
|
+ toYear: 0,
|
|
|
+ // 截止月份
|
|
|
+ toMonth: 0,
|
|
|
+ // 开始年份
|
|
|
+ fromTear: 0,
|
|
|
+ // 开始月份
|
|
|
+ fromMonth: 0,
|
|
|
},
|
|
|
- /** 获取月度报告 */
|
|
|
- getMonthlyReport() {
|
|
|
- this.setTableTitle();
|
|
|
- console.log(this.year.getFullYear());
|
|
|
+ // 对话框控件值
|
|
|
+ analysisDialogElement: {
|
|
|
+ // 开始时间
|
|
|
+ startDate: null,
|
|
|
+ // 结束时间
|
|
|
+ endDate: null,
|
|
|
},
|
|
|
+ // 年份
|
|
|
+ year: null,
|
|
|
+ // 月份的固定表示
|
|
|
+ monthList: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
|
|
|
+ tableCrackerRawMaterial: [],
|
|
|
+ tableCrackerOutputProduct: [
|
|
|
+ {title: "Cracker Output Product"},
|
|
|
+ {title: "H2"},
|
|
|
+ {title: "C2="},
|
|
|
+ {title: "C3="},
|
|
|
+ {title: "C3/C4 LPG"},
|
|
|
+ {title: "C4'S"},
|
|
|
+ {title: "RPG"},
|
|
|
+ {title: "PO"},
|
|
|
+ {title: "Naphthalene"},
|
|
|
+ {title: "EBO"},
|
|
|
+ {title: "Cracker Residue "},
|
|
|
+ {title: "Methane"},
|
|
|
+ {title: "OFFAGE"},
|
|
|
+ {title: "output total"},
|
|
|
+ ],
|
|
|
+ tableAromaticsRawMaterial: [
|
|
|
+ {title: "Aromatics Raw Material"},
|
|
|
+ {title: "RPG fr EU"},
|
|
|
+ {title: "H2 to PGU"},
|
|
|
+ {title: "Mix BTX Product"},
|
|
|
+ {title: "Mix BTX to AEU"},
|
|
|
+ {title: "input total"},
|
|
|
+ ],
|
|
|
+ tableAromaticsOutputProduct: [
|
|
|
+ {title:"Aromatics Output Product"},
|
|
|
+ {title:"Benzene"},
|
|
|
+ {title:"Toluene"},
|
|
|
+ {title:"Xylene"},
|
|
|
+ {title:"C6-C8 NA"},
|
|
|
+ {title:"C5"},
|
|
|
+ {title:"C9"},
|
|
|
+ {title:"Wash oil"},
|
|
|
+ {title:"offags"},
|
|
|
+ {title:"MIX BTX change"},
|
|
|
+ {title:"BTX Product"},
|
|
|
+ {title:"Toluene Product(- EU)"},
|
|
|
+ {title:"output total"},
|
|
|
+ ],
|
|
|
+ tableEligibleProductRate: [
|
|
|
+ {title: "C2="},
|
|
|
+ {title: "C3="},
|
|
|
+ {title: "C4's"},
|
|
|
+ ],
|
|
|
+ tableProductYield: [
|
|
|
+ {title: "gaseity"},
|
|
|
+ {title: "tatal"},
|
|
|
+ {title: "C3/C2"},
|
|
|
+ {title: "H2"},
|
|
|
+ {title: "ethylene"},
|
|
|
+ {title: "propylene"},
|
|
|
+ {title: "C3/C4 LPG"},
|
|
|
+ {title: "C4'S"},
|
|
|
+ {title: "PO"},
|
|
|
+ {title: "Naphthalene"},
|
|
|
+ {title: "EBO"},
|
|
|
+ {title: "WS"},
|
|
|
+ {title: "Methane"},
|
|
|
+ {title: "OFFAGE"},
|
|
|
+ {title: "RPG"},
|
|
|
+ {title: "Benzene"},
|
|
|
+ {title: "Toluene"},
|
|
|
+ {title: "Xylene"},
|
|
|
+ {title: "C6-C8 NA"},
|
|
|
+ {title: "C5"},
|
|
|
+ {title: "C9"},
|
|
|
+ ],
|
|
|
+ tableCrackerUtilityConsumption: [
|
|
|
+ {title: "FG(include NG+Offage)"},
|
|
|
+ {title: "SS"},
|
|
|
+ {title: "HS"},
|
|
|
+ {title: "MS"},
|
|
|
+ {title: "LS"},
|
|
|
+ {title: "Electricity"},
|
|
|
+ {title: "coiling water"},
|
|
|
+ {title: "Instru. Air"},
|
|
|
+ {title: "Plant Air"},
|
|
|
+ {title: "N2"},
|
|
|
+ {title: "BFW"},
|
|
|
+ {title: "Polished Condensate"},
|
|
|
+ {title: "P. W. Water"},
|
|
|
+ {title: "TC"},
|
|
|
+ {title: "CNWW"},
|
|
|
+ {title: "DWW"},
|
|
|
+ {title: "waste oil"},
|
|
|
+ {title: "Potable Water"},
|
|
|
+ {title: "Production Water"},
|
|
|
+ {title: "NG to furnace or offags to SUB"},
|
|
|
+ {title: "offage product"},
|
|
|
+ ],
|
|
|
+ tableCrackerEnergyConsumption: [
|
|
|
+ {title: "total energy"},
|
|
|
+ {title: "total energy"},
|
|
|
+ {title: "Energy/ethylene"},
|
|
|
+ {title: "Energy/ethylene"},
|
|
|
+ ],
|
|
|
+ tableAromaticsUtilityConsumption: [
|
|
|
+ {title: "SS"},
|
|
|
+ {title: "HS"},
|
|
|
+ {title: "MS"},
|
|
|
+ {title: "LS"},
|
|
|
+ {title: "Electricity"},
|
|
|
+ {title: "coiling water"},
|
|
|
+ {title: "Potable Water"},
|
|
|
+ {title: "Production Water"},
|
|
|
+ {title: "BFW"},
|
|
|
+ {title: "N2"},
|
|
|
+ {title: "PA&IA"},
|
|
|
+ {title: "Turbine Condensate"},
|
|
|
+ {title: "Contaminated WW"},
|
|
|
+ {title: "Production WW"},
|
|
|
+ {title: "DWW"},
|
|
|
+ {title: "Waste Liquid"},
|
|
|
+ ],
|
|
|
+ tableAromaticsEnergyConsumption: [
|
|
|
+ {title: "total energy"},
|
|
|
+ {title: "total energy"},
|
|
|
+ {title: "Energy/ethylene"},
|
|
|
+ {title: "Energy/ethylene"},
|
|
|
+ ],
|
|
|
+ tablePlantLoad: [
|
|
|
+ {title: "Cracker load"},
|
|
|
+ {title: "C2+C3 Capacity"},
|
|
|
+ {title: "Ethylene load"},
|
|
|
+ {title: "Ethylene Capacity"},
|
|
|
+ {title: "AEU load"},
|
|
|
+ {title: "BTX Capacity"},
|
|
|
+ ],
|
|
|
+ tableCostFrEthylene: [
|
|
|
+ {title: "the cost"},
|
|
|
+ ],
|
|
|
+ tableRuningRate: [
|
|
|
+ {title: "run hour"},
|
|
|
+ {title: "run rate"},
|
|
|
+ {title: "calendar hour"},
|
|
|
+ ],
|
|
|
+ tableShoudownHour: [
|
|
|
+ {title: "operation time"},
|
|
|
+ {title: "hour"},
|
|
|
+ {title: "equipment time"},
|
|
|
+ {title: "hour"},
|
|
|
+ {title: "instrument time"},
|
|
|
+ {title: "hour"},
|
|
|
+ {title: "electric time"},
|
|
|
+ {title: "hour"},
|
|
|
+ {title: "otherwise time"},
|
|
|
+ {title: "hour"},
|
|
|
+ {title: "total time"},
|
|
|
+ {title: "total hour"},
|
|
|
+ ],
|
|
|
+ tableOtherside: [
|
|
|
+ {title: "EU loss"},
|
|
|
+ {title: "EU loss rate"},
|
|
|
+ {title: "AEU loss"},
|
|
|
+ {title: "AEU loss rate"},
|
|
|
+ {title: "Total loss"},
|
|
|
+ {title: "Total loss rate"},
|
|
|
+ ],
|
|
|
+ tableChemicalConsume: [
|
|
|
+ {title: "Cracker and PGU"},
|
|
|
+ {title: "PT-3000"},
|
|
|
+ {title: "NAOH"},
|
|
|
+ {title: "PT-4000"},
|
|
|
+ {title: "EC3392A"},
|
|
|
+ {title: "2W906"},
|
|
|
+ {title: "EC1489A"},
|
|
|
+ {title: "EC1486A"},
|
|
|
+ {title: "20Y3483"},
|
|
|
+ {title: "8Q202"},
|
|
|
+ {title: "20Y97A"},
|
|
|
+ {title: "EC3269A"},
|
|
|
+ {title: "20Y25"},
|
|
|
+ {title: "20Y77"},
|
|
|
+ {title: "510WS"},
|
|
|
+ {title: "N130"},
|
|
|
+ {title: "H2SO4"},
|
|
|
+ {title: "NaOH"},
|
|
|
+ {title: "CH3OH"},
|
|
|
+ {title: ""},
|
|
|
+ {title: "PT-3000"},
|
|
|
+ {title: ""},
|
|
|
+ {title: ""},
|
|
|
+ ],
|
|
|
+ tableSCTUUtilityConsumption: [
|
|
|
+ {title: "FG ( NG+Offage)"},
|
|
|
+ {title: "MP"},
|
|
|
+ {title: "LP"},
|
|
|
+ {title: "Electric"},
|
|
|
+ {title: "CW"},
|
|
|
+ {title: "PA&IA"},
|
|
|
+ {title: "SUB"},
|
|
|
+ ],
|
|
|
+ tableSUBUtilityConsumption: [
|
|
|
+ {title: "Electric"},
|
|
|
+ {title: "NG"},
|
|
|
+ {title: "FG fr EU"},
|
|
|
+ {title: "LPG"},
|
|
|
+ {title: "HHP Steam"},
|
|
|
+ {title: "MP Steam"},
|
|
|
+ {title: "LP Steam"},
|
|
|
+ {title: "P. Condensate"},
|
|
|
+ {title: "CW"},
|
|
|
+ {title: "N2"},
|
|
|
+ {title: "IA&PA"},
|
|
|
+ {title: "HPPA"},
|
|
|
+ {title: "Production Water"},
|
|
|
+ {title: "HP Steam fr SuB-net"},
|
|
|
+ {title: "BFW"},
|
|
|
+ {title: "EO/EG purge gas"},
|
|
|
+ {title: "H2 fr Syngas as fule"},
|
|
|
+ {title: "HP product"},
|
|
|
+ {title: "SUB1# FG FIC1302"},
|
|
|
+ {title: "SUB2#FG FIC2302"},
|
|
|
+ {title: "total NG FC3702"},
|
|
|
+ {title: "COST(output)"},
|
|
|
+ {title: "总费用"},
|
|
|
+ {title: "锅炉净产量"},
|
|
|
+ {title: "产汽"},
|
|
|
+ {title: "输出"},
|
|
|
+ ],
|
|
|
+ tableSCTFUtilityConsumption: [
|
|
|
+ {title: "Electric"},
|
|
|
+ {title: "NG"},
|
|
|
+ {title: "FG fr EU"},
|
|
|
+ {title: "LPG"},
|
|
|
+ {title: "HHP Steam"},
|
|
|
+ {title: "MP Steam"},
|
|
|
+ {title: "LP Steam"},
|
|
|
+ {title: "P. Condensate"},
|
|
|
+ {title: "CW"},
|
|
|
+ {title: "N2"},
|
|
|
+ {title: "IA&PA"},
|
|
|
+ {title: "HPPA"},
|
|
|
+ {title: "Production Water"},
|
|
|
+ {title: "HP Steam fr SuB-net"},
|
|
|
+ {title: "BFW"},
|
|
|
+ {title: "Contaminated WW"},
|
|
|
+ {title: "Production WW"},
|
|
|
+ ],
|
|
|
+ tableKBI: [
|
|
|
+ {kbi: "Plant capacity utilization rate"},
|
|
|
+ {kbi: "Energy Consumption"},
|
|
|
+ {kbi: "Product of Ethylene and Propylene and C4's base FEED"},
|
|
|
+ {kbi: "C2+C3 Production"},
|
|
|
+ {kbi: "C2+C3 target"},
|
|
|
+ {kbi: "C2+C3 target"},
|
|
|
+ {kbi: "C2 target"},
|
|
|
+ {kbi: "C2 target"},
|
|
|
+ {kbi: "LTI"},
|
|
|
+ {kbi: "Yields of Ethylene and propylene base on furnace feeds"},
|
|
|
+ {kbi: "Yields of Ethylene base on furnace feeds"},
|
|
|
+ {kbi: "AEU Energy Consumption"},
|
|
|
+ {kbi: "BTX Production"},
|
|
|
+ {kbi: "BTX target"},
|
|
|
+ {kbi: "BTX target"},
|
|
|
+ ],
|
|
|
+ tableSummary: [
|
|
|
+ {item: "乙丙产量"},
|
|
|
+ {item: "石脑油"},
|
|
|
+ {item: "C5 raff"},
|
|
|
+ {item: "乙烷"},
|
|
|
+ {item: "加氢碳九"},
|
|
|
+ {item: "乙烯焦油"},
|
|
|
+ {item: "混合C4"},
|
|
|
+ {item: "三苯"},
|
|
|
+ {item: "裂解碳五"},
|
|
|
+ {item: "裂解碳九"},
|
|
|
+ {item: "重整石脑油"},
|
|
|
+ {item: "蒸汽综合"},
|
|
|
+ {item: "冷却水"},
|
|
|
+ {item: "电"},
|
|
|
+ {item: "燃料气"},
|
|
|
+ {item: "精制水"},
|
|
|
+ {item: "透平凝液"},
|
|
|
+ {item: "乙丙收率"},
|
|
|
+ {item: "石脑油"},
|
|
|
+ {item: "C5 raff"},
|
|
|
+ {item: "乙烷"},
|
|
|
+ {item: "加氢碳九"},
|
|
|
+ {item: "乙烯焦油"},
|
|
|
+ {item: "混合C4"},
|
|
|
+ {item: "三苯"},
|
|
|
+ {item: "裂解碳五"},
|
|
|
+ {item: "裂解碳九"},
|
|
|
+ {item: "非芳"},
|
|
|
+ {item: "蒸汽综合"},
|
|
|
+ {item: "冷却水"},
|
|
|
+ {item: "电"},
|
|
|
+ {item: "燃料气"},
|
|
|
+ {item: "精制水"},
|
|
|
+ {item: "透平凝液"},
|
|
|
+ ],
|
|
|
}
|
|
|
- }
|
|
|
+ },
|
|
|
+ created() {
|
|
|
+ // 加载时设置year为今年
|
|
|
+ this.year = new Date();
|
|
|
+ // 加载月报数据
|
|
|
+ this.getMonthlyReport();
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ /** 销毁趋势图 */
|
|
|
+ disposeChart() {
|
|
|
+ this.echarts.dispose(this.chart);
|
|
|
+ },
|
|
|
+ /** 处理最左列指标点击事件 */
|
|
|
+ columnOnclick(row) {
|
|
|
+ let title = row.title;
|
|
|
+ let toYear = this.year.getFullYear();
|
|
|
+ let toMonth = this.year.getMonth() + 1;
|
|
|
+ let fromTear = toYear - 1;
|
|
|
+ let fromMonth = toMonth;
|
|
|
+ this.analysisQueryParams.toYear = toYear;
|
|
|
+ this.analysisQueryParams.toMonth = toMonth;
|
|
|
+ this.analysisQueryParams.fromTear = fromTear;
|
|
|
+ this.analysisQueryParams.fromMonth = fromMonth;
|
|
|
+ let startDate = new Date();
|
|
|
+ let endDate = new Date();
|
|
|
+ startDate.setFullYear(startDate.getFullYear() - 1);
|
|
|
+ this.analysisDialogElement.startDate = startDate;
|
|
|
+ this.analysisDialogElement.endDate = endDate;
|
|
|
+ this.analysis.title = row.title + "趋势分析";
|
|
|
+ this.analysis.open = true;
|
|
|
+ // this.draw();
|
|
|
+ },
|
|
|
+ /** 绘制趋势图 */
|
|
|
+ draw() {
|
|
|
+ 查询方法(this.analysisQueryParams).then(response => {
|
|
|
+ let data = response.data;
|
|
|
+ this.maxValue = 0;
|
|
|
+ this.minValue = data[0].valueData;
|
|
|
+ for (let i = 0; i < data.length; i++) {
|
|
|
+ if (data[i].valueData != null) {
|
|
|
+ this.valueList[i] = data[i].valueData;
|
|
|
+ this.dateList[i] = data[i].dateData;
|
|
|
+ if (data[i].valueData > this.maxValue) {
|
|
|
+ this.maxValue = data[i].valueData;
|
|
|
+ }
|
|
|
+ if (data[i].valueData < this.minValue) {
|
|
|
+ this.minValue = data[i].valueData;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.chart = this.echarts.init(document.getElementById("trendChart"));
|
|
|
+ let option = {
|
|
|
+ tooltip: {
|
|
|
+ trigger: "item"
|
|
|
+ },
|
|
|
+ grid: {
|
|
|
+ left: 90,
|
|
|
+ right: 80,
|
|
|
+ },
|
|
|
+ xAxis: {
|
|
|
+ data: this.dateList,
|
|
|
+ },
|
|
|
+ yAxis: {
|
|
|
+ max: this.maxValue,
|
|
|
+ min: this.minValue,
|
|
|
+ min: function(value) { // 取最小值向下取整为最小刻度
|
|
|
+ return Math.floor(value.min)
|
|
|
+ },
|
|
|
+ max: function(value) { // 取最大值向上取整为最大刻度
|
|
|
+ return Math.ceil(value.max)
|
|
|
+ },
|
|
|
+ scale: true,
|
|
|
+ type: 'value',
|
|
|
+ },
|
|
|
+ series: [
|
|
|
+ {
|
|
|
+ name: this.fieldNameTitle,
|
|
|
+ label: {
|
|
|
+ show: true,
|
|
|
+ position: 'top'
|
|
|
+ },
|
|
|
+ data: this.valueList,
|
|
|
+ type: 'line',
|
|
|
+ smooth: true,
|
|
|
+ symbolSize: 15,
|
|
|
+ color:"#5470c6",
|
|
|
+ lineStyle: {
|
|
|
+ width: 6
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ };
|
|
|
+ this.chart.setOption(option);
|
|
|
+ });
|
|
|
+ },
|
|
|
+ /** 设置表头 */
|
|
|
+ setTableTitle() {
|
|
|
+ // 拼接年份后的数组
|
|
|
+ let monthListTemp = [];
|
|
|
+ // 重置月份数组
|
|
|
+ this.monthList = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
|
|
|
+ for (let i = 0; i < this.monthList.length; i++) {
|
|
|
+ // 拼接后:月份-年份,如Feb-2022
|
|
|
+ monthListTemp.push(this.monthList[i] + "-" + this.year.getFullYear());
|
|
|
+ }
|
|
|
+ this.monthList = monthListTemp;
|
|
|
+ },
|
|
|
+ /** 处理年份控件change事件 */
|
|
|
+ handleQueryYear() {
|
|
|
+ // 点击clear按钮,设置year为今年
|
|
|
+ if (this.year == null) {
|
|
|
+ this.year = new Date();
|
|
|
+ }
|
|
|
+ this.getMonthlyReport();
|
|
|
+ },
|
|
|
+ /** 获取月报 */
|
|
|
+ getMonthlyReport() {
|
|
|
+ // 设置表头
|
|
|
+ this.setTableTitle();
|
|
|
+ // 获取选中的年份
|
|
|
+ let year = this.year.getFullYear();
|
|
|
+ // 根据年份获取月报数据
|
|
|
+ getCrackerRawMaterial(year).then(response => {
|
|
|
+ this.tableCrackerRawMaterial = response.data;
|
|
|
+ });
|
|
|
+
|
|
|
+
|
|
|
+ },
|
|
|
+ }
|
|
|
+}
|
|
|
</script>
|
|
|
|
|
|
<style scoped>
|