Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

2 řádky
8.9KB

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