選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

2 行
6.3KB

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