Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

2 рядки
3.5KB

  1. import{c as R}from"./index.ed13ba65.js";import{d as E,r as i,b as L,c as n,e as B,f as O,h as a,i as t,g as S,j as g,F as I,L as W}from"./index.1cbb0c88.js";const $={class:"flex"},q={class:"dialog-footer"},z=E({name:"provincialExamine"}),J=Object.assign(z,{setup(G,{expose:U}){const l=i({}),y=i(),w={operationManageUnitName:[{required:!0,message:"\u8BF7\u9009\u62E9\u4E1A\u52A1\u4E3B\u7BA1\u90E8\u95E8"}]},x=o=>{y.value.validate(e=>{o(e)})},k=o=>{l.value={operationManageUnit:o.operationManageUnit,operationManageUnitName:""},o.operationManageUnit&&p(!0)},r=i(!1),C=i(),u=L({businessStripName:void 0}),M=async()=>{r.value=!0,p()},V=[{type:"selection",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}],v=i(),p=async o=>{const e=await R({...u});v.value=e.data,await W();const d=[];v.value&&v.value.forEach(s=>{var m,f;(((f=(m=l.value)==null?void 0:m.operationManageUnit)==null?void 0:f.split(","))||[]).includes(s.businessStripCode)&&(o?d.push(s.businessStripName):C.value.toggleRowSelect(s,!0))}),o&&(l.value.operationManageUnitName=d.join("\uFF0C")||"")},h=()=>{u.businessStripName=void 0,p()},N=i([]),D=o=>{N.value=o},T=()=>{r.value=!1,l.value.operationManageUnitName=N.value.map(o=>o.businessStripName).join("\uFF0C"),l.value.operationManageUnit=N.value.map(o=>o.businessStripCode).join(",")};return U({validForm:x,formData:l,setFormData:k}),(o,e)=>{const d=n("el-input"),s=n("el-form-item"),b=n("el-col"),m=n("el-row"),f=n("el-form"),c=n("el-button"),j=n("table-list"),F=n("el-dialog");return B(),O(I,null,[a(f,{ref_key:"formRef",ref:y,model:l.value,rules:w,"label-position":"right","label-width":"180px","label-suffix":":","scroll-to-error":""},{default:t(()=>[a(m,{gutter:40},{default:t(()=>[a(b,{span:24},{default:t(()=>[a(s,{label:"\u4E1A\u52A1\u4E3B\u7BA1\u90E8\u95E8\uFF08\u7701\u7EA7\uFF09",prop:"operationManageUnitName"},{default:t(()=>[a(d,{modelValue:l.value.operationManageUnitName,"onUpdate:modelValue":e[0]||(e[0]=_=>l.value.operationManageUnitName=_),placeholder:"\u8BF7\u9009\u62E9",readonly:"",onClick:M},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"]),a(F,{"model-value":r.value,title:"\u4E0A\u7EA7\u6761\u7EBF\u4E3B\u7BA1\u5355\u4F4D",width:"60%",onClose:e[3]||(e[3]=_=>r.value=!1)},{footer:t(()=>[S("span",q,[a(c,{onClick:e[2]||(e[2]=_=>r.value=!1)},{default:t(()=>e[6]||(e[6]=[g("\u5173\u95ED")])),_:1}),a(c,{type:"primary",onClick:T},{default:t(()=>e[7]||(e[7]=[g(" \u63D0\u4EA4 ")])),_:1})])]),default:t(()=>[a(f,{model:u,size:"small","label-suffix":":"},{default:t(()=>[a(m,{gutter:16,class:"mb-16"},{default:t(()=>[a(b,{span:8},{default:t(()=>[a(s,{label:"\u5355\u4F4D\u540D\u79F0"},{default:t(()=>[a(d,{modelValue:u.businessStripName,"onUpdate:modelValue":e[1]||(e[1]=_=>u.businessStripName=_),placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),a(b,{span:16},{default:t(()=>[a(s,{class:"btn"},{default:t(()=>[S("div",$,[a(c,{type:"primary",onClick:p},{default:t(()=>e[4]||(e[4]=[g("\u67E5\u8BE2")])),_:1}),a(c,{onClick:h},{default:t(()=>e[5]||(e[5]=[g("\u91CD\u7F6E")])),_:1})])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"]),a(j,{ref_key:"tableListRef",ref:C,column:V,data:v.value,pagination:!1,style:{height:"600px",overflow:"auto"},onGetTableData:p,onSelectionChange:D},null,8,["data"])]),_:1},8,["model-value"])],64)}}});export{J as default};