Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

2 wiersze
9.8KB

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