import{_ as Y,r as p,aa as q,ae as Q,C as W,e as y,D as X,o as m,c as h,m as I,F as T,h as e,l as w,w as n,f as r,G as C,H as N,L as Z,p as c,z as _,K as B,n as ee,ab as ae,E as te,v as le}from"./index.82404a61.js";import{a as ne,d as oe,G as se}from"./naturalWaterArea.e895856c.js";import{F as ie}from"./tenderReview.d767f761.js";import re from"./tableDalgo.4097dabf.js";import"./rules.4ab3a271.js";const de={class:"water-analysis-page"},ce=["onClick"],ue={class:"dialog-footer"},pe={__name:"todoDon",props:["params"],setup(E,{expose:$}){const{params:v}=E,{proxy:z}=le();let u=p(!1),L=p(1);const F=p([{value:"\u8003\u6838\u5E74\u5EA6",key:"year"},{value:"\u603B\u9762\u79EF",key:"allRealValue"},{value:"\u5929\u7136\u6C34\u57DF\u9762\u79EFk\u33A1",key:"trsyArea"},{value:"\u5929\u7136\u6C34\u57DF\u9762\u79EF\u6BD4%",key:"trsyAreaRate"},{value:"\u76EE\u6807\u6BD4\u4F8B%",key:"itemTarget"},{value:"\u76EE\u6807\u5929\u7136\u6C34\u57DF\u9762\u79EFk\u33A1",key:"trsyTargetArea"},{value:"\u8FBE\u6807\u60C5\u51B5",key:"standardFlag"},{value:"\u4F50\u8BC1\u6750\u6599",key:"attachFileList"}]),k=p(1),V=p(),s=p({pageNum:1,pageSize:10,title:""});let A=q({tableData:"",tableDateTwo:"",tableLoading:!0}),{date:me,tableData:x,tableDateTwo:fe,tableLoading:R}=Q(A);$({search:t=>{g(t),L.value++}});let b=p({});const M=(t,l,i)=>{console.log("row",t),s.value.title=i,l==1||l==2?(b.value={...v,data:t,type:l,monitorDynamicTableTitleList:F.value,allRealValue:k.value},ie({refId:t.id,refType:"TRSYMJBL"}).then(({data:D})=>{b.value.fileList1=D,u.value=!0})):l==3&&z.$modal.confirm("\u662F\u5426\u786E\u8BA4\u5220\u9664?").then(async()=>{G(t.id),getTableData()}).catch(()=>{})},G=async t=>{await ne(t),g(v)},g=async t=>{let{code:l,data:i,monitorDynamicTableTitleList:D,total:f}=await oe(t);x.value=i,s.value.totals=f,R.value=!1};function S(){u.value=!1,g(v)}function P(){V.value.submit()}function K(t){return te.confirm(`\u4E0B\u8F7D\u6B64\u6587\u4EF6: ${t.name}\uFF1F`).then(()=>window.open(t.url),()=>!1)}const U=async t=>{let{code:l,data:i}=await se(t);k.value=i||1};return W(()=>{g(v),U("water_area")}),(t,l)=>{const i=y("el-table-column"),D=y("el-tag"),f=y("el-button"),j=y("el-table"),H=y("pagination"),J=y("el-dialog"),O=X("loading");return m(),h(C,null,[I("div",de,[T((m(),w(j,{key:e(L),data:e(x),stripe:"","max-height":"500"},{default:n(()=>[r(i,{type:"index",width:"55",label:"\u5E8F\u53F7",align:"center"}),(m(!0),h(C,null,N(e(F),a=>(m(),w(i,{label:a.value,align:"center",prop:a.key,"show-overflow-tooltip":""},Z({_:2},[a.key=="standardFlag"?{name:"default",fn:n(({row:o})=>[r(D,{round:"",type:o.standardFlag===""?"warning":o.standardFlag==="1"?"success":"error"},{default:n(()=>[c(_(o.standardFlag===""?"\u672A\u586B\u62A5":o.standardFlag==="1"?"\u8FBE\u6807":"\u672A\u8FBE\u6807"),1)]),_:2},1032,["type"])]),key:"0"}:void 0,a.key=="itemTarget"?{name:"default",fn:n(({row:o})=>{var d;return[c(_(((d=o.itemDataTypePerformanceEvaluateItemList[0])==null?void 0:d.itemTarget)||0),1)]}),key:"1"}:void 0,a.key=="trsyTargetArea"?{name:"default",fn:n(({row:o})=>{var d;return[c(_(((d=o.itemDataTypePerformanceEvaluateItemList[0])==null?void 0:d.itemTarget)*1*e(k)*1/100||0),1)]}),key:"2"}:void 0,a.key=="allRealValue"?{name:"default",fn:n(({row:o})=>[c(_(e(k)),1)]),key:"3"}:void 0,a.key=="attachFileList"?{name:"default",fn:n(({row:o})=>[(m(!0),h(C,null,N(o.attachFileList,d=>(m(),h("span",{onClick:ge=>K(d),style:{color:"#108ee9"}},_(d.name),9,ce))),256))]),key:"4"}:void 0]),1032,["label","prop"]))),256)),r(i,{fixed:"right",label:"\u64CD\u4F5C",width:"250",align:"center"},{default:n(({row:a})=>[r(f,{link:"",type:"primary",icon:"View",onClick:o=>M(a,1,"\u8BE6\u60C5")},{default:n(()=>[c("\u8BE6\u60C5")]),_:2},1032,["onClick"]),r(f,{link:"",icon:"Edit",type:"warning",onClick:o=>M(a,2,"\u4FEE\u6539")},{default:n(()=>[c("\u4FEE\u6539")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])),[[O,e(R)]])]),T(r(H,{total:e(s).totals,page:e(s).pageNum,"onUpdate:page":l[0]||(l[0]=a=>e(s).pageNum=a),limit:e(s).pageSize,"onUpdate:limit":l[1]||(l[1]=a=>e(s).pageSize=a),onPagination:l[2]||(l[2]=a=>g(e(s)))},null,8,["total","page","limit"]),[[B,e(s).totals>0]]),r(J,{modelValue:e(u),"onUpdate:modelValue":l[3]||(l[3]=a=>ae(u)?u.value=a:u=a),title:"\u5929\u7136\u6C34\u57DF\u9762\u79EF\u6BD4"+e(s).title,"modal-append-to-body":!1,"close-on-click-modal":!1,width:"51%"},{footer:n(()=>[I("div",ue,[T(r(f,{onClick:P,type:"primary"},{default:n(()=>[c("\u4FDD\u5B58")]),_:1},512),[[B,e(b).type=="2"]]),r(f,{onClick:S},{default:n(()=>[c("\u5173\u95ED")]),_:1})])]),default:n(()=>[e(u)?(m(),w(re,{ref_key:"tableDalgoRef",ref:V,onOnModalClose:S,typeList:e(b),key:e(L)},null,8,["typeList"])):ee("",!0)]),_:1},8,["modelValue","title"])],64)}}},he=Y(pe,[["__scopeId","data-v-c2ad3c30"]]);export{he as default};