import{_ as O,r as m,aa as q,ae as Q,C as W,e as g,D as X,o as p,c as h,F as w,h as e,l as T,w as n,f as r,G as S,H as I,L as Y,p as c,z as _,K as N,m as Z,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.7668c46c.js";import"./rules.4ab3a271.js";const de={class:"water-analysis-page"},ce=["onClick"],ue={class:"dialog-footer"},me={__name:"todoDon",props:["params"],setup(B,{expose:E}){const{params:v}=B,{proxy:$}=le();let u=m(!1),L=m(1);const C=m([{value:"\u8003\u6838\u5E74\u5EA6",key:"year"},{value:"\u603B\u9762\u79EF",key:"allRealValue"},{value:"\u53EF\u900F\u6C34\u5730\u9762\u9762\u79EFk\u33A1",key:"kstdmArea"},{value:"\u53EF\u900F\u6C34\u5730\u9762\u9762\u79EF\u6BD4%",key:"kstdmAreaRate"},{value:"\u76EE\u6807\u6BD4\u4F8B%",key:"itemTarget"},{value:"\u76EE\u6807\u53EF\u6E17\u6C34\u5730\u9762\u9762\u79EFk\u33A1",key:"kstdmTargetArea"},{value:"\u8FBE\u6807\u60C5\u51B5",key:"standardFlag"},{value:"\u4F50\u8BC1\u6750\u6599",key:"attachFileList"}]),k=m(1),F=m(),s=m({pageNum:1,pageSize:10,title:""});let z=q({tableData:"",tableDateTwo:"",tableLoading:!0}),{date:pe,tableData:V,tableDateTwo:fe,tableLoading:x}=Q(z);E({search:t=>{y(t),L.value++}});let b=m({});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:C.value,allRealValue:k.value},ie({refId:t.id,refType:"KSSDMMJBL"}).then(({data:D})=>{b.value.fileList1=D,u.value=!0})):l==3&&$.$modal.confirm("\u662F\u5426\u786E\u8BA4\u5220\u9664?").then(async()=>{A(t.id),getTableData()}).catch(()=>{})},A=async t=>{await ne(t),y(v)},y=async t=>{let{code:l,data:i,monitorDynamicTableTitleList:D,total:f}=await oe(t);V.value=i,s.value.totals=f,x.value=!1};function R(){u.value=!1,y(v)}function G(){F.value.submit()}function K(t){return te.confirm(`\u4E0B\u8F7D\u6B64\u6587\u4EF6: ${t.name}\uFF1F`).then(()=>window.open(t.url),()=>!1)}const P=async t=>{let{code:l,data:i}=await se(t);k.value=i||1};return W(()=>{y(v),P("water_area")}),(t,l)=>{const i=g("el-table-column"),D=g("el-tag"),f=g("el-button"),U=g("el-table"),j=g("pagination"),H=g("el-dialog"),J=X("loading");return p(),h("div",de,[w((p(),T(U,{key:e(L),data:e(V),stripe:"","max-height":"500"},{default:n(()=>[r(i,{type:"index",width:"55",label:"\u5E8F\u53F7",align:"center"}),(p(!0),h(S,null,I(e(C),a=>(p(),T(i,{label:a.value,align:"center",prop:a.key,"show-overflow-tooltip":""},Y({_: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=="kstdmTargetArea"?{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})=>[(p(!0),h(S,null,I(o.attachFileList,d=>(p(),h("span",{onClick:ye=>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"])),[[J,e(x)]]),w(r(j,{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=>y(e(s)))},null,8,["total","page","limit"]),[[N,e(s).totals>0]]),r(H,{modelValue:e(u),"onUpdate:modelValue":l[3]||(l[3]=a=>ae(u)?u.value=a:u=a),title:"\u53EF\u6E17\u900F\u5730\u9762\u9762\u79EF\u6BD4"+e(s).title,"modal-append-to-body":!1,"close-on-click-modal":!1,width:"51%"},{footer:n(()=>[Z("div",ue,[w(r(f,{onClick:G,type:"primary"},{default:n(()=>[c("\u4FDD\u5B58")]),_:1},512),[[N,e(b).type=="2"]]),r(f,{onClick:R},{default:n(()=>[c("\u5173\u95ED")]),_:1})])]),default:n(()=>[e(u)?(p(),T(re,{ref_key:"tableDalgoRef",ref:F,onOnModalClose:R,typeList:e(b),key:e(L)},null,8,["typeList"])):ee("",!0)]),_:1},8,["modelValue","title"])])}}},he=O(me,[["__scopeId","data-v-0f38c5bf"]]);export{he as default};