import{m as P,aT as A,r as E,p as K,q as S,t as e,v as t,u as a,aV as M,a2 as c,L as _e,x as D,i as j,a3 as fe,aW as Z,aX as Q,ae as $,aY as ee,b6 as le,J as ue,b7 as te,b8 as ge,s as Ve,af as be,bd as ce,be as Fe,aZ as ye,a_ as we,bg as Ee,V as X,W as Ce,y as he,G as De,n as q,b3 as ve,b4 as Be,ad as Ue,b0 as ke,b5 as Ke}from"./.pnpm.1b0299fb.js";import{_ as qe}from"./index.vue_vue_type_script_setup_true_lang.b077f234.js";import{u as Ae}from"./usePaging.00aa976d.js";import{u as Se}from"./useDictOptions.e9843f63.js";import{a as oe,b as Pe}from"./store_product.90b19113.js";import{a as Ie}from"./beforehand_order.d5a5e1b1.js";import{a as Le}from"./system_store.e6c50bcf.js";import"./index.689cfa31.js";import"./@vueuse.72d44d91.js";import"./lodash.c3b66c05.js";import"./@vue.9d708d7c.js";const Re={class:"mt-4"},xe={class:"flex mt-4 justify-end"},Te=P({name:"systemStoreLists"}),Ne=P({...Te,emits:["onBindStore"],setup(ae,{emit:z}){const v=A({store_name:"",product_type:0,is_warehouse:1}),s=E([]);E();const I=C=>{s.value=C.map(({id:f})=>f)};Se("");const B=()=>{g()},{pager:b,getLists:g,resetParams:L,resetPage:R}=Ae({fetchFun:oe,params:v});g();const x=z,T=()=>{const C=b.lists.filter(f=>s.value.includes(f.id));if(!C.length)return fe.error("\u8BF7\u5148\u9009\u62E9\u5546\u54C1");x("onBindStore",C)};return(C,f)=>{const U=Z,w=Q,h=$,N=ee,F=le,i=ue,V=te,Y=qe,n=ge;return K(),S("div",null,[e(N,{class:"mb-[-16px]",model:a(v),inline:""},{default:t(()=>[e(w,{label:"\u5546\u54C1\u540D\u79F0",prop:"store_name"},{default:t(()=>[e(U,{class:"w-[200px]",modelValue:a(v).store_name,"onUpdate:modelValue":f[0]||(f[0]=l=>a(v).store_name=l),onKeydown:f[1]||(f[1]=M(l=>B(),["enter"])),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u54C1\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(w,null,{default:t(()=>[e(h,{type:"primary",onClick:a(R)},{default:t(()=>f[3]||(f[3]=[c("\u67E5\u8BE2")])),_:1},8,["onClick"]),e(h,{onClick:a(L)},{default:t(()=>f[4]||(f[4]=[c("\u91CD\u7F6E")])),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"]),_e((K(),S("div",Re,[e(V,{data:a(b).lists,onSelectionChange:I,height:300},{default:t(()=>[e(F,{type:"selection",width:"55"}),e(F,{label:"\u5546\u54C1ID",prop:"id","show-overflow-tooltip":""}),e(F,{label:"\u5546\u54C1\u56FE\u7247",prop:"image","min-width":"80"},{default:t(({row:l})=>[e(i,{style:{width:"50px",height:"50px"},src:l.image,"preview-teleported":!0},null,8,["src"])]),_:1}),e(F,{label:"\u5546\u54C1\u540D\u79F0",prop:"store_name","min-width":"200","show-overflow-tooltip":""}),e(F,{label:"\u5206\u7C7B",prop:"cate_name","min-width":"120","show-overflow-tooltip":""}),e(F,{label:"\u5355\u4F4D",prop:"unit_name","min-width":"80","show-overflow-tooltip":""}),e(F,{label:"\u5546\u54C1\u4EF7\u683C",prop:"price","min-width":"100","show-overflow-tooltip":""}),e(F,{label:"\u4ED3\u5E93\u5E93\u5B58",prop:"stock","min-width":"100","show-overflow-tooltip":""})]),_:1},8,["data"])])),[[n,a(b).loading]]),D("div",xe,[e(Y,{modelValue:a(b),"onUpdate:modelValue":f[2]||(f[2]=l=>j(b)?b.value=l:null),onChange:a(g)},null,8,["modelValue","onChange"])]),e(h,{class:"w-full mt-4",type:"primary",onClick:T},{default:t(()=>f[5]||(f[5]=[c("\u6DFB\u52A0\u5546\u54C1")])),_:1})])}}}),Ye={class:"flex-1 w-full"},Oe={class:"mb-2"},Me=P({name:"storeProductEdit"}),ll=P({...Me,props:{dictData:{type:Object,default:()=>({})}},emits:["success","close"],setup(ae,{emit:z}){const v=Ve(),s=A({warehouse_id:"",supplier_id:"",code:"",total_price:0,order_type:1,store_id:"",nickname:"",phone:"",address:"",arrival_time:"",purpose:"",tables:0,days:0,chef:"",chef_phone:"",splitting_officer:"",merchandiser:"",distribution_personnel:"",transporter:"",system_store_name:"",regional_manager:"",mark:""}),I=async n=>{const l=await Pe({id:n.id});B(n,l)},B=(n,l)=>{console.log(n),console.log(l),n.id=l.id,n.image=l.image,n.marques=l.marques,n.store_info=l.store_info,n.price=l.price,n.purchase=l.purchase,n.after_sales=l.after_sales,n.loss=l.loss,n.unit=l.unit,n.store_name=l.store_name,n.unit_name=l.unit_name,n.gross_weight=l.gross_weight,n.net_weight=l.net_weight,n.package=l.package;const r=[];g.value.forEach(p=>{r.push(p.id)}),r.includes(0)==!1&&g.value.push({id:0})},b=E(!1),g=E([{id:0}]),L=n=>{g.value=g.value.filter(l=>l.id!==n)},R=n=>{n.forEach(l=>{g.value.find(r=>r.id==l.id)||g.value.push(l)}),b.value=!1};function x(n){n.total_price=(n.nums*n.price).toFixed(2),n.total_price>0&&(s.total_price=(parseFloat(s.total_price)+parseFloat(n.total_price)).toFixed(2))}const T=be(),C=async()=>{const n=g.value.map(l=>({product_id:l.id,nums:l.nums,price:l.price||0,purchase:l.purchase||0,total_price:l.total_price||0,marques:l.marques,store_info:l.store_info,after_sales:l.after_sales,loss:l.loss,unit:l.unit,gross_weight:l.gross_weight,net_weight:l.net_weight,package:l.package,mark:l.mark}));Ie({product_arr:n,...s}).then(l=>{setTimeout(()=>{T.push({path:"/order/beforehand_order"})},2e3)})},f=E([]);Le({page_no:1,page_size:100}).then(n=>{f.value=n.lists});const U=E([]),w=E(!1),h=E(),N=n=>{oe({store_name:n.store_name,product_type:0}).then(l=>{if(l.count==1){const r=l.lists[0];B(n,r)}l.count>1&&(U.value=l.lists,w.value=!0,h.value=n)})},F=n=>{n!=null&&(B(h.value,n),w.value=!1,U.value=[],h.value=[])},i=A({}),V=(n,l,r)=>{const p=["id","store_name","nums","marques","gross_weight","net_weight","store_info","after_sales","loss","package","mark"];if(n.keyCode===38){if(l===0)return;i[l+r].blur(),q(()=>{i[l-1+r].focus()})}if(n.keyCode===40){if(l===g.value.length-1)return;i[l+r].blur(),q(()=>{i[l+1+r].focus()})}if(n.keyCode===37){if(l===0&&r===p[0])return;if(i[l+r].blur(),r===p[0])i[l-1+p[p.length-1]].focus();else{const _=p.findIndex(y=>y===r)-1;q(()=>{i[l+p[_]].focus()})}}if(n.keyCode===39){if(l===g.value.length-1&&r===p[p.length-1])return;if(i[l+r].blur(),r===p[p.length-1])i[l+1+p[0]].focus();else{const _=p.findIndex(y=>y===r)+1;q(()=>{i[l+p[_]].focus()})}}},Y=A({nickname:[{required:!0,message:"\u8BF7\u8F93\u5165\u91C7\u8D2D\u7528\u6237",trigger:["blur"]}],phone:[{required:!0,message:"\u8BF7\u8F93\u5165\u91C7\u8D2D\u7528\u6237\u624B\u673A\u53F7",trigger:["blur"]}],address:[{required:!0,message:"\u8BF7\u8F93\u5165\u91C7\u8D2D\u7528\u6237\u5730\u5740",trigger:["blur"]}],arrival_time:[{required:!0,message:"\u8BF7\u9009\u62E9\u5230\u8D27\u65F6\u95F4",trigger:["blur"]}],tables:[{required:!0,message:"\u8BF7\u8F93\u5165\u684C\u6570",trigger:["blur"]}],days:[{required:!0,message:"\u8BF7\u8F93\u5165\u5929\u6570",trigger:["blur"]}],chef:[{required:!0,message:"\u8BF7\u8F93\u5165\u53A8\u5E08",trigger:["blur"]}],chef_phone:[{required:!0,message:"\u8BF7\u8F93\u5165\u53A8\u5E08\u7535\u8BDD",trigger:["blur"]}],purpose:[{required:!0,message:"\u8BF7\u8F93\u5165\u91C7\u8D2D\u76EE\u7684",trigger:["blur"]}],system_store_name:[{required:!0,message:"\u8BF7\u8F93\u5165\u95E8\u5E97\u8054\u7CFB\u4EBA",trigger:["blur"]}],splitting_officer:[{required:!0,message:"\u8BF7\u8F93\u5165\u5206\u5355\u5458",trigger:["blur"]}],merchandiser:[{required:!0,message:"\u8BF7\u8F93\u5165\u8DDF\u5355\u5458",trigger:["blur"]}],distribution_personnel:[{required:!0,message:"\u8BF7\u8F93\u5165\u4ED3\u7BA1\u5458",trigger:["blur"]}],transporter:[{required:!0,message:"\u8BF7\u8F93\u5165\u8FD0\u8F93\u5458",trigger:["blur"]}],regional_manager:[{required:!0,message:"\u8BF7\u8F93\u5165\u533A\u57DF\u7ECF\u7406",trigger:["blur"]}]});return(n,l)=>{const r=Z,p=Q,_=ce,y=Fe,k=ye,ne=we,re=ve,se=Be,de=Ee,G=Ue,O=$,m=le,H=ue,W=te,pe=ee,ie=Ne,J=ke,me=Ke;return K(),S(X,null,[e(me,null,{default:t(()=>[l[30]||(l[30]=D("div",{class:"mb-4 text-lg font-bold"},"\u9884\u5B9A\u5355\u6DFB\u52A0",-1)),D("div",null,[e(pe,{ref_key:"formRef",ref:v,model:a(s),"label-width":"90px",inline:!0,rules:a(Y)},{default:t(()=>[e(y,null,{default:t(()=>[e(_,{span:4},{default:t(()=>[e(p,{label:"\u7528\u6237",prop:"nickname"},{default:t(()=>[e(r,{modelValue:a(s).nickname,"onUpdate:modelValue":l[0]||(l[0]=u=>a(s).nickname=u),type:"input"},null,8,["modelValue"])]),_:1})]),_:1}),e(_,{span:4},{default:t(()=>[e(p,{label:"\u7535\u8BDD",prop:"phone"},{default:t(()=>[e(r,{modelValue:a(s).phone,"onUpdate:modelValue":l[1]||(l[1]=u=>a(s).phone=u),type:"input"},null,8,["modelValue"])]),_:1})]),_:1}),e(_,{span:16},{default:t(()=>[e(p,{label:"\u5730\u5740",prop:"address"},{default:t(()=>[e(r,{modelValue:a(s).address,"onUpdate:modelValue":l[2]||(l[2]=u=>a(s).address=u),type:"input",style:{width:"400px"}},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(y,null,{default:t(()=>[e(_,{span:12},{default:t(()=>[e(p,{label:"\u8BA2\u5355\u7C7B\u578B",prop:"order_type"},{default:t(()=>[e(ne,{modelValue:a(s).order_type,"onUpdate:modelValue":l[3]||(l[3]=u=>a(s).order_type=u)},{default:t(()=>[e(k,{label:1},{default:t(()=>l[21]||(l[21]=[c("\u94FA\u8D27\u8BA2\u5355")])),_:1}),e(k,{label:2},{default:t(()=>l[22]||(l[22]=[c("\u644A\u8D29\u8BA2\u5355")])),_:1}),e(k,{label:3},{default:t(()=>l[23]||(l[23]=[c("\u4E00\u6761\u9F99\u8BA2\u5355")])),_:1}),e(k,{label:5},{default:t(()=>l[24]||(l[24]=[c("\u4ED3\u5E93\u8865\u8D27")])),_:1}),e(k,{label:6},{default:t(()=>l[25]||(l[25]=[c("\u5F80\u671F\u8865\u5355")])),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(_,{span:12},{default:t(()=>[e(p,{label:"\u95E8\u5E97",prop:"store_id",style:{width:"300px"}},{default:t(()=>[e(se,{modelValue:a(s).store_id,"onUpdate:modelValue":l[4]||(l[4]=u=>a(s).store_id=u),placeholder:"\u8BF7\u9009\u62E9\u95E8\u5E97",size:"large"},{default:t(()=>[(K(!0),S(X,null,Ce(a(f),u=>(K(),he(re,{key:u.id,label:u.name,value:u.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(y,null,{default:t(()=>[e(_,{span:4},{default:t(()=>[e(p,{label:"\u5230\u8D27\u65F6\u95F4",prop:"arrival_time"},{default:t(()=>[e(de,{modelValue:a(s).arrival_time,"onUpdate:modelValue":l[5]||(l[5]=u=>a(s).arrival_time=u),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(_,{span:4},{default:t(()=>[e(p,{label:"\u684C\u6570",prop:"tables"},{default:t(()=>[e(G,{modelValue:a(s).tables,"onUpdate:modelValue":l[6]||(l[6]=u=>a(s).tables=u),type:"input"},null,8,["modelValue"])]),_:1})]),_:1}),e(_,{span:4},{default:t(()=>[e(p,{label:"\u529E\u4E8B\u5929\u6570",prop:"days"},{default:t(()=>[e(G,{modelValue:a(s).days,"onUpdate:modelValue":l[7]||(l[7]=u=>a(s).days=u),type:"input"},null,8,["modelValue"])]),_:1})]),_:1}),e(_,{span:4},{default:t(()=>[e(p,{label:"\u53A8\u5E08",prop:"chef"},{default:t(()=>[e(r,{modelValue:a(s).chef,"onUpdate:modelValue":l[8]||(l[8]=u=>a(s).chef=u),type:"input"},null,8,["modelValue"])]),_:1})]),_:1}),e(_,{span:4},{default:t(()=>[e(p,{label:"\u7535\u8BDD",prop:"chef_phone"},{default:t(()=>[e(r,{modelValue:a(s).chef_phone,"onUpdate:modelValue":l[9]||(l[9]=u=>a(s).chef_phone=u),type:"input"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(y,null,{default:t(()=>[e(_,{span:12},{default:t(()=>[e(p,{label:"\u5907\u6CE8",prop:"purpose"},{default:t(()=>[e(r,{modelValue:a(s).purpose,"onUpdate:modelValue":l[10]||(l[10]=u=>a(s).purpose=u),type:"input",style:{width:"480px"}},null,8,["modelValue"])]),_:1})]),_:1}),e(_,{span:12},{default:t(()=>[e(p,{label:"\u5185\u90E8\u5907\u6CE8",prop:"mark"},{default:t(()=>[e(r,{modelValue:a(s).mark,"onUpdate:modelValue":l[11]||(l[11]=u=>a(s).mark=u),type:"input",style:{width:"480px"}},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(y,null,{default:t(()=>[e(_,{span:4},{default:t(()=>[e(p,{label:"\u5206\u5355\u5458",prop:"splitting_officer"},{default:t(()=>[e(r,{modelValue:a(s).splitting_officer,"onUpdate:modelValue":l[12]||(l[12]=u=>a(s).splitting_officer=u),type:"input"},null,8,["modelValue"])]),_:1})]),_:1}),e(_,{span:4},{default:t(()=>[e(p,{label:"\u8DDF\u5355\u5458",prop:"merchandiser"},{default:t(()=>[e(r,{modelValue:a(s).merchandiser,"onUpdate:modelValue":l[13]||(l[13]=u=>a(s).merchandiser=u),type:"input"},null,8,["modelValue"])]),_:1})]),_:1}),e(_,{span:4},{default:t(()=>[e(p,{label:"\u4ED3\u7BA1\u5458",prop:"distribution_personnel"},{default:t(()=>[e(r,{modelValue:a(s).distribution_personnel,"onUpdate:modelValue":l[14]||(l[14]=u=>a(s).distribution_personnel=u),type:"input"},null,8,["modelValue"])]),_:1})]),_:1}),e(_,{span:4},{default:t(()=>[e(p,{label:"\u8FD0\u8F93\u5458",prop:"transporter"},{default:t(()=>[e(r,{modelValue:a(s).transporter,"onUpdate:modelValue":l[15]||(l[15]=u=>a(s).transporter=u),type:"input"},null,8,["modelValue"])]),_:1})]),_:1}),e(_,{span:4},{default:t(()=>[e(p,{label:"\u95E8\u5E97\u5458",prop:"system_store_name"},{default:t(()=>[e(r,{modelValue:a(s).system_store_name,"onUpdate:modelValue":l[16]||(l[16]=u=>a(s).system_store_name=u),type:"input"},null,8,["modelValue"])]),_:1})]),_:1}),e(_,{span:4},{default:t(()=>[e(p,{label:"\u533A\u57DF\u7ECF\u7406",prop:"regional_manager"},{default:t(()=>[e(r,{modelValue:a(s).regional_manager,"onUpdate:modelValue":l[17]||(l[17]=u=>a(s).regional_manager=u),type:"input"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(p,{label:"\u5546\u54C1",prop:"product_id",class:"w-full"},{default:t(()=>[D("div",Ye,[D("div",Oe,[e(O,{type:"primary",onClick:l[18]||(l[18]=u=>b.value=!0)},{default:t(()=>l[26]||(l[26]=[c("\u6DFB\u52A0\u5546\u54C1")])),_:1})]),e(W,{data:a(g)},{default:t(()=>[e(m,{label:"\u5546\u54C1ID",prop:"id","show-overflow-tooltip":""},{default:t(({row:u,$index:d})=>[e(r,{modelValue:u.id,"onUpdate:modelValue":o=>u.id=o,onKeydown:M(o=>I(u),["enter"]),ref:o=>a(i)[d+"id"]=o,onKeyup:o=>V(o,d,"id")},null,8,["modelValue","onUpdate:modelValue","onKeydown","onKeyup"])]),_:1}),e(m,{label:"\u5546\u54C1\u56FE\u7247",prop:"image","min-width":"80"},{default:t(({row:u})=>[e(H,{style:{width:"50px",height:"50px"},src:u.image,"preview-teleported":!0},null,8,["src"])]),_:1}),e(m,{label:"\u5546\u54C1\u540D\u79F0",prop:"store_name","show-overflow-tooltip":""},{default:t(({row:u,$index:d})=>[e(r,{modelValue:u.store_name,"onUpdate:modelValue":o=>u.store_name=o,onKeydown:M(o=>N(u),["enter"]),ref:o=>a(i)[d+"store_name"]=o,onKeyup:o=>V(o,d,"store_name")},null,8,["modelValue","onUpdate:modelValue","onKeydown","onKeyup"])]),_:1}),e(m,{label:"\u6570\u91CF"},{default:t(({row:u,$index:d})=>[e(r,{modelValue:u.nums,"onUpdate:modelValue":o=>u.nums=o,onChange:o=>x(u),ref:o=>a(i)[d+"nums"]=o,onKeyup:o=>V(o,d,"nums")},null,8,["modelValue","onUpdate:modelValue","onChange","onKeyup"])]),_:1}),e(m,{label:"\u4EF7\u683C"},{default:t(({row:u})=>[e(r,{modelValue:u.price,"onUpdate:modelValue":d=>u.price=d,disabled:""},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),e(m,{label:"\u603B\u4EF7"},{default:t(({row:u})=>[e(r,{modelValue:u.total_price,"onUpdate:modelValue":d=>u.total_price=d,disabled:""},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),e(m,{label:"\u578B\u53F7"},{default:t(({row:u,$index:d})=>[e(r,{modelValue:u.marques,"onUpdate:modelValue":o=>u.marques=o,ref:o=>a(i)[d+"marques"]=o,onKeyup:o=>V(o,d,"marques")},null,8,["modelValue","onUpdate:modelValue","onKeyup"])]),_:1}),e(m,{label:"\u5305\u88C5"},{default:t(({row:u,$index:d})=>[e(r,{modelValue:u.package,"onUpdate:modelValue":o=>u.package=o,ref:o=>a(i)[d+"package"]=o,onKeyup:o=>V(o,d,"package")},null,8,["modelValue","onUpdate:modelValue","onKeyup"])]),_:1}),e(m,{label:"\u5355\u4F4D",prop:"unit_name","min-width":"80","show-overflow-tooltip":""}),e(m,{label:"\u6BDB\u91CD"},{default:t(({row:u,$index:d})=>[e(r,{modelValue:u.gross_weight,"onUpdate:modelValue":o=>u.gross_weight=o,ref:o=>a(i)[d+"gross_weight"]=o,onKeyup:o=>V(o,d,"gross_weight")},null,8,["modelValue","onUpdate:modelValue","onKeyup"])]),_:1}),e(m,{label:"\u51C0\u91CD"},{default:t(({row:u,$index:d})=>[e(r,{modelValue:u.net_weight,"onUpdate:modelValue":o=>u.net_weight=o,ref:o=>a(i)[d+"net_weight"]=o,onKeyup:o=>V(o,d,"net_weight")},null,8,["modelValue","onUpdate:modelValue","onKeyup"])]),_:1}),e(m,{label:"\u89C4\u683C"},{default:t(({row:u,$index:d})=>[e(r,{modelValue:u.store_info,"onUpdate:modelValue":o=>u.store_info=o,ref:o=>a(i)[d+"store_info"]=o,onKeyup:o=>V(o,d,"store_info")},null,8,["modelValue","onUpdate:modelValue","onKeyup"])]),_:1}),e(m,{label:"\u552E\u540E"},{default:t(({row:u,$index:d})=>[e(r,{modelValue:u.after_sales,"onUpdate:modelValue":o=>u.after_sales=o,ref:o=>a(i)[d+"after_sales"]=o,onKeyup:o=>V(o,d,"after_sales")},null,8,["modelValue","onUpdate:modelValue","onKeyup"])]),_:1}),e(m,{label:"\u635F\u8017"},{default:t(({row:u,$index:d})=>[e(r,{modelValue:u.loss,"onUpdate:modelValue":o=>u.loss=o,ref:o=>a(i)[d+"loss"]=o,onKeyup:o=>V(o,d,"loss")},null,8,["modelValue","onUpdate:modelValue","onKeyup"])]),_:1}),e(m,{label:"\u5907\u6CE8"},{default:t(({row:u,$index:d})=>[e(r,{modelValue:u.mark,"onUpdate:modelValue":o=>u.mark=o,ref:o=>a(i)[d+"mark"]=o,onKeyup:o=>V(o,d,"mark")},null,8,["modelValue","onUpdate:modelValue","onKeyup"])]),_:1}),e(m,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:t(({row:u})=>[e(O,{type:"danger",link:"",onClick:d=>L(u.id)},{default:t(()=>l[27]||(l[27]=[c(" \u5220\u9664 ")])),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])])]),_:1}),e(y,null,{default:t(()=>[e(O,{onClick:C,type:"primary",class:"w-40 ml-20"},{default:t(()=>l[28]||(l[28]=[c("\u63D0\u4EA4")])),_:1}),e(p,{label:"\u603B\u4EF7",prop:"total_price"},{default:t(()=>[D("div",null,[c(De(a(s).total_price)+" ",1),l[29]||(l[29]=D("span",{class:"ml-4"},"\u8BE5\u91D1\u989D\u53EA\u505A\u524D\u53F0\u5C55\u793A,\u540E\u53F0\u4F1A\u4ECE\u65B0\u8BA1\u7B97",-1))])]),_:1})]),_:1})]),_:1},8,["model","rules"])]),e(J,{modelValue:a(b),"onUpdate:modelValue":l[19]||(l[19]=u=>j(b)?b.value=u:null),title:"\u9009\u62E9\u5546\u54C1",width:"70%"},{default:t(()=>[e(ie,{onOnBindStore:R})]),_:1},8,["modelValue"])]),_:1}),e(J,{modelValue:a(w),"onUpdate:modelValue":l[20]||(l[20]=u=>j(w)?w.value=u:null),title:"\u9009\u62E9\u5546\u54C1",width:"1200"},{default:t(()=>[e(W,{data:a(U),onCurrentChange:F,height:300},{default:t(()=>[e(m,{label:"\u5546\u54C1ID",prop:"id","show-overflow-tooltip":""}),e(m,{label:"\u5546\u54C1\u56FE\u7247",prop:"image","min-width":"80"},{default:t(({row:u})=>[e(H,{style:{width:"50px",height:"50px"},src:u.image,"preview-teleported":!0},null,8,["src"])]),_:1}),e(m,{label:"\u5546\u54C1\u540D\u79F0",prop:"store_name","min-width":"200","show-overflow-tooltip":""}),e(m,{label:"\u5206\u7C7B",prop:"cate_name","min-width":"120","show-overflow-tooltip":""}),e(m,{label:"\u5355\u4F4D",prop:"unit_name","min-width":"80","show-overflow-tooltip":""}),e(m,{label:"\u5546\u54C1\u4EF7\u683C",prop:"price","min-width":"100","show-overflow-tooltip":""}),e(m,{label:"\u4ED3\u5E93\u5E93\u5B58",prop:"stock","min-width":"100","show-overflow-tooltip":""})]),_:1},8,["data"])]),_:1},8,["modelValue"])],64)}}});export{ll as default};