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