|
- var V=Object.defineProperty,j=Object.defineProperties;var L=Object.getOwnPropertyDescriptors;var x=Object.getOwnPropertySymbols;var B=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable;var E=(n,a,e)=>a in n?V(n,a,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[a]=e,b=(n,a)=>{for(var e in a||(a={}))B.call(a,e)&&E(n,e,a[e]);if(x)for(var e of x(a))z.call(a,e)&&E(n,e,a[e]);return n},A=(n,a)=>j(n,L(a));var M=(n,a,e)=>new Promise((i,m)=>{var N=r=>{try{l(e.next(r))}catch(u){m(u)}},c=r=>{try{l(e.throw(r))}catch(u){m(u)}},l=r=>r.done?i(r.value):Promise.resolve(r.value).then(N,c);l((e=e.apply(n,a)).next())});import{_ as W,d as q,A as F,b as I,r as h,o as J,e as s,f as G,I as P,l as t,j as f,k as o,i as K,h as g,m as T}from"./index.11dc4694.js";import{b as $}from"./unitManage.315d6884.js";import{E as H}from"./index.0394235d.js";import{g as v,a as Q}from"./getIsShowRegionTree.11f4997d.js";const X=g("div",{class:"flex justify-between items-center"},[g("span",null,"\u5355\u4F4D\u5217\u8868")],-1),Y=["onClick"],Z=q({name:"unitManage"}),ee=Object.assign(Z,{setup(n){const a=F(),e=I({orgName:void 0,isCompetentUnit:void 0,isSuperiorLineCompetentUnit:void 0}),i=h(),m=h(0),N=I([{label:"\u5E8F\u53F7",type:"index",width:"80"},{label:"\u5355\u4F4D\u540D\u79F0",key:"orgName",prop:"orgName",minWidth:200,showOverflowTooltip:!0},{label:"\u6D59\u653F\u9489\u7F16\u7801",key:"orgCode",prop:"orgCode",showOverflowTooltip:!0,minWidth:200},{label:"\u8D22\u653F\u7F16\u7801",key:"financialCode",prop:"financialCode",width:"150"},{label:"\u6240\u5C5E\u533A\u57DF",key:"regionName",prop:"regionName",width:"120"},{label:"\u64CD\u4F5C",slot:"action",width:"150",fixed:"right"}]),c=h([]),l=(...w)=>M(this,[...w],function*(_=i.value.pageParams){const d=yield $(A(b(b({},_),e),{onlyUnit:!0}));c.value=d.data.records,m.value=d.data.total}),r=()=>{l()},u=()=>{e.orgName=void 0,i.value.pageParams.pageNumber=1,i.value.pageParams.pageSize=10,l()},U=_=>{e.regionId=_.regionLevel===3?_.regionCode:void 0,i.value.pageParams.pageNumber=1,l()};return J(()=>{v(["SUPER_ADMIN","REGION_MANAGER"])||l()}),(_,w)=>{const d=s("el-col"),D=s("el-input"),C=s("el-form-item"),y=s("el-button"),R=s("el-row"),O=s("el-form"),k=s("el-card"),S=s("table-list");return G(),P(R,{gutter:16},{default:t(()=>[f(v)(["SUPER_ADMIN","REGION_MANAGER"])?(G(),P(d,{key:0,style:{"padding-right":"16px"},span:4},{default:t(()=>[o(H,{params:f(Q)({SUPER_ADMIN:!1,REGION_MANAGER:!1}),onGetTree:U},null,8,["params"])]),_:1})):K("v-if",!0),o(d,{span:f(v)(["SUPER_ADMIN","REGION_MANAGER"])?20:24},{default:t(()=>[g("div",null,[o(k,{shadow:"never",class:"search mb-16"},{default:t(()=>[o(O,{"label-suffix":":",model:e,size:"small"},{default:t(()=>[o(R,{gutter:16},{default:t(()=>[o(d,{span:8},{default:t(()=>[o(C,{label:"\u5355\u4F4D\u540D\u79F0"},{default:t(()=>[o(D,{modelValue:e.orgName,"onUpdate:modelValue":w[0]||(w[0]=p=>e.orgName=p),maxlength:"10",placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),o(d,{span:16},{default:t(()=>[o(C,{class:"btn"},{default:t(()=>[o(y,{type:"primary",onClick:r},{default:t(()=>[T("\u67E5\u8BE2")]),_:1}),o(y,{onClick:u},{default:t(()=>[T("\u91CD\u7F6E")]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),o(k,{shadow:"never"},{header:t(()=>[X]),default:t(()=>[o(S,{ref_key:"tableListRef",ref:i,column:N,data:c.value,total:m.value,onGetTableData:l},{action:t(({scope:p})=>[g("a",{onClick:ae=>f(a).push({name:"unitConfiguration",query:{orgName:p.row.orgName,id:p.row.orgCode}})},"\u5355\u4F4D\u914D\u7F6E",8,Y)]),_:1},8,["column","data","total"])]),_:1})])]),_:1},8,["span"])]),_:1})}}}),se=W(ee,[["__file","/Users/chenlixin/Documents/work/NDKJ/MyProject/ls-project-v2.0/src/pages/systemManage/unitManage/index.vue"]]);export{se as default};
|