Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

2 řádky
8.2KB

  1. import{d as Z,A as ee,D as ae,b as P,r as j,o as le,c as r,e as i,f as w,h as a,i as t,u as m,I as N,k as te,F as O,J as G,g as f,V as y,j as A,x as oe}from"./index.121be81f.js";import{E as ne}from"./index.311d4c6f.js";import{l as de,b as ue}from"./projectStore.94f188d8.js";import re from"./exportFieldDialog.a722bc8c.js";import{p as se}from"./index.c4a348b4.js";import pe from"./projectList.c3a8796e.js";import{u as ie}from"./useExportExc.6de7f39d.js";import{g as R,a as me}from"./getIsShowRegionTree.711795cd.js";import"./index.3de4dfbb.js";import"./preExaminationDialog.cec05678.js";import"./uploadAction.544df052.js";import"./setTagDialog.ab4de89c.js";import"./tagsManage.6e98885a.js";const fe={class:"flex"},ce={class:"flex"},_e={class:"flex"},Me={class:"flex justify-between"},ve=f("span",null,"\u5217\u8868",-1),be=Z({beforeRouteEnter(D,c,x){c.name==="projectDetail"||!c.name?D.meta.keepAlive=!0:D.meta.keepAlive=!1,x()}}),Ie=Object.assign(be,{__name:"index",setup(D){const{proxy:c}=oe(),x=ee(),{statusOptionsCascader:B,projectTypeOptions:F,projectStageOptions:H}=ae.dictStore.globalDicts||{},e=P({projectName:void 0,buildOrg:void 0,projectType:void 0,status:void 0,declareAmountMin:void 0,declareAmountMax:void 0,approveAmountMin:void 0,approveAmountMax:void 0,projectYear:void 0,times:void 0}),I=j(0),Y=j([]),E=j(),$=u=>{E.value=u.regionLevel===3?u.regionCode:void 0,_.value.pageParams.pageNumber=1,p()},_=j(),p=async(u=_.value.pageParams)=>{var n,s,d,M;const l=await de({...u,...e,projectYear:e.projectYear*1||void 0,declareAmountMin:e.declareAmountMin*1||void 0,declareAmountMax:e.declareAmountMax*1||void 0,approveAmountMin:e.approveAmountMin*1||void 0,approveAmountMax:e.approveAmountMax*1||void 0,createOnMin:((n=e.times)==null?void 0:n[0])||void 0,createOnMax:((s=e.times)==null?void 0:s[1])||void 0,regionCode:E.value||void 0,times:void 0,status:(d=e.status)==null?void 0:d[e.status.length-1],projectTypes:((M=e==null?void 0:e.projectType)==null?void 0:M.join(","))||"",projectType:void 0});Y.value=l.data.records,I.value=l.data.total},z=()=>{p()},L=()=>{e.projectName=void 0,e.buildOrg=void 0,e.projectType=void 0,e.status=void 0,e.declareAmountMin=void 0,e.declareAmountMax=void 0,e.approveAmountMin=void 0,e.approveAmountMax=void 0,e.projectYear=void 0,e.times=void 0,e.projectStage=void 0,_.value.pageParams.pageNumber=1,_.value.pageParams.pageSize=10,p()},g=P({visible:!1}),q=u=>{g.visible=!0},S=()=>{g.visible=!1},{exportData:h}=ie(),J=async u=>{await h(()=>{var l,n,s,d;return ue({...e,projectYear:e.projectYear*1||void 0,declareAmountMin:e.declareAmountMin*1||void 0,declareAmountMax:e.declareAmountMax*1||void 0,approveAmountMin:e.approveAmountMin*1||void 0,approveAmountMax:e.approveAmountMax*1||void 0,createOnMin:((l=e.times)==null?void 0:l[0])||void 0,createOnMax:((n=e.times)==null?void 0:n[1])||void 0,regionCode:E.value||void 0,status:(s=e.status)==null?void 0:s[e.status.length-1],projectTypes:(d=e.projectType)==null?void 0:d.join(","),projectType:void 0,exportOptionList:u})}),S()},K=u=>{c.$messageBox.confirm("\u63D0\u4EA4\u540E\u5C06\u53D1\u8D77\u9879\u76EE\u9884\u5BA1\u6D41\u7A0B\uFF0C\u786E\u5B9A\u63D0\u4EA4\u5417?","\u63D0\u793A\uFF01",{type:"warning"}).then(async()=>{await se({projectId:u.id}),c.$message.success("\u53D1\u8D77\u6210\u529F\uFF01"),p()})},Q=u=>{u.fromType==="1"?x.push({name:"projectDetail",query:{id:u.id}}):x.push({name:"operationProjectStoreDetail",query:{id:u.projectCode,type:1}})};return le(async()=>{R(["SUPER_ADMIN","REGION_MANAGER","VISITOR"])||p()}),(u,l)=>{const n=r("el-col"),s=r("el-input"),d=r("el-form-item"),M=r("el-option"),C=r("el-select"),v=r("el-row"),W=r("el-cascader"),V=r("el-input-number"),U=r("el-date-picker"),T=r("el-button"),X=r("el-form"),k=r("el-card");return i(),w(O,null,[a(v,null,{default:t(()=>[m(R)(["SUPER_ADMIN","REGION_MANAGER","VISITOR"])?(i(),N(n,{key:0,span:4,class:"pr-16"},{default:t(()=>[a(ne,{params:m(me)({SUPER_ADMIN:!1,REGION_MANAGER:!1,VISITOR:!1}),onGetTree:$},null,8,["params"])]),_:1})):te("",!0),a(n,{span:m(R)(["SUPER_ADMIN","REGION_MANAGER","VISITOR"])?20:24},{default:t(()=>[a(k,{class:"w-full search"},{default:t(()=>[a(X,{model:e,size:"small","label-suffix":":"},{default:t(()=>[a(v,{gutter:16,class:"mb-16"},{default:t(()=>[a(n,{span:8},{default:t(()=>[a(d,{label:"\u9879\u76EE\u540D\u79F0"},{default:t(()=>[a(s,{modelValue:e.projectName,"onUpdate:modelValue":l[0]||(l[0]=o=>e.projectName=o),placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),a(n,{span:8},{default:t(()=>[a(d,{label:"\u7533\u62A5\u5355\u4F4D"},{default:t(()=>[a(s,{modelValue:e.buildOrg,"onUpdate:modelValue":l[1]||(l[1]=o=>e.buildOrg=o),placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),a(n,{span:8},{default:t(()=>[a(d,{label:"\u9879\u76EE\u7C7B\u578B"},{default:t(()=>[a(C,{modelValue:e.projectType,"onUpdate:modelValue":l[2]||(l[2]=o=>e.projectType=o),placeholder:"\u5168\u90E8",class:"w-full",multiple:""},{default:t(()=>[(i(!0),w(O,null,G(m(F),(o,b)=>(i(),N(M,{key:b,label:o,value:b},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1}),a(v,{gutter:16,class:"mb-16"},{default:t(()=>[a(n,{span:8},{default:t(()=>[a(d,{label:"\u9879\u76EE\u72B6\u6001"},{default:t(()=>[a(W,{modelValue:e.status,"onUpdate:modelValue":l[3]||(l[3]=o=>e.status=o),class:"w-full",props:{label:"name",value:"code"},options:m(B)},null,8,["modelValue","options"])]),_:1})]),_:1}),a(n,{span:8},{default:t(()=>[a(d,{class:"whitespace-nowrap",label:"\u7533\u62A5\u8D44\u91D1(\u4E07\u5143)"},{default:t(()=>[f("div",fe,[a(V,{modelValue:e.declareAmountMin,"onUpdate:modelValue":l[4]||(l[4]=o=>e.declareAmountMin=o),clearable:"",controls:!1,onMousewheel:l[5]||(l[5]=y(()=>{},["prevent"]))},null,8,["modelValue"]),A(" \xA0\u81F3\xA0 "),a(V,{modelValue:e.declareAmountMax,"onUpdate:modelValue":l[6]||(l[6]=o=>e.declareAmountMax=o),clearable:"",controls:!1,onMousewheel:l[7]||(l[7]=y(()=>{},["prevent"]))},null,8,["modelValue"])])]),_:1})]),_:1}),a(n,{span:8},{default:t(()=>[a(d,{class:"whitespace-nowrap",label:"\u6279\u590D\u8D44\u91D1(\u4E07\u5143)"},{default:t(()=>[f("div",ce,[a(V,{modelValue:e.approveAmountMin,"onUpdate:modelValue":l[8]||(l[8]=o=>e.approveAmountMin=o),controls:!1,clearable:"",onMousewheel:l[9]||(l[9]=y(()=>{},["prevent"]))},null,8,["modelValue"]),A(" \xA0\u81F3\xA0 "),a(V,{modelValue:e.approveAmountMax,"onUpdate:modelValue":l[10]||(l[10]=o=>e.approveAmountMax=o),controls:!1,clearable:"",onMousewheel:l[11]||(l[11]=y(()=>{},["prevent"]))},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1}),a(v,{gutter:16,class:"mb-16"},{default:t(()=>[a(n,{span:8},{default:t(()=>[a(d,{label:"\u9884\u7B97\u5E74\u5EA6"},{default:t(()=>[a(U,{modelValue:e.projectYear,"onUpdate:modelValue":l[12]||(l[12]=o=>e.projectYear=o),type:"year","value-format":"YYYY",placeholder:"\u8BF7\u9009\u62E9"},null,8,["modelValue"])]),_:1})]),_:1}),a(n,{span:16},{default:t(()=>[a(d,{label:"\u521B\u5EFA\u65F6\u95F4"},{default:t(()=>[a(U,{modelValue:e.times,"onUpdate:modelValue":l[13]||(l[13]=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})]),_:1}),a(v,null,{default:t(()=>[a(n,{span:8},{default:t(()=>[a(d,{label:"\u9879\u76EE\u9636\u6BB5"},{default:t(()=>[a(C,{modelValue:e.projectStage,"onUpdate:modelValue":l[14]||(l[14]=o=>e.projectStage=o),placeholder:"\u5168\u90E8",class:"w-full"},{default:t(()=>[(i(!0),w(O,null,G(m(H),(o,b)=>(i(),N(M,{key:b,label:o,value:b},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),a(n,{span:16},{default:t(()=>[a(d,{class:"btn"},{default:t(()=>[f("div",_e,[a(T,{type:"primary",onClick:z},{default:t(()=>[A("\u67E5\u8BE2")]),_:1}),a(T,{onClick:L},{default:t(()=>[A("\u91CD\u7F6E")]),_:1})])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),a(k,{class:"w-full mt-8"},{header:t(()=>[f("div",Me,[ve,f("div",null,[a(T,{type:"primary",plain:"",size:"small",onClick:q},{default:t(()=>[A("\u5BFC\u51FA")]),_:1})])])]),default:t(()=>[a(pe,{ref_key:"listRef",ref:_,"list-data":Y.value,total:I.value,onGetTableData:p,onPreExamDeclare:K,onToDetail:Q},null,8,["list-data","total"])]),_:1})]),_:1},8,["span"])]),_:1}),a(re,{visible:g.visible,data:g.rowData,onClose:S,onExportProject:J},null,8,["visible","data"])],64)}}});export{Ie as default};