You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
2.5KB

  1. import{c as P}from"./index.7cf53a4d.js";import{d as R,r as i,L as j,N as w,c as l,e as L,I as O,i as e,g as I,h as t,j as p}from"./index.622ee9e7.js";const A={class:"flex justify-center"},M=R({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:"\u5355\u4F4D\u540D\u79F0",key:"businessStripName",prop:"businessStripName",minWidth:"150",showOverflowTooltip:!0},{label:"\u5355\u4F4D\u7F16\u7801",key:"businessStripCode",prop:"businessStripCode",minWidth:"150",showOverflowTooltip:!0}]}},emits:["close","getBaseProvManDeprt"],setup(f,{emit:C}){const r=f,n=i({name:void 0}),o=i(),k=i(0),b=i([]),u=async(s=o.value.pageParams)=>{var m;const a=await P({...s,...n.value});b.value=a.data,await w(),o.value.setRadio(((m=r==null?void 0:r.data)==null?void 0:m.businessStripCode)||"")},h=()=>{o.value.pageParams.pageNumber=1,u()},N=()=>{o.value.pageParams.pageNumber=1,n.value.businessStripName=void 0,u()},v=i(),S=s=>{v.value=s},x=async()=>{d("getBaseProvManDeprt",v.value),d("close",!0)},d=C;return j(()=>r.visible,async s=>{s?(await w(),await u()):o.value.tableRef.clearSelection()}),(s,a)=>{const m=l("el-input"),g=l("el-form-item"),y=l("el-col"),c=l("el-button"),D=l("el-row"),B=l("el-form"),T=l("table-list"),V=l("el-dialog");return L(),O(V,{"model-value":f.visible,title:"\u9009\u62E9\u5355\u4F4D",width:840,onClose:a[2]||(a[2]=_=>d("close"))},{footer:e(()=>[I("div",A,[t(c,{type:"primary",onClick:x},{default:e(()=>[p("\u786E\u5B9A")]),_:1}),t(c,{onClick:a[1]||(a[1]=_=>d("close"))},{default:e(()=>[p("\u53D6\u6D88")]),_:1})])]),default:e(()=>[t(B,{model:n.value,"label-suffix":":"},{default:e(()=>[t(D,{gutter:24},{default:e(()=>[t(y,{span:12},{default:e(()=>[t(g,{label:"\u5355\u4F4D\u540D\u79F0"},{default:e(()=>[t(m,{modelValue:n.value.businessStripName,"onUpdate:modelValue":a[0]||(a[0]=_=>n.value.businessStripName=_),placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),t(y,{span:12},{default:e(()=>[t(g,{class:"search_btn"},{default:e(()=>[t(c,{type:"primary",onClick:h},{default:e(()=>[p("\u641C\u7D22")]),_:1}),t(c,{onClick:N},{default:e(()=>[p("\u91CD\u7F6E")]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"]),t(T,{ref_key:"tableListRef",ref:o,column:f.column,data:b.value,total:k.value,"row-key":"appId",pagination:!1,onRadioChange:S,onGetTableData:u},null,8,["column","data","total"])]),_:1},8,["model-value"])}}});export{q as default};