|
- import{c as P}from"./index-b6aa4cff.js";import{r as i,B as R,C as w,b as l,c as L,L as O,h as t,e as j,f as a,i as f,k as A}from"./index-dd5fae99.js";const I={class:"flex justify-center"},M=A({name:"relatedIrsAppDialog"}),q=Object.assign(M,{props:{visible:{type:Boolean,default:!1,required:!0},data:Object,column:{type:Array,default:()=>[{type:"radio",key:"businessStripCode",width:"60"},{label:"单位名称",key:"businessStripName",prop:"businessStripName",minWidth:"150",showOverflowTooltip:!0},{label:"单位编码",key:"businessStripCode",prop:"businessStripCode",minWidth:"150",showOverflowTooltip:!0}]}},emits:["close","getBaseProvManDeprt"],setup(c,{emit:C}){const r=c,n=i({name:void 0}),o=i(),k=i(0),v=i([]),u=async(s=o.value.pageParams)=>{var m;const e=await P({...s,...n.value});v.value=e.data,await w(),o.value.setRadio(((m=r==null?void 0:r.data)==null?void 0:m.businessStripCode)||"")},S=()=>{o.value.pageParams.pageNumber=1,u()},N=()=>{o.value.pageParams.pageNumber=1,n.value.businessStripName=void 0,u()},_=i(),x=s=>{_.value=s},B=async()=>{d("getBaseProvManDeprt",_.value),d("close",!0)},d=C;return R(()=>r.visible,async s=>{s?(await w(),await u()):o.value.tableRef.clearSelection()}),(s,e)=>{const m=l("el-input"),g=l("el-form-item"),y=l("el-col"),p=l("el-button"),D=l("el-row"),T=l("el-form"),V=l("table-list"),h=l("el-dialog");return L(),O(h,{"model-value":c.visible,title:"选择单位",width:840,onClose:e[2]||(e[2]=b=>d("close"))},{footer:t(()=>[j("div",I,[a(p,{type:"primary",onClick:B},{default:t(()=>e[5]||(e[5]=[f("确定")])),_:1}),a(p,{onClick:e[1]||(e[1]=b=>d("close"))},{default:t(()=>e[6]||(e[6]=[f("取消")])),_:1})])]),default:t(()=>[a(T,{model:n.value,"label-suffix":":"},{default:t(()=>[a(D,{gutter:24},{default:t(()=>[a(y,{span:12},{default:t(()=>[a(g,{label:"单位名称"},{default:t(()=>[a(m,{modelValue:n.value.businessStripName,"onUpdate:modelValue":e[0]||(e[0]=b=>n.value.businessStripName=b),placeholder:"请输入"},null,8,["modelValue"])]),_:1})]),_:1}),a(y,{span:12},{default:t(()=>[a(g,{class:"search_btn"},{default:t(()=>[a(p,{type:"primary",onClick:S},{default:t(()=>e[3]||(e[3]=[f("搜索")])),_:1}),a(p,{onClick:N},{default:t(()=>e[4]||(e[4]=[f("重置")])),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"]),a(V,{ref_key:"tableListRef",ref:o,column:c.column,data:v.value,total:k.value,"row-key":"appId",pagination:!1,style:{height:"600px",overflow:"auto"},onRadioChange:x,onGetTableData:u},null,8,["column","data","total"])]),_:1},8,["model-value"])}}});export{q as default};
|