Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

index.0f54086b.js 6.2KB

1
  1. import{d as J,A as K,D as Q,b as Y,r as y,a0 as k,o as X,c as r,e as p,I as x,i as t,h as a,f as v,F as E,J as O,u as b,g as m,j as g,k as $,x as Z}from"./index.bc5091a0.js";import{r as ee,a as ae}from"./renewalProjectTreasury.4699bb30.js";import{u as te}from"./useExportExc.39d1d773.js";import{a as le}from"./index.5b5528d1.js";const ne={class:"flex"},oe={class:"flex justify-between"},re=m("span",null,"\u7533\u62A5\u5217\u8868",-1),se=["onClick"],de=["onClick"],ue=["onClick"],pe=J({name:"projectStore"}),ye=Object.assign(pe,{setup(ie){const{proxy:h}=Z(),S=K(),{reAuditStatusOptions:I,projectTypeOptions:j}=Q.dictStore.globalDicts||{},e=Y({projectName:void 0,projectType:void 0,approvalStatus:void 0,year:void 0,times:void 0}),c=y(),C=y(0),B=Y([{label:"\u5E8F\u53F7",type:"index",width:"60"},{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:l=>k("span",j[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=>[k("span",{class:["dot mr-4",`bg-${l.approvalStatus==="PENDING"?"warning":l.approvalStatus==="PASS"?"success":"danger"}`]}),k("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:"200",fixed:"right"}]),D=y([]),N=y(),i=async(l=c.value.pageParams)=>{var f,s;const o=await ee({...l,...e,year:e.year*1||void 0,startTime:((f=e.times)==null?void 0:f[0])||void 0,endTime:((s=e.times)==null?void 0:s[1])||void 0,regionCode:N.value||void 0,times:void 0});D.value=o.data.records,C.value=o.data.total},L=()=>{i()},M=()=>{e.projectName=void 0,e.projectType=void 0,e.approvalStatus=void 0,e.maxDeclareAmount=void 0,e.maxApprovalAmount=void 0,e.year=void 0,e.times=void 0,c.value.pageParams.pageNumber=1,c.value.pageParams.pageSize=10,i()},{exportLoading:U,exportData:z}=te(),G=()=>{z(()=>{var l,o;return le(5,{...e,year:e.year*1||void 0,maxDeclareAmount:e.maxDeclareAmount*1||void 0,maxApprovalAmount:e.maxApprovalAmount*1||void 0,startTime:((l=e.times)==null?void 0:l[0])||void 0,endTime:((o=e.times)==null?void 0:o[1])||void 0,areaCode:N.value||void 0,times:void 0})})},H=l=>{h.$messageBox.confirm("\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u9879\u5417?","\u63D0\u793A\uFF01",{type:"warning"}).then(async()=>{await ae({projectRenewalId:l.id}),h.$message.success("\u5220\u9664\u6210\u529F\uFF01"),i()})},R=l=>{S.push({name:"renewProjectDetail",query:{id:l.id}})},F=l=>{S.push({name:"renewalCapitalDeclare",query:{id:l.id}})};return X(async()=>{i()}),(l,o)=>{const f=r("el-input"),s=r("el-form-item"),u=r("el-col"),V=r("el-option"),A=r("el-select"),w=r("el-row"),T=r("el-date-picker"),_=r("el-button"),q=r("el-form"),P=r("el-card"),W=r("table-list");return p(),x(w,null,{default:t(()=>[a(u,{span:24},{default:t(()=>[a(P,{class:"w-full search"},{default:t(()=>[a(q,{model:e,size:"small","label-suffix":":"},{default:t(()=>[a(w,{gutter:16,class:"mb-16"},{default:t(()=>[a(u,{span:8},{default:t(()=>[a(s,{label:"\u9879\u76EE\u540D\u79F0"},{default:t(()=>[a(f,{modelValue:e.projectName,"onUpdate:modelValue":o[0]||(o[0]=n=>e.projectName=n),placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),a(u,{span:8},{default:t(()=>[a(s,{label:"\u9879\u76EE\u7C7B\u578B"},{default:t(()=>[a(A,{modelValue:e.projectType,"onUpdate:modelValue":o[1]||(o[1]=n=>e.projectType=n),placeholder:"\u5168\u90E8",class:"w-full"},{default:t(()=>[(p(!0),v(E,null,O(b(j),(n,d)=>(p(),x(V,{key:d,label:n,value:d},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),a(u,{span:8},{default:t(()=>[a(s,{label:"\u9879\u76EE\u72B6\u6001"},{default:t(()=>[a(A,{modelValue:e.approvalStatus,"onUpdate:modelValue":o[2]||(o[2]=n=>e.approvalStatus=n),placeholder:"\u5168\u90E8",class:"w-full"},{default:t(()=>[(p(!0),v(E,null,O(b(I),(n,d)=>(p(),x(V,{key:d,label:n,value:d},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1}),a(w,{gutter:16},{default:t(()=>[a(u,{span:8},{default:t(()=>[a(s,{label:"\u9884\u7B97\u5E74\u5EA6"},{default:t(()=>[a(T,{modelValue:e.year,"onUpdate:modelValue":o[3]||(o[3]=n=>e.year=n),type:"year","value-format":"YYYY",placeholder:"\u8BF7\u9009\u62E9"},null,8,["modelValue"])]),_:1})]),_:1}),a(u,{span:12},{default:t(()=>[a(s,{label:"\u521B\u5EFA\u65F6\u95F4"},{default:t(()=>[a(T,{modelValue:e.times,"onUpdate:modelValue":o[4]||(o[4]=n=>e.times=n),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}),a(u,{span:4},{default:t(()=>[a(s,{class:"btn"},{default:t(()=>[m("div",ne,[a(_,{type:"primary",onClick:L},{default:t(()=>[g("\u67E5\u8BE2")]),_:1}),a(_,{onClick:M},{default:t(()=>[g("\u91CD\u7F6E")]),_:1})])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),a(P,{class:"w-full mt-8"},{header:t(()=>[m("div",oe,[re,m("div",null,[a(_,{type:"primary",plain:"",size:"small",loading:b(U),onClick:G},{default:t(()=>[g("\u5BFC\u51FA")]),_:1},8,["loading"]),a(_,{type:"primary",size:"small",icon:"Plus",onClick:o[5]||(o[5]=n=>b(S).push({name:"renewalCapitalDeclare"}))},{default:t(()=>[g("\u7EED\u5EFA\u8D44\u91D1\u7533\u62A5")]),_:1})])])]),default:t(()=>[a(W,{ref_key:"tableListRef",ref:c,column:B,data:D.value,total:C.value,onGetTableData:i},{action:t(({scope:n})=>[m("a",{onClick:d=>R(n.row)},"\u8BE6\u60C5",8,se),n.row.approvalStatus==="NOT_PASS"?(p(),v("a",{key:0,onClick:d=>F(n.row)},"\u91CD\u65B0\u7533\u62A5",8,de)):$("",!0),n.row.approvalStatus==="NOT_PASS"?(p(),v("a",{key:1,class:"text-danger",onClick:d=>H(n.row)},"\u5220\u9664",8,ue)):$("",!0)]),_:1},8,["column","data","total"])]),_:1})]),_:1})]),_:1})}}});export{ye as default};