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ů.

index.44038b43.js 9.0KB

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