25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

2 satır
2.3KB

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