Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

2 lines
8.9KB

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