Newer
Older
Nanping_sponge_JXKH / spongePerformanceDist / assets / todoDon.f2a415a5.js
import{_ as q,r as m,aa as A,ae as W,C as Y,e as g,D as ee,o as r,c as y,m as E,F as x,h as n,l as D,w as o,f as u,G as C,H as T,L as te,p as c,z as v,K as J,ab as $,n as ae,v as le,E as ne}from"./index.82404a61.js";import{a as oe,d as se}from"./prevention.b5b1f2ff.js";import{F as ie}from"./tenderReview.d767f761.js";import de from"./tableDalgo.a7cf70cc.js";import"./rules.4ab3a271.js";const re={class:"water-analysis-page"},ue=["onClick"],pe={class:"dialog-footer"},ce={__name:"todoDon",props:["params"],setup(z,{expose:Q}){const{params:F}=z,{proxy:B}=le();B.useDict("fund_source","unit_list");let s=m(!1),h=m(1);const L=m([]);m("");const M=m(),i=m({pageNum:1,pageSize:10,title:""});let R=A({tableData:"",tableDateTwo:"",tableLoading:!0}),{date:fe,tableData:N,tableDateTwo:me,tableLoading:S}=W(R);const V=t=>{k(t),h.value++};Q({search:V});let b=m({});const w=(t,l,d)=>{i.value.title=d,l==1||l==2?(b.value={...F,data:t,type:l,monitorDynamicTableTitleList:L.value,iSstandardFlag:P(t.realCXQ,t.targetCXQ,t.realDBMJZJCQMJ,t.targetDBMJZJCQMJ)},ie({refId:t.performanceEvaluateId,refType:"NLFZBZ"}).then(({data:f})=>{b.value.fileList1=f,s.value=!0})):l==3&&B.$modal.confirm("\u662F\u5426\u786E\u8BA4\u5220\u9664?").then(async()=>{Z(t.performanceEvaluateId),getTableData()}).catch(()=>{})},Z=async t=>{await oe(t),V(p)},k=async t=>{let{code:l,data:d,monitorDynamicTableTitleList:f,total:_}=await se(t);N.value=d,i.value.totals=_,L.value=f,S.value=!1};function U(){s.value=!1,k(F)}function j(){M.value.submit()}function G(t){return ne.confirm(`\u4E0B\u8F7D\u6B64\u6587\u4EF6: ${t.name}\uFF1F`).then(()=>window.open(t.url),()=>!1)}function P(t,l,d,f){return t*1-l*1>0&&d*1-f*1>0}return Y(()=>{k(F)}),(t,l)=>{const d=g("el-table-column"),f=g("el-tag"),_=g("el-button"),X=g("el-table"),H=g("pagination"),K=g("el-dialog"),O=ee("loading");return r(),y(C,null,[E("div",re,[x((r(),D(X,{key:n(h),data:n(N),stripe:"","max-height":"500"},{default:o(()=>[u(d,{type:"index",width:"55",label:"\u5E8F\u53F7",align:"center"}),(r(!0),y(C,null,T(n(L),e=>(r(),D(d,{label:e.value,align:"center",prop:e.key,"show-overflow-tooltip":""},te({default:o(()=>[(r(!0),y(C,null,T(e.titleGroup,a=>(r(),D(d,{label:a.value,prop:a.key,align:"center",width:"200"},null,8,["label","prop"]))),256))]),_:2},[e.key=="standardFlag"?{name:"default",fn:o(({row:a})=>[u(f,{round:"",type:a.standardFlag===""?"warning":a.standardFlag===1?"success":"error"},{default:o(()=>[c(v(a.standardFlag===""?"\u672A\u586B\u62A5":a.standardFlag===1?"\u8FBE\u6807":"\u672A\u8FBE\u6807"),1)]),_:2},1032,["type"])]),key:"0"}:void 0,e.key=="attachFileList"?{name:"default",fn:o(({row:a})=>[(r(!0),y(C,null,T(a==null?void 0:a.attachFileList,I=>(r(),y("span",{style:{color:"#108ee9"},onClick:_e=>G(I)},v(I.name),9,ue))),256))]),key:"1"}:void 0,e.key=="year"?{name:"default",fn:o(({row:a})=>[c(v(a.year),1)]),key:"2"}:void 0,e.key=="updateBy"?{name:"default",fn:o(({row:a})=>[c(v(a.updateBy),1)]),key:"3"}:void 0,e.key=="updateTime"?{name:"default",fn:o(({row:a})=>[c(v(a.updateTime),1)]),key:"4"}:void 0]),1032,["label","prop"]))),256)),u(d,{fixed:"right",label:"\u64CD\u4F5C",width:"250",align:"center"},{default:o(({row:e})=>[u(_,{link:"",type:"primary",icon:"View",onClick:a=>w(e,1,"\u8BE6\u60C5")},{default:o(()=>[c("\u8BE6\u60C5")]),_:2},1032,["onClick"]),u(_,{link:"",icon:"Edit",type:"warning",onClick:a=>w(e,2,"\u4FEE\u6539")},{default:o(()=>[c("\u4FEE\u6539")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])),[[O,n(S)]])]),x(u(H,{total:n(i).totals,page:n(i).pageNum,"onUpdate:page":l[0]||(l[0]=e=>n(i).pageNum=e),limit:n(i).pageSize,"onUpdate:limit":l[1]||(l[1]=e=>n(i).pageSize=e),onPagination:l[2]||(l[2]=e=>k(n(i)))},null,8,["total","page","limit"]),[[J,n(i).totals>0]]),u(K,{modelValue:n(s),"onUpdate:modelValue":l[4]||(l[4]=e=>$(s)?s.value=e:s=e),title:"\u5185\u6D9D\u9632\u6CBB\u6807\u51C6"+n(i).title,"modal-append-to-body":!1,"close-on-click-modal":!1,width:"51%"},{footer:o(()=>[E("div",pe,[x(u(_,{onClick:j,type:"primary"},{default:o(()=>[c("\u4FDD \u5B58")]),_:1},512),[[J,n(b).type=="2"]]),u(_,{onClick:l[3]||(l[3]=e=>$(s)?s.value=!1:s=!1)},{default:o(()=>[c("\u5173\u95ED")]),_:1})])]),default:o(()=>[n(s)?(r(),D(de,{ref_key:"tableDalgoRef",ref:M,onOnModalClose:U,typeList:n(b),key:n(h)},null,8,["typeList"])):ae("",!0)]),_:1},8,["modelValue","title"])],64)}}},De=q(ce,[["__scopeId","data-v-f557b7e3"]]);export{De as default};