import{N as g,O as D,D as R,C as L,F as O}from"./element-plus.8e273e86.js";import{P as S}from"./index.1c24829c.js";import{b as U}from"./beforehand_order.7ccd8683.js";import{a as I}from"./system_store.5c349fb2.js";import"./lodash.41b9567d.js";import{d as h,s as c,r as f,Z as N,o as m,c as _,U as s,L as r,u as a,T as P,a9 as T,K as z}from"./@vue.76ce7aa3.js";const A={class:"edit-popup"},K=h({name:"warehouseOrderEdit"}),Q=h({...K,emits:["success","close"],setup(M,{expose:E,emit:k}){const d=k,y=c(),n=c(),u=f(!1),p=f([]),v=(l="")=>{u.value=!0,I({name:l,page_size:50}).then(e=>{p.value=e.lists,setTimeout(()=>{u.value=!1},300)})},o=N({id:"",store_id:"",mark:""}),w=async()=>{var e;const l={...o};await U(l),(e=n.value)==null||e.close(),d("success")},C=l=>{var e;o.id=l,(e=n.value)==null||e.open()},b=()=>{d("close")};return E({open:C}),(l,e)=>{const x=g,F=D,i=R,V=L,B=O;return m(),_("div",A,[s(S,{ref_key:"popupRef",ref:n,title:"\u590D\u5236\u8BA2\u5355",async:!0,width:"550px",onConfirm:w,onClose:b},{default:r(()=>[s(B,{ref_key:"formRef",ref:y,model:a(o),"label-width":"90px"},{default:r(()=>[s(i,{label:"\u95E8\u5E97",prop:"store_id",style:{width:"300px"}},{default:r(()=>[s(F,{modelValue:a(o).store_id,"onUpdate:modelValue":e[0]||(e[0]=t=>a(o).store_id=t),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u95E8\u5E97\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":v,loading:a(u),style:{width:"240px"}},{default:r(()=>[(m(!0),_(P,null,T(a(p),t=>(m(),z(x,{key:t.id,label:t.name,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading"])]),_:1}),s(i,{label:"\u5907\u6CE8",prop:"mark"},{default:r(()=>[s(V,{modelValue:a(o).mark,"onUpdate:modelValue":e[1]||(e[1]=t=>a(o).mark=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5907\u6CE8",readonly:!1},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},512)])}}});export{Q as _};
