25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
2.3KB

  1. import{b as A}from"./index.6b325ebc.js";import{d as L,C as P,B as G,r,J as O,L as k,c as l,e as S,G as $,i as a,g as q,h as t,j as f}from"./index.b0d60c48.js";const F={class:"flex justify-center"},J=L({name:"relatedIrsAppDialog"}),E=Object.assign(J,{props:{visible:{type:Boolean,default:!1,required:!0},data:Object,column:{type:Array,default:()=>[{type:"radio",width:"55",key:"appId"},{label:"\u5E94\u7528\u540D\u79F0",prop:"name",key:"name"}]}},emits:["close","getIrsApp"],setup(c,{emit:w}){const I=P(G.userStore).userInfo||{},u=c,n=r({name:void 0}),o=r(),v=r(0),b=r([]),i=async(s=o.value.pageParams)=>{var m;const e=await A({areaCode:I.value.regionCode,...n.value});b.value=e.data.records,v.value=e.data.total,await k(),o.value.setRadio(((m=u==null?void 0:u.data)==null?void 0:m.appId)||"")},x=()=>{o.value.pageParams.pageNumber=1,i()},R=()=>{o.value.pageParams.pageNumber=1,n.value.name=void 0,i()},g=r(),V=s=>{g.value=s},B=async()=>{d("getIrsApp",g.value),d("close",!0)},d=w;return O(()=>u.visible,async s=>{s?(await k(),await i()):o.value.tableRef.clearSelection()}),(s,e)=>{const m=l("el-input"),y=l("el-form-item"),C=l("el-col"),p=l("el-button"),D=l("el-row"),N=l("el-form"),T=l("table-list"),j=l("el-dialog");return S(),$(j,{"model-value":c.visible,title:"\u9009\u62E9\u9879\u76EE",width:840,onClose:e[2]||(e[2]=_=>d("close"))},{footer:a(()=>[q("div",F,[t(p,{type:"primary",onClick:B},{default:a(()=>e[5]||(e[5]=[f("\u786E\u5B9A")])),_:1}),t(p,{onClick:e[1]||(e[1]=_=>d("close"))},{default:a(()=>e[6]||(e[6]=[f("\u53D6\u6D88")])),_:1})])]),default:a(()=>[t(N,{model:n.value,"label-suffix":":"},{default:a(()=>[t(D,{gutter:24},{default:a(()=>[t(C,{span:12},{default:a(()=>[t(y,{label:"\u5E94\u7528\u540D\u79F0"},{default:a(()=>[t(m,{modelValue:n.value.name,"onUpdate:modelValue":e[0]||(e[0]=_=>n.value.name=_),placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),t(C,{span:12},{default:a(()=>[t(y,{class:"search_btn"},{default:a(()=>[t(p,{type:"primary",onClick:x},{default:a(()=>e[3]||(e[3]=[f("\u641C\u7D22")])),_:1}),t(p,{onClick:R},{default:a(()=>e[4]||(e[4]=[f("\u91CD\u7F6E")])),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"]),t(T,{ref_key:"tableListRef",ref:o,column:c.column,data:b.value,total:v.value,"row-key":"appId",onRadioChange:V,onGetTableData:i},null,8,["column","data","total"])]),_:1},8,["model-value"])}}});export{E as default};