Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

2 lignes
3.4KB

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