import{V as R,T as A,U as P,D as Y,v as h,C as I,F as O}from"./element-plus.8e273e86.js";import{P as T}from"./index.1c24829c.js";import"./index.a39f73a6.js";import"./lodash.41b9567d.js";import{y as H}from"./beforehand_order.7ccd8683.js";import{d as E,s as V,r as y,b as M,Z as b,o as N,c as L,U as e,L as t,u as o}from"./@vue.76ce7aa3.js";const S={class:"edit-popup"},Z=E({name:"storeOrderEdit"}),W=E({...Z,emits:["success","close"],setup(j,{expose:c,emit:F}){const i=F,D=V(),d=V(),_=y("add"),U=M(()=>_.value="\u8F6C\u9884\u8BA2\u5355\u8BBE\u7F6E"),u=b({id:0,order_type:4,store_id:"",arrival_time:"",purpose:"",tables:0,days:0,chef:"",chef_phone:"",splitting_officer:"",merchandiser:"\u4F55\u6708\u82F1",distribution_personnel:"\u4F59\u53CB",transporter:"",system_store_name:"",regional_manager:"\u5F20\u6CE2",mark:""}),C=b({}),g=s=>{u.store_id=s.store_id,u.id=s.id},v=async()=>{var l;const s={...u};await H(s),(l=d.value)==null||l.close(),i("success")},k=(s="add")=>{var l;_.value=s,(l=d.value)==null||l.open()};y([]);const w=()=>{i("close")};return c({open:k,getDetail:g}),(s,l)=>{const B=R,n=Y,p=A,f=h,r=I,m=P,x=O;return N(),L("div",S,[e(T,{ref_key:"popupRef",ref:d,title:o(U),async:!0,width:"1000px",onConfirm:v,onClose:w},{default:t(()=>[e(x,{ref_key:"formRef",ref:D,model:o(u),"label-width":"90px",rules:o(C)},{default:t(()=>[e(m,null,{default:t(()=>[e(p,{span:6},{default:t(()=>[e(n,{label:"\u5230\u8D27\u65F6\u95F4",prop:"arrival_time"},{default:t(()=>[e(B,{modelValue:o(u).arrival_time,"onUpdate:modelValue":l[0]||(l[0]=a=>o(u).arrival_time=a),type:"datetime",readonly:!1,clearable:"","value-format":"YYYY-MM-DD HH:mm:ss",placeholder:"\u8BF7\u9009\u62E9\u5230\u8D27\u65F6\u95F4",style:{width:"180px"}},null,8,["modelValue"])]),_:1})]),_:1}),e(p,{span:6},{default:t(()=>[e(n,{label:"\u684C\u6570",prop:"tables"},{default:t(()=>[e(f,{modelValue:o(u).tables,"onUpdate:modelValue":l[1]||(l[1]=a=>o(u).tables=a),type:"input"},null,8,["modelValue"])]),_:1})]),_:1}),e(p,{span:6},{default:t(()=>[e(n,{label:"\u529E\u4E8B\u5929\u6570",prop:"days"},{default:t(()=>[e(f,{modelValue:o(u).days,"onUpdate:modelValue":l[2]||(l[2]=a=>o(u).days=a),type:"input"},null,8,["modelValue"])]),_:1})]),_:1}),e(p,{span:6},{default:t(()=>[e(n,{label:"\u53A8\u5E08",prop:"chef"},{default:t(()=>[e(r,{modelValue:o(u).chef,"onUpdate:modelValue":l[3]||(l[3]=a=>o(u).chef=a),type:"input"},null,8,["modelValue"])]),_:1})]),_:1}),e(p,{span:6},{default:t(()=>[e(n,{label:"\u7535\u8BDD",prop:"chef_phone"},{default:t(()=>[e(r,{modelValue:o(u).chef_phone,"onUpdate:modelValue":l[4]||(l[4]=a=>o(u).chef_phone=a),type:"input"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(m,null,{default:t(()=>[e(p,{span:12},{default:t(()=>[e(n,{label:"\u5907\u6CE8",prop:"purpose"},{default:t(()=>[e(r,{modelValue:o(u).purpose,"onUpdate:modelValue":l[5]||(l[5]=a=>o(u).purpose=a),type:"input",style:{width:"480px"}},null,8,["modelValue"])]),_:1})]),_:1}),e(p,{span:12},{default:t(()=>[e(n,{label:"\u5185\u90E8\u5907\u6CE8",prop:"mark"},{default:t(()=>[e(r,{modelValue:o(u).mark,"onUpdate:modelValue":l[6]||(l[6]=a=>o(u).mark=a),type:"input",style:{width:"480px"}},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(m,null,{default:t(()=>[e(p,{span:4},{default:t(()=>[e(n,{label:"\u5206\u5355\u5458",prop:"splitting_officer"},{default:t(()=>[e(r,{modelValue:o(u).splitting_officer,"onUpdate:modelValue":l[7]||(l[7]=a=>o(u).splitting_officer=a),type:"input"},null,8,["modelValue"])]),_:1})]),_:1}),e(p,{span:4},{default:t(()=>[e(n,{label:"\u8DDF\u5355\u5458",prop:"merchandiser"},{default:t(()=>[e(r,{modelValue:o(u).merchandiser,"onUpdate:modelValue":l[8]||(l[8]=a=>o(u).merchandiser=a),type:"input"},null,8,["modelValue"])]),_:1})]),_:1}),e(p,{span:4},{default:t(()=>[e(n,{label:"\u4ED3\u7BA1\u5458",prop:"distribution_personnel"},{default:t(()=>[e(r,{modelValue:o(u).distribution_personnel,"onUpdate:modelValue":l[9]||(l[9]=a=>o(u).distribution_personnel=a),type:"input"},null,8,["modelValue"])]),_:1})]),_:1}),e(p,{span:4},{default:t(()=>[e(n,{label:"\u8FD0\u8F93\u5458",prop:"transporter"},{default:t(()=>[e(r,{modelValue:o(u).transporter,"onUpdate:modelValue":l[10]||(l[10]=a=>o(u).transporter=a),type:"input"},null,8,["modelValue"])]),_:1})]),_:1}),e(p,{span:4},{default:t(()=>[e(n,{label:"\u95E8\u5E97\u5458",prop:"system_store_name"},{default:t(()=>[e(r,{modelValue:o(u).system_store_name,"onUpdate:modelValue":l[11]||(l[11]=a=>o(u).system_store_name=a),type:"input"},null,8,["modelValue"])]),_:1})]),_:1}),e(p,{span:4},{default:t(()=>[e(n,{label:"\u533A\u57DF\u7ECF\u7406",prop:"regional_manager"},{default:t(()=>[e(r,{modelValue:o(u).regional_manager,"onUpdate:modelValue":l[12]||(l[12]=a=>o(u).regional_manager=a),type:"input"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["title"])])}}});export{W as _};
