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
8.3KB

  1. import{d as h,y as ee,B as ae,b as P,r as j,o as le,c as r,e as i,f as w,h as l,i as t,u as m,G as N,k as te,F as O,H as G,g as f,T as y,j as A,q as oe}from"./index.766d5891.js";import{E as ne}from"./index.c82fdd62.js";import{l as de,b as ue}from"./projectStore.e073f402.js";import re from"./exportFieldDialog.b79323c6.js";import{p as se}from"./index.81a22214.js";import pe from"./projectList.2d0c8b24.js";import{u as ie}from"./useExportExc.27a576c3.js";import{g as R,a as me}from"./getIsShowRegionTree.0f41ecb5.js";import"./index.332dd1d2.js";import"./preExaminationDialog.c6fd6a3d.js";import"./uploadAction.b26326d4.js";import"./setTagDialog.143dbe75.js";import"./tagsManage.172aec06.js";const fe={class:"flex"},ce={class:"flex"},_e={class:"flex"},Me={class:"flex justify-between"},ve=h({beforeRouteEnter(T,c,g){c.name==="projectDetail"||!c.name?T.meta.keepAlive=!0:T.meta.keepAlive=!1,g()}}),Re=Object.assign(ve,{__name:"index",setup(T){const{proxy:c}=oe(),g=ee(),{statusOptionsCascader:B,projectTypeOptions:H,projectStageOptions:F}=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}),Y=j(0),I=j([]),D=j(),$=u=>{D.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 a=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:D.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});I.value=a.data.records,Y.value=a.data.total},q=()=>{p()},z=()=>{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()},x=P({visible:!1}),L=u=>{x.visible=!0},S=()=>{x.visible=!1},{exportData:J}=ie(),K=async u=>{await J(()=>{var a,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:((a=e.times)==null?void 0:a[0])||void 0,createOnMax:((n=e.times)==null?void 0:n[1])||void 0,regionCode:D.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()},Q=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()})},W=u=>{u.fromType==="1"?g.push({name:"projectDetail",query:{id:u.id}}):g.push({name:"operationProjectStoreDetail",query:{id:u.projectCode,type:1}})};return le(async()=>{R(["SUPER_ADMIN","REGION_MANAGER","VISITOR"])||p()}),(u,a)=>{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"),X=r("el-cascader"),V=r("el-input-number"),U=r("el-date-picker"),E=r("el-button"),Z=r("el-form"),k=r("el-card");return i(),w(O,null,[l(v,null,{default:t(()=>[m(R)(["SUPER_ADMIN","REGION_MANAGER","VISITOR"])?(i(),N(n,{key:0,span:4,class:"pr-16"},{default:t(()=>[l(ne,{params:m(me)({SUPER_ADMIN:!1,REGION_MANAGER:!1,VISITOR:!1}),onGetTree:$},null,8,["params"])]),_:1})):te("",!0),l(n,{span:m(R)(["SUPER_ADMIN","REGION_MANAGER","VISITOR"])?20:24},{default:t(()=>[l(k,{class:"w-full search"},{default:t(()=>[l(Z,{model:e,size:"small","label-suffix":":"},{default:t(()=>[l(v,{gutter:16,class:"mb-16"},{default:t(()=>[l(n,{span:8},{default:t(()=>[l(d,{label:"\u9879\u76EE\u540D\u79F0"},{default:t(()=>[l(s,{modelValue:e.projectName,"onUpdate:modelValue":a[0]||(a[0]=o=>e.projectName=o),placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),l(n,{span:8},{default:t(()=>[l(d,{label:"\u7533\u62A5\u5355\u4F4D"},{default:t(()=>[l(s,{modelValue:e.buildOrg,"onUpdate:modelValue":a[1]||(a[1]=o=>e.buildOrg=o),placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),l(n,{span:8},{default:t(()=>[l(d,{label:"\u9879\u76EE\u7C7B\u578B"},{default:t(()=>[l(C,{modelValue:e.projectType,"onUpdate:modelValue":a[2]||(a[2]=o=>e.projectType=o),placeholder:"\u5168\u90E8",class:"w-full",multiple:""},{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})]),_:1}),l(v,{gutter:16,class:"mb-16"},{default:t(()=>[l(n,{span:8},{default:t(()=>[l(d,{label:"\u9879\u76EE\u72B6\u6001"},{default:t(()=>[l(X,{modelValue:e.status,"onUpdate:modelValue":a[3]||(a[3]=o=>e.status=o),class:"w-full",props:{label:"name",value:"code"},options:m(B)},null,8,["modelValue","options"])]),_:1})]),_:1}),l(n,{span:8},{default:t(()=>[l(d,{class:"whitespace-nowrap",label:"\u7533\u62A5\u8D44\u91D1(\u4E07\u5143)"},{default:t(()=>[f("div",fe,[l(V,{modelValue:e.declareAmountMin,"onUpdate:modelValue":a[4]||(a[4]=o=>e.declareAmountMin=o),clearable:"",controls:!1,onMousewheel:a[5]||(a[5]=y(()=>{},["prevent"]))},null,8,["modelValue"]),a[15]||(a[15]=A(" \xA0\u81F3\xA0 ")),l(V,{modelValue:e.declareAmountMax,"onUpdate:modelValue":a[6]||(a[6]=o=>e.declareAmountMax=o),clearable:"",controls:!1,onMousewheel:a[7]||(a[7]=y(()=>{},["prevent"]))},null,8,["modelValue"])])]),_:1})]),_:1}),l(n,{span:8},{default:t(()=>[l(d,{class:"whitespace-nowrap",label:"\u6279\u590D\u8D44\u91D1(\u4E07\u5143)"},{default:t(()=>[f("div",ce,[l(V,{modelValue:e.approveAmountMin,"onUpdate:modelValue":a[8]||(a[8]=o=>e.approveAmountMin=o),controls:!1,clearable:"",onMousewheel:a[9]||(a[9]=y(()=>{},["prevent"]))},null,8,["modelValue"]),a[16]||(a[16]=A(" \xA0\u81F3\xA0 ")),l(V,{modelValue:e.approveAmountMax,"onUpdate:modelValue":a[10]||(a[10]=o=>e.approveAmountMax=o),controls:!1,clearable:"",onMousewheel:a[11]||(a[11]=y(()=>{},["prevent"]))},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1}),l(v,{gutter:16,class:"mb-16"},{default:t(()=>[l(n,{span:8},{default:t(()=>[l(d,{label:"\u9884\u7B97\u5E74\u5EA6"},{default:t(()=>[l(U,{modelValue:e.projectYear,"onUpdate:modelValue":a[12]||(a[12]=o=>e.projectYear=o),type:"year","value-format":"YYYY",placeholder:"\u8BF7\u9009\u62E9"},null,8,["modelValue"])]),_:1})]),_:1}),l(n,{span:16},{default:t(()=>[l(d,{label:"\u521B\u5EFA\u65F6\u95F4"},{default:t(()=>[l(U,{modelValue:e.times,"onUpdate:modelValue":a[13]||(a[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}),l(v,null,{default:t(()=>[l(n,{span:8},{default:t(()=>[l(d,{label:"\u9879\u76EE\u9636\u6BB5"},{default:t(()=>[l(C,{modelValue:e.projectStage,"onUpdate:modelValue":a[14]||(a[14]=o=>e.projectStage=o),placeholder:"\u5168\u90E8",class:"w-full"},{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}),l(n,{span:16},{default:t(()=>[l(d,{class:"btn"},{default:t(()=>[f("div",_e,[l(E,{type:"primary",onClick:q},{default:t(()=>a[17]||(a[17]=[A("\u67E5\u8BE2")])),_:1}),l(E,{onClick:z},{default:t(()=>a[18]||(a[18]=[A("\u91CD\u7F6E")])),_:1})])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),l(k,{class:"w-full mt-8"},{header:t(()=>[f("div",Me,[a[20]||(a[20]=f("span",null,"\u5217\u8868",-1)),f("div",null,[l(E,{type:"primary",plain:"",size:"small",onClick:L},{default:t(()=>a[19]||(a[19]=[A("\u5BFC\u51FA")])),_:1})])])]),default:t(()=>[l(pe,{ref_key:"listRef",ref:_,"list-data":I.value,total:Y.value,onGetTableData:p,onPreExamDeclare:Q,onToDetail:W},null,8,["list-data","total"])]),_:1})]),_:1},8,["span"])]),_:1}),l(re,{visible:x.visible,data:x.rowData,onClose:S,onExportProject:K},null,8,["visible","data"])],64)}}});export{Re as default};