(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-635c638c"],{"04d5":function(t,e,i){"use strict";var a=i("1627"),s=i("0047"),r=i("7738");t.exports=function(t,e,i){var n,o;return r&&a(n=e.constructor)&&n!==i&&s(o=n.prototype)&&o!==i.prototype&&r(t,o),t}},"0716":function(t,e,i){"use strict";var a=i("9875"),s=String,r=TypeError;t.exports=function(t){if(a(t))return t;throw new r("Can't set "+s(t)+" as a prototype")}},"10ca":function(t,e,i){"use strict";var a=i("5661"),s=i("45ed"),r=i("89c1"),n=i("c6a9"),o="WebAssembly",c=s[o],l=7!==new Error("e",{cause:7}).cause,u=function(t,e){var i={};i[t]=n(t,e,l),a({global:!0,constructor:!0,arity:1,forced:l},i)},d=function(t,e){if(c&&c[t]){var i={};i[t]=n(o+"."+t,e,l),a({target:o,stat:!0,constructor:!0,arity:1,forced:l},i)}};u("Error",(function(t){return function(e){return r(t,this,arguments)}})),u("EvalError",(function(t){return function(e){return r(t,this,arguments)}})),u("RangeError",(function(t){return function(e){return r(t,this,arguments)}})),u("ReferenceError",(function(t){return function(e){return r(t,this,arguments)}})),u("SyntaxError",(function(t){return function(e){return r(t,this,arguments)}})),u("TypeError",(function(t){return function(e){return r(t,this,arguments)}})),u("URIError",(function(t){return function(e){return r(t,this,arguments)}})),d("CompileError",(function(t){return function(e){return r(t,this,arguments)}})),d("LinkError",(function(t){return function(e){return r(t,this,arguments)}})),d("RuntimeError",(function(t){return function(e){return r(t,this,arguments)}}))},1844:function(t,e,i){"use strict";var a=i("ef05"),s=i("871a");t.exports=!a((function(){var t=new Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",s(1,7)),7!==t.stack)}))},"2cd5":function(t,e,i){"use strict";var a=i("2d73"),s=i("1627"),r=i("2478"),n=i("9daa"),o=n("toStringTag"),c=Object,l="Arguments"===r(function(){return arguments}()),u=function(t,e){try{return t[e]}catch(i){}};t.exports=a?r:function(t){var e,i,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=u(e=c(t),o))?i:l?r(e):"Object"===(a=r(e))&&s(e.callee)?"Arguments":a}},"2d73":function(t,e,i){"use strict";var a=i("9daa"),s=a("toStringTag"),r={};r[s]="z",t.exports="[object z]"===String(r)},"43cf":function(t,e,i){"use strict";i("ab2d")},"6fcf":function(t,e,i){"use strict";var a=i("de6a");t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:a(t)}},"74ac":function(t,e,i){"use strict";var a=i("c6d5"),s=Error,r=a("".replace),n=function(t){return String(new s(t).stack)}("zxcasd"),o=/\n\s*at [^:]*:[^\n]*/,c=o.test(n);t.exports=function(t,e){if(c&&"string"==typeof t&&!s.prepareStackTrace)while(e--)t=r(t,o,"");return t}},7738:function(t,e,i){"use strict";var a=i("99d3"),s=i("0047"),r=i("9a92"),n=i("0716");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,i={};try{t=a(Object.prototype,"__proto__","set"),t(i,[]),e=i instanceof Array}catch(o){}return function(i,a){return r(i),n(a),s(i)?(e?t(i,a):i.__proto__=a,i):i}}():void 0)},"79ce":function(t,e,i){"use strict";var a=i("0047"),s=i("2e59");t.exports=function(t,e){a(e)&&"cause"in e&&s(t,"cause",e.cause)}},8924:function(t,e,i){"use strict";var a=i("2e59"),s=i("74ac"),r=i("1844"),n=Error.captureStackTrace;t.exports=function(t,e,i,o){r&&(n?n(t,e):a(t,"stack",s(i,o)))}},"89c1":function(t,e,i){"use strict";var a=i("a73b"),s=Function.prototype,r=s.apply,n=s.call;t.exports="object"==typeof Reflect&&Reflect.apply||(a?n.bind(r):function(){return n.apply(r,arguments)})},9875:function(t,e,i){"use strict";var a=i("0047");t.exports=function(t){return a(t)||null===t}},"99d3":function(t,e,i){"use strict";var a=i("c6d5"),s=i("9374");t.exports=function(t,e,i){try{return a(s(Object.getOwnPropertyDescriptor(t,e)[i]))}catch(r){}}},"9f8e":function(t,e,i){"use strict";i("b376")},ab2d:function(t,e,i){},b376:function(t,e,i){},c54a:function(t,e,i){"use strict";i.d(e,"m",(function(){return a})),i.d(e,"b",(function(){return s})),i.d(e,"d",(function(){return r})),i.d(e,"c",(function(){return n})),i.d(e,"g",(function(){return o})),i.d(e,"k",(function(){return c})),i.d(e,"f",(function(){return l})),i.d(e,"a",(function(){return u})),i.d(e,"l",(function(){return d})),i.d(e,"e",(function(){return p})),i.d(e,"h",(function(){return h})),i.d(e,"i",(function(){return m})),i.d(e,"j",(function(){return f}));i("10ca"),i("fcd3");function a(t){if("boolean"==typeof t)return!1;if("number"==typeof t)return!1;if(t instanceof Array){if(0==t.length)return!0}else{if(!(t instanceof Object))return"null"==t||null==t||"undefined"==t||void 0==t||""==t;if("{}"===JSON.stringify(t))return!0}return!1}const s=(t,e,i)=>{const a=/^\d+(\.\d{1,6})?$/,s="只能输入数字,最多保留六位小数";return a.test(e)?i():i(new Error(s))},r=(t,e,i)=>{/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/.test(e)?i():i(new Error("请输入正确的邮箱地址"))},n=(t,e,i)=>{const a=/^\d+(\.\d{1,6})?$/,s="只能输入数字,最多保留六位小数",r="总价不能小于等于0";return e<=0?i(new Error(r)):a.test(e)?i():i(new Error(s))},o=(t,e,i)=>{const a=/^[0-9]{1,}$/,s="只能输入正整数数字";return a.test(e)?i():i(new Error(s))},c=(t,e,i)=>{const a=/[`~!@#$%^&*()_\-+=<>?:"{}|,./;'\\[\]·~!@#¥%……&*()——\-+={}|《》?:“”【】、;‘’,。、]/,s=255,r="不能输入特殊字符",n=`输入内容不能超过${s}个字符`;return console.log(e,"vvv"),a.test(e)?i(new Error(r)):e.length>=s?i(new Error(n)):i()},l=(t,e,i)=>{const a=/^([1-9]\d{0,3}|0)(\.\d{1,2})?\s*(kg)?$/i,s="请输入合法的kg数值";return a.test(e)?i():i(new Error(s))},u=(t,e,i)=>{/^\d+(.\d+)?$/.test(e)?i():i(new Error("请输入正确的数值"))},d=(t,e,i)=>{/^([0-9A-HJ-NPQRTUWXY]{2}\d{6}[0-9A-HJ-NPQRTUWXY]{10}|[1-9]\d{14})$/.test(e)?i():i(new Error("请输入正确的统一信用代码"))},p=(t,e,i)=>{/^(([0-9]+\.[0-9]*[1-9][0-9]*)|([0-9]*[1-9][0-9]*\.[0-9]+)|([0-9]*[1-9][0-9]*))$/.test(e)?i():i(new Error("请输入正确的数字"))},h=(t,e,i)=>{/^[0-9]\d{5}$/.test(e)?i():i(new Error("请输入正确的邮政编码"))},m=(t,e,i)=>{/^1[3456789]\d{9}$/.test(e)?i():i(new Error("请输入正确的联系方式"))},f=(t,e,i)=>{/[`~!@$%^&*()_\-+=<>?:"{}|/;'\\[\]·~!@¥%……&*——\-+={}|《》?:“”【】、;‘’,。、]/.test(e)||""===e.trim()?i(new Error("不能包含特殊字符串且内容不能为空")):i()}},c6a9:function(t,e,i){"use strict";var a=i("93f0"),s=i("a17d"),r=i("2e59"),n=i("cb12"),o=i("7738"),c=i("c7a3"),l=i("dff2"),u=i("04d5"),d=i("6fcf"),p=i("79ce"),h=i("8924"),m=i("4e88"),f=i("1232");t.exports=function(t,e,i,g){var y="stackTraceLimit",v=g?2:1,F=t.split("."),b=F[F.length-1],w=a.apply(null,F);if(w){var C=w.prototype;if(!f&&s(C,"cause")&&delete C.cause,!i)return w;var S=a("Error"),x=e((function(t,e){var i=d(g?e:t,void 0),a=g?new w(t):new w;return void 0!==i&&r(a,"message",i),h(a,x,a.stack,2),this&&n(C,this)&&u(a,this,x),arguments.length>v&&p(a,arguments[v]),a}));if(x.prototype=C,"Error"!==b?o?o(x,S):c(x,S,{name:!0}):m&&y in w&&(l(x,w,y),l(x,w,"prepareStackTrace")),c(x,w),!f)try{C.name!==b&&r(C,"name",b),C.constructor=x}catch(E){}return x}}},d4b9:function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t._self._c;return e("div",[e("el-card",{staticClass:"box-card"},[e("header",[e("span",{staticClass:"header-text"},[t._v("选择产品:")]),e("el-select",{staticClass:"product-select",attrs:{placeholder:"请选择"},on:{change:t.searchProduct},model:{value:t.productId,callback:function(e){t.productId=e},expression:"productId"}},t._l(t.options,(function(t){return e("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1)]),e("el-card",{staticClass:"product-box-card"},[e("div",{staticClass:"product"},[e("div",{staticClass:"content"},[e("div",{staticClass:"left"},[e("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:t.productDetail.name,placement:"top"}},[e("div",{staticClass:"content_title"},[t._v(t._s(t.productDetail.name))])]),e("div",{staticClass:"product-img-box"},[e("img",{staticClass:"product-img",attrs:{src:t.productDetail.productPicture,alt:""}})])],1),e("div",{staticClass:"right",staticStyle:{overflow:"hidden"}},[e("div",{staticClass:"overview"},[e("span",{staticClass:"text",staticStyle:{"word-wrap":"break-wrod","word-break":"brak-all"}},[t._v(t._s(t.productDetail.explain))])])])]),e("div",{staticClass:"rightinfo"},[e("el-row",[e("el-col",{attrs:{span:"6"}},[e("div",{staticClass:"heading"},[t._v(" 产品类型 "),e("span",{staticClass:"text",staticStyle:{"margin-left":"20px"}},[t._v(t._s(t.productDetail.type))])])]),e("el-col",{attrs:{span:"6"}},[e("div",{staticClass:"heading"},[t._v(" 产品批次 "),e("span",{staticClass:"text",staticStyle:{"margin-left":"20px"}},[t._v(t._s(t.productDetail.batchNumber))])])]),e("el-col",{attrs:{span:"6"}},[e("div",{staticClass:"heading"},[t._v(" 产品数量 "),e("span",{staticClass:"text",staticStyle:{"margin-left":"20px"}},[t._v(t._s(t.productDetail.count))])])]),e("el-col",{attrs:{span:"6"}},[e("div",{staticClass:"heading"},[t._v(" 产品单位 "),e("span",{staticClass:"text",staticStyle:{"margin-left":"20px"}},[t._v(t._s(t.productDetail.unit))])])])],1),e("el-row",{attrs:{gutter:20}},[e("el-col",{attrs:{span:"6"}},[e("div",{staticClass:"heading"},[t._v(" 生产企业 "),e("span",{staticClass:"text",staticStyle:{"margin-left":"20px"}},[t._v(t._s(t.productDetail.manufacturingEnterprise))])])]),e("el-col",{attrs:{span:"6"}},[e("div",{staticClass:"heading"},[t._v(" 生命周期边界 "),e("span",{staticClass:"text",staticStyle:{"margin-left":"20px"}},[t._v(t._s(t.productDetail.lifecycle))])])]),e("el-col",{attrs:{span:"6"}},[e("div",{staticClass:"heading"},[t._v(" 数据统计时间 "),e("span",{staticClass:"text",staticStyle:{"margin-left":"20px"}},[t._v(t._s(t.productDetail.productDate))])])]),e("el-col",{attrs:{span:"6"}},[e("div",{staticClass:"heading"},[t._v(" 生产地址 "),e("span",{staticClass:"text",staticStyle:{"margin-left":"20px"}},[t._v(t._s(t.productDetail.manufacturingEnterpriseAddress))])])])],1)],1)]),e("div",{staticClass:"box"},[e("el-row",{attrs:{gutter:24}},[e("el-col",{attrs:{span:24}},[e("el-row",{attrs:{gutter:24}},[e("el-col",{attrs:{span:12}},[e("div",{staticClass:"chart-item"},[e("div",{staticClass:"chart-title",staticStyle:{"margin-bottom":"10px"}},[t._v(" 产品碳足迹各阶段占比 ")]),e("div",{staticClass:"chart-bg"},[e("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:t.proportion+" "+t.productDetail.unit+"/ kgCO2eq",placement:"top"}},[e("div",[e("div",{staticClass:"proportion-share"},[t._v(" "+t._s(t.proportion)+" ")]),e("div",{staticClass:"units"},[t._v(" "+t._s(t.productDetail.unit)+" / kgCO2eq ")])])])],1),e("div",{staticClass:"text-data"},t._l(t.carbonFootprintList,(function(i,a){return e("div",{key:a,staticClass:"item"},[e("div",{staticClass:"itemtitle"},[t._v(t._s(i.name))]),e("div",{staticClass:"itemtext"},[t._v(t._s(i.value))])])})),0)])]),e("el-col",{attrs:{span:12}},[e("div",{staticClass:"chart-item"},[e("div",{staticClass:"chart-title"},[t._v("碳足迹标签")]),e("img",{staticClass:"carbonlabeling",attrs:{src:t.imgUrl,alt:""}})])])],1),e("el-row",{attrs:{gutter:24}},[e("el-col",{attrs:{span:12}},[e("div",{staticClass:"chart-item smissions"},[e("div",{ref:"StageEmissions",attrs:{id:"StageEmissions"}})])]),e("el-col",{attrs:{span:12}},[e("div",{staticClass:"chart-item"},[e("div",{ref:"rawMateria",attrs:{id:"rawMateria"}})])])],1),e("el-row",{attrs:{gutter:24}},[e("el-col",{attrs:{span:12}},[e("div",{staticClass:"chart-item"},[e("div",{ref:"emissionPreview",attrs:{id:"emissionPreview"}})])]),e("el-col",{attrs:{span:12}},[e("div",{staticClass:"chart-item"},[e("div",{ref:"production",attrs:{id:"production"}})])])],1)],1)],1)],1)])],1)},s=[],r=(i("fcd3"),i("d2e1"),i("2040")),n={data(){return{imgUrl:r["i"],carbonFootprintProductList:[],productId:"1719175492021452801",productDetail:{},proportion:"8692891.1928",carbonFootprintList:[],carbonFootprint:{},processesList:[],emissionsOverviewVlaue:[],emissionsOverviewName:[],individualWastageValue:[],rawMaterialList:[],analysisOnce:{data:[],colors:[],isShow:!1},analysisTwo:{data:[],colors:[],isShow:!1},analysisThree:{data:[],colors:[],isShow:!1},analysisFour:{data:[],colors:[],isShow:!1},analysisFive:{data:[],colors:[],isShow:!1},analysisSix:{data:[],colors:[],isShow:!1}}},async created(){await this.getProductList(),this.searchProduct()},mounted(){window.addEventListener("resize",this.handleResize),this.elements()},beforeDestroy(){window.removeEventListener("resize",this.handleResize)},methods:{elements(){const t=document.querySelectorAll(".chart-title"),e=document.querySelectorAll(".proportion-share"),i=document.querySelectorAll(".units"),a=this.calculateFontSize(.16),s=this.calculateFontSize(.24),r=this.calculateFontSize(.14);t.forEach(t=>{t.style.fontSize=a+"px"}),e[0].style.fontSize=s+"px",i[0].style.fontSize=r+"px"},handleResize(){let t=this.carbonFootprintProductList.find(t=>t.id==this.productId);this.productDetail=Object.assign(t.productModelVO,t.productVO),this.carbonFootprintList=[],this.getCarbonFootprintProportion(),this.getProcessesData(),this.getRawMaterialList();const e=document.querySelectorAll(".chart-title"),i=document.querySelectorAll(".proportion-share"),a=document.querySelectorAll(".units"),s=this.calculateFontSize(.16),r=this.calculateFontSize(.24),n=this.calculateFontSize(.14);e.forEach(t=>{t.style.fontSize=s+"px"}),i[0].style.fontSize=r+"px",a[0].style.fontSize=n+"px"},calculateFontSize(t){let e=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;if(!e)return;let i=e/1920*100;return(t*i).toFixed(2)},async getProductList(){this.carbonFootprintProductList=[{id:"1719175492021452801",createUser:"1605399440819564545",createDept:"1605399437405401089",createTime:"2023-10-31 10:12:33",updateUser:"1605399440819564545",updateTime:"2023-10-31 10:12:33",status:1,isDeleted:0,tenantId:"999606",productId:"1701116510965358593",productModelId:"1716663367004770305",productCarbonFootprintName:"23213123",approvalStandards:"ISO-14067:2018",totalEmission:null,productVO:{id:"1719175492021452801",createUser:"1605399440819564545",createDept:"1605399437405401089",createTime:"2023-10-31 10:12:33",updateUser:"1605399440819564545",updateTime:"2023-10-31 10:12:33",status:1,isDeleted:0,tenantId:"999606",name:"305不锈钢",code:"13",type:"生活",manufacturingEnterprise:"山西太原钢铁",manufacturingEnterpriseAddress:"山西省太原市",count:"25",batchNumber:"202155236",unitMass:null,unit:"kg",productPicture:"http://192.168.2.201:9000/bucket2/upload/20231020095226476/2b709850a7db799a4a0d8c4e1cd190a.jpg",flowChart:null,productDate:"2023-03-01,2023-04-24",explain:"305 不锈钢是一种奥氏体不锈钢,用于需要卓越耐腐蚀性的应用。它通常用于生产消费品、医疗设备、电气元件和其他暴露在恶劣环境条件下的产品。因此,305 不锈钢已成为许多不同行业制造商越来越受欢迎的材料。",carbonFootprintVO:null},productModelVO:{id:"1719175492021452801",createUser:"1605399440819564545",createDept:"1605399437405401089",createTime:"2023-10-31 10:12:33",updateUser:"1605399440819564545",updateTime:"2023-10-31 10:12:33",status:1,isDeleted:0,tenantId:"999606",name:"模型13",code:"13",lifecycle:"摇篮到坟墓"},productEmission:null,authenticationVO:null,calculateEntityList:null,productDistributionEntities:null,baseImg:null,label:!1}],this.productId=this.carbonFootprintProductList[0].id,this.options=this.carbonFootprintProductList.map(t=>({value:t.id,label:t.productCarbonFootprintName})),this.productDetail=Object.assign(this.carbonFootprintProductList[0].productModelVO,this.carbonFootprintProductList[0].productVO)},async searchProduct(){this.analysisOnce.isShow=!1,this.analysisTwo.isShow=!1,this.analysisThree.isShow=!1,this.analysisFour.isShow=!1,this.analysisFive.isShow=!1,this.analysisSix.isShow=!1;let t=this.carbonFootprintProductList.find(t=>t.id==this.productId);this.productDetail=Object.assign(t.productModelVO,t.productVO),this.carbonFootprintList=[],this.getCarbonFootprintProportion(),this.getProcessesData(),this.getRawMaterialList(),await this.getCarbonFootprintDistributionData()},async getCarbonFootprintProportion(){this.emissionsOverviewVlaue=[],this.carbonFootprint={emissionsOverview:[{wastage:"0.96",emissionView:"产品包装",carbonFootprintId:"1719175492021452801",updateUser:"1605399440819564545",updateTime:"2023-11-22 15:39:46",emissionVeidoo:"产品包装",emission:"78.8000",createDept:"1605399437405401089",isDeleted:0,createTime:"2023-10-31 17:41:19",tenantId:"999606",createUser:"1605399440819564545",id:"1719288429704888322",status:1},{wastage:"0.52",emissionView:"产品生产制造",carbonFootprintId:"1719175492021452801",updateUser:"1605399440819564545",updateTime:"2023-11-22 15:39:46",emissionVeidoo:"产品生产输入",emission:"25.7700",createDept:"1605399437405401089",isDeleted:0,createTime:"2023-10-31 10:13:32",tenantId:"999606",createUser:"1605399440819564545",id:"1719175741108584450",status:1},{wastage:"92.93",emissionView:"产品原材料",carbonFootprintId:"1719175492021452801",updateUser:"1605399440819564545",updateTime:"2023-11-22 15:39:45",emissionVeidoo:"产品原材料",emission:"17950.7200",createDept:"1605399437405401089",isDeleted:0,createTime:"2023-10-31 10:13:10",tenantId:"999606",createUser:"1605399440819564545",id:"1719175646980014082",status:1},{wastage:"20.00",emissionView:"产品使用",carbonFootprintId:"1719175492021452801",updateUser:"1605399440819564545",updateTime:"2023-11-22 15:39:47",emissionVeidoo:"产品使用",emission:"1070.2100",createDept:"1605399437405401089",isDeleted:0,createTime:"2023-10-31 17:43:11",tenantId:"999606",createUser:"1605399440819564545",id:"1719288900742004738",status:1},{wastage:"80044.44",emissionView:"产品分销",carbonFootprintId:"1719175492021452801",updateUser:"1605399440819564545",updateTime:"2023-11-22 15:39:47",emissionVeidoo:"产品分销",emission:"217200587.9400",createDept:"1605399437405401089",isDeleted:0,createTime:"2023-10-31 17:43:00",tenantId:"999606",createUser:"1605399440819564545",id:"1719288851958054913",status:1},{wastage:"11.62",emissionView:"产品处置",carbonFootprintId:"1719175492021452801",updateUser:"1605399440819564545",updateTime:"2023-11-10 14:59:03",emissionVeidoo:"产品处置",emission:"102566.3800",createDept:"1605399437405401089",isDeleted:0,createTime:"2023-10-31 17:43:26",tenantId:"999606",createUser:"1605399440819564545",id:"1719288960485670914",status:1}],analysePercentage:{"产品原材料":"0.0100%","产品使用":"0.0000%","产品处置":"0.0500%","产品生产制造":"0.0000%","产品包装":"0.0000%","产品分销":"99.9400%"}};for(let s in this.carbonFootprint.analysePercentage)this.emissionsOverviewVlaue.push({value:parseFloat(this.carbonFootprint.analysePercentage[s]),name:s});this.emissionsVlaue=this.carbonFootprint.emissionsOverview.map(t=>Number(t.emission.replace(/\.?0+$/,""))),this.emissionsName=this.carbonFootprint.emissionsOverview.map(t=>t.emissionView),this.individualWastageValue=this.carbonFootprint.emissionsOverview.map(t=>t.wastage);let t=Object.keys(this.carbonFootprint.analysePercentage);this.carbonFootprintList=[];for(let s=0;s",i=t.color;return e+='',e+=t.value+"%",e}},grid:{bottom:"-20px",right:"0",containLabel:!0},legend:{orient:"vertical",right:"0",top:"0",itemWidth:15,itemHeight:15,itemGap:10},series:[{type:"pie",radius:["30%","45%"],center:["40%","65%"],avoidLabelOverlap:!0,minAngle:5,itemStyle:{normal:{label:{show:!1,textStyle:{color:"#3c4858",fontSize:"12"},formatter:function(t){return t.value+"%"}},labelLine:{show:!0,lineStyle:{color:"#3c4858"}}},emphasis:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)",textColor:"#000"}},label:{show:!1,position:"center"},labelLine:{show:!1},data:this.emissionsOverviewVlaue,color:["#19C297","#9AEBDF","#FCC140","#FEDC8C","#77FD56","#CEF3BA","#85FFC6","#D0FFEA "]}]};setTimeout(()=>{if(this.$refs["StageEmissions"]){var t=this.$echarts.init(this.$refs["StageEmissions"]);t.clear(),t.setOption(i),window.addEventListener("resize",()=>{t.resize()})}});let a={title:{text:"各阶段排放总览 ",textStyle:{fontSize:e,fontFamily:"PingFangSC-Medium, PingFang SC",fontWeight:600,color:"#1B1B1B"}},tooltip:{trigger:"axis",axisPointer:{type:"cross",crossStyle:{color:"#999"}}},grid:{left:"3%",right:"4%",bottom:"0",containLabel:!0},axisLine:{show:!0,lineStyle:{color:"#4F4F4F"}},axisTick:{show:!1},color:["rgba(25,194,151,0.3)","#19C297"],gradientColor:["rgba(25,194,151,0.3)","#19C297"],legend:{x:"right",y:"top",data:["排放量","消耗量"],top:"8%"},xAxis:[{type:"category",data:this.emissionsName,axisPointer:{type:"shadow"},axisLabel:{show:!0,interval:0,rotate:20}}],yAxis:[{type:"value"}],series:[{name:"排放量",type:"bar",tooltip:{valueFormatter:function(t){return t+" kgCO2eq"}},itemStyle:{color:"#19C297"},data:this.emissionsVlaue},{name:"消耗量",type:"bar",itemStyle:{color:"rgba(25,194,151,0.3)"},tooltip:{valueFormatter:function(t){return t+" kg"}},data:this.individualWastageValue}]};setTimeout(()=>{if(this.$refs["emissionPreview"]){var t=this.$echarts.init(this.$refs["emissionPreview"]);t.clear(),t.setOption(a),window.addEventListener("resize",()=>{t.resize()})}})},getProcessesData(){this.productId,this.productDetail.count;this.processesList=[{typeName:"产品生产制造",type:"products",individualEmission:"0.0035",individualWastage:"0.0400",emission:"0.0880",name:"制"},{typeName:"产品生产制造",type:"products",individualEmission:"1.7664",individualWastage:"9.7200",emission:"18.4800",name:"烧"}];let t=this.processesList.map(t=>t.name),e=this.processesList.map(t=>t.individualEmission),i=this.processesList.map(t=>t.individualWastage),a=this.calculateFontSize(.16),s={title:{text:"工序分析 ",textStyle:{fontSize:a,fontFamily:"PingFangSC-Medium, PingFang SC",fontWeight:600,color:"#1B1B1B"}},tooltip:{trigger:"axis",axisPointer:{type:"cross",crossStyle:{color:"#999"}}},grid:{left:"3%",right:"4%",bottom:"0",containLabel:!0},axisLine:{show:!0,lineStyle:{color:"#4F4F4F"}},axisTick:{show:!1},color:["rgba(25,194,151,0.3)","#19C297"],gradientColor:["rgba(25,194,151,0.3)","#19C297"],legend:{x:"right",y:"top",data:["排放量","消耗量"],top:"8%"},xAxis:[{type:"category",data:t,axisPointer:{type:"shadow"},axisLabel:{show:!0,interval:0,rotate:25}}],yAxis:[{type:"value"}],series:[{name:"排放量",type:"bar",tooltip:{valueFormatter:function(t){return t+" kgCO2eq"}},itemStyle:{color:"#19C297"},data:e},{name:"消耗量",type:"bar",itemStyle:{color:"rgba(25,194,151,0.3)"},tooltip:{valueFormatter:function(t){return t+" kg"}},data:i}]};setTimeout(()=>{if(this.$refs["production"]){var t=this.$echarts.init(this.$refs["production"]);t.clear(),t.setOption(s),window.addEventListener("resize",()=>{t.resize()})}})},getRawMaterialList(){this.rawMaterialList=[{typeName:"原材料",type:"raw",individualEmission:"0.0734",individualWastage:"0.41",emission:"1.8360",name:"煤"},{typeName:"原材料",type:"raw",individualEmission:"717.9552",individualWastage:"92.52",emission:"17948.8800",name:"液氨"}];let t=this.rawMaterialList.map(t=>t.name),e=this.rawMaterialList.map(t=>t.individualEmission),i=this.rawMaterialList.map(t=>t.individualWastage),a=this.calculateFontSize(.16),s={title:{text:"原材料阶段各材料碳排放占比",textStyle:{fontSize:a,fontFamily:"PingFangSC-Medium, PingFang SC",fontWeight:600,color:"#1B1B1B"}},tooltip:{trigger:"axis",axisPointer:{type:"cross",crossStyle:{color:"#999"}}},grid:{left:"3%",right:"4%",bottom:"0",containLabel:!0},axisLine:{show:!0,lineStyle:{color:"#4F4F4F"}},axisTick:{show:!1},color:["rgba(25,194,151,0.3)","#19C297"],gradientColor:["rgba(25,194,151,0.3)","#19C297"],legend:{x:"right",y:"top",data:["排放量","消耗量"],top:"8%"},xAxis:[{type:"category",data:t,axisPointer:{type:"shadow"},axisLabel:{show:!0,interval:0,rotate:20}}],yAxis:[{type:"value"}],series:[{name:"排放量",type:"bar",tooltip:{valueFormatter:function(t){return t+" kgCO2eq"}},itemStyle:{color:"#19C297",barWidth:16},data:e},{name:"消耗量",type:"bar",itemStyle:{color:"rgba(25,194,151,0.3)",barWidth:16},tooltip:{valueFormatter:function(t){return t+" kg"}},data:i}]};setTimeout(()=>{if(this.$refs["rawMateria"]){var t=this.$echarts.init(this.$refs["rawMateria"]);t.clear(),t.setOption(s),window.addEventListener("resize",()=>{t.resize()})}})},async getCarbonFootprintDistributionData(){let t={result:[{data:[{name:"液氨"},{name:"原材料"},{name:"煤"}],links:[{source:"原材料",target:"煤",value:"1.8360"},{source:"原材料",target:"液氨",value:"17948.8800"}]},{data:[{name:"产品生产制造"},{name:"制"},{name:"烧"}],links:[{source:"产品生产制造",target:"烧",value:"18.4800"},{source:"产品生产制造",target:"制",value:"0.0880"},{source:"产品生产制造",target:"烧",value:"25.6800"}]},{data:[{name:"包装"},{name:"木制品"}],links:[{source:"包装",target:"木制品",value:"78.8040"}]},{data:[{name:"天津市,天津市,和平区"},{name:"分销"}],links:[{source:"分销",target:"天津市,天津市,和平区",value:"217200587.9400"}]},{data:[{name:"河北省,石家庄市,长安区"},{name:"使用"}],links:[{source:"使用",target:"河北省,石家庄市,长安区",value:"1070.2140"}]},{data:[{name:"处置"}],links:[]}]};this.dataLenght=t.result.length,t.result.forEach(async(t,e)=>{if(0==e)this.analysisOnce.isShow=!0,this.analysisOnce.data=t,this.analysisOnce.colors=["#5BECA9","#FF5656","#FF56BE","#E056FF","#9A56FF","#50B6FC","#FF9B56","#E056FF","#E2F92C"],this.getCarbonFootprintDistributionOnce();else if(1==e)this.analysisTwo.isShow=!0,this.analysisTwo.data=t,this.analysisTwo.colors=["#E2F92C","#43FFDD","#5743FF","#50B6FC","#FF9B56","#E056FF","#FF7C43","#E2F92C","#FFC744","#FF7A44","#A5FF44"],await this.getCarbonFootprintDistributionTwo();else if(2==e)this.analysisThree.isShow=!0,this.analysisThree.data=t,this.analysisThree.colors=["#5684FF","#5BECB9","#BB5BEC","#EC5B6F","#ECBD5B","#FF43B8","#51E1FD","#FF4343","#5743FF","#FF7C43"],await this.getCarbonFootprintDistributionThree();else if(3==e){this.analysisFour.isShow=!0,this.analysisFour.data=t;var i=[];let e={};for(var a=0;a{var e,i=this.$refs.sankeyone;t=this.$echarts.init(i),e={tooltip:{trigger:"item",formatter:"{b} :{c} kgCO2eq"},series:{type:"sankey",layout:"none",data:this.analysisOnce.data.data.map((t,e)=>(t.itemStyle={normal:{color:this.analysisOnce.colors[e]}},t)),lineStyle:{normal:{color:"source"}},links:this.analysisOnce.data.links}},e&&t.setOption(e)})},getCarbonFootprintDistributionTwo(){var t;this.$nextTick(()=>{var e,i=this.$refs.sankeytwo;t=this.$echarts.init(i),e={tooltip:{trigger:"item",formatter:"{b} :{c} kgCO2eq"},series:{type:"sankey",data:this.analysisTwo.data.data.map((t,e)=>(t.itemStyle={normal:{color:this.analysisTwo.colors[e]}},t)),lineStyle:{color:"source",curveness:.5},nodeWidth:20,nodeGap:12,links:this.analysisTwo.data.links}},e&&t.setOption(e)})},getCarbonFootprintDistributionThree(){var t;this.$nextTick(()=>{var e,i=this.$refs.sankeythree;t=this.$echarts.init(i),e={tooltip:{trigger:"item",formatter:"{b} :{c} kgCO2eq"},series:{type:"sankey",layout:"none",data:this.analysisThree.data.data.map((t,e)=>(t.itemStyle={normal:{color:this.analysisThree.colors[e]}},t)),lineStyle:{normal:{color:"source"}},links:this.analysisThree.data.links}},e&&t.setOption(e)})},getCarbonFootprintDistributionFour(){var t;this.$nextTick(()=>{var e,i=this.$refs.sankeyfour;t=this.$echarts.init(i),e={tooltip:{trigger:"item",formatter:"{b} :{c} kgCO2eq"},series:{type:"sankey",layout:"none",data:this.analysisFour.data.data.map((t,e)=>(t.itemStyle={normal:{color:this.analysisFour.colors[e]}},t)),lineStyle:{normal:{color:"source"}},links:this.analysisFour.data.links}},e&&t.setOption(e)})},getCarbonFootprintDistributionFive(){var t;this.$nextTick(()=>{var e,i=this.$refs.sankeyfive;t=this.$echarts.init(i),e={tooltip:{trigger:"item",formatter:"{b} :{c} kgCO2eq"},series:{type:"sankey",layout:"none",data:this.analysisFive.data.data.map((t,e)=>(t.itemStyle={normal:{color:this.analysisFive.colors[e]}},t)),lineStyle:{normal:{color:"source"}},links:this.analysisFive.data.links}},e&&t.setOption(e)})},getCarbonFootprintDistributionSix(){var t;this.$nextTick(()=>{var e,i=this.$refs.sankeysix;t=this.$echarts.init(i),e={tooltip:{trigger:"item",formatter:"{b} :{c} kgCO2eq"},series:{type:"sankey",layout:"none",data:this.analysisSix.data.data.map((t,e)=>(t.itemStyle={normal:{color:this.analysisSix.colors[e]}},t)),lineStyle:{normal:{color:"source"}},links:this.analysisSix.data.links}},e&&t.setOption(e)})}}},o=n,c=(i("9f8e"),i("43cf"),i("1805")),l=Object(c["a"])(o,a,s,!1,null,"2f946c28",null);e["default"]=l.exports},de6a:function(t,e,i){"use strict";var a=i("2cd5"),s=String;t.exports=function(t){if("Symbol"===a(t))throw new TypeError("Cannot convert a Symbol value to a string");return s(t)}},dff2:function(t,e,i){"use strict";var a=i("8d37").f;t.exports=function(t,e,i){i in t||a(t,i,{configurable:!0,get:function(){return e[i]},set:function(t){e[i]=t}})}}}]);