import{c as a,u as t,e}from"./index-6530d0f6.js";import{r as l}from"./farm-b0ced5a1.js";import{c as s,d as r,e as o,u as n,f as i,m as c,s as d,g as p,_ as u,p as m,a as h,i as g,j as f,k as D,l as b,n as y,o as v,q as x,b as C,r as w,t as A,v as k}from"./panelBox-38406f97.js";import{m as S,e as L,b as I,_ as F,a as j}from"./logo-4fe3e538.js";import{u as T,b as z}from"./vue-router-c7cbbcaa.js";import{a as V}from"./common-1612b50b.js";import{m as O}from"./mapbox-gl-b315653c.js";import{d as E,h as U,X as B,i as N,l as P,S as _,ad as M,k as W,ag as Q,o as R,c as G,P as K,a4 as X,b as q,I as Y,J as Z,a as H,O as J,Q as $,e as aa,E as ta,L as ea,M as la,aq as sa,u as ra,m as oa,F as na,n as ia,V as ca,W as da}from"./@vue-37836d09.js";import{_ as pa}from"./vue-next-wxlogin-91e03b70.js";import{M as ua,R as ma,T as ha,U as ga}from"./@element-plus-bb6eebe0.js";import{_ as fa,a as Da}from"./plan-circle-small-925e5f29.js";import{_ as ba,a as ya,b as va}from"./index03-0a1c8684.js";import"./echarts-a77f8af6.js";import{V as xa}from"./zrender-ee9f2f6d.js";import{a as Ca}from"./index-817aeea8.js";import{v as wa}from"./lodash-es-acda58df.js";import"./element-plus-842069d4.js";import"./@vueuse-1ddca6f0.js";import"./@popperjs-b696b006.js";import"./@ctrl-41c0891e.js";import"./dayjs-423c4f07.js";import"./@turf-e5dd68ad.js";import"./d3-geo-106fc929.js";import"./d3-array-d83825ab.js";import"./async-validator-7d693152.js";import"./memoize-one-63ab667a.js";import"./normalize-wheel-es-cf7d7ba7.js";import"./@floating-ui-f285e0b8.js";import"./pinia-0c8641d4.js";import"./vue-demi-71ba0ef2.js";import"./pinia-plugin-persistedstate-1ec13968.js";import"./destr-9c6e2924.js";import"./deep-pick-omit-418f72d7.js";import"./nprogress-85851b89.js";import"./request-2ce564d0.js";import"./axios-7accb92c.js";import"./sm-crypto-2cfdc71b.js";import"./jsbn-6a317af9.js";const Aa=E({components:{
// servicePopup,
mbPopup:s,mbHtml:r,mbMarker:o},emits:["showDistribution"],props:{},setup(a,{emit:t}){const e=n(),l=T();let s="";const{proxy:r}=W(),o=U(),p=U(),u=U(),m=B({showMap:!1,userInfo:r.$sessionCache.getItem("userInfo"),serviceCenterItem:r.$sessionCache.getItem("serviceCenterItem"),farmPointList:[],farmPopupList:[],registFarmerList:[],
// 当前选中农场列表图标高亮
currentFarmSelected:{}}),h=(a,t)=>{m.registFarmerList.forEach(((a,t)=>{a.zIndex=101,a.show=!1})),m.currentFarmSelected&&m.currentFarmSelected.selected&&(m.currentFarmSelected.selected=!1),a.selected=!0,m.currentFarmSelected=a,m.farmPopupList=[{lnglat:a.lnglat,show:!0,properties:a.properties}]},g=async a=>{let t=[];a.forEach(((a,e)=>{t.push({properties:a,index:e,lnglat:[a.longitude,a.latitude],show:!0,showDetail:!1,selected:!1,longitude:a.longitude,latitude:a.latitude})})),m.farmPointList=t},f=a=>{let t=(a=a||{}).center||c.center,e=a.zoom||s.getZoom();s&&s.flyTo({zoom:e,
//目标层级
bearing:0,
//目标方位角
pitch:50,
//目标俯仰角
duration:1e3,center:t,speed:1,
// 飞行速度，1为一秒一米
curve:1})};return N((()=>e.farmList),((a,t)=>{g(a)}),{immediate:!0,deep:!0}),N((()=>e.farmerList),((a,t)=>{var e;(e=a)&&e.length&&e.forEach(((a,t)=>{a.icon="data:image/png;base64,[encoded data, 4516 characters]",a.activeIcon="/datav/assets/png/zzyh-high-c4b7ef7d.png",a.longitude&&a.latitude&&(a.lnglat=[a.longitude,a.latitude])})),m.registFarmerList=e})),N((()=>e.pointIndex),((a,t)=>{let l,s=e.pointData;if(m.farmPopupList=[],m.currentFarmSelected&&m.currentFarmSelected.selected&&(m.currentFarmSelected.selected=!1),-1==a)return;let r=[];"farmer"==s.__type?(l=m.registFarmerList[e.pointIndex],r=m.registFarmerList,r.forEach(((a,t)=>{a.zIndex=101,a.show=!1})),l.show=!0):"farm"==s.__type&&(l=m.farmPointList[e.pointIndex],r=m.farmPointList,r.forEach(((a,t)=>{a.zIndex=101,a.selected=!1})),l.selected=!0,h(l)),l.zIndex=102,l.longitude&&l.latitude&&f({center:[l.longitude,l.latitude],zoom:c.zoom+1.8})})),P((()=>{e.setMapLoading(!0),s=new O.Map({container:o.value,
// style: 'mapbox://styles/18511272383/cllaua13c00d701rdb0i78mpo',
style:{glyphs:"mapbox://fonts/mapbox/{fontstack}/{range}.pbf",version:8,sources:{"background-image":{type:"image",url:S,
// 这里是你的背景图片的URL
coordinates:[[109,34],
// 左上角
[116,34],
// 右上角
[116,29],
// 右下角
[109,29]]}},layers:[{id:"background-layer",type:"raster",source:"background-image",paint:{"raster-opacity":.8}}]},center:c.center,zoom:c.zoom,
// maxZoom: 15,
// minZoom: 3,
pitch:c.pitch}),s.on("load",(async()=>{try{if(m.serviceCenterItem?.cityCode){const a=await V({code:m.serviceCenterItem.cityCode});d(s,a,null,18e3),m.serviceCenterItem?.longitude&&m.serviceCenterItem?.longitude&&f({center:[m.serviceCenterItem.longitude,m.serviceCenterItem.latitude],zoom:c.zoom+1.6})}else d(s,L,I)}catch(a){d(s,L,I)}finally{setTimeout((()=>{e.setMapLoading(!1),m.showMap=!0}),0)}})),s.on("click",(function(a){s.queryRenderedFeatures(a.point,{layers:["fill-extrusion"]}).length})),window.$map=s})),_((()=>{})),{...M(m),init:a=>{f({zoom:c.zoom}),m.registFarmerList=[],m.farmPointList=[],m.farmPopupList=[]},mapStore:e,mapContainer:o,mbPopupRef:p,showFarmDetailPopup:h,toFarm:a=>{},toDetail:a=>{e.setFarmInfo(a),("farm"==a.__type||"farmer"==a.__type)&&l.push("/registered")},filterArea:i,farmerRef:u,markerClick:(a,t)=>{m.currentFarmSelected&&m.currentFarmSelected.selected&&(m.currentFarmSelected.selected=!1),m.farmPopupList=[]},setFilter:a=>{s.setFilter("area-hover",["==","adcode",parseInt(a)])},flyToCenter:f,getFarmList:g,closePopup:()=>{}}}}),ka={ref:"mapContainer",class:"map-container"},Sa={class:"farm-list-popup-detail map-arrow map-arrow-bottom"},La=["title"],Ia={class:"land-info"},Fa={class:"farm-type"},ja=["onMouseenter","onMouseleave","onClick"],Ta={class:"img-name"},za={class:"farm-popup-detail"},Va={class:"img-box"},Oa={class:"farm-type"},Ea=["title"],Ua={class:"farm-name"},Ba={class:"land-info"},Na=["title"],Pa={class:"ovflow1"},_a={class:"item-bottom"},Ma=["onClick"],Wa={class:"farmer-popup-hover"},Qa={class:"land-info"},Ra=["title"],Ga={key:0},Ka={class:"item-bottom"},Xa=["onClick"];const qa=pa(Aa,[["render",function(a,t,e,l,s,r){const o=Q("el-image"),n=Q("mbHtml"),i=Q("mbPopup"),c=Q("mbMarker");return R(),G("div",ka,[a.showMap?(R(),G(K,{key:0},[(R(!0),G(K,null,X(a.farmPointList,((e,l)=>(R(),q(n,{class:ta(["farm-list-popup",["签约农场"==e.properties.farmType?"blue":"green",e.selected?"selected":""]]),show:e.show,"onUpdate:show":a=>e.show=a,lnglat:e.lnglat,properties:e.properties,key:l,offset:[0,-40]},{default:Y((()=>[Z(H("div",Sa,[H("p",{class:"ovflow1",title:e.properties.farmName},J(e.properties.farmName),9,La),H("div",Ia,[H("p",Fa,J(e.properties.farmType),1),H("p",null,[H("span",null,J(a.filterArea(e.properties.showLandAre)[1]),1),H("i",null,J(a.filterArea(e.properties.showLandAre)[2]),1)]),H("p",null,[t[2]||(t[2]=H("span",{class:"line"},"|",-1)),H("span",null,J(e.properties.landCount)+"块",1)])]),H("p",null,"负责人："+J(e.properties.chargePersonName),1)],512),[[$,e.showDetail]]),H("div",{onMouseenter:a=>e.showDetail=!0,onMouseleave:a=>e.showDetail=!1,onClick:t=>a.showFarmDetailPopup(e,l)},[aa(o,{round:"",src:e.properties.imgUrl},{error:Y((()=>t[3]||(t[3]=[H("img",{src:F,alt:"加载失败"},null,-1)]))),_:2},1032,["src"]),H("p",Ta,J(e.properties.farmType),1),t[4]||(t[4]=H("div",{class:"map-popup-tip"},null,-1))],40,ja)])),_:2},1032,["show","onUpdate:show","lnglat","properties","class"])))),128)),(R(!0),G(K,null,X(a.farmPopupList,((e,l)=>(R(),q(i,{class:ta(["farm-popup","签约农场"==e.properties.farmType?"blue":"green"]),show:e.show,"onUpdate:show":a=>e.show=a,lnglat:e.lnglat,properties:e.properties,key:l,offset:[0,-46],showArrow:!0,onClose:t[0]||(t[0]=t=>{a.closePopup(),a.currentFarmSelected.selected=!1})},{default:Y((()=>[H("div",za,[H("div",Va,[H("p",Oa,J(e.properties.farmType),1),aa(o,{src:e.properties.imgUrl},{error:Y((()=>t[5]||(t[5]=[H("img",{src:F,alt:"加载失败"},null,-1)]))),_:2},1032,["src"]),H("p",{class:"personInCharge ovflow1",title:e.properties.chargePersonName}," 负责人："+J(e.properties.chargePersonName),9,Ea),H("p",Ua,J(e.properties.farmName),1)]),H("div",Ba,[H("p",null,[H("span",null,"地块："+J(a.filterArea(e.properties.showLandAre)[1]),1),H("i",null,J(a.filterArea(e.properties.showLandAre)[2]),1)]),H("p",null,[t[6]||(t[6]=H("span",{class:"line"},"|",-1)),H("span",null,J(e.properties.landCount)+"块",1)])]),e.properties.detailAddress?(R(),G("p",{key:0,class:"address",title:e.properties.detailAddress},[t[7]||(t[7]=H("em",{class:"iconfont"},"",-1)),H("span",Pa,J(e.properties.detailAddress),1)],8,Na)):ea("",!0),H("div",_a,[H("div",{class:"btn iconfont",onClick:t=>a.toDetail(e.properties)},t[8]||(t[8]=[la("  "),H("span",null,"查看地块分布",-1)]),8,Ma)])])])),_:2},1032,["show","onUpdate:show","lnglat","properties","class"])))),128)),(R(!0),G(K,null,X(a.registFarmerList,((e,l)=>(R(),q(c,{key:e.farmId,width:60,height:60,zIndex:e.zIndex,lnglat:e.lnglat,icon:e.icon,show:e.show,"onUpdate:show":a=>e.show=a,activeIcon:e.activeIcon,id:e.farmId,index:l,popupOffset:[0,-38],properties:e,onOnClick:a.markerClick,onClosePopup:t[1]||(t[1]=t=>a.closePopup()),popupClass:"farmer-popup"},{default:Y((()=>[H("div",Wa,[H("p",null,J(e.chargePersonName)+"："+J(e.chargePersonMobile),1),H("p",Qa,[t[9]||(t[9]=H("span",null,"地块：",-1)),H("span",null,J(e.landCount)+"块",1),t[10]||(t[10]=H("span",{class:"line"},"|",-1)),H("span",null,J(a.filterArea(e.showLandAre)[1]),1),H("span",null,J(a.filterArea(e.showLandAre)[2]),1)]),H("p",{class:"ovflow1",title:e.address},J(e.address),9,Ra),e.registerDate?(R(),G("p",Ga,J(e.registerDate)+" 注册",1)):ea("",!0),H("div",Ka,[H("div",{class:"btn iconfont",onClick:t=>a.toDetail(e)},t[11]||(t[11]=[la("  "),H("span",null,"查看地块分布",-1)]),8,Xa)])])])),_:2},1032,["zIndex","lnglat","icon","show","onUpdate:show","activeIcon","id","index","properties","onOnClick"])))),128))],64)):ea("",!0)],512)}],["__scopeId","data-v-3ee1e4a7"]]);let Ya=null;const Za=E({components:{Search:ua},emits:["callback","reset"],props:{type:{type:String,default:""},farmIds:{type:Array}},setup(a,t){const e=B({searchValue:"",list:[],loading:!1,submitLoading:!1}),l=()=>{s()},s=async()=>{try{e.loading=!0;let a={keywords:e.searchValue};const t=await p(a);e.list=t.data||[],e.loading=!1}catch(a){}};return P((()=>{Ya=setTimeout((()=>{l()}),100)})),_((()=>{Ya&&clearTimeout(Ya),Ya=null})),{...M(e),props:a,reset:()=>{e.list.forEach((a=>{a.selected=!1})),t.emit("reset")},Search:ua,close:()=>{t.emit("close")},search:l,checkChange:(a,e)=>{t.emit("onChange",a,e)}}}}),Ha={class:"select-list","element-loading-background":"rgba(173, 241, 255, 0.06)"},Ja={class:"filter"},$a={class:"scroll-black"},at=["onClick"],tt={class:"info"},et={class:"detail"},lt={class:"ovflow1"};const st=pa(Za,[["render",function(a,t,e,l,s,r){const o=Q("Search"),n=Q("el-icon"),i=Q("el-input"),c=Q("el-image"),d=Q("emptyBlack"),p=sa("loading");return Z((R(),G("div",Ha,[H("div",Ja,[aa(i,{modelValue:a.searchValue,"onUpdate:modelValue":t[0]||(t[0]=t=>a.searchValue=t),placeholder:"服务中心搜索",onInput:a.search},{suffix:Y((()=>[aa(n,{onClick:a.search,class:"el-input__icon"},{default:Y((()=>[aa(o)])),_:1},8,["onClick"])])),_:1},8,["modelValue","onInput"])]),H("ul",$a,[a.list.length>0?(R(!0),G(K,{key:0},X(a.list,((e,l)=>(R(),G("li",{key:l,class:ta({selected:e?.selected}),onClick:t=>a.checkChange(e,l)},[H("div",tt,[aa(c,{src:e.titleImgUrl,alt:""},{error:Y((()=>t[1]||(t[1]=[H("img",{src:F,alt:"加载失败"},null,-1)]))),_:2},1032,["src"]),H("div",et,[H("p",lt,J(e.name),1),H("p",null,"负责人："+J(e.personInCharge),1)])])],10,at)))),128)):(R(),q(d,{key:1,height:"100%",description:"暂无数据"}))])])),[[p,a.loading]])}],["__scopeId","data-v-cc8758e5"]]),rt={class:"large-header"},ot={class:"large-header-right"},nt={class:"info"},it={class:"detail"},ct={class:"ovflow1"},dt=E({__name:"serviceHeader",props:{},emits:["back"],setup(t,{emit:e}){z();const l=T(),s=e,r=B({
//   currentIndex: 0,
showServiceList:!1,currentItem:{}}),o=()=>{r.showServiceList=!r.showServiceList},n=(t,e)=>{r.showServiceList=!1,a.setItem("serviceCenterItem",t),r.currentItem=t||{},s("serviceChange",t,e)},i=()=>{l.go(-1),s("back")};return P((()=>{(async()=>{const t=a.getItem("serviceCenterItem");if(t)try{const a=await p({serviceCenterId:t.id});r.currentItem=a.data&&a.data[0]||{}}catch(e){}})()})),(a,t)=>{const e=Q("el-image"),l=Q("el-icon"),s=Q("el-button");return R(),G("div",rt,[H("div",{class:"large-header-left"},[H("i",{class:"back-btn",onClick:i})]),t[1]||(t[1]=H("div",{class:"large-header-center"},[H("img",{src:u,alt:""})],-1)),H("div",ot,[H("div",nt,[aa(e,{src:ra(r).currentItem.titleImgUrl,alt:""},null,8,["src"]),H("div",it,[H("p",ct,J(ra(r).currentItem.name),1),H("p",null,"负责人："+J(ra(r).currentItem.personInCharge),1)])]),aa(s,{class:"change-btn",type:"text",onClick:o},{default:Y((()=>[t[0]||(t[0]=la(" 切换 ")),ra(r).showServiceList?(R(),q(l,{key:1},{default:Y((()=>[aa(ra(ha))])),_:1})):(R(),q(l,{key:0},{default:Y((()=>[aa(ra(ma))])),_:1}))])),_:1}),ra(r).showServiceList?(R(),q(st,{key:0,class:"service-list",onOnChange:n})):ea("",!0)])])}}}),pt=pa(dt,[["__scopeId","data-v-f5db4be5"]]),ut=E({__name:"areaPieChart",props:{chartData:{type:Object}},setup(a){const t=a,e=oa((()=>{const{topData:a}=t.chartData,{datas:e,total:l,colors:s,unit:r}=a;let o=[];return e&&e.length>0&&(o=e.map((a=>({...a,value:a.originalValue})))),{color:s,tooltip:{trigger:"item",confine:!0},title:[{text:l,top:"34%",textAlign:"center",left:"58%",textStyle:{color:"#fff",fontSize:16,fontWeight:"bold"}},{text:r,top:"58%",textAlign:"center",left:"58%",textStyle:{color:"rgba(255,255,255,0.8)",fontSize:10}}],legend:{show:!1},series:[{name:"",type:"pie",radius:["70%","90%"],center:["60%","50%"],
// avoidLabelOverlap: false,
label:{show:!1},emphasis:{label:{show:!1}},labelLine:{show:!1},data:o||[]}]}}));return(a,t)=>{const l=Q("baseChart");return R(),q(l,{options:ra(e)},null,8,["options"])}}}),mt=E({__name:"areaBarChart",props:{chartData:{type:Object}},setup(a){const t=a,e=oa((()=>{const{datas:a,xAxisData:e,unit:l,legendData:s,colors:r,bgcs:o,borderColors:n}=t.chartData;let i=e.length>=14&&a.length<=2,c=[];i&&(c=[{height:18,bottom:-10,show:i,type:"slider",start:0,end:40}]);let d=[];return a&&a.length>0&&a.forEach(((t,e)=>{d.push({name:s[e],barGap:"-100%",type:"bar",barWidth:20,color:r[e],data:a[e],itemStyle:{normal:{color:o[e],normal:{borderWidth:0==t?0:1,borderColor:0==t?"transparent":n[e]}}}})})),{tooltip:{
//   trigger: 'item'
trigger:"axis",confine:!0,axisPointer:{type:"shadow"},formatter:function(a){let t="";for(let e of a){let a=r[e.seriesIndex];"bar"==e.componentSubType&&""!=e.value&&null!=e.value&&(t+=`<div>\n            <p>\n            <span style="display:inline-block;background: ${a};width: 10px;height: 10px;border-radius: 50%"></span>\n            ${e.name}</p>\n            <p>${e.seriesName}: ${e.value}</p>\n            </div>`)}return t}},grid:{left:"4%",right:"4%",bottom:i?"1%":"-4%",top:"20%",containLabel:!0},dataZoom:c,legend:{data:s,top:0,itemWidth:10,itemHeight:10,textStyle:{fontSize:12,color:"rgba(255,255,255,0.8)"}},xAxis:{data:e,axisLabel:{color:"rgba(255,255,255,0.8)",fontSize:10,rotate:40,formatter:function(a){return a.length>5?a.substring(0,6)+"..":a}
// margin: 14
},axisLine:{lineStyle:{color:"rgba(255,255,255,0.6)"}},axisTick:{show:!1}},yAxis:{name:l,nameTextStyle:{type:"value",align:"left",padding:[0,0,0,-26],color:"rgba(255,255,255,0.6)",fontSize:12},axisLabel:{color:"rgba(255,255,255,0.8)",fontSize:12},axisLine:{show:!1},splitLine:{show:!0,lineStyle:{color:"rgba(255,255,255,0.1)",type:"dashed"}}},series:d}}));return(a,t)=>{const l=Q("baseChart");return R(),q(l,{options:ra(e)},null,8,["options"])}}}),ht={class:"jc-card"},gt={class:"jc-card-top"},ft={class:"pie-chart"},Dt={class:"legend"},bt={class:"bgc-text"},yt={class:""},vt={class:""},xt={class:"jc-card-bottom"},Ct=E({__name:"areaData",props:{areaData:{type:Object}},setup(a){const t=a;return(a,e)=>(R(),G("div",ht,[H("div",gt,[H("div",ft,[aa(ut,{chartData:t.areaData},null,8,["chartData"])]),H("div",Dt,[(R(!0),G(K,null,X(t.areaData.topData.datas,((a,e)=>(R(),G("div",{key:e,class:"legend-item"},[H("p",bt,[H("i",{class:"bgc",style:na({background:t.areaData.topData.colors[e]})},null,4),H("span",null,J(a.name),1)]),H("p",null,[H("span",yt,J(a.value),1),H("span",vt,J(a.unit||t.areaData.topData.unit),1)])])))),128))])]),H("div",xt,[aa(mt,{chartData:t.areaData},null,8,["chartData"])])]))}}),wt=pa(Ct,[["__scopeId","data-v-e409b38c"]]),At=E({__name:"supplyChart",props:{chartData:{type:Object}},setup(a){const t=a,e=oa((()=>{const{datas:a,colors:e,total:l,unit:s}=t.chartData;let r=[];return a&&a.length>0&&(r=a.map((a=>({...a,value:a.originalValue})))),{tooltip:{trigger:"item",confine:!0},color:e,title:[{text:l,top:"38%",textAlign:"center",left:"47%",textStyle:{color:"#fff",fontSize:16}},{text:s,top:"56%",textAlign:"center",left:"48%",textStyle:{color:"rgba(255,255,255,0.8)",fontSize:10}}],legend:{show:!1},series:[{name:"",type:"pie",radius:["60%","74%"],avoidLabelOverlap:!1,itemStyle:{borderRadius:0,borderColor:"#0A2B4D",borderWidth:2},label:{show:!1},emphasis:{label:{show:!1}},labelLine:{show:!1},data:r||[]}]}}));return(a,t)=>{const l=Q("baseChart");return R(),q(l,{options:ra(e)},null,8,["options"])}}}),kt={class:"plant-card"},St={class:"left"},Lt={class:"chart"},It={class:"legend scroll-black"},Ft={class:"bgc-text"},jt={class:""},Tt={class:"right scroll-black"},zt={class:"top"},Vt={class:"index"},Ot={key:0,src:ba,alt:""},Et={key:1,src:ya,alt:""},Ut={key:2,src:va,alt:""},Bt={key:3,class:"index-num"},Nt=["title"],Pt={key:0,class:"bottom"},_t=E({__name:"plant",props:{plantData:{type:Object}},setup(a){t();const e=a;return B({}),(a,t)=>(R(),G("div",kt,[H("div",St,[H("div",Lt,[t[0]||(t[0]=H("img",{class:"big-circle",src:fa,alt:""},null,-1)),t[1]||(t[1]=H("img",{class:"small-circle",src:Da,alt:""},null,-1)),aa(At,{chartData:e.plantData},null,8,["chartData"])]),H("div",It,[(R(!0),G(K,null,X(e.plantData.datas,((a,t)=>(R(),G("div",{key:t,class:"legend-item"},[H("p",Ft,[H("i",{class:"bgc",style:na({background:e.plantData.colors[t]})},null,4),H("span",null,J(a.name),1)]),H("p",null,[H("span",null,J(a.value),1),H("span",null,J(a.unit),1)]),H("p",null,[H("span",jt,J(a.present),1)])])))),128))])]),H("div",Tt,[(R(!0),G(K,null,X(e.plantData.farmData,((a,t)=>(R(),G("div",{class:"item",key:t},[H("div",zt,[H("div",Vt,[0==t?(R(),G("img",Ot)):ea("",!0),1==t?(R(),G("img",Et)):ea("",!0),2==t?(R(),G("img",Ut)):ea("",!0),t>=3?(R(),G("span",Bt,J(t<9?"0"+(t+1):t+1),1)):ea("",!0),H("span",{class:"sub-text ovflow1",title:a.name},J(a.name),9,Nt)]),H("p",null,[H("span",null,J(a.total),1),H("span",null,J(a.unit),1)])]),a.data&&a.data.length>0?(R(),G("div",Pt,[H("ul",null,[(R(!0),G(K,null,X(a.data,((a,l)=>(R(),G("li",{key:t+l,style:na({width:a+"%",border:`1px solid ${e.plantData.colors[l]}`,background:e.plantData.bgcs[l]})},null,4)))),128))])])):ea("",!0)])))),128))])]))}}),Mt=pa(_t,[["__scopeId","data-v-ac0eed1e"]]),Wt=E({__name:"ygtjChart",props:{chartData:{type:Object}},setup(a){const t=a,e=oa((()=>{const{datas:a,colors:e,total:l,titleSize1:s,titleSize2:r,unit:o}=t.chartData;return a&&a.length,{color:e,tooltip:{
// trigger: 'item',
confine:!0},title:[{text:l,top:"36%",textAlign:"center",left:"45%",textStyle:{color:"#fff",fontSize:s||16,fontWeight:"bold"}},{text:o,top:"52%",textAlign:"center",left:"45%",textStyle:{color:"rgba(255,255,255,1)",fontSize:r||10}}],legend:{show:!1},series:[{name:"",type:"pie",radius:["60%","80%"],avoidLabelOverlap:!1,itemStyle:{borderRadius:0,borderColor:"#0A2B4D",borderWidth:2},label:{show:!1},emphasis:{label:{show:!1}},labelLine:{show:!1},data:a||[]}]}}));return(a,t)=>{const l=Q("baseChart");return R(),q(l,{options:ra(e)},null,8,["options"])}}}),Qt=E({components:{empty:e,ygtjChart:Wt},props:{landData:{type:Object}},setup(a){const t=T(),e=B({});return P((()=>{})),_((()=>{})),{router:t,state:e,filterArea:i,getPercentage:(a,t)=>{if(0==t)return"0%";return(a/t*100).toFixed(2)+"%"}}}}),Rt={class:"ygtj-card"},Gt={class:"ygtj-card-chart"},Kt={class:"legend"},Xt={class:"bgc-text"},qt={class:""},Yt={class:""},Zt={class:""};const Ht=pa(Qt,[["render",function(a,t,e,l,s,r){const o=Q("ygtjChart");return R(),G("div",Rt,[H("div",Gt,[aa(o,{chartData:a.landData},null,8,["chartData"])]),H("div",Kt,[(R(!0),G(K,null,X(a.landData.typeList,((t,e)=>(R(),G("div",{key:e,class:"legend-item",style:na({color:a.landData.colors[e]})},[H("p",Xt,[H("span",null,J(t.name),1)]),H("p",null,[H("span",qt,J(t.value),1),H("span",Yt,J(t.unit),1)]),H("p",null,[H("span",Zt,J(t.percent),1)])],4)))),128))])])}],["__scopeId","data-v-7613273b"]]),Jt=E({props:{farmList:{type:Array}},components:{landListArea:Ht},setup(t,{emit:e}){const l=n();z();const s=T(),r=B({farmType:"",farmList:[],show:!0,farmLoading:!0,activeName:"first",registFarmerList:[],currentIndex:-1,serviceCenterId:""}),o=async a=>{try{let a={serviceCenterId:r.serviceCenterId,farmType:r.farmType};const t=await l.GetServiceCenterFarmList(a);if(t.length>0)for(const e of t){if(e.senseStat.typeList?.length>0)for(const a of e.senseStat.typeList)a.name=a.label;e.senseStat.titleSize1=12,e.senseStat.titleSize2=8,e.senseStat.colors=["#59FFFF","#F5E74F","#FF386B","#fff"]}r.farmList=t||[]}catch(t){}},c=async()=>{let a={serviceCenterId:r.serviceCenterId,farmType:r.farmType};const t=await l.GetServiceCenterFarmerList(a);r.registFarmerList=t};return P((()=>{})),_((()=>{})),{router:s,init:t=>{const e=a.getItem("serviceCenterItem");r.serviceCenterId=e.id,r.farmType=t,l.setPointData({},-1),r.farmLoading=!0,Promise.all([o(),c()]).then((a=>{r.farmLoading=!1}))},...M(r),filterArea:i,Expand:ga,itemClick:async(a,t)=>{l.setPointData({},-1),await ia(),r.currentIndex=t,l.setPointData(a,r.currentIndex)},mapStore:l,flyTo:async(a,t)=>{l.setPointData({},-1),r.currentIndex=-1,await ia(),l.setPointData(a,t)},toDetail:a=>{l.setFarmInfo(a),("farm"==a.__type||"farmer"==a.__type)&&s.push("/registered")}}}}),$t={class:"farm-list"},ae={class:"list filter-bg scroll-black"},te=["onClick"],ee={class:"item-top"},le={class:"img-box"},se={class:"farm-type"},re=["title"],oe={class:"rt"},ne={class:"item-bottom"},ie=["onClick"],ce={class:"list filter-bg sign-farmer-list scroll-black"},de=["onClick"],pe=["onClick"],ue={class:"land-info"},me={class:"land-info"},he=["title"];const ge=pa(Jt,[["render",function(a,t,e,l,s,r){const o=Q("el-image"),n=Q("land-list-area"),i=Q("emptyBlack"),c=Q("el-tab-pane"),d=Q("el-tabs"),p=sa("loading");return Z((R(),G("div",$t,[Z((R(),q(d,{modelValue:a.activeName,"onUpdate:modelValue":t[0]||(t[0]=t=>a.activeName=t),type:"card","element-loading-background":"rgba(0, 53, 83, 0.5)"},{default:Y((()=>[aa(c,{label:"农场列表",name:"first"},{default:Y((()=>[H("div",ae,[a.farmList.length>0?(R(!0),G(K,{key:0},X(a.farmList,((e,l)=>(R(),G("div",{class:ta(["item","签约农场"==e.farmType?"blue":"green"]),key:l,onClick:t=>a.flyTo(e,l)},[H("div",ee,[H("div",le,[aa(o,{src:e.imgUrl},{error:Y((()=>t[1]||(t[1]=[H("div",{class:"image-error"},[H("img",{src:"/datav/assets/png/farm-default-7512f8b0.png"})],-1)]))),_:2},1032,["src"]),H("p",se,J(e.farmType),1),H("p",{class:"farm-name ovflow1",title:e.farmName},J(e.farmName),9,re)]),H("div",oe,[e.senseStat?(R(),q(n,{key:0,landData:e.senseStat},null,8,["landData"])):ea("",!0),H("div",ne,[H("div",{class:"btn iconfont",onClick:ca((t=>a.toDetail(e,l)),["stop"])},t[2]||(t[2]=[la("  "),H("span",null,"查看地块分布",-1)]),8,ie)])])])],10,te)))),128)):(R(),q(i,{key:1,height:"100%"}))])])),_:1}),aa(c,{label:"农户列表",name:"second"},{default:Y((()=>[H("div",ce,[a.registFarmerList.length>0?(R(!0),G(K,{key:0},X(a.registFarmerList,((e,l)=>(R(),G("div",{class:ta(["item",{active:a.currentIndex==l}]),key:l,onClick:t=>a.itemClick(e,l)},[H("div",{class:"btn iconfont",onClick:ca((t=>a.toDetail(e,l)),["stop"])},t[3]||(t[3]=[la("  "),H("span",null,"查看地块分布",-1)]),8,pe),H("p",null,[H("span",null,J(e.chargePersonName)+"："+J(e.chargePersonMobile),1)]),H("p",ue,[t[4]||(t[4]=H("span",null,"地块：",-1)),H("span",null,J(e.showLandCount)+"块",1),t[5]||(t[5]=H("span",{class:"line"},"|",-1)),H("span",null,J(a.filterArea(e.landArea)[1]),1),H("span",null,J(a.filterArea(e.landArea)[2]),1)]),H("p",me,[t[6]||(t[6]=H("span",null,"种植面积：",-1)),H("span",null,J(a.filterArea(e.showLandAre)[1]),1),H("span",null,J(a.filterArea(e.showLandAre)[2]),1),t[7]||(t[7]=H("span",{class:"line"},"|",-1)),t[8]||(t[8]=H("span",null,"种植作物：",-1)),H("span",null,J(e.plantLandItem),1)]),H("p",{class:"ovflow1",title:e.address},[H("span",null,J(e.address),1)],8,he)],10,de)))),128)):(R(),q(i,{key:1,height:"100%"}))])])),_:1})])),_:1},8,["modelValue"])),[[p,a.farmLoading]])],512)),[[$,a.show]])}],["__scopeId","data-v-295126b2"]]),fe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC8AAAAvCAYAAABzJ5OsAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAcVSURBVHgB1VpLbFxXGT7v+5i543hm0sTGTiIEjVArFqQkhAbhSBFSvcgukSoeS0cCiUURC7JhVgiExALIIhGwqIQqJQsWoERFlexFRWmUgpDKBgmhNKmL4vFMPJ659553z7m2p25sx4+49vjTaHTvueee+c5//vOf/zEQ7AIaDYverICgyxfC2BAmCMQaQBS5Z9lyH6w1bwslRyqH+DuvwQzsAiDYITzhPwQfDB3RpNzDNCizEHHOi2cUAyg1sEEQuLulNqOW2lbetxilUQQ6r7Sq3UYDGrADbJu8J32bfTisQjasc4g8P0/P01TQGsa10jjPQxVqDkpGgh4iJMdAVGgP64AyiKgSy7/LAEJaWJtlpfREc6YB1TaobI/86Z89rKnQ9kl7yhaILI9Ul+G57ntXXpKbjXGi8b/wSLXCjMyHpKYhwxAW0zdEAqk6d6+OzYMtYkvkT03do+DzIyNhCCKvGoZSTRhsTzY/197pkhfjXrcUqbkazEWl32iUjHvHH2xlFTYl//Iv5pKMLhwhFiJ/LxXtDp0efzRzfntL/DScun7PTeKYm8RiMQkFmalr+tFff3y097T3nkr+7K8eVLUVdeqWNqNG19PypgM+C079/L9DkKmawgQzt+mxYM13XhtvbdR/Q/KeOEK9wwpSY5FUmnUfbkWnnxV+FbAojwFIKeDCb4f5u1e/tO4+QOs1Tlx7v+zI1iWxltiMT86fvL8XxD3873hBEeDtrvtUQO3l388l6/VdI3k/c6vgcWfdEGBQxi9++cFu6vdWcenmTXx/4eQxwBnVRumk9eL9JzfxGsmXBB2L3QnCIqT2i7jHrcuXtTbyoYKpwUhjOfLe6JN9PkX+7O/erxqYU38tK1Fzv4ivwKtQBXT+z5hTEUnC0799t7b6eZ/80kZpH3KHHuBQdN79zhc7YAAw84PzXa3THmAcYKiHG41Gn3P/ImGLNUAY8deGoC2fcnsBgdgjLbXBFKPb9XPDK+0F+Ya1SGUqdt2AhHZhryzLVuH5xGXc9vwwxH3pF19v37iVAAILqUdfODNQUl9BNbr/2PtTmBI0c/ybxUlckFelw4lbERiTNNvvTboRCusjVBoEHDArCrtfkMc6jSXJ7AIbWgADDBWTwjURxgZeddDZm3+LvGvrPdxqq8XBACPrRl1/6mKq0Z9HvhIiLFuhb9CyZ+78cHKgyReuA8LG802YZiihiPgbVmIDTXwFzlmUFDmbE6AAZSILEDFWx1CAAwAIeS5NZhEEmPj43mACGTc7joj2EowQI5ABsU1xYW38ZhUkOxDkRZYZimSRO0GRT654nVcagQMAnEDs1dxrDFEEGwo1EDg8EOSJF7JBwMucUJ4b4LIOQXcxBAcAFitiAXLWpZejTpxxr/O5cxrAAYAhMERE24xqiUbSPNdYwZBJPDE9PdATeOX2rwOsc+S9yzKOBXrhUocbhAxxEyjN/j0Bg4zW/HKeDoC/XLySogZsGKF7udLakhIrg0FGFFe8V2kQL7LMhYWhRHS9rywNiFaHWYOEqetTNAxJrJWCgtHC+y2Ixuk/OhpD42f1r3NsGAwg2mOjNe7OIxsiceZuq+vbCvK3Lt/SmORtf20FOTQx3RiojeulnhmceF3XymZOOwpvoK8ipPXPxxoLA53PUOmA58AAwUudIg0hgyqd/Gpzpb1Pfkn6rM18nEhA+btv/rIEBgDfvv3TigK84nkFGe/MwPP9MPVTm/NPF67OSyg5cLovSH50v9XHq4vAuuZto7RAvXGx0Vz9fI1lqQ8dm9XYGuHUJxFqfL+sjyfePlEZU1hT4vi0LoAPnuyzhtiNl67IJOo9cokzELsX//ONxfG9XgEvsO5YMoowdYkODcOq+mgGNtZkNTbMz3/vrZ9401QsWZoKucjqLuna+MzTIksSZ2MIMyqcaQxT2Xrj4o3men2fWhl5dfpHdUNs1afKsaUKJrr5x6/95jPLYV6a/n7Z8T2KiCshuVMz4Hz+9QvXNkyCbVqTKgYM3ICpH9DXu2xnDjzX3M1V8NLuvMAOW2sL98Q4HWcIP9pMUFuqBk7dm6LdDI+7oJdKi4pC8G5Mwuv2v7/14BDgQRURiXxd1gWmfPbrhz9cT8d3RH4Fr05P1QkyCQxdoUpqKC22hNrUhWSdlktY3Zm8s2n6ZMJOkNG3RxNI45Kr08V8OWeBjbQkLLVeP3Ntd+uwq+FXQRhRgxzGKSAkWPUsU5lhUZibUk+G7dDowKWlOUb5sAs7H6MgVylDJFq2cO44cSdPpo0hHD8+OTHa8h4u2AZ2/t8D20Czb80mksmKDnXk4gOgKHK5coSkVTbwttZvEsGXyvvsk3eNI0xdAOrQff7c8wvbJf3M5J+EW5G4mznPuhQQoEARD2dZBiKXntCqazKXUfSEy1GZj54azXdKeDU+ButTR96ta2uOAAAAAElFTkSuQmCC",De=E({__name:"njServicePieChart",props:{chartData:{type:Object}},setup(a){const t=a,e=oa((()=>{const{datas:a,colors:e,legendData:l,unit:s}=t.chartData;return a&&a.length,{color:e,tooltip:{trigger:"item",confine:!0},legend:{show:!0,data:l,right:0,top:"center",orient:"vertical",itemWidth:8,itemHeight:8,textStyle:{color:"rgba(255,255,255,0.8)",fontSize:11},formatter(t){const e=a.find((a=>a.name==t));return`${t} ${e.value}${s}`}},series:[{name:"",type:"pie",radius:["70%","90%"],center:["40%","50%"],
// avoidLabelOverlap: false,
label:{show:!1},emphasis:{label:{show:!1}},labelLine:{show:!1},data:a||[]}]}}));return(a,t)=>{const l=Q("baseChart");return R(),q(l,{options:ra(e)},null,8,["options"])}}}),be=E({__name:"njServiceBarChart",props:{chartData:{type:Object}},setup(a){const t=a,e=oa((()=>{const{datas:a,unit:e,xAxisData:l,legendData:s,colors:r}=t.chartData;let o=[];return a&&a.length>0&&a.forEach(((t,e)=>{o.push({stack:"one",
//堆叠
name:s[e],type:"bar",barWidth:18,color:r[e],data:a[e],itemStyle:{normal:{}}})})),{tooltip:{
//   trigger: 'item'
trigger:"axis",axisPointer:{type:"shadow"}},legend:{show:!1,data:s,top:0,itemWidth:10,itemHeight:10,textStyle:{fontSize:12,color:"rgba(255,255,255,0.8)"}},grid:{left:"6%",right:"4%",bottom:"0%",top:"6%",containLabel:!0},xAxis:{
// name: unit,
nameLocation:"left",
// 单位显示位置，默认为 left，可设置为 middle 或 right
nameTextStyle:{align:"left",fontSize:16,
// 单位的字体大小
fontWeight:"bold"},data:l,axisLabel:{
// rotate: 30,
color:"rgba(255,255,255,0.8)",fontSize:12},axisLine:{show:!0,lineStyle:{color:"rgba(255,255,255,0.6)"}},axisTick:{show:!1}},yAxis:{show:!0,name:"月",nameTextStyle:{padding:[0,0,-90,-18],type:"value",align:"left",color:"rgba(255,255,255,0.8)",fontSize:12},axisLabel:{show:!1,color:"rgba(255,255,255,0.8)",fontSize:12},axisLine:{show:!1},splitLine:{show:!1,lineStyle:{color:"rgba(255,255,255,0.1)",type:"dashed"}}},series:o}}));return(a,t)=>{const l=Q("baseChart");return R(),q(l,{options:ra(e)},null,8,["options"])}}}),ye={class:"nj-service"},ve={key:0,class:"item"},xe={class:"top"},Ce={class:"bottom"},we={class:"chart1"},Ae={class:"pie-chart"},ke={class:"pie-chart"},Se={class:"chart2"},Le=E({__name:"njService",props:{serviceData:{type:Object}},setup(a){T();const t=a;return B({}),(a,e)=>(R(),G("div",ye,[t.serviceData.supplyTotal&&t.serviceData.supplyTotal.length>0?(R(),G("div",ve,[H("div",xe,[H("p",{class:"item1",style:na({color:t.serviceData.colors[0]})},[e[0]||(e[0]=H("span",null,"需求",-1)),H("span",null,J(t.serviceData.supplyTotal[0].value)+J(t.serviceData.unit),1),H("span",null,J(t.serviceData.supplyTotal[0].percent)+"%",1)],4),H("p",null,"共："+J(t.serviceData.total)+" "+J(t.serviceData.unit),1),H("p",{class:"item2",style:na({color:t.serviceData.colors[1]})},[e[1]||(e[1]=H("span",null,"供应",-1)),H("span",null,J(t.serviceData.supplyTotal[1].value)+J(t.serviceData.unit),1),H("span",null,J(t.serviceData.supplyTotal[1].percent)+"%",1)],4)]),H("div",Ce,[H("ul",null,[(R(!0),G(K,null,X(t.serviceData.supplyTotal,((a,e)=>(R(),G("li",{key:e,style:na({width:a.percent+"%",background:t.serviceData.colors[e]})},null,4)))),128))])])])):ea("",!0),H("div",we,[H("div",Ae,[e[2]||(e[2]=H("img",{src:fe,alt:""},null,-1)),e[3]||(e[3]=H("h1",null,[H("p",null,"农机"),H("p",null,"服务")],-1)),aa(De,{chartData:{unit:t.serviceData.unit,legendData:t.serviceData.legendData,datas:t.serviceData.serviceData,colors:t.serviceData.colors}},null,8,["chartData"])]),H("div",ke,[e[4]||(e[4]=H("img",{src:fe,alt:""},null,-1)),e[5]||(e[5]=H("h1",null,[H("p",null,"农机手")],-1)),aa(De,{chartData:{unit:t.serviceData.unit,legendData:t.serviceData.legendData,datas:t.serviceData.operatorData,colors:t.serviceData.colors}},null,8,["chartData"])])]),H("div",Se,[aa(be,{chartData:t.serviceData},null,8,["chartData"])])]))}}),Ie=pa(Le,[["__scopeId","data-v-a254e72d"]]),Fe=E({__name:"tab1PieChart",props:{chartData:{type:Object}},setup(a){const t=a,e=oa((()=>{const{datas:a,colors:e,total:l,unit:s}=t.chartData;let r=[];return a&&a.length>0&&(r=a.map((a=>({...a,value:a.originalValue})))),{tooltip:{trigger:"item",confine:!0},color:e,title:[{text:l,top:"36%",textAlign:"center",left:"48%",textStyle:{color:"#fff",fontSize:14}},{text:`总费用(${s})`,top:"56%",textAlign:"center",left:"48%",textStyle:{color:"rgba(255,255,255,0.8)",fontSize:8}}],legend:{show:!1},series:[{name:"",type:"pie",radius:["60%","85%"],avoidLabelOverlap:!1,itemStyle:{borderRadius:0,borderColor:"#0A2B4D",borderWidth:2},label:{show:!1},emphasis:{label:{show:!1}},labelLine:{show:!1},data:r||[]}]}}));return(a,t)=>{const l=Q("baseChart");return R(),q(l,{options:ra(e)},null,8,["options"])}}}),je=E({__name:"tab1BarChart",props:{chartData:{type:Object}},setup(a){const t=a,e=oa((()=>{const{datas:a,unit:e,xAxisData:l,legendData:s,colors:r}=t.chartData;let o=[];return a&&a.length>0&&a.forEach(((t,e)=>{o.push({stack:"one",
//堆叠
name:s[e],type:"bar",barWidth:18,color:r[e],data:a[e],itemStyle:{normal:{}}})})),{tooltip:{
//   trigger: 'item'
trigger:"axis",confine:!0,axisPointer:{type:"shadow"}},legend:{show:!1,data:s,top:0,itemWidth:10,itemHeight:10,textStyle:{fontSize:12,color:"rgba(255,255,255,0.8)"}},grid:{left:"4%",right:"4%",bottom:"6%",top:"6%",containLabel:!0},xAxis:{
// name: unit,
// nameLocation: 'left', // 单位显示位置，默认为 left，可设置为 middle 或 right
// nameTextStyle: {
//   align: 'left',
//   fontSize: 16, // 单位的字体大小
//   fontWeight: 'bold' // 单位的字体加粗
// },
data:l,axisLabel:{
// rotate: 30,
color:"rgba(255,255,255,0.8)",fontSize:12},axisLine:{show:!0,lineStyle:{color:"rgba(255,255,255,0.6)"}},axisTick:{show:!1}},yAxis:{show:!0,name:e,nameTextStyle:{padding:[0,0,-186,-30],type:"value",align:"left",color:"rgba(255,255,255,0.8)",fontSize:12},axisLabel:{show:!0,color:"rgba(255,255,255,0.8)",fontSize:12},axisLine:{show:!1},splitLine:{show:!0,lineStyle:{color:"rgba(255,255,255,0.1)",type:"dashed"}}},series:o}}));return(a,t)=>{const l=Q("baseChart");return R(),q(l,{options:ra(e)},null,8,["options"])}}}),Te={class:"cost"},ze={class:"left"},Ve={class:"chart"},Oe={class:"legend scroll-black"},Ee={class:"bgc-text"},Ue={class:""},Be={class:"right"},Ne=E({__name:"tab1",props:{costData:{type:Object}},setup(a){t();const e=a;return B({}),(a,t)=>(R(),G("div",Te,[H("div",ze,[H("div",Ve,[t[0]||(t[0]=H("img",{class:"small-circle",src:Da,alt:""},null,-1)),aa(Fe,{chartData:{datas:e.costData.pieData,total:e.costData.total,colors:e.costData.colors,unit:e.costData.unit}},null,8,["chartData"])]),H("div",Oe,[(R(!0),G(K,null,X(e.costData.pieData,((a,t)=>(R(),G("div",{key:t,class:"legend-item",style:na({color:e.costData.colors[t]})},[H("p",Ee,[H("span",null,J(a.label),1)]),H("p",null,[H("span",null,J(a.value),1),H("span",null,J(e.costData.unit),1)]),H("p",null,[H("span",Ue,J(a.present),1)])],4)))),128))])]),H("div",Be,[aa(je,{chartData:e.costData},null,8,["chartData"])])]))}}),Pe=pa(Ne,[["__scopeId","data-v-6807ef3d"]]),_e=E({__name:"tab2PieChart",props:{chartData:{type:Object}},setup(a){const t=a,e=oa((()=>{const{datas:a,total:e,colors:l,unit:s,legendData:r}=t.chartData;let o=[];return a&&a.length>0&&(o=a.map((a=>({...a,value:a.originalValue})))),{color:l,tooltip:{trigger:"item",confine:!0},title:[{text:e,top:"40%",textAlign:"center",left:"28%",textStyle:{color:"#fff",fontSize:22,fontWeight:"bold"}},{text:s,top:"55%",textAlign:"center",left:"28%",textStyle:{color:"rgba(255,255,255,0.8)",fontSize:12}}],legend:{show:!0,data:r,right:20,top:"center",orient:"vertical",itemWidth:10,itemHeight:10,textStyle:{color:"rgba(255,255,255,0.8)",fontSize:14},formatter(t){const e=a.find((a=>a.name==t));return`${t}   ${e.percent}`}},series:[{name:"",type:"pie",radius:["50%","70%"],center:["30%","50%"],
// avoidLabelOverlap: false,
label:{show:!1},emphasis:{label:{show:!1}},labelLine:{show:!1},data:o||[]}]}}));return(a,t)=>{const l=Q("baseChart");return R(),q(l,{options:ra(e)},null,8,["options"])}}}),Me=E({__name:"tab2BarChart",props:{chartData:{type:Object}},setup(a){const t=a,e=oa((()=>t.chartData&&t.chartData.data&&t.chartData.data.length>0)),l=oa((()=>{let{data:a,xAxisData:e,color:l,farmList:s,unit:r,longitudinalAxisDatas:o}=t.chartData||{},n=[];for(let t in a[0]){const e=a.map((a=>a[t]));n.push(e.reduce(((a,t)=>a+t),0))}let i=Math.max(...n),c=100*Math.ceil(i/100),d=[],p=[];for(let t=0;t<a[0].length;t++)p.push(c),d.push(0);Math.max(...e.map((a=>String(a).length)));let u=[0,-15];u[0]=-10*String(c).length-15;const m=a.map(((t,e)=>({name:o[e],type:"bar",stack:"total",barWidth:8,data:a[e],itemStyle:{color:t.color}})));return{tooltip:{confine:!0,trigger:"axis",axisPointer:{type:"shadow"}},color:l,grid:{top:"5%",bottom:"0%",left:"2%",right:"0%"},xAxis:{show:!1,
//是否显示x轴
type:"value"},yAxis:{type:"category",inverse:!0,
//让y轴数据逆向
// axisLabel: {
//   show: false,
//   inside: true,
//   padding: [30, 20, 0, 0],
//   textStyle: {
//     color: '#fff', //y轴字体颜色
//     fontSize: 14 //y轴字体大小
//   },
//   formatter: function (value, index) {
//     return `${index + 1}.${value}`;
//   }
// },
splitLine:{show:!1},
//横向的线
axisTick:{show:!1},
//y轴的端点
axisLine:{show:!1},
//y轴的线
data:e},series:[...m,{tooltip:{show:!1},type:"bar",itemStyle:{normal:{color:"rgba(255, 255, 255, 0.1)"}},label:{normal:{show:!0,position:"right",offset:u,color:"rgba(255,255,255,1)",fontSize:14,formatter:function(a){if(s[a.dataIndex])return`${s[a.dataIndex].total}${s[a.dataIndex].unit||r}`}}},barGap:"-100%",z:0,barWidth:8,data:p},{tooltip:{show:!1},type:"bar",itemStyle:{normal:{color:"rgba(255, 255, 255, 0)"}},label:{normal:{show:!0,position:"center",offset:[0,-18],color:"#fff",fontSize:14,formatter:function(a){return`${a.dataIndex+1}. ${e[a.dataIndex]}`}}},barGap:"-100%",z:0,barWidth:8,data:d}]}}));return(a,t)=>{const s=Q("baseChart"),r=Q("empty-black");return ra(e)?(R(),q(s,{key:0,options:ra(l),height:"240px"},null,8,["options"])):(R(),q(r,{key:1,height:"240px"}))}}}),We={class:"cost"},Qe={class:"left"},Re={class:"chart"},Ge={class:"right"},Ke=pa(E({__name:"tab2",props:{costData:{type:Object},barChartData:{type:Object}},setup(a){t();const e=a;return B({}),(a,t)=>(R(),G("div",We,[H("div",Qe,[H("div",Re,[aa(_e,{chartData:e.costData},null,8,["chartData"])])]),H("div",Ge,[aa(Me,{chartData:e.barChartData},null,8,["chartData"])])]))}}),[["__scopeId","data-v-0d068748"]]),Xe=E({__name:"tab3BarChart",props:{chartData:{type:Object}},setup(a){const t=a,e=oa((()=>{const{datas:a,unit:e,xAxisData:l,legendData:s,colors:r}=t.chartData;let o=[];return a&&a.length>0&&a.forEach(((t,e)=>{o.push({stack:"one",
//堆叠
name:s[e],type:"bar",barWidth:18,color:r[e],data:a[e],itemStyle:{normal:{}}})})),{tooltip:{
//   trigger: 'item'
trigger:"axis",confine:!0,axisPointer:{type:"shadow"}},legend:{show:!0,data:s,top:0,itemWidth:8,itemHeight:8,textStyle:{fontSize:12,color:"rgba(255,255,255,0.8)"}},grid:{left:"4%",right:"4%",bottom:"4%",top:"16%",containLabel:!0},xAxis:{
// name: unit,
// nameLocation: 'left', // 单位显示位置，默认为 left，可设置为 middle 或 right
// nameTextStyle: {
//   align: 'left',
//   fontSize: 16, // 单位的字体大小
//   fontWeight: 'bold' // 单位的字体加粗
// },
data:l,axisLabel:{
// rotate: 30,
color:"rgba(255,255,255,0.8)",fontSize:12},axisLine:{show:!0,lineStyle:{color:"rgba(255,255,255,0.6)"}},axisTick:{show:!1}},yAxis:{show:!0,name:e,nameTextStyle:{padding:[0,0,0,-20],type:"value",align:"left",color:"rgba(255,255,255,0.8)",fontSize:12},axisLabel:{show:!0,color:"rgba(255,255,255,0.8)",fontSize:12},axisLine:{show:!1},splitLine:{show:!0,lineStyle:{color:"rgba(255,255,255,0.1)",type:"dashed"}}},series:o}}));return(a,t)=>{const l=Q("baseChart");return R(),q(l,{options:ra(e)},null,8,["options"])}}}),qe=E({__name:"progressChart",props:{chartData:{type:Object}},setup(a){const t=a,e=oa((()=>{let{color:a,unit:e,colors:l,rankData:s}=t.chartData,r=[],o=[];for(const t of s)r.push(t.originalValue),o.push(t.name);let n=[r];a.map((a=>new xa(0,0,1,0,[{offset:0,color:a[0]},{offset:.8,color:a[1]},{offset:1,color:"#fff"}])));let i=Math.max(...n[0]),c=100*Math.ceil(i/100),d=[];for(let t=0;t<n[0].length;t++)d.push(c);return{grid:{top:"4%",bottom:"4%",left:"4%",right:"0%"},xAxis:{show:!1,
//是否显示x轴
type:"value"},yAxis:{type:"category",inverse:!0,
//让y轴数据逆向
// axisLabel: {
//   show: false,
//   padding: [30, -50, 200, 50],
//   // inside: true,
//   textStyle: {
//     color: '#fff', //y轴字体颜色
//     fontSize: 14 //y轴字体大小
//   },
//   formatter: function (value, index) {
//     return `${index + 1}.${value}`;
//   }
// },
splitLine:{show:!1},
//横向的线
axisTick:{show:!1},
//y轴的端点
axisLine:{show:!1},
//y轴的线
data:o},series:[{type:"bar",barWidth:8,itemStyle:{normal:{color:function(a){return l[a.dataIndex]}}},label:{normal:{show:!0,position:"center",offset:[0,-18],color:"rgba(255,255,255,0.8)",fontSize:14,formatter:function(a){return`${a.dataIndex+1}.${a.name}`}}},colorBy:"data",data:n[0]},{type:"bar",itemStyle:{normal:{color:"rgba(255, 255, 255, 0.1)"}},label:{normal:{show:!0,position:"right",offset:[-66,-15],color:"rgba(255,255,255,0.8)",fontSize:14,formatter:function(a){return`${s[a.dataIndex].value}${s[a.dataIndex].unit||e}`}}},barGap:"-100%",z:0,barWidth:8,data:d}]}}));return(a,t)=>{const l=Q("baseChart");return R(),q(l,{options:ra(e)},null,8,["options"])}}}),Ye={class:"cost"},Ze={class:"left"},He={class:"chart"},Je={class:"right"},$e=pa(E({__name:"tab3",props:{costData:{type:Object}},setup(a){t();const e=a;return B({}),(a,t)=>(R(),G("div",Ye,[H("div",Ze,[H("p",null,"共："+J(e.costData.total)+" "+J(e.costData.unit),1),H("div",He,[aa(qe,{chartData:e.costData},null,8,["chartData"])])]),H("div",Je,[aa(Xe,{chartData:e.costData},null,8,["chartData"])])]))}}),[["__scopeId","data-v-8354bb64"]]),al=E({__name:"tab4PieChart",props:{chartData:{type:Object}},setup(a){const t=a,e=oa((()=>{const{datas:a,total:e,colors:l,unit:s,legendData:r}=t.chartData;let o=[];return a&&a.length>0&&(o=a.map((a=>({...a,value:a.originalValue})))),{color:l,tooltip:{trigger:"item",confine:!0},title:[{text:e,top:"40%",textAlign:"center",left:"23%",textStyle:{color:"#fff",fontSize:22,fontWeight:"bold"}},{text:s,top:"55%",textAlign:"center",left:"23%",textStyle:{color:"rgba(255,255,255,0.8)",fontSize:12}}],legend:{show:!0,data:r,right:2,top:"center",orient:"vertical",itemWidth:10,itemHeight:10,textStyle:{color:"rgba(255,255,255,0.8)",fontSize:14},formatter(t){const e=a.find((a=>a.name==t));return`${t}  ${e.value}${s}  ${e.percent}`}},series:[{name:"",type:"pie",radius:["50%","65%"],center:["25%","50%"],
// avoidLabelOverlap: false,
label:{show:!1},emphasis:{label:{show:!1}},labelLine:{show:!1},data:o||[]}]}}));return(a,t)=>{const l=Q("baseChart");return R(),q(l,{options:ra(e)},null,8,["options"])}}}),tl=E({__name:"tab4BarChart",props:{chartData:{type:Object}},setup(a){const t=a,e=oa((()=>t.chartData&&t.chartData.data&&t.chartData.data.length>0)),l=oa((()=>{let{data:a,xAxisData:e,color:l,farmList:s,unit:r,longitudinalAxisDatas:o}=t.chartData||{},n=[];for(let t in a[0]){const e=a.map((a=>a[t]));n.push(e.reduce(((a,t)=>a+t),0))}let i=Math.max(...n),c=100*Math.ceil(i/100),d=[],p=[];for(let t=0;t<a[0].length;t++)p.push(c),d.push(0);Math.max(...e.map((a=>String(a).length)));let u=[0,-15];u[0]=-10*String(c).length-15;const m=a.map(((t,e)=>({name:o[e],type:"bar",stack:"total",barWidth:8,data:a[e],itemStyle:{color:t.color}})));return{tooltip:{confine:!0,trigger:"axis",axisPointer:{type:"shadow"}},color:l,grid:{top:"5%",bottom:"0%",left:"2%",right:"0%"},xAxis:{show:!1,
//是否显示x轴
type:"value"},yAxis:{type:"category",inverse:!0,
//让y轴数据逆向
// axisLabel: {
//   show: false,
//   inside: true,
//   padding: [30, 20, 0, 0],
//   textStyle: {
//     color: '#fff', //y轴字体颜色
//     fontSize: 14 //y轴字体大小
//   },
//   formatter: function (value, index) {
//     return `${index + 1}.${value}`;
//   }
// },
splitLine:{show:!1},
//横向的线
axisTick:{show:!1},
//y轴的端点
axisLine:{show:!1},
//y轴的线
data:e},series:[...m,{tooltip:{show:!1},type:"bar",itemStyle:{normal:{color:"rgba(255, 255, 255, 0.1)"}},label:{normal:{show:!0,position:"right",offset:u,color:"rgba(255,255,255,1)",fontSize:14,formatter:function(a){if(s[a.dataIndex])return`${s[a.dataIndex].total}${s[a.dataIndex].unit||r}`}}},barGap:"-100%",z:0,barWidth:8,data:p},{tooltip:{show:!1},type:"bar",itemStyle:{normal:{color:"rgba(255, 255, 255, 0)"}},label:{normal:{show:!0,position:"center",offset:[0,-18],color:"#fff",fontSize:14,formatter:function(a){return`${a.dataIndex+1}. ${e[a.dataIndex]}`}}},barGap:"-100%",z:0,barWidth:8,data:d}]}}));return(a,t)=>{const s=Q("baseChart"),r=Q("empty-black");return ra(e)?(R(),q(s,{key:0,options:ra(l),height:"240px"},null,8,["options"])):(R(),q(r,{key:1,height:"240px"}))}}}),el={class:"cost"},ll={class:"left"},sl={class:"chart"},rl={class:"right scroll-black"},ol=pa(E({__name:"tab4",props:{costData:{type:Object},barChartData:{type:Object}},setup(a){t();const e=a;return B({}),(a,t)=>(R(),G("div",el,[H("div",ll,[H("div",sl,[aa(al,{chartData:e.costData},null,8,["chartData"])])]),H("div",rl,[aa(tl,{chartData:e.barChartData},null,8,["chartData"])])]))}}),[["__scopeId","data-v-69987ca6"]]),nl=E({__name:"barChart",props:{chartData:{type:Object}},setup(a){const t=a,e=oa((()=>{const{datas:a,unit:e,xAxisData:l,legendData:s,colors:r}=t.chartData;let o=[],n=[];return a&&a.length>0&&(n=Array(a[0].length).fill(100),a.forEach(((t,e)=>{o.push({stack:"one",
//堆叠
// name: legendData[index],
type:"bar",barWidth:6,
// color: colors[index],
data:a[e],itemStyle:{normal:{borderRadius:[79,79,0,0],color:new xa(0,0,0,1,[{offset:0,color:r[0]},{offset:1,color:r[1]}])}}}),o.push({
// 边框
name:"",barGap:"-160%",type:"bar",barWidth:14,showBackground:!0,tooltip:{trigger:"none"},backgroundStyle:{borderWidth:1,borderRadius:[79,79,0,0],borderColor:"rgba(230, 247, 255, 0.6)"},itemStyle:{normal:{color:"rgba(0, 0, 0, 0.1)"}},data:n,z:0,zlevel:-1,label:{normal:{show:!0,position:"top",offset:[0,4],color:"#fff",fontSize:14,formatter:function(t){return a[0][t.dataIndex]+"%"}}}})}))),{tooltip:{
//   trigger: 'item'
trigger:"axis",confine:!0,axisPointer:{type:"shadow"}},legend:{show:!1,
// data: legendData,
top:0,itemWidth:10,itemHeight:10,textStyle:{fontSize:12,color:"rgba(255,255,255,0.8)"}},grid:{left:"4%",right:"4%",bottom:"4%",top:"8%",containLabel:!0},xAxis:{
// name: unit,
// nameLocation: 'left', // 单位显示位置，默认为 left，可设置为 middle 或 right
// nameTextStyle: {
//   align: 'left',
//   fontSize: 16, // 单位的字体大小
//   fontWeight: 'bold' // 单位的字体加粗
// },
data:l,axisLabel:{
// rotate: 30,
color:"rgba(255,255,255,0.8)",fontSize:12},axisLine:{show:!0,lineStyle:{color:"rgba(255,255,255,0.6)"}},axisTick:{show:!1}},yAxis:{show:!0,name:e,nameTextStyle:{padding:[0,0,-196,-30],type:"value",align:"left",color:"rgba(255,255,255,0.8)",fontSize:12},axisLabel:{show:!0,color:"rgba(255,255,255,0.8)",fontSize:12},axisLine:{show:!1},splitLine:{show:!0,lineStyle:{color:"rgba(255,255,255,0.1)",type:"dashed"}}},series:o}}));return(a,t)=>{const l=Q("baseChart");return R(),q(l,{options:ra(e)},null,8,["options"])}}}),il={key:0,class:"cost"},cl={class:"left"},dl={key:0},pl=["onClick"],ul={class:"info"},ml={class:"progress-box"},hl={class:"right"},gl=E({__name:"progressStatus",props:{progressData:{type:Object}},setup(a){t();const e=a,l=U(null),s=B({loading:!1,currentIndex:0,progressData:[],datas:[],xAxisData:[]}),r=(a,t)=>{s.currentIndex=t,s.datas=a&&a.groupProgressList&&a.groupProgressList.length&&[a.groupProgressList]||[],s.xAxisData=a&&a.groupList||[]},o=()=>{s.currentIndex==e.progressData.length-1&&(s.currentIndex=0),r(s.progressData[s.currentIndex],s.currentIndex)};return N((()=>e.progressData),(a=>{s.progressData=wa.cloneDeep(a.datas),s.currentIndex=0,r(s.progressData[s.currentIndex],s.currentIndex),ia((()=>{l.value&&l.value.begin(s.progressData)}))}),{immediate:!0,deep:!0}),(a,t)=>{const n=Q("empty-black"),i=sa("loading");return s.progressData.length>0&&s.datas.length>0?(R(),G("div",il,[H("div",cl,[Z((R(),q(Ca,{class:"auto-scroll",ref_key:"autoScrollRef",ref:l,"element-loading-spinner":"el-icon-loading","element-loading-background":"transparent",mouseoverStop:!0,showScrollbar:!0,itemLen:3,time:6e3,onComplete:o,loading:s.loading},{default:Y((()=>[s.progressData.length>0?(R(),G("ul",dl,[(R(!0),G(K,null,X(s.progressData,((a,t)=>(R(),G("li",{key:a.name,onClick:e=>r(a,t),class:ta(["row-item",[{"row-item-h":a._h0,active:s.currentIndex==t}]])},[H("div",null,[H("p",ul,[H("span",null,J(a.label),1),H("span",null,J(a.total)+J(a.unit||"%"),1)]),H("div",ml,[H("p",{style:na({width:a.total+(a.unit||"%"),background:`linear-gradient(270deg, ${e.progressData.colors[0]} 0%, ${e.progressData.colors[1]} 100%)`})},null,4)])])],10,pl)))),128))])):ea("",!0)])),_:1},8,["loading"])),[[i,s.loading]])]),H("div",hl,[aa(nl,{chartData:{datas:s.datas,xAxisData:s.xAxisData,colors:e.progressData.colors}},null,8,["chartData"])])])):(R(),q(n,{key:1,height:"80%"}))}}}),fl=pa(gl,[["__scopeId","data-v-5bbf041b"]]),Dl={class:"service-center"},bl={class:"main-content"},yl={class:"main-content-top"},vl={class:"left-panel"},xl={class:"right-panel"},Cl={"element-loading-background":"rgba(0, 53, 83, 0.5)"},wl={key:0,class:"ygtj-card"},Al={class:"ygtj-card-chart"},kl={class:"legend scroll-black"},Sl={class:"bgc-text"},Ll={class:""},Il={class:""},Fl={class:""},jl={key:1,class:"ygtj-empty"},Tl={class:"main-content-bottom"},zl={class:"data-card bottom-panel-1 dv-box"},Vl={class:"cost-card"},Ol={class:"operate"},El={class:"operate"},Ul={class:"operate"},Bl={class:"operate"},Nl={class:"data-card bottom-panel-2 dv-box"},Pl={class:"cost-card"},_l={class:"operate"},Ml={class:"operate"},Wl=E({__name:"index",setup(a){const{proxy:e}=t(),s=U(null),r=U(null),o=B({farmCenterData:[],date:[...j],enumData:{farmOpts:[{label:"自营农场",value:"0"},{label:"签约农场",value:"1"},{label:"注册农户",value:"2"}],resourceType:l},serviceCenterId:"",plantingVal:"",cost1FarmType:"",cost1ResourceType:"-1",cost2FarmType:"",cost2ResourceType:"-1",cost3FarmType:"",cost4FarmType:"",senseFarmType:"",stageFarmType:"",farmProgressVal:"",landActiveName:"area",costActiveName:"1",progressActiveName:"1",
// 面积统计
areaData:{loading:!0,show:!1,data:{unit:"",rgb:["49, 135, 240","94, 201, 91"],colors:[],borderColors:[],bgcs:[],topData:{unit:"",total:0,colors:["#3187F0","#5ECA5B","#1EECFF"],datas:[]},
// legendData: ['自营农场面积', '签约农场面积'],
legendData:[],xAxisData:[],data:[],datas:[]}},
// 农场数量统计
farmNumData:{loading:!1,show:!1,data:{unit:"",rgb:["49, 135, 240","94, 201, 91","30, 236, 255"],colors:[],borderColors:[],bgcs:[],topData:{unit:"",total:0,colors:["#3187F0","#5ECA5B","#1EECFF"],datas:[]},
// legendData: ['自营农场数量', '签约农场数量', '注册农户数量'],
legendData:[],xAxisData:[],data:[],datas:[]}},
// 种植情况
plantData:{loading:!1,show:!1,data:{unit:"",total:0,rgb:["255, 227, 69","101, 229, 37","255, 125, 69","65, 209, 255","99, 122, 255"],colors:[],bgcs:[],datas:[],
// 图例数据
farmData:[]}},
// 遥感统计
ygtjChartData:{loading:!1,show:!1,farmList:[],data:{total:0,unit:"",colors:["#59FFFF","#F5E74F","#FF386B","#fff"],datas:[]}},
// 农机服务
njServiceData:{loading:!1,show:!1,data:{unit:"项",colors:["#3187F0","#5ECA5B"],total:0,supplyTotal:[],serviceData:[],operatorData:[],legendData:["需求","供应"],
// xAxisData: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12],
xAxisData:[],datas:[]}},
// 成本tab1
costData1:{loading:!1,show:!1,data:{unit:"",total:0,colors:["#2F81FF","#00ECB3","#F2B949","#FF801F","#23CAFF"],pieData:[],legendData:[],datas:[],xAxisData:[]}},
// 成本tab2
costData2:{loading:!1,show:!1,data:{unit:"万元",total:0,colors:["#23CAFF","#1969E2","#FF801F","#FFE100","#00ECB3"],datas:[],xAxisData:[],legendData:[],barData:{}},barChartData:{unit:"",data:[],farmList:[],longitudinalAxisDatas:[],color:["#23CAFF","#1969E2","#FF801F","#FFE100","#00ECB3"],xAxisData:[]}},
// 成本tab3
costData3:{loading:!1,show:!1,data:{total:0,unit:"",color:[["#FFD23C","#FFE693"],["#A3DC05","#DDFF7E"],["#FF663C","#FFA68E"],["#FBBC50","#FFDB9C"],["#00ECB3","#8CFFE3"],["#23CAFF","#8FE4FF"]],colors:["#FFD23B","#90E12D","#2DE1AB","#34CCFB","#507FFF","#A365FF","#F06D39"],rankData:[],legendData:[],datas:[],xAxisData:[]}},
// 成本tab4
costData4:{loading:!1,show:!1,data:{unit:"万元",total:0,colors:["#23CAFF","#1969E2","#FF801F","#FFE100","#00ECB3"],datas:[],xAxisData:[],legendData:[]},barChartData:{unit:"",data:[],farmList:[],longitudinalAxisDatas:[],color:["#23CAFF","#1969E2","#FF801F","#FFE100","#00ECB3"],xAxisData:[]}},
// 进度情况
progressData:{show1:!1,loading1:!1,show2:!1,loading2:!1,data:{colors:["rgba(30, 231, 231, 1)","rgba(30, 231, 231, 0.2)"],datas:[]},data1:{colors:["rgba(76, 157, 255, 1)","rgba(76, 157, 255, 0.2)"],datas:[]}}}),n=a=>{let t={startMonth:"",endMonth:""};return o[a]&&o[a][0]&&o[a][1]&&(t.startMonth=o[a][0],t.endMonth=o[a][1]),t},i=async()=>{let a={farmType:o.stageFarmType,serviceCenterId:o.serviceCenterId};try{o.progressData.loading1=!0;const t=await g(a);o.progressData.loading1=!1;const e=t||[];for(const a of e)a._h0=!1;o.progressData.data.datas=e,o.progressData.show1=!0}catch(t){}},c=async()=>{let a={farmType:o.farmProgressVal,serviceCenterId:o.serviceCenterId};try{o.progressData.loading2=!0;const t=await f(a)||[];o.progressData.loading2=!1;for(const a of t)a._h0=!1;o.progressData.show2=!0,o.progressData.data1.datas=t}catch(t){}},d=async()=>{let a={serviceCenterId:o.serviceCenterId};try{o.areaData.loading=!0;const t=await k(a),e=t[0];(a=>{o.farmNumData.loading=!0;let t=[],e=[],l=[];for(const n of o.farmNumData.data.rgb)t.push(`rgba(${n}, 1)`),e.push(`rgba(${n}, 0.3)`),l.push(`rgba(${n}, 0.5)`);let s=[],r=[];if(a.chartData.itemList?.length>0&&a.chartData.itemList.forEach(((a,t)=>{r.push(a.name),s.push(a.value)})),a.typeList?.length)for(const o of a.typeList)o.name=o.label;o.farmNumData.data.colors=t,o.farmNumData.data.bgcs=e,o.farmNumData.data.borderColors=l,o.farmNumData.data.topData.total=a.total,o.farmNumData.data.topData.datas=a.typeList,o.farmNumData.data.topData.unit=a.totalUnit,o.farmNumData.data.unit=a.chartData.unit,o.farmNumData.data.datas=s,o.farmNumData.data.legendData=r,o.farmNumData.data.xAxisData=a.chartData.farmList,o.farmNumData.show=!0,o.farmNumData.loading=!1})(t[1]);let l=[],s=[],r=[];for(const a of o.areaData.data.rgb)l.push(`rgba(${a}, 1)`),s.push(`rgba(${a}, 0.3)`),r.push(`rgba(${a}, 0.5)`);let n=[],i=[];if(e.chartData.itemList?.length>0&&e.chartData.itemList.forEach(((a,t)=>{n.push(a.name),i.push(a.value)})),e.typeList?.length)for(const a of e.typeList)a.name=a.label;o.areaData.data.colors=l,o.areaData.data.bgcs=s,o.areaData.data.borderColors=r,o.areaData.data.topData.total=e.total,o.areaData.data.topData.datas=e.typeList,o.areaData.data.topData.unit=e.totalUnit,o.areaData.data.unit=e.chartData.unit,o.areaData.data.datas=i,o.areaData.data.legendData=n,o.areaData.data.xAxisData=e.chartData.farmList,o.areaData.show=!0,o.areaData.loading=!1}catch(t){}},p=async()=>{let a={farmType:o.plantingVal,serviceCenterId:o.serviceCenterId};try{o.plantData.loading=!0;const t=await D(a),e=[];let l=[],s=[];for(const a of o.plantData.data.rgb)l.push(`rgba(${a}, 1)`),s.push(`rgba(${a}, 0.3)`);if(0==t?.allClassifyIList?.length&&0==t?.farmList?.length)o.plantData.show=!1;else{if(t.allClassifyIList.length)for(const a of t.allClassifyIList)a.name=a.label,a.value=a.value?.toFixed(2),a.originalValue=a.originalValue?.toFixed(2);if(t.farmList?.length>0){const a=[...t.farmList].sort(((a,t)=>{const e=Number(a.total??0);return Number(t.total??0)-e}));for(const t of a)e.push({name:t.farmName,percent:t.present,unit:t.unit,total:t.total,data:t.classfyList.map((a=>a.value))})}o.plantData.data.datas=t.allClassifyIList,o.plantData.data.colors=l,o.plantData.data.bgcs=s,o.plantData.data.farmData=e,o.plantData.data.total=t.totalValue,o.plantData.data.unit=t.unit,o.plantData.show=!0}o.plantData.loading=!1}catch(t){}},u=async()=>{let a={...n("date"),serviceCenterId:o.serviceCenterId};try{o.njServiceData.loading=!0;const t=await b(a);o.njServiceData.data.total=t.total,o.njServiceData.data.xAxisData=t.monthList,o.njServiceData.data.supplyTotal=[{name:"需求",value:t.demandCount,percent:t.demandRate},{name:"供应",value:t.supplyCount,percent:t.supplyRate}],o.njServiceData.data.serviceData=[{name:"需求",value:t.serviceDemandCount},{name:"供应",value:t.serviceSupplyCount}],o.njServiceData.data.operatorData=[{name:"需求",value:t.operatorDemandCount},{name:"供应",value:t.operatorSupplyCount}],o.njServiceData.data.datas=[t.demandList,t.supplyList],o.njServiceData.show=!0,o.njServiceData.loading=!1}catch(t){}},S=()=>{L(),s.value.init(o.senseFarmType)},L=async()=>{let a={farmType:o.senseFarmType,serviceCenterId:o.serviceCenterId};try{o.ygtjChartData.loading=!0;const t=await y(a);if(0==t.senseStat?.typeList?.length)o.ygtjChartData.show=!1;else{for(const a of t.senseStat.typeList)a.name=a.label;o.ygtjChartData.data.total=t.senseStat.total,o.ygtjChartData.data.unit=t.senseStat.unit,o.ygtjChartData.data.datas=t.senseStat.typeList||[],o.ygtjChartData.show=!0}o.ygtjChartData.loading=!1}catch(t){}},I=async()=>{let a={farmType:o.cost1FarmType,resourceType:o.cost1ResourceType,serviceCenterId:o.serviceCenterId};try{o.costData1.loading=!0;const t=await v(a),e=[];let l=[];if(t.groupChart?.length&&t.groupChart.forEach(((a,t)=>{e[t]=a.data,l.push(a.name)})),t.classifyIList?.length)for(const a of t.classifyIList)a.name=a.label;o.costData1.data.pieData=t.classifyIList||[],o.costData1.data.xAxisData=t.groups||[],o.costData1.data.datas=e,o.costData1.data.legendData=l,o.costData1.data.total=t.totalValue,o.costData1.data.unit=t.unit,o.costData1.show=!0,o.costData1.loading=!1}catch(t){}},F=async()=>{let a={farmType:o.cost2FarmType,resourceType:o.cost2ResourceType,serviceCenterId:o.serviceCenterId};try{o.costData2.loading=!0;const t=await x(a);let e=[];const l=[];let s=[];t.allClassifyIList.length>0&&t.allClassifyIList.forEach(((a,t)=>{const{colors:r}=o.costData2.data;r[t]?s.push(r[t]):s.push(C()),l.push({name:a.label,unit:a.unit,value:a.value,originalValue:a.originalValue,percent:a.present}),e.push(a.label)})),o.costData2.data.colors=s,o.costData2.data.datas=l,o.costData2.data.legendData=e,o.costData2.data.total=t.totalValue,o.costData2.data.unit=t.unit;let r=[],n=[];t.farmList.forEach(((a,e)=>{if(a.classfyList.length>0){let e=0;t.farmList.forEach(((a,t)=>{a.classfyList.length>e&&(e=a.classfyList.length)}));for(let t=0;t<e;t++){const e=a.classfyList[t]?.originalValue;r[t]?r[t].push(e):r[t]=[e]}}n.push(a.farmName)})),o.costData2.barChartData.data=r,o.costData2.barChartData.longitudinalAxisDatas=e,o.costData2.barChartData.xAxisData=n,o.costData2.barChartData.farmList=t.farmList,o.costData2.barChartData.unit=t.unit,o.costData2.show=!0,o.costData2.loading=!1}catch(t){}},T=async()=>{let a={farmType:o.cost3FarmType,serviceCenterId:o.serviceCenterId};try{o.costData3.loading=!0;const t=await w(a),e=[],l=[];let s=[];if(t.classifyIList&&t.classifyIList.length>0)for(const a of t.classifyIList)e.push({name:a.label,unit:a.unit,value:a.value,originalValue:a.originalValue,percent:a.present});if(t.groupChart&&t.groupChart.length>0)for(const a of t.groupChart)s.push(a.name),l.push(a.data);o.costData3.data.rankData=e,o.costData3.data.legendData=s,o.costData3.data.xAxisData=t.groups||[],o.costData3.data.datas=l,o.costData3.data.total=t.totalValue,o.costData3.data.unit=t.unit,0==t.classifyIList.length&&0==t.groupChart.length?o.costData3.show=!1:o.costData3.show=!0,o.costData3.loading=!1}catch(t){}},z=async()=>{let a={farmType:o.cost4FarmType,serviceCenterId:o.serviceCenterId};o.costData4.loading=!0;const t=await A(a),e=[],l=[];let s=[];t.allClassifyIList.length>0&&t.allClassifyIList.forEach(((a,t)=>{const{colors:r}=o.costData4.data;r[t]?s.push(r[t]):s.push(C()),e.push({name:a.label,unit:a.unit,value:a.value,originalValue:a.originalValue,percent:a.present}),l.push(a.label)})),o.costData4.data.colors=s,o.costData4.data.datas=e,o.costData4.data.legendData=l,o.costData4.data.total=t.totalValue,o.costData4.data.unit=t.unit;let r=[],n=[];t.farmList.forEach(((a,e)=>{if(a.classfyList.length>0){let e=0;t.farmList.forEach(((a,t)=>{a.classfyList.length>e&&(e=a.classfyList.length)}));for(let t=0;t<e;t++){const e=a.classfyList[t]?.originalValue;r[t]?r[t].push(e):r[t]=[e]}}n.push(a.farmName)})),o.costData4.barChartData.data=r,o.costData4.barChartData.longitudinalAxisDatas=l,o.costData4.barChartData.xAxisData=n,o.costData4.barChartData.farmList=t.farmList,o.costData4.barChartData.unit=t.unit,o.costData4.show=!0,o.costData4.loading=!1},V=()=>{O()},O=()=>{const a=e.$sessionCache.getItem("serviceCenterItem");o.serviceCenterId=a.id,ia((async()=>{r.value.init(),d(),p(),S(),u(),i(),c(),I(),F(),T(),z()}))};return P((async()=>{await(async()=>{try{const a=await h();let t=[];if(a.length>0)for(const e of a){let a=e;"全部"==e&&(a=""),t.push({label:e,value:a})}o.enumData.farmOpts=t}catch(a){}})(),O()})),da((()=>{})),(a,t)=>{const e=Q("empty-black"),l=Q("el-tab-pane"),n=Q("el-tabs"),d=Q("el-option"),h=Q("el-select"),g=Q("emptyBlack"),f=Q("el-date-picker"),D=sa("loading");return R(),G("div",Dl,[aa(pt,{onServiceChange:V}),aa(qa,{ref_key:"mapBoxRef",ref:r},null,512),H("main",bl,[H("div",yl,[H("section",vl,[aa(m,{title:"地块与农场统计",class:"data-card left-panel-1",showMore:!1},{default:Y((()=>[aa(n,{modelValue:o.landActiveName,"onUpdate:modelValue":t[0]||(t[0]=a=>o.landActiveName=a),type:"card","element-loading-background":"rgba(0, 53, 83, 0.5)",class:"left-panel-tabs"},{default:Y((()=>[Z((R(),q(l,{label:"面积统计",name:"area","element-loading-background":"rgba(0, 53, 83, 0.5)"},{default:Y((()=>[o.areaData.show?(R(),q(wt,{key:0,areaData:o.areaData.data},null,8,["areaData"])):(R(),q(e,{key:1,height:"100%"}))])),_:1})),[[D,o.areaData.loading]]),Z((R(),q(l,{label:"农场数量统计",name:"farmNum",lazy:"","element-loading-background":"rgba(0, 53, 83, 0.5)"},{default:Y((()=>[o.farmNumData.show?(R(),q(wt,{key:0,areaData:o.farmNumData.data},null,8,["areaData"])):(R(),q(e,{key:1,height:"100%"}))])),_:1})),[[D,o.farmNumData.loading]])])),_:1},8,["modelValue"])])),_:1}),Z((R(),q(m,{title:"种植情况",class:"data-card left-panel-2",showMore:!1,"element-loading-background":"rgba(0, 53, 83, 0.5)"},{header:Y((({})=>[aa(h,{class:"dv-select",modelValue:o.plantingVal,"onUpdate:modelValue":t[1]||(t[1]=a=>o.plantingVal=a),placeholder:"全部",onChange:p},{default:Y((()=>[(R(!0),G(K,null,X(o.enumData.farmOpts,(a=>(R(),q(d,{key:a.value,label:a.label,value:a.value},null,8,["label","value"])))),128))])),_:1},8,["modelValue"])])),default:Y((()=>[o.plantData.show?(R(),q(Mt,{key:0,plantData:o.plantData.data},null,8,["plantData"])):(R(),q(e,{key:1,height:"100%"}))])),_:1})),[[D,o.plantData.loading]])]),H("section",xl,[aa(m,{title:"遥感统计",class:"data-card right-panel-1",showMore:!1},{header:Y((({})=>[aa(h,{class:"dv-select",modelValue:o.senseFarmType,"onUpdate:modelValue":t[2]||(t[2]=a=>o.senseFarmType=a),placeholder:"全部",onChange:S},{default:Y((()=>[(R(!0),G(K,null,X(o.enumData.farmOpts,(a=>(R(),q(d,{key:a.value,label:a.label,value:a.value},null,8,["label","value"])))),128))])),_:1},8,["modelValue"])])),default:Y((()=>[Z((R(),G("div",Cl,[o.ygtjChartData.show?(R(),G("div",wl,[H("div",Al,[aa(Wt,{chartData:o.ygtjChartData.data},null,8,["chartData"])]),H("div",kl,[(R(!0),G(K,null,X(o.ygtjChartData.data.datas,((a,t)=>(R(),G("div",{key:t,class:"legend-item",style:na({color:o.ygtjChartData.data.colors[t]})},[H("p",Sl,[H("i",{class:"bgc",style:na({background:o.ygtjChartData.data.colors[t]})},null,4),H("span",null,J(a.name),1)]),H("p",null,[H("span",Ll,J(a.value),1),H("span",Il,J(a.unit),1)]),H("p",null,[H("span",Fl,J(a.percent),1)])],4)))),128))])])):(R(),G("div",jl,[aa(g,{height:"100%",description:"暂无遥感数据"})]))])),[[D,o.ygtjChartData.loading]]),aa(ge,{ref_key:"farmRef",ref:s,farmList:o.ygtjChartData.farmList},null,8,["farmList"])])),_:1})])]),H("section",Tl,[H("div",zl,[H("div",Vl,[t[14]||(t[14]=H("div",{class:"title-wrap"},[H("h1",{class:"dv-box-title"},"成本与收益")],-1)),aa(n,{modelValue:o.costActiveName,"onUpdate:modelValue":t[9]||(t[9]=a=>o.costActiveName=a),type:"card","element-loading-background":"rgba(0, 53, 83, 0.5)",class:"cost-panel-tabs"},{default:Y((()=>[Z((R(),q(l,{label:"农资成本",name:"1",lazy:"","element-loading-background":"rgba(0, 53, 83, 0.5)"},{default:Y((()=>[o.costData1.show?(R(),q(Pe,{key:0,costData:o.costData1.data},null,8,["costData"])):(R(),q(e,{key:1,height:"100%"})),H("div",Ol,[aa(h,{class:"dv-select",modelValue:o.cost1FarmType,"onUpdate:modelValue":t[3]||(t[3]=a=>o.cost1FarmType=a),placeholder:"全部",onChange:I},{default:Y((()=>[(R(!0),G(K,null,X(o.enumData.farmOpts,(a=>(R(),q(d,{key:a.value,label:a.label,value:a.value},null,8,["label","value"])))),128))])),_:1},8,["modelValue"]),aa(h,{class:"dv-select",modelValue:o.cost1ResourceType,"onUpdate:modelValue":t[4]||(t[4]=a=>o.cost1ResourceType=a),placeholder:"全部",onChange:I},{default:Y((()=>[(R(!0),G(K,null,X(o.enumData.resourceType,(a=>(R(),q(d,{key:a.value,label:a.label,value:a.value},null,8,["label","value"])))),128))])),_:1},8,["modelValue"])])])),_:1})),[[D,o.costData1.loading]]),Z((R(),q(l,{label:"农事成本",name:"2",lazy:"","element-loading-background":"rgba(0, 53, 83, 0.5)"},{default:Y((()=>[o.costData2.show?(R(),q(Ke,{key:0,costData:o.costData2.data,barChartData:o.costData2.barChartData},null,8,["costData","barChartData"])):(R(),q(e,{key:1,height:"100%"})),H("div",El,[aa(h,{class:"dv-select",modelValue:o.cost2FarmType,"onUpdate:modelValue":t[5]||(t[5]=a=>o.cost2FarmType=a),placeholder:"全部",onChange:F},{default:Y((()=>[(R(!0),G(K,null,X(o.enumData.farmOpts,(a=>(R(),q(d,{key:a.value,label:a.label,value:a.value},null,8,["label","value"])))),128))])),_:1},8,["modelValue"]),aa(h,{class:"dv-select",modelValue:o.cost2ResourceType,"onUpdate:modelValue":t[6]||(t[6]=a=>o.cost2ResourceType=a),placeholder:"全部",onChange:F},{default:Y((()=>[(R(!0),G(K,null,X(o.enumData.resourceType,(a=>(R(),q(d,{key:a.value,label:a.label,value:a.value},null,8,["label","value"])))),128))])),_:1},8,["modelValue"])])])),_:1})),[[D,o.costData2.loading]]),Z((R(),q(l,{label:"产量情况",name:"3",lazy:"","element-loading-background":"rgba(0, 53, 83, 0.5)"},{default:Y((()=>[o.costData3.show?(R(),q($e,{key:0,costData:o.costData3.data},null,8,["costData"])):(R(),q(e,{key:1,height:"100%"})),H("div",Ul,[aa(h,{class:"dv-select",modelValue:o.cost3FarmType,"onUpdate:modelValue":t[7]||(t[7]=a=>o.cost3FarmType=a),placeholder:"全部",onChange:T},{default:Y((()=>[(R(!0),G(K,null,X(o.enumData.farmOpts,(a=>(R(),q(d,{key:a.value,label:a.label,value:a.value},null,8,["label","value"])))),128))])),_:1},8,["modelValue"])])])),_:1})),[[D,o.costData3.loading]]),Z((R(),q(l,{label:"产量收益",name:"4",lazy:"","element-loading-background":"rgba(0, 53, 83, 0.5)"},{default:Y((()=>[o.costData4.show?(R(),q(ol,{key:0,costData:o.costData4.data,barChartData:o.costData4.barChartData},null,8,["costData","barChartData"])):(R(),q(e,{key:1,height:"100%"})),H("div",Bl,[aa(h,{class:"dv-select",modelValue:o.cost4FarmType,"onUpdate:modelValue":t[8]||(t[8]=a=>o.cost4FarmType=a),placeholder:"全部",onChange:z},{default:Y((()=>[(R(!0),G(K,null,X(o.enumData.farmOpts,(a=>(R(),q(d,{key:a.value,label:a.label,value:a.value},null,8,["label","value"])))),128))])),_:1},8,["modelValue"])])])),_:1})),[[D,o.costData4.loading]])])),_:1},8,["modelValue"])])]),H("div",Nl,[H("div",Pl,[t[15]||(t[15]=H("div",{class:"title-wrap"},[H("h1",{class:"dv-box-title"},"进度情况")],-1)),aa(n,{modelValue:o.progressActiveName,"onUpdate:modelValue":t[12]||(t[12]=a=>o.progressActiveName=a),type:"card","element-loading-background":"rgba(0, 53, 83, 0.5)",class:"cost-panel-tabs"},{default:Y((()=>[Z((R(),q(l,{label:"生育期进度",name:"1",lazy:"","element-loading-background":"rgba(0, 53, 83, 0.5)"},{default:Y((()=>[o.progressData.show1?(R(),q(fl,{key:0,progressData:o.progressData.data},null,8,["progressData"])):ea("",!0),H("div",_l,[aa(h,{class:"dv-select",modelValue:o.stageFarmType,"onUpdate:modelValue":t[10]||(t[10]=a=>o.stageFarmType=a),placeholder:"全部",onChange:i},{default:Y((()=>[(R(!0),G(K,null,X(o.enumData.farmOpts,(a=>(R(),q(d,{key:a.value,label:a.label,value:a.value},null,8,["label","value"])))),128))])),_:1},8,["modelValue"])])])),_:1})),[[D,o.progressData.loading1]]),Z((R(),q(l,{label:"农事进度",name:"2",lazy:"",closable:"","element-loading-background":"rgba(0, 53, 83, 0.5)"},{default:Y((()=>[o.progressData.show2?(R(),q(fl,{key:0,progressData:o.progressData.data1},null,8,["progressData"])):ea("",!0),H("div",Ml,[aa(h,{class:"dv-select",modelValue:o.farmProgressVal,"onUpdate:modelValue":t[11]||(t[11]=a=>o.farmProgressVal=a),placeholder:"全部",onChange:c},{default:Y((()=>[(R(!0),G(K,null,X(o.enumData.farmOpts,(a=>(R(),q(d,{key:a.value,label:a.label,value:a.value},null,8,["label","value"])))),128))])),_:1},8,["modelValue"])])])),_:1})),[[D,o.progressData.loading2]])])),_:1},8,["modelValue"])])]),Z((R(),q(m,{title:"农机服务",class:"data-card bottom-panel-3",showMore:!1,"element-loading-background":"rgba(0, 53, 83, 0.5)"},{header:Y((({})=>[aa(f,{class:"dv-date-picker-range",modelValue:o.date,"onUpdate:modelValue":t[13]||(t[13]=a=>o.date=a),type:"monthrange","range-separator":"-","start-placeholder":"开始日期","end-placeholder":"结束日期","value-format":"YYYY年MM月",onChange:u,size:"small"},null,8,["modelValue"])])),default:Y((()=>[o.njServiceData.show?(R(),q(Ie,{key:0,serviceData:o.njServiceData.data},null,8,["serviceData"])):(R(),q(e,{key:1,height:"100%"}))])),_:1})),[[D,o.njServiceData.loading]])])])])}}}),Ql=pa(Wl,[["__scopeId","data-v-096a256e"]]);export{Ql as default};
//# sourceMappingURL=index-364c6037.js.map
