No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

2 líneas
7.4KB

  1. var le=Object.defineProperty,oe=Object.defineProperties;var ne=Object.getOwnPropertyDescriptors;var $=Object.getOwnPropertySymbols;var re=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable;var L=(d,r,n)=>r in d?le(d,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):d[r]=n,h=(d,r)=>{for(var n in r||(r={}))re.call(r,n)&&L(d,n,r[n]);if($)for(var n of $(r))se.call(r,n)&&L(d,n,r[n]);return d},I=(d,r)=>oe(d,ne(r));var k=(d,r,n)=>new Promise((A,N)=>{var t=i=>{try{v(n.next(i))}catch(g){N(g)}},_=i=>{try{v(n.throw(i))}catch(g){N(g)}},v=i=>i.done?A(i.value):Promise.resolve(i.value).then(t,_);v((n=n.apply(d,r)).next())});import{_ as de,d as ue,A as pe,D as ie,b as B,r as P,a3 as V,o as ce,c as p,e as f,I as x,j as a,u as y,i as e,h as C,f as E,F as H,J as z,g as j,k as M,x as me}from"./index.eb58a47a.js";import{E as fe}from"./index.b5e73522.js";import{r as _e,a as ye,c as ve}from"./renewalProjectTreasury.73e1a4d0.js";import{u as ge}from"./useExportExc.8d0f8829.js";import{g as T,a as be}from"./getIsShowRegionTree.87c2ce57.js";const Ne={class:"flex"},je={class:"flex justify-between"},we=j("span",null,"\u5217\u8868",-1),Se=["onClick"],he=["onClick"],ke=["onClick"],Pe=ue({name:"projectStore"}),xe=Object.assign(Pe,{setup(d){const{proxy:r}=me(),n=pe(),{reAuditStatusOptions:A,projectTypeOptions:N}=ie.dictStore.globalDicts||{},t=B({projectName:void 0,projectType:void 0,approvalStatus:void 0,year:void 0,times:void 0}),_=P(),v=P(0),i=B([{label:"\u5E8F\u53F7",type:"index",width:"60"},{label:"\u9879\u76EE\u540D\u79F0",key:"projectName",prop:"projectName",minWidth:"200",showOverflowTooltip:!0},{label:"\u7533\u62A5\u5355\u4F4D",key:"buildOrgName",prop:"buildOrgName",minWidth:"150",showOverflowTooltip:!0},{label:"\u9879\u76EE\u7C7B\u578B",key:"projectType",prop:"projectType",minWidth:"80",render:l=>V("span",N[l.projectType]||"-")},{label:"\u9884\u7B97\u5E74\u5EA6",key:"projectYear",prop:"projectYear",width:"80"},{label:"\u4E0B\u4E00\u5E74\u5EA6\u652F\u4ED8\u91D1\u989D\uFF08\u4E07\u5143\uFF09",key:"annualPaymentAmount",prop:"annualPaymentAmount",width:"200"},{label:"\u9879\u76EE\u72B6\u6001",key:"approvalStatus",prop:"approvalStatus",width:"180",render:l=>[V("span",{class:["dot mr-4",`bg-${l.approvalStatus==="PENDING"?"warning":l.approvalStatus==="PASS"?"success":"danger"}`]}),V("span",{class:`text-${l.approvalStatus==="PENDING"?"warning":l.approvalStatus==="PASS"?"success":"danger"}`},l.approvalStatus==="PENDING"?"\u5F85\u5BA1\u6838":l.approvalStatus==="PASS"?"\u5BA1\u6838\u901A\u8FC7":"\u5BA1\u6838\u4E0D\u901A\u8FC7")]},{label:"\u521B\u5EFA\u65F6\u95F4",key:"createOn",prop:"createOn",width:"180"},{label:"\u64CD\u4F5C",slot:"action",width:"160",fixed:"right"}]),g=P([]),D=P(),F=l=>{D.value=l.regionLevel===3?l.regionCode:void 0,_.value.pageParams.pageNumber=1,b()},b=(...s)=>k(this,[...s],function*(l=_.value.pageParams){var w,c;const u=yield _e(I(h(h({},l),t),{year:t.year*1||void 0,startTime:((w=t.times)==null?void 0:w[0])||void 0,endTime:((c=t.times)==null?void 0:c[1])||void 0,regionCode:D.value||void 0,times:void 0}));g.value=u.data.records,v.value=u.data.total}),W=()=>{b()},q=()=>{t.projectName=void 0,t.projectType=void 0,t.approvalStatus=void 0,t.year=void 0,t.times=void 0,_.value.pageParams.pageNumber=1,_.value.pageParams.pageSize=10,b()},J=l=>{n.push({name:"renewalProjectAsscess",query:{projectRenewalId:l.id}})},K=l=>{r.$messageBox.confirm("\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u9879\u5417?","\u63D0\u793A\uFF01",{type:"warning"}).then(()=>k(this,null,function*(){yield ye({projectRenewalId:l.id}),r.$message.success("\u5220\u9664\u6210\u529F\uFF01"),b()}))},Q=l=>{n.push({name:"projectTreasuryDetail",query:{projectRenewalId:l.id}})},{exportLoading:X,exportData:Z}=ge(),ee=()=>{Z(()=>{var l,s;return ve(I(h({},t),{startTime:((l=t.times)==null?void 0:l[0])||void 0,endTime:((s=t.times)==null?void 0:s[1])||void 0,year:t.year*1||void 0,regionCode:D.value||void 0,times:void 0}))})};return ce(()=>k(this,null,function*(){T(["SUPER_ADMIN","REGION_MANAGER"])||b()})),(l,s)=>{const u=p("el-col"),w=p("el-input"),c=p("el-form-item"),G=p("el-option"),O=p("el-select"),S=p("el-row"),Y=p("el-date-picker"),R=p("el-button"),ae=p("el-form"),U=p("el-card"),te=p("table-list");return f(),x(S,null,{default:a(()=>[y(T)(["SUPER_ADMIN","REGION_MANAGER"])?(f(),x(u,{key:0,span:4,class:"pr-16"},{default:a(()=>[e(fe,{params:y(be)({SUPER_ADMIN:!1,REGION_MANAGER:!1}),onGetTree:F},null,8,["params"])]),_:1})):C("v-if",!0),e(u,{span:y(T)(["SUPER_ADMIN","REGION_MANAGER"])?20:24},{default:a(()=>[e(U,{class:"w-full search"},{default:a(()=>[e(ae,{model:t,size:"small","label-suffix":":"},{default:a(()=>[e(S,{gutter:16,class:"mb-16"},{default:a(()=>[e(u,{span:8},{default:a(()=>[e(c,{label:"\u9879\u76EE\u540D\u79F0"},{default:a(()=>[e(w,{modelValue:t.projectName,"onUpdate:modelValue":s[0]||(s[0]=o=>t.projectName=o),placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),e(u,{span:8},{default:a(()=>[e(c,{label:"\u9879\u76EE\u7C7B\u578B"},{default:a(()=>[e(O,{modelValue:t.projectType,"onUpdate:modelValue":s[1]||(s[1]=o=>t.projectType=o),placeholder:"\u5168\u90E8",class:"w-full"},{default:a(()=>[(f(!0),E(H,null,z(y(N),(o,m)=>(f(),x(G,{key:m,label:o,value:m},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(u,{span:8},{default:a(()=>[e(c,{label:"\u9879\u76EE\u72B6\u6001"},{default:a(()=>[e(O,{modelValue:t.approvalStatus,"onUpdate:modelValue":s[2]||(s[2]=o=>t.approvalStatus=o),placeholder:"\u5168\u90E8",class:"w-full"},{default:a(()=>[(f(!0),E(H,null,z(y(A),(o,m)=>(f(),x(G,{key:m,label:o,value:m},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(S,{gutter:16,class:"mb-16"},{default:a(()=>[e(u,{span:8},{default:a(()=>[e(c,{label:"\u9884\u7B97\u5E74\u5EA6"},{default:a(()=>[e(Y,{modelValue:t.year,"onUpdate:modelValue":s[3]||(s[3]=o=>t.year=o),type:"year","value-format":"YYYY",placeholder:"\u8BF7\u9009\u62E9"},null,8,["modelValue"])]),_:1})]),_:1}),e(u,{span:16},{default:a(()=>[e(c,{label:"\u521B\u5EFA\u65F6\u95F4"},{default:a(()=>[e(Y,{modelValue:t.times,"onUpdate:modelValue":s[4]||(s[4]=o=>t.times=o),type:"datetimerange",editable:!1,format:"YYYY-MM-DD HH:mm","value-format":"YYYY-MM-DD HH:mm","range-separator":"-","start-placeholder":"\u5F00\u59CB\u65F6\u95F4","end-placeholder":"\u7ED3\u675F\u65F6\u95F4"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(S,null,{default:a(()=>[e(u,{span:24},{default:a(()=>[e(c,{class:"btn"},{default:a(()=>[j("div",Ne,[e(R,{type:"primary",onClick:W},{default:a(()=>[M("\u67E5\u8BE2")]),_:1}),e(R,{onClick:q},{default:a(()=>[M("\u91CD\u7F6E")]),_:1})])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),e(U,{class:"w-full mt-8"},{header:a(()=>[j("div",je,[we,j("div",null,[e(R,{type:"primary",plain:"",size:"small","export-loading":y(X),onClick:ee},{default:a(()=>[M("\u5BFC\u51FA")]),_:1},8,["export-loading"])])])]),default:a(()=>[e(te,{ref_key:"tableListRef",ref:_,column:i,data:g.value,total:v.value,onGetTableData:b},{action:a(({scope:o})=>[o.row.approvalStatus==="PENDING"?(f(),E("a",{key:0,onClick:m=>J(o.row)},"\u5BA1\u6838",8,Se)):C("v-if",!0),j("a",{onClick:m=>Q(o.row)},"\u8BE6\u60C5",8,he),y(T)(["SUPER_ADMIN","REGION_MANAGER"])&&o.row.approvalStatus==="NOT_PASS"?(f(),E("a",{key:1,class:"text-danger",onClick:m=>K(o.row)},"\u5220\u9664",8,ke)):C("v-if",!0)]),_:1},8,["column","data","total"])]),_:1})]),_:1},8,["span"])]),_:1})}}}),Ve=de(xe,[["__file","/Users/chenlixin/Documents/work/NDKJ/MyProject/ls-project-v2.0/src/pages/projectStoreManage/renewalProjectTreasury/index.vue"]]);export{Ve as default};