25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
6.3KB

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