You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
9.6KB

  1. var se=Object.defineProperty;var z=Object.getOwnPropertySymbols;var ue=Object.prototype.hasOwnProperty,re=Object.prototype.propertyIsEnumerable;var E=(c,p,u)=>p in c?se(c,p,{enumerable:!0,configurable:!0,writable:!0,value:u}):c[p]=u,K=(c,p)=>{for(var u in p||(p={}))ue.call(p,u)&&E(c,u,p[u]);if(z)for(var u of z(p))re.call(p,u)&&E(c,u,p[u]);return c};var w=(c,p,u)=>new Promise(($,C)=>{var L=_=>{try{f(u.next(_))}catch(y){C(y)}},R=_=>{try{f(u.throw(_))}catch(y){C(y)}},f=_=>_.done?$(_.value):Promise.resolve(_.value).then(L,R);f((u=u.apply(c,p)).next())});import{_ as ie,d as pe,r as j,D as me,A as ce,z as de,b as B,a3 as M,L as fe,o as _e,c as d,e as m,f as h,I as P,h as x,i as a,j as e,g as A,F,J as W,t as s,k as l,x as ye}from"./index.eb58a47a.js";import{b as H}from"./renewalProjectTreasury.73e1a4d0.js";import{r as ve}from"./renewalProjectCapitalDeclare.850d7e37.js";import{b as be}from"./contractRecord.26c41101.js";const Ae={class:""},ge=A("div",{class:"card-header"},[A("span",null,"\u7533\u62A5\u4FE1\u606F")],-1),ke={class:"flex justify-around"},je=A("div",{class:"flex-shrink-0 text-14"},"\u5173\u8054\u9879\u76EE\uFF1A",-1),we=A("p",{class:"font-bold mb-8"},"\u652F\u4ED8\u4FE1\u606F",-1),he=A("p",{class:"font-bold mt-20"},"\u5386\u53F2\u7EED\u5EFA\u8D44\u91D1\u4FE1\u606F",-1),xe={class:"flex justify-center items-center mt-10"},$e={class:"dialog-footer"},Oe=pe({name:"projectTreasuryDetail"}),Te=Object.assign(Oe,{setup(c){const p=j(),{statusOptions:u,statusGjOptions:$,projectTypeOptions:C}=me.dictStore.globalDicts||{},L=j(),R=ce(),f=de(),_=j(0),y=j(!1),{proxy:I}=ye(),Q=B([{label:"\u9879\u76EE\u540D\u79F0",key:"projectName",prop:"projectName"},{label:"\u9879\u76EE\u7C7B\u578B",key:"projectType",prop:"projectType",minWidth:"80",render:o=>M("span",C[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,v,T,i,D,b,S,V;return[M("span",{class:["dot mr-4",`bg-${((n=u[o.status])==null?void 0:n.color)||((v=$[o.status])==null?void 0:v.color)}`]}),M("span",{class:`text-${((T=u[o.status])==null?void 0:T.color)||((i=$[o.status])==null?void 0:i.color)}`},o.status&&((D=u[o.stage])==null?void 0:D.name)?`${(b=u[o.stage])==null?void 0:b.name}-${(S=u[o.status])==null?void 0:S.name}`:((V=$[o.status])==null?void 0:V.name)||"-")]}}]),Y=j([]),O=B({}),X=B({auditOpinion:[{required:!0,message:"\u8BF7\u586B\u5199\u5BA1\u6838\u610F\u89C1",trigger:"blur"}]}),Z=o=>w(this,null,function*(){!o||(yield o.validate((n,v)=>w(this,null,function*(){n?(yield H({projectRenewalId:f.query.projectRenewalId*1,result:!1,auditOpinion:O.auditOpinion}),O.auditOpinion=void 0,I.$message.success("\u5BA1\u6838\u610F\u89C1\u63D0\u4EA4\u6210\u529F\uFF01"),y.value=!1,q(),R.push({name:"renewalProjectTreasury"})):console.log("error submit!",v)})))}),ee=()=>{I.$messageBox.confirm("\u786E\u8BA4\u5BA1\u6838\u901A\u8FC7\u5417?","\u63D0\u793A\uFF01",{type:"warning"}).then(()=>w(this,null,function*(){yield H({projectRenewalId:f.query.projectRenewalId*1,result:!0}),I.$message.success("\u5BA1\u6838\u901A\u8FC7\uFF01"),q(),R.push({name:"renewalProjectTreasury"})}))},N=j(""),r=j({}),q=()=>w(this,null,function*(){const o=yield ve(f.query.projectRenewalId);r.value=o.data,Y.value=[K({},o.data)],ae(Y.value[0].projectId)}),te=[{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}],U=j(),ae=o=>w(this,null,function*(){var v;const n=yield be(o);U.value=((v=n==null?void 0:n.data)==null?void 0:v.payments)||[]});return fe(f,o=>{N.value=f.meta.title},{immediate:!0,deep:!0}),_e(()=>{q()}),(o,n)=>{const v=d("el-alert"),T=d("table-list"),i=d("el-descriptions-item"),D=d("el-descriptions"),b=d("el-button"),S=d("el-card"),V=d("el-input"),le=d("el-form-item"),oe=d("el-form"),ne=d("el-dialog");return m(),h("div",Ae,[r.value.approvalStatus==="NOT_PASS"?(m(),P(v,{key:0,title:"\u5BA1\u6838\u4E0D\u901A\u8FC7",type:"error",description:`\u5BA1\u6838\u610F\u89C1\uFF1A${r.value.auditOpinion}`,"show-icon":""},null,8,["description"])):x("v-if",!0),a(S,{class:"box-card"},{header:e(()=>[ge]),default:e(()=>{var g,G;return[A("div",ke,[je,a(T,{ref_key:"tableListRef",ref:p,column:Q,data:Y.value,total:_.value,height:200,pagination:!1,class:"flex-1"},{annualAccumulateAmountList:e(({scope:t})=>[(m(!0),h(F,null,W(t.row.annualAccumulateAmountList,(k,J)=>(m(),h("p",{key:J},s(J+1)+"\u3001"+s(k.projectYear)+"\u5E74\u6295\u8D44"+s(k.annualAmount)+"\u4E07\u5143",1))),128))]),_:1},8,["column","data","total"])]),we,a(T,{ref_key:"tableListRef",ref:p,column:te,data:U.value,pagination:!1,"empty-temp":!1,class:"mb-16"},{number:e(({scope:t})=>[A("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"]),(G=(g=r.value.annualAccumulateAmountList)==null?void 0:g.filter((t,k)=>k!==0&&t.projectYear!==r.value.projectYear))!=null&&G.length?(m(),h(F,{key:0},[he,(m(!0),h(F,null,W(r.value.annualAccumulateAmountList.filter((t,k)=>k!==0&&t.projectYear!==r.value.projectYear),(t,k)=>(m(),P(D,{key:k,class:"mt-20",column:2,border:""},{default:e(()=>[a(i,{label:"\u9884\u7B97\u5E74\u5EA6",span:"1",width:"250px"},{default:e(()=>[l(s(t.projectYear),1)]),_:2},1024),a(i,{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(i,{label:"\u81EA\u6709\u91D1\u989D\uFF08\u4E07\u5143\uFF09"},{default:e(()=>[l(s(t.haveAmount),1)]),_:2},1024),a(i,{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(i,{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(i,{label:"\u94F6\u884C\u8D37\u6B3E\uFF08\u4E07\u5143\uFF09"},{default:e(()=>[l(s(t.bankLendingAmount),1)]),_:2},1024),a(i,{label:"\u5176\u4ED6\uFF08\u4E07\u5143\uFF09",span:"2"},{default:e(()=>[l(s(t.otherAmount),1)]),_:2},1024)]),_:2},1024))),128))],64)):x("v-if",!0),a(D,{class:"mt-20",title:"\u7533\u62A5\u7EED\u5EFA\u8D44\u91D1\u4FE1\u606F",column:2,border:""},{default:e(()=>[a(i,{label:"\u9884\u7B97\u5E74\u5EA6",span:"1",width:"250px"},{default:e(()=>[l(s(r.value.projectYear),1)]),_:1}),a(i,{label:"\u4E0B\u4E00\u5E74\u5EA6\u652F\u4ED8\u91D1\u989D\uFF08\u4E07\u5143\uFF09",width:"250px"},{default:e(()=>[l(s(r.value.annualPaymentAmount),1)]),_:1}),a(i,{label:"\u81EA\u6709\u91D1\u989D\uFF08\u4E07\u5143\uFF09"},{default:e(()=>[l(s(r.value.haveAmount),1)]),_:1}),a(i,{label:"\u653F\u5E9C\u6295\u8D44-\u672C\u7EA7\u8D22\u653F\u8D44\u91D1\uFF08\u4E07\u5143\uFF09"},{default:e(()=>[l(s(r.value.govOwnFinanceAmount),1)]),_:1}),a(i,{label:"\u653F\u5E9C\u6295\u8D44-\u4E0A\u7EA7\u8865\u52A9\u8D44\u91D1\uFF08\u4E07\u5143\uFF09"},{default:e(()=>[l(s(r.value.govSuperiorFinanceAmount),1)]),_:1}),a(i,{label:"\u94F6\u884C\u8D37\u6B3E\uFF08\u4E07\u5143\uFF09"},{default:e(()=>[l(s(r.value.bankLendingAmount),1)]),_:1}),a(i,{label:"\u5176\u4ED6\uFF08\u4E07\u5143\uFF09",span:"2"},{default:e(()=>[l(s(r.value.otherAmount),1)]),_:1})]),_:1}),A("div",xe,[N.value=="\u7EED\u5EFA\u9879\u76EE\u8D44\u91D1\u5E93\u8BE6\u60C5"&&r.value.approvalStatus==="NOT_PASS"?(m(),P(b,{key:0,class:"mr-20",type:"primary",onClick:n[0]||(n[0]=t=>o.$router.push({name:"storeRenewalCapitalDeclare",query:{id:r.value.id}}))},{default:e(()=>[l("\u91CD\u65B0\u7533\u62A5")]),_:1})):x("v-if",!0),r.value.approvalStatus==="PENDING"?(m(),h(F,{key:1},[N.value!=="\u7EED\u5EFA\u9879\u76EE\u8D44\u91D1\u5E93\u8BE6\u60C5"?(m(),P(b,{key:0,class:"mr-20",type:"primary",onClick:ee},{default:e(()=>[l("\u901A\u8FC7")]),_:1})):x("v-if",!0),N.value!=="\u7EED\u5EFA\u9879\u76EE\u8D44\u91D1\u5E93\u8BE6\u60C5"?(m(),P(b,{key:1,class:"mr-20",type:"danger",onClick:n[1]||(n[1]=t=>y.value=!0)},{default:e(()=>[l("\u4E0D\u901A\u8FC7")]),_:1})):x("v-if",!0)],64)):x("v-if",!0),a(b,{plain:"",onClick:n[2]||(n[2]=t=>o.$router.go(-1))},{default:e(()=>[l("\u8FD4\u56DE")]),_:1})])]}),_:1}),a(ne,{modelValue:y.value,"onUpdate:modelValue":n[6]||(n[6]=g=>y.value=g),title:"\u4E0D\u901A\u8FC7"},{footer:e(()=>[A("span",$e,[a(b,{type:"primary",onClick:n[4]||(n[4]=g=>Z(L.value))},{default:e(()=>[l(" \u63D0\u4EA4 ")]),_:1}),a(b,{onClick:n[5]||(n[5]=g=>y.value=!1)},{default:e(()=>[l("\u5173\u95ED")]),_:1})])]),default:e(()=>[a(oe,{ref_key:"ruleFormRef",ref:L,model:O,rules:X,"status-icon":""},{default:e(()=>[a(le,{label:"\u5BA1\u6838\u610F\u89C1","label-width":"auto",prop:"auditOpinion"},{default:e(()=>[a(V,{modelValue:O.auditOpinion,"onUpdate:modelValue":n[3]||(n[3]=g=>O.auditOpinion=g),maxlength:"200",placeholder:"\u8BF7\u8F93\u5165","show-word-limit":"",type:"textarea"},null,8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["modelValue"])])}}}),Ne=ie(Te,[["__file","/Users/chenlixin/Documents/work/NDKJ/MyProject/ls-project-v2.0/src/pages/projectStoreManage/renewalProjectTreasury/projectTreasuryDetail/index.vue"]]);export{Ne as default};