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

  1. import{s as F,d as z,y as W,B as q,b as E,r as y,Z as h,o as Z,c as d,e as j,G as M,i as l,u as f,h as e,k as J,f as K,F as Q,H as X,g as _,j as A}from"./index.88314652.js";import{E as ee}from"./index.095525b5.js";import{g as O,a as ae}from"./getIsShowRegionTree.6f629642.js";const te=Y=>F.get("/api/v1/irs/project/list",{params:Y}),le={class:"flex"},oe={class:"flex"},ne=["onClick"],se=z({name:"projectIrsDoc"}),pe=Object.assign(se,{setup(Y){const C=W(),{statusOptions:m,statusGjOptions:N,statusOptionsCascader:G,projectTypeOptions:U}=q.dictStore.globalDicts||{},a=E({projectName:void 0,buildOrg:void 0,projectType:void 0,status:void 0,approveAmountMin:void 0,approveAmountMax:void 0,projectYear:void 0,times:void 0}),i=y(),k=y(0),I=E([{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:"projectTypeName",prop:"projectTypeName",width:80},{label:"\u9884\u7B97\u5E74\u5EA6",key:"projectYear",prop:"projectYear",width:"80"},{label:"\u9879\u76EE\u72B6\u6001",key:"status",prop:"status",width:"120",render:n=>{var t,s,r,u,b,g,p,v;return[h("span",{class:["dot mr-4",`bg-${((t=m[n.status])==null?void 0:t.color)||((s=N[n.status])==null?void 0:s.color)}`]}),h("span",{class:`text-${((r=m[n.status])==null?void 0:r.color)||((u=N[n.status])==null?void 0:u.color)}`},n.status&&((b=m[n.stage])==null?void 0:b.name)?`${(g=m[n.stage])==null?void 0:g.name}-${(p=m[n.status])==null?void 0:p.name}`:((v=N[n.status])==null?void 0:v.name)||"-")]}},{label:"\u521B\u5EFA\u65F6\u95F4",key:"createOn",prop:"createOn",width:"180"},{label:"\u64CD\u4F5C",slot:"action",width:"80",fixed:"right"}]),x=y([]),T=y(),P=n=>{T.value=n.regionLevel===3?n.regionCode:void 0,i.value.pageParams.pageNumber=1,c()},c=async(n=i.value.pageParams)=>{var s,r,u;const t=await te({...n,...a,projectYear:a.projectYear*1||void 0,createOnMin:((s=a.times)==null?void 0:s[0])||void 0,createOnMax:((r=a.times)==null?void 0:r[1])||void 0,regionCode:T.value||void 0,approveAmountMin:a.approveAmountMin*1||void 0,approveAmountMax:a.approveAmountMax*1||void 0,times:void 0,status:(u=a.status)==null?void 0:u[a.status.length-1]});x.value=t.data.records,k.value=t.data.total},S=()=>{c()},B=()=>{a.projectName=void 0,a.buildOrg=void 0,a.projectType=void 0,a.status=void 0,a.projectYear=void 0,a.approveAmountMin=void 0,a.approveAmountMax=void 0,a.times=void 0,i.value.pageParams.pageNumber=1,i.value.pageParams.pageSize=10,c()},H=n=>{C.push({name:"projectIrsDocDetail",query:{id:n.id}})};return Z(async()=>{O(["SUPER_ADMIN","REGION_MANAGER"])||c()}),(n,t)=>{const s=d("el-col"),r=d("el-input"),u=d("el-form-item"),b=d("el-option"),g=d("el-select"),p=d("el-row"),v=d("el-cascader"),R=d("el-date-picker"),w=d("el-button"),$=d("el-form"),D=d("el-card"),L=d("table-list");return j(),M(p,null,{default:l(()=>[f(O)(["SUPER_ADMIN","REGION_MANAGER"])?(j(),M(s,{key:0,span:4,class:"pr-16"},{default:l(()=>[e(ee,{params:f(ae)({SUPER_ADMIN:!1,REGION_MANAGER:!1}),onGetTree:P},null,8,["params"])]),_:1})):J("",!0),e(s,{span:f(O)(["SUPER_ADMIN","REGION_MANAGER"])?20:24},{default:l(()=>[e(D,{class:"w-full search"},{default:l(()=>[e($,{model:a,size:"small","label-suffix":":"},{default:l(()=>[e(p,{gutter:16,class:"mb-16"},{default:l(()=>[e(s,{span:8},{default:l(()=>[e(u,{label:"\u9879\u76EE\u540D\u79F0"},{default:l(()=>[e(r,{modelValue:a.projectName,"onUpdate:modelValue":t[0]||(t[0]=o=>a.projectName=o),placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),e(s,{span:8},{default:l(()=>[e(u,{label:"\u7533\u62A5\u5355\u4F4D"},{default:l(()=>[e(r,{modelValue:a.buildOrg,"onUpdate:modelValue":t[1]||(t[1]=o=>a.buildOrg=o),placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),e(s,{span:8},{default:l(()=>[e(u,{label:"\u9879\u76EE\u7C7B\u578B"},{default:l(()=>[e(g,{modelValue:a.projectType,"onUpdate:modelValue":t[2]||(t[2]=o=>a.projectType=o),placeholder:"\u5168\u90E8",class:"w-full"},{default:l(()=>[(j(!0),K(Q,null,X(f(U),(o,V)=>(j(),M(b,{key:V,label:o,value:V},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(p,{gutter:16,class:"mb-16"},{default:l(()=>[e(s,{span:8},{default:l(()=>[e(u,{label:"\u9879\u76EE\u72B6\u6001"},{default:l(()=>[e(v,{modelValue:a.status,"onUpdate:modelValue":t[3]||(t[3]=o=>a.status=o),class:"w-full",props:{label:"name",value:"code"},options:f(G)},null,8,["modelValue","options"])]),_:1})]),_:1}),e(s,{span:8},{default:l(()=>[e(u,{class:"whitespace-nowrap",label:"\u6279\u590D\u8D44\u91D1(\u4E07\u5143)"},{default:l(()=>[_("div",le,[e(r,{modelValue:a.approveAmountMin,"onUpdate:modelValue":t[4]||(t[4]=o=>a.approveAmountMin=o),type:"number",placeholder:"",clearable:""},null,8,["modelValue"]),t[8]||(t[8]=A(" \xA0\u81F3\xA0 ")),e(r,{modelValue:a.approveAmountMax,"onUpdate:modelValue":t[5]||(t[5]=o=>a.approveAmountMax=o),type:"number",placeholder:"",clearable:""},null,8,["modelValue"])])]),_:1})]),_:1}),e(s,{span:8},{default:l(()=>[e(u,{label:"\u9884\u7B97\u5E74\u5EA6"},{default:l(()=>[e(R,{modelValue:a.projectYear,"onUpdate:modelValue":t[6]||(t[6]=o=>a.projectYear=o),type:"year","value-format":"YYYY",placeholder:"\u8BF7\u9009\u62E9"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(p,{gutter:16},{default:l(()=>[e(s,{span:16},{default:l(()=>[e(u,{label:"\u521B\u5EFA\u65F6\u95F4"},{default:l(()=>[e(R,{modelValue:a.times,"onUpdate:modelValue":t[7]||(t[7]=o=>a.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}),e(s,{span:8},{default:l(()=>[e(u,{class:"btn"},{default:l(()=>[_("div",oe,[e(w,{type:"primary",onClick:S},{default:l(()=>t[9]||(t[9]=[A("\u67E5\u8BE2 ")])),_:1}),e(w,{onClick:B},{default:l(()=>t[10]||(t[10]=[A("\u91CD\u7F6E ")])),_:1})])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),e(D,{class:"w-full mt-8"},{header:l(()=>t[11]||(t[11]=[_("div",{class:"flex justify-between"},[_("span",null,"\u5217\u8868")],-1)])),default:l(()=>[e(L,{ref_key:"tableListRef",ref:i,column:I,data:x.value,total:k.value,onGetTableData:c},{action:l(({scope:o})=>[_("a",{onClick:V=>H(o.row)},"\u8BE6\u60C5",8,ne)]),_:1},8,["column","data","total"])]),_:1})]),_:1},8,["span"])]),_:1})}}});export{pe as default};