import{D as y}from"./index.4e38854e.js";import"./pawnRequest.956aeb8a.js";import F from"./fluctuation.d0c84733.js";import B from"./addInputOrder.bbaf70f1.js";import{d as C,r as n,b as m,p as _,e as u,k as v,i as S,g as e,f as b,H as E,u as c,A as h,h as O,R as A,S as N,_ as V}from"./index.0308b213.js";const r=s=>(A("data-v-6690d2f4"),s=s(),N(),s),q={class:"draw-content"},z={key:0,class:"draw-content-side"},H=r(()=>e("i",{class:"seafox seafoxshenqingshouquan"},null,-1)),R=r(()=>e("span",null,"\u5546\u54C1\u660E\u7EC6",-1)),T=[H,R],U={class:"draw-content-body"},j={style:{width:"282px",height:"100%",position:"relative"}},G=r(()=>e("div",{class:"dl-flex center",style:{height:"100px"}},null,-1)),J=C({props:{title:{default:"\u65B0\u589E\u5B58\u5F53"},okText:{default:"\u786E\u5B9A"},hiddenSide:{type:Boolean,default:!1},mode:{default:()=>["add","goods","auth","record","detail"]},eventData:{default:()=>({})}},emits:["confirm"],setup(s,{expose:I,emit:K}){const a=s;n();const i=n(!1);n(),n();const f=n(a.eventData),o=m({stockInfo:{input:-1,remark:""},goodsInfo:[]}),d=m({component:""}),D=t=>{o.stockInfo=t},k=()=>{d.component="fluctuation",d.type=-1},g=n(!1),w=()=>{o.stockInfo={},o.goodsInfo=[],d.component="",g.value=!1,f.value={}},p=()=>{if(a.eventData=={})return;console.log(999,a.eventData);const{goodsInfo:t,...l}=a.eventData;o.stockInfo=l,o.goodsInfo=t};return _(()=>a.eventData,t=>{t&&p()},{immediate:!0}),_(()=>i.value,t=>{t||w(),p()}),I({visible:i,eventData:f}),(t,l)=>(u(),v(y,{"modal-class":"draw-cls",visible:i.value,"onUpdate:visible":l[0]||(l[0]=x=>i.value=x)},{default:S(()=>[e("div",q,[a.hiddenSide?h("",!0):(u(),b("div",z,[e("div",{class:E(["side-menu dl-flex column",{active:c(d).component=="fluctuation"}]),onClick:k},T,2)])),e("div",U,[c(d).component=="fluctuation"?(u(),v(F,{key:0,onOpenFluctuation:t.openFluctuation,formData:c(o).goodsInfo,store_name:c(o).stockInfo.out_store},null,8,["onOpenFluctuation","formData","store_name"])):h("",!0),e("div",j,[O(B,{formData:c(o).stockInfo,onOutputInfo:D},null,8,["formData"]),G])])])]),_:1},8,["visible"]))}});const X=V(J,[["__scopeId","data-v-6690d2f4"]]);export{X as default};
