import{_ as h,r as c,e as b,k as C,i as t,h as l,u as e,ci as d,cj as f,ck as r,cl as x,a0 as k,a2 as E,g as y,cm as p,cn as T,m as g}from"./index.0308b213.js";const w={slot:"footer",class:"dialog-footer"},B=g("\u53D6\u6D88"),U=g("\u786E\u8BA4"),D={setup(F,{expose:_}){const u=c(!1),a=c({store:"",productChange:"",changeTime:"",notes:""}),i=c(null),n=()=>{a.value={store:"",productChange:"",changeTime:"",notes:""}},v=()=>{u.value=!1,n()},V=()=>{i.value.validate(m=>{m?(console.log("Form data:",a.value),u.value=!1,n()):console.log("Form validation failed")})};return _({visible:u}),(m,o)=>(b(),C(e(T),{modelValue:u.value,"onUpdate:modelValue":o[4]||(o[4]=s=>u.value=s),title:"\u5546\u54C1\u8BB0\u5F55",width:"500px",class:"pawn-dialog","before-close":n},{default:t(()=>[l(e(E),{model:a.value,ref_key:"formRef",ref:i,"label-width":"100px"},{default:t(()=>[l(e(d),{label:"\u95E8\u5E97",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u95E8\u5E97",trigger:"change"}]},{default:t(()=>[l(e(f),{modelValue:a.value.store,"onUpdate:modelValue":o[0]||(o[0]=s=>a.value.store=s),placeholder:"\u8BF7\u9009\u62E9\u95E8\u5E97"},{default:t(()=>[l(e(r),{label:"\u95E8\u5E97 A",value:"store_a"}),l(e(r),{label:"\u95E8\u5E97 B",value:"store_b"})]),_:1},8,["modelValue"])]),_:1}),l(e(d),{label:"\u5546\u54C1\u53D8\u52A8",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5546\u54C1\u53D8\u52A8",trigger:"change"}]},{default:t(()=>[l(e(f),{modelValue:a.value.productChange,"onUpdate:modelValue":o[1]||(o[1]=s=>a.value.productChange=s),placeholder:"\u8BF7\u9009\u62E9\u5546\u54C1\u53D8\u52A8"},{default:t(()=>[l(e(r),{label:"\u589E\u52A0",value:"increase"}),l(e(r),{label:"\u51CF\u5C11",value:"decrease"})]),_:1},8,["modelValue"])]),_:1}),l(e(d),{label:"\u53D8\u52A8\u65F6\u95F4",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u53D8\u52A8\u65F6\u95F4",trigger:"change"}]},{default:t(()=>[l(e(x),{modelValue:a.value.changeTime,"onUpdate:modelValue":o[2]||(o[2]=s=>a.value.changeTime=s),type:"datetime",placeholder:"\u9009\u62E9\u53D8\u52A8\u65F6\u95F4"},null,8,["modelValue"])]),_:1}),l(e(d),{label:"\u5907\u6CE8"},{default:t(()=>[l(e(k),{modelValue:a.value.notes,"onUpdate:modelValue":o[3]||(o[3]=s=>a.value.notes=s),type:"textarea",placeholder:"\u8BF7\u8F93\u5165\u5907\u6CE8",rows:"4"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"]),y("div",w,[l(e(p),{onClick:v},{default:t(()=>[B]),_:1}),l(e(p),{type:"primary",onClick:V},{default:t(()=>[U]),_:1})])]),_:1},8,["modelValue"]))}},I=h(D,[["__scopeId","data-v-c314fd6a"]]);export{I as default};
