var _=(n,D,a)=>new Promise((o,y)=>{var v=e=>{try{d(a.next(e))}catch(i){y(i)}},p=e=>{try{d(a.throw(e))}catch(i){y(i)}},d=e=>e.done?o(e.value):Promise.resolve(e.value).then(v,p);d((a=a.apply(n,D)).next())});import{A as w,_ as A,d as B,I as R,H as S,r as u,o as F,f as m,g as I,h as T,l as x,m as r,G as C,L as G,K,i as t,t as c,p as M}from"./index.9fabe127.js";import{p as O}from"./flowConfiguration.82148ce2.js";import{i as U}from"./index.682be1ab.js";const E=n=>w.get("/api/v1/process/statistics/detail",{params:n}),H=n=>w.get("/api/v1/process/statistics/list",{params:n}),J={class:"flex justify-between text-center mt-24"},P={class:"text-primary text-32 font-bold",style:{"font-family":"DIN"}},q=t("p",{class:"text-info text-14"},"\u6D41\u7A0B\u5B9E\u4F8B\u603B\u6570",-1),z={class:"text-primary text-36 font-bold",style:{"font-family":"DIN"}},Q=t("p",{class:"text-info text-14"},"\u5DF2\u5B8C\u6210",-1),W={class:"text-primary text-32 font-bold",style:{"font-family":"DIN"}},X=t("p",{class:"text-info text-14"},"\u5904\u7406\u4E2D",-1),Y={class:"text-primary text-32 font-bold",style:{"font-family":"DIN"}},Z=t("p",{class:"text-info text-14"},"\u5E73\u5747\u5B8C\u6210\u8017\u65F6",-1),$={class:"text-primary text-32 font-bold",style:{"font-family":"DIN"}},tt=t("p",{class:"text-info text-14"},"\u6700\u957F\u5B8C\u6210\u8017\u65F6",-1),et={class:"text-primary text-32 font-bold",style:{"font-family":"DIN"}},st=t("p",{class:"text-info text-14"},"\u6700\u77ED\u5B8C\u6210\u8017\u65F6",-1),at=B({name:"processStatistics"}),ot=Object.assign(at,{setup(n){const D=R(S.userStore).userInfo,a=u([]),o=u({}),y=()=>_(this,null,function*(){const s=yield O({regionCode:D.value.regionCode*1});a.value=s.data.records,o.value.process=s.data.records[0].processType,i()}),v=u();let p;const d=()=>{var f,h;p||(p=U(v.value));const s={tooltip:{show:!0,trigger:"axis",valueFormatter:l=>l+"\u5929"},xAxis:{type:"category",boundaryGap:!1,data:(f=b.value)==null?void 0:f.map(l=>l.instTypeName)},yAxis:{name:"\u5B8C\u6210\u8017\u65F6\uFF08\u5929\uFF09",type:"value"},series:[{data:(h=b.value)==null?void 0:h.map(l=>l.avgTime),type:"line"}]};p.setOption(s)},e=u({}),i=()=>_(this,null,function*(){const s=yield E({instType:o.value.process});e.value=s.data}),b=u([]),k=()=>_(this,null,function*(){const s=yield H();b.value=s.data||[],d()});return F(()=>_(this,null,function*(){y(),k()})),(s,f)=>{const h=m("el-option"),l=m("el-select"),V=m("el-form-item"),L=m("el-form"),N=m("el-card");return I(),T(C,null,[x(N,{class:"mb-16"},{default:r(()=>[x(L,{ref:"formRef",model:o.value},{default:r(()=>[x(V,null,{default:r(()=>[x(l,{modelValue:o.value.process,"onUpdate:modelValue":f[0]||(f[0]=g=>o.value.process=g),onChange:i},{default:r(()=>[(I(!0),T(C,null,G(a.value,(g,j)=>(I(),K(h,{key:j,value:g.processType,label:g.formName},null,8,["value","label"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"]),t("div",J,[t("div",null,[t("p",P,c(e.value.totalInst||0),1),q]),t("div",null,[t("p",z,c(e.value.finishedInst||0),1),Q]),t("div",null,[t("p",W,c(e.value.pendingInst||0),1),X]),t("div",null,[t("p",Y,c(e.value.avgTime||0)+"\u5929",1),Z]),t("div",null,[t("p",$,c(e.value.maxTime||0)+"\u5929",1),tt]),t("div",null,[t("p",et,c(e.value.minTime||0)+"\u5929",1),st])])]),_:1}),x(N,null,{header:r(()=>[M("\u5404\u6D41\u7A0B\u5E73\u5747\u5904\u7406\u65F6\u957F")]),default:r(()=>[t("div",{ref_key:"chartRef",ref:v,style:{height:"400px"}},null,512)]),_:1})],64)}}}),ct=A(ot,[["__file","/Users/chenlixin/Documents/work/NDKJ/MyProject/ls-project-v2.0/src/pages/statisticAnalysis/processStatistics/index.vue"]]);export{ct as default};
