Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

2 месяцев назад
1
  1. import{d as te,r as y,D as ae,A as le,z as oe,b as N,a0 as S,L as ne,o as se,c as m,e as i,f as v,I as x,k as b,h as a,i as e,g as d,F as C,J as G,t as s,j as l,x as ue}from"./index.121be81f.js";import{b as U}from"./renewalProjectTreasury.5f1d983b.js";import{r as re}from"./renewalProjectCapitalDeclare.d967b251.js";import{c as ie}from"./contractRecord.ed4a9c9b.js";const me={class:""},pe=d("div",{class:"card-header"},[d("span",null,"\u7533\u62A5\u4FE1\u606F")],-1),ce={class:"flex justify-around"},de=d("div",{class:"flex-shrink-0 text-14"},"\u5173\u8054\u9879\u76EE\uFF1A",-1),fe=d("p",{class:"font-bold mb-8"},"\u652F\u4ED8\u4FE1\u606F",-1),_e=d("p",{class:"font-bold mt-20"},"\u5386\u53F2\u7EED\u5EFA\u8D44\u91D1\u4FE1\u606F",-1),ye={class:"flex justify-center items-center mt-10"},ve={class:"dialog-footer"},be=te({name:"projectTreasuryDetail"}),he=Object.assign(be,{setup(Ae){const V=y(),{statusOptions:A,statusGjOptions:L,projectTypeOptions:z}=ae.dictStore.globalDicts||{},F=y(),I=le(),g=oe(),E=y(0),k=y(!1),{proxy:R}=ue(),J=N([{label:"\u9879\u76EE\u540D\u79F0",key:"projectName",prop:"projectName"},{label:"\u9879\u76EE\u7C7B\u578B",key:"projectType",prop:"projectType",minWidth:"80",render:o=>S("span",z[o.projectType]||"-")},{label:"\u6279\u590D\u603B\u91D1\u989D\uFF08\u4E07\u5143\uFF09",key:"approvalAmount",prop:"approvalAmount"},{label:"\u7D2F\u8BA1\u5E74\u5EA6\u6295\u8D44\u8D44\u91D1",key:"annualAccumulateAmountList",slot:"annualAccumulateAmountList"},{label:"\u9879\u76EE\u72B6\u6001",key:"status",prop:"status",render:o=>{var n,p,w,r,h,c,O,T;return[S("span",{class:["dot mr-4",`bg-${((n=A[o.status])==null?void 0:n.color)||((p=L[o.status])==null?void 0:p.color)}`]}),S("span",{class:`text-${((w=A[o.status])==null?void 0:w.color)||((r=L[o.status])==null?void 0:r.color)}`},o.status&&((h=A[o.stage])==null?void 0:h.name)?`${(c=A[o.stage])==null?void 0:c.name}-${(O=A[o.status])==null?void 0:O.name}`:((T=L[o.status])==null?void 0:T.name)||"-")]}}]),D=y([]),j=N({}),M=N({auditOpinion:[{required:!0,message:"\u8BF7\u586B\u5199\u5BA1\u6838\u610F\u89C1",trigger:"blur"}]}),W=async o=>{!o||await o.validate(async(n,p)=>{n?(await U({projectRenewalId:g.query.projectRenewalId*1,result:!1,auditOpinion:j.auditOpinion}),j.auditOpinion=void 0,R.$message.success("\u5BA1\u6838\u610F\u89C1\u63D0\u4EA4\u6210\u529F\uFF01"),k.value=!1,P(),I.push({name:"renewalProjectTreasury"})):console.log("error submit!",p)})},H=()=>{R.$messageBox.confirm("\u786E\u8BA4\u5BA1\u6838\u901A\u8FC7\u5417?","\u63D0\u793A\uFF01",{type:"warning"}).then(async()=>{await U({projectRenewalId:g.query.projectRenewalId*1,result:!0}),R.$message.success("\u5BA1\u6838\u901A\u8FC7\uFF01"),P(),I.push({name:"renewalProjectTreasury"})})},$=y(""),u=y({}),P=async()=>{const o=await re(g.query.projectRenewalId);u.value=o.data,D.value=[{...o.data}],Q(D.value[0].projectId)},K=[{label:"\u4ED8\u6B3E\u7B14\u6570",key:"number",slot:"number"},{label:"\u4ED8\u6B3E\u8BA1\u5212",key:"planAmount",slot:"planAmount"},{label:"\u4ED8\u6B3E\u6BD4\u4F8B\uFF08%\uFF09",key:"ratio",slot:"ratio"},{label:"\u4ED8\u6B3E\u91D1\u989D\uFF08\u4E07\u5143\uFF09",key:"paymentAmount",slot:"paymentAmount"},{label:"\u9884\u8BA1\u4ED8\u6B3E\u65F6\u95F4",key:"paymentTime",slot:"paymentTime"},{label:"\u5B9E\u9645\u652F\u4ED8\u91D1\u989D\uFF08\u4E07\u5143\uFF09",key:"actualPaymentAmount",slot:"actualPaymentAmount",width:180}],Y=y(),Q=async o=>{var p;const n=await ie(o);Y.value=((p=n==null?void 0:n.data)==null?void 0:p.payments)||[]};return ne(g,o=>{$.value=g.meta.title},{immediate:!0,deep:!0}),se(()=>{P()}),(o,n)=>{const p=m("el-alert"),w=m("table-list"),r=m("el-descriptions-item"),h=m("el-descriptions"),c=m("el-button"),O=m("el-card"),T=m("el-input"),X=m("el-form-item"),Z=m("el-form"),ee=m("el-dialog");return i(),v("div",me,[u.value.approvalStatus==="NOT_PASS"?(i(),x(p,{key:0,title:"\u5BA1\u6838\u4E0D\u901A\u8FC7",type:"error",description:`\u5BA1\u6838\u610F\u89C1\uFF1A${u.value.auditOpinion}`,"show-icon":""},null,8,["description"])):b("",!0),a(O,{class:"box-card"},{header:e(()=>[pe]),default:e(()=>{var f,q;return[d("div",ce,[de,a(w,{ref_key:"tableListRef",ref:V,column:J,data:D.value,total:E.value,height:200,pagination:!1,class:"flex-1"},{annualAccumulateAmountList:e(({scope:t})=>[(i(!0),v(C,null,G(t.row.annualAccumulateAmountList,(_,B)=>(i(),v("p",{key:B},s(B+1)+"\u3001"+s(_.projectYear)+"\u5E74\u6295\u8D44"+s(_.annualAmount)+"\u4E07\u5143",1))),128))]),_:1},8,["column","data","total"])]),fe,a(w,{ref_key:"tableListRef",ref:V,column:K,data:Y.value,pagination:!1,"empty-temp":!1,class:"mb-16"},{number:e(({scope:t})=>[d("span",null,"\u7B2C"+s(t.$index+1)+"\u7B14",1)]),planAmount:e(({scope:t})=>[l(s(t.row.planAmount),1)]),ratio:e(({scope:t})=>[l(s(t.row.ratio),1)]),paymentAmount:e(({scope:t})=>[l(s(t.row.paymentAmount),1)]),paymentTime:e(({scope:t})=>[l(s(t.row.paymentTime),1)]),actualPaymentAmount:e(({scope:t})=>[l(s(t.row.actualPaymentAmount),1)]),_:1},8,["data"]),(q=(f=u.value.annualAccumulateAmountList)==null?void 0:f.filter((t,_)=>_!==0&&t.projectYear!==u.value.projectYear))!=null&&q.length?(i(),v(C,{key:0},[_e,(i(!0),v(C,null,G(u.value.annualAccumulateAmountList.filter((t,_)=>_!==0&&t.projectYear!==u.value.projectYear),(t,_)=>(i(),x(h,{key:_,class:"mt-20",column:2,border:""},{default:e(()=>[a(r,{label:"\u9884\u7B97\u5E74\u5EA6",span:"1",width:"250px"},{default:e(()=>[l(s(t.projectYear),1)]),_:2},1024),a(r,{label:`${t.projectYear}\u5E74\u652F\u4ED8\u91D1\u989D\uFF08\u4E07\u5143\uFF09`,width:"250px"},{default:e(()=>[l(s(t.annualAmount),1)]),_:2},1032,["label"]),a(r,{label:"\u81EA\u6709\u91D1\u989D\uFF08\u4E07\u5143\uFF09"},{default:e(()=>[l(s(t.haveAmount),1)]),_:2},1024),a(r,{label:"\u653F\u5E9C\u6295\u8D44-\u672C\u7EA7\u8D22\u653F\u8D44\u91D1\uFF08\u4E07\u5143\uFF09"},{default:e(()=>[l(s(t.govOwnFinanceAmount),1)]),_:2},1024),a(r,{label:"\u653F\u5E9C\u6295\u8D44-\u4E0A\u7EA7\u8865\u52A9\u8D44\u91D1\uFF08\u4E07\u5143\uFF09"},{default:e(()=>[l(s(t.govSuperiorFinanceAmount),1)]),_:2},1024),a(r,{label:"\u94F6\u884C\u8D37\u6B3E\uFF08\u4E07\u5143\uFF09"},{default:e(()=>[l(s(t.bankLendingAmount),1)]),_:2},1024),a(r,{label:"\u5176\u4ED6\uFF08\u4E07\u5143\uFF09",span:"2"},{default:e(()=>[l(s(t.otherAmount),1)]),_:2},1024)]),_:2},1024))),128))],64)):b("",!0),a(h,{class:"mt-20",title:"\u7533\u62A5\u7EED\u5EFA\u8D44\u91D1\u4FE1\u606F",column:2,border:""},{default:e(()=>[a(r,{label:"\u9884\u7B97\u5E74\u5EA6",span:"1",width:"250px"},{default:e(()=>[l(s(u.value.projectYear),1)]),_:1}),a(r,{label:"\u4E0B\u4E00\u5E74\u5EA6\u652F\u4ED8\u91D1\u989D\uFF08\u4E07\u5143\uFF09",width:"250px"},{default:e(()=>[l(s(u.value.annualPaymentAmount),1)]),_:1}),a(r,{label:"\u81EA\u6709\u91D1\u989D\uFF08\u4E07\u5143\uFF09"},{default:e(()=>[l(s(u.value.haveAmount),1)]),_:1}),a(r,{label:"\u653F\u5E9C\u6295\u8D44-\u672C\u7EA7\u8D22\u653F\u8D44\u91D1\uFF08\u4E07\u5143\uFF09"},{default:e(()=>[l(s(u.value.govOwnFinanceAmount),1)]),_:1}),a(r,{label:"\u653F\u5E9C\u6295\u8D44-\u4E0A\u7EA7\u8865\u52A9\u8D44\u91D1\uFF08\u4E07\u5143\uFF09"},{default:e(()=>[l(s(u.value.govSuperiorFinanceAmount),1)]),_:1}),a(r,{label:"\u94F6\u884C\u8D37\u6B3E\uFF08\u4E07\u5143\uFF09"},{default:e(()=>[l(s(u.value.bankLendingAmount),1)]),_:1}),a(r,{label:"\u5176\u4ED6\uFF08\u4E07\u5143\uFF09",span:"2"},{default:e(()=>[l(s(u.value.otherAmount),1)]),_:1})]),_:1}),d("div",ye,[$.value=="\u7EED\u5EFA\u9879\u76EE\u8D44\u91D1\u5E93\u8BE6\u60C5"&&u.value.approvalStatus==="NOT_PASS"?(i(),x(c,{key:0,class:"mr-20",type:"primary",onClick:n[0]||(n[0]=t=>o.$router.push({name:"storeRenewalCapitalDeclare",query:{id:u.value.id}}))},{default:e(()=>[l("\u91CD\u65B0\u7533\u62A5")]),_:1})):b("",!0),u.value.approvalStatus==="PENDING"?(i(),v(C,{key:1},[$.value!=="\u7EED\u5EFA\u9879\u76EE\u8D44\u91D1\u5E93\u8BE6\u60C5"?(i(),x(c,{key:0,class:"mr-20",type:"primary",onClick:H},{default:e(()=>[l("\u901A\u8FC7")]),_:1})):b("",!0),$.value!=="\u7EED\u5EFA\u9879\u76EE\u8D44\u91D1\u5E93\u8BE6\u60C5"?(i(),x(c,{key:1,class:"mr-20",type:"danger",onClick:n[1]||(n[1]=t=>k.value=!0)},{default:e(()=>[l("\u4E0D\u901A\u8FC7")]),_:1})):b("",!0)],64)):b("",!0),a(c,{plain:"",onClick:n[2]||(n[2]=t=>o.$router.go(-1))},{default:e(()=>[l("\u8FD4\u56DE")]),_:1})])]}),_:1}),a(ee,{modelValue:k.value,"onUpdate:modelValue":n[6]||(n[6]=f=>k.value=f),title:"\u4E0D\u901A\u8FC7"},{footer:e(()=>[d("span",ve,[a(c,{type:"primary",onClick:n[4]||(n[4]=f=>W(F.value))},{default:e(()=>[l(" \u63D0\u4EA4 ")]),_:1}),a(c,{onClick:n[5]||(n[5]=f=>k.value=!1)},{default:e(()=>[l("\u5173\u95ED")]),_:1})])]),default:e(()=>[a(Z,{ref_key:"ruleFormRef",ref:F,model:j,rules:M,"status-icon":""},{default:e(()=>[a(X,{label:"\u5BA1\u6838\u610F\u89C1","label-width":"auto",prop:"auditOpinion"},{default:e(()=>[a(T,{modelValue:j.auditOpinion,"onUpdate:modelValue":n[3]||(n[3]=f=>j.auditOpinion=f),maxlength:"200",placeholder:"\u8BF7\u8F93\u5165","show-word-limit":"",type:"textarea"},null,8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["modelValue"])])}}});export{he as default};