import{k as _e,C as W,D as X,w as $,F as ee,M as le,b as ue,N as oe,O as fe,S as ce,T as ge,G as Ve,H as be,U as he,J as Fe,K as ye,v as we,I as Ee,L as Ce}from"./element-plus.7e347b00.js";import{_ as De}from"./index.vue_vue_type_script_setup_true_lang.af250dfd.js";import{d as P,Z as q,r as w,o as K,c as S,U as e,L as o,u as a,aa as Y,R as b,M as ve,a as D,j,s as Be,T as Q,a9 as Ue,K as ke,S as Ke,n as A}from"./@vue.18505fe0.js";import{u as Ae}from"./usePaging.6a6670f9.js";import{u as qe}from"./useDictOptions.7ca96b18.js";import{a as te,b as Se}from"./store_product.4a63dac3.js";import{a as Pe}from"./vue-router.101084e3.js";import{a as Ie}from"./beforehand_order.202dd857.js";import{a as Le}from"./system_store.ea3e5c4d.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.0112e2c7.js";import"./@babel.80d29b7b.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./index.390c2a09.js";import"./lodash.4e6d2a38.js";import"./axios.cffda5ac.js";import"./jspdf.6c61b9d3.js";import"./fflate.0418c72f.js";import"./pinia.a969beab.js";import"./css-color-function.bb8c34b2.js";import"./color.fbd63fe8.js";import"./clone.31a3aa2c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./ms.564e106c.js";import"./nprogress.b502f541.js";import"./vue-clipboard3.e775fc74.js";import"./clipboard.6417898a.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.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:H}){const v=q({store_name:"",product_type:0,is_warehouse:1}),s=w([]);w();const I=E=>{s.value=E.map(({id:c})=>c)};qe("");const B=()=>{f()},{pager:V,getLists:f,resetParams:L,resetPage:R}=Ae({fetchFun:te,params:v});f();const x=H,T=()=>{const E=V.lists.filter(c=>s.value.includes(c.id));if(!E.length)return _e.error("\u8BF7\u5148\u9009\u62E9\u5546\u54C1");x("onBindStore",E)};return(E,c)=>{const U=W,y=X,C=$,N=ee,h=le,i=ue,g=oe,M=De,n=fe;return K(),S("div",null,[e(N,{class:"mb-[-16px]",model:a(v),inline:""},{default:o(()=>[e(y,{label:"\u5546\u54C1\u540D\u79F0",prop:"store_name"},{default:o(()=>[e(U,{class:"w-[200px]",modelValue:a(v).store_name,"onUpdate:modelValue":c[0]||(c[0]=l=>a(v).store_name=l),onKeydown:c[1]||(c[1]=Y(l=>B(),["enter"])),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u54C1\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(y,null,{default:o(()=>[e(C,{type:"primary",onClick:a(R)},{default:o(()=>[b("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(C,{onClick:a(L)},{default:o(()=>[b("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"]),ve((K(),S("div",Re,[e(g,{data:a(V).lists,onSelectionChange:I,height:300},{default:o(()=>[e(h,{type:"selection",width:"55"}),e(h,{label:"\u5546\u54C1ID",prop:"id","show-overflow-tooltip":""}),e(h,{label:"\u5546\u54C1\u56FE\u7247",prop:"image","min-width":"80"},{default:o(({row:l})=>[e(i,{style:{width:"50px",height:"50px"},src:l.image,"preview-teleported":!0},null,8,["src"])]),_:1}),e(h,{label:"\u5546\u54C1\u540D\u79F0",prop:"store_name","min-width":"200","show-overflow-tooltip":""}),e(h,{label:"\u5206\u7C7B",prop:"cate_name","min-width":"120","show-overflow-tooltip":""}),e(h,{label:"\u5355\u4F4D",prop:"unit_name","min-width":"80","show-overflow-tooltip":""}),e(h,{label:"\u5546\u54C1\u4EF7\u683C",prop:"price","min-width":"100","show-overflow-tooltip":""}),e(h,{label:"\u4ED3\u5E93\u5E93\u5B58",prop:"stock","min-width":"100","show-overflow-tooltip":""})]),_:1},8,["data"])])),[[n,a(V).loading]]),D("div",xe,[e(M,{modelValue:a(V),"onUpdate:modelValue":c[2]||(c[2]=l=>j(V)?V.value=l:null),onChange:a(f)},null,8,["modelValue","onChange"])]),e(C,{class:"w-full mt-4",type:"primary",onClick:T},{default:o(()=>[b("\u6DFB\u52A0\u5546\u54C1")]),_:1})])}}}),Me=D("div",{class:"mb-4 text-lg font-bold"},"\u9884\u5B9A\u5355\u6DFB\u52A0",-1),Oe={class:"flex-1 w-full"},Ye={class:"mb-2"},je=D("span",{class:"ml-4"},"\u8BE5\u91D1\u989D\u53EA\u505A\u524D\u53F0\u5C55\u793A,\u540E\u53F0\u4F1A\u4ECE\u65B0\u8BA1\u7B97",-1),He=P({name:"storeProductEdit"}),ql=P({...He,props:{dictData:{type:Object,default:()=>({})}},emits:["success","close"],setup(ae,{emit:H}){const v=Be(),s=q({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 Se({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=[];f.value.forEach(p=>{r.push(p.id)}),r.includes(0)==!1&&f.value.push({id:0})},V=w(!1),f=w([{id:0}]),L=n=>{f.value=f.value.filter(l=>l.id!==n)},R=n=>{n.forEach(l=>{f.value.find(r=>r.id==l.id)||f.value.push(l)}),V.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=Pe(),E=async()=>{const n=f.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)})},c=w([]);Le({page_no:1,page_size:100}).then(n=>{c.value=n.lists});const U=w([]),y=w(!1),C=w(),N=n=>{te({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,y.value=!0,C.value=n)})},h=n=>{n!=null&&(B(C.value,n),y.value=!1,U.value=[],C.value=[])},i=q({}),g=(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(),A(()=>{i[l-1+r].focus()})}if(n.keyCode===40){if(l===f.value.length-1)return;i[l+r].blur(),A(()=>{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(F=>F===r)-1;A(()=>{i[l+p[_]].focus()})}}if(n.keyCode===39){if(l===f.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(F=>F===r)+1;A(()=>{i[l+p[_]].focus()})}}},M=q({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=W,p=X,_=ce,F=ge,k=Ve,ne=be,re=Fe,se=ye,de=he,z=we,O=$,m=le,G=ue,J=oe,pe=ee,ie=Ne,Z=Ee,me=Ce;return K(),S(Q,null,[e(me,null,{default:o(()=>[Me,D("div",null,[e(pe,{ref_key:"formRef",ref:v,model:a(s),"label-width":"90px",inline:!0,rules:a(M)},{default:o(()=>[e(F,null,{default:o(()=>[e(_,{span:4},{default:o(()=>[e(p,{label:"\u7528\u6237",prop:"nickname"},{default:o(()=>[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:o(()=>[e(p,{label:"\u7535\u8BDD",prop:"phone"},{default:o(()=>[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:o(()=>[e(p,{label:"\u5730\u5740",prop:"address"},{default:o(()=>[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(F,null,{default:o(()=>[e(_,{span:12},{default:o(()=>[e(p,{label:"\u8BA2\u5355\u7C7B\u578B",prop:"order_type"},{default:o(()=>[e(ne,{modelValue:a(s).order_type,"onUpdate:modelValue":l[3]||(l[3]=u=>a(s).order_type=u)},{default:o(()=>[e(k,{label:1},{default:o(()=>[b("\u94FA\u8D27\u8BA2\u5355")]),_:1}),e(k,{label:2},{default:o(()=>[b("\u644A\u8D29\u8BA2\u5355")]),_:1}),e(k,{label:3},{default:o(()=>[b("\u4E00\u6761\u9F99\u8BA2\u5355")]),_:1}),e(k,{label:5},{default:o(()=>[b("\u4ED3\u5E93\u8865\u8D27")]),_:1}),e(k,{label:6},{default:o(()=>[b("\u5F80\u671F\u8865\u5355")]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(_,{span:12},{default:o(()=>[e(p,{label:"\u95E8\u5E97",prop:"store_id",style:{width:"300px"}},{default:o(()=>[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:o(()=>[(K(!0),S(Q,null,Ue(a(c),u=>(K(),ke(re,{key:u.id,label:u.name,value:u.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(F,null,{default:o(()=>[e(_,{span:4},{default:o(()=>[e(p,{label:"\u5230\u8D27\u65F6\u95F4",prop:"arrival_time"},{default:o(()=>[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:o(()=>[e(p,{label:"\u684C\u6570",prop:"tables"},{default:o(()=>[e(z,{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:o(()=>[e(p,{label:"\u529E\u4E8B\u5929\u6570",prop:"days"},{default:o(()=>[e(z,{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:o(()=>[e(p,{label:"\u53A8\u5E08",prop:"chef"},{default:o(()=>[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:o(()=>[e(p,{label:"\u7535\u8BDD",prop:"chef_phone"},{default:o(()=>[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(F,null,{default:o(()=>[e(_,{span:12},{default:o(()=>[e(p,{label:"\u5907\u6CE8",prop:"purpose"},{default:o(()=>[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:o(()=>[e(p,{label:"\u5185\u90E8\u5907\u6CE8",prop:"mark"},{default:o(()=>[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(F,null,{default:o(()=>[e(_,{span:4},{default:o(()=>[e(p,{label:"\u5206\u5355\u5458",prop:"splitting_officer"},{default:o(()=>[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:o(()=>[e(p,{label:"\u8DDF\u5355\u5458",prop:"merchandiser"},{default:o(()=>[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:o(()=>[e(p,{label:"\u4ED3\u7BA1\u5458",prop:"distribution_personnel"},{default:o(()=>[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:o(()=>[e(p,{label:"\u8FD0\u8F93\u5458",prop:"transporter"},{default:o(()=>[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:o(()=>[e(p,{label:"\u95E8\u5E97\u5458",prop:"system_store_name"},{default:o(()=>[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:o(()=>[e(p,{label:"\u533A\u57DF\u7ECF\u7406",prop:"regional_manager"},{default:o(()=>[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:o(()=>[D("div",Oe,[D("div",Ye,[e(O,{type:"primary",onClick:l[18]||(l[18]=u=>V.value=!0)},{default:o(()=>[b("\u6DFB\u52A0\u5546\u54C1")]),_:1})]),e(J,{data:a(f)},{default:o(()=>[e(m,{label:"\u5546\u54C1ID",prop:"id","show-overflow-tooltip":""},{default:o(({row:u,$index:d})=>[e(r,{modelValue:u.id,"onUpdate:modelValue":t=>u.id=t,onKeydown:Y(t=>I(u),["enter"]),ref:t=>a(i)[d+"id"]=t,onKeyup:t=>g(t,d,"id")},null,8,["modelValue","onUpdate:modelValue","onKeydown","onKeyup"])]),_:1}),e(m,{label:"\u5546\u54C1\u56FE\u7247",prop:"image","min-width":"80"},{default:o(({row:u})=>[e(G,{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:o(({row:u,$index:d})=>[e(r,{modelValue:u.store_name,"onUpdate:modelValue":t=>u.store_name=t,onKeydown:Y(t=>N(u),["enter"]),ref:t=>a(i)[d+"store_name"]=t,onKeyup:t=>g(t,d,"store_name")},null,8,["modelValue","onUpdate:modelValue","onKeydown","onKeyup"])]),_:1}),e(m,{label:"\u6570\u91CF"},{default:o(({row:u,$index:d})=>[e(r,{modelValue:u.nums,"onUpdate:modelValue":t=>u.nums=t,onChange:t=>x(u),ref:t=>a(i)[d+"nums"]=t,onKeyup:t=>g(t,d,"nums")},null,8,["modelValue","onUpdate:modelValue","onChange","onKeyup"])]),_:1}),e(m,{label:"\u4EF7\u683C"},{default:o(({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:o(({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:o(({row:u,$index:d})=>[e(r,{modelValue:u.marques,"onUpdate:modelValue":t=>u.marques=t,ref:t=>a(i)[d+"marques"]=t,onKeyup:t=>g(t,d,"marques")},null,8,["modelValue","onUpdate:modelValue","onKeyup"])]),_:1}),e(m,{label:"\u5305\u88C5"},{default:o(({row:u,$index:d})=>[e(r,{modelValue:u.package,"onUpdate:modelValue":t=>u.package=t,ref:t=>a(i)[d+"package"]=t,onKeyup:t=>g(t,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:o(({row:u,$index:d})=>[e(r,{modelValue:u.gross_weight,"onUpdate:modelValue":t=>u.gross_weight=t,ref:t=>a(i)[d+"gross_weight"]=t,onKeyup:t=>g(t,d,"gross_weight")},null,8,["modelValue","onUpdate:modelValue","onKeyup"])]),_:1}),e(m,{label:"\u51C0\u91CD"},{default:o(({row:u,$index:d})=>[e(r,{modelValue:u.net_weight,"onUpdate:modelValue":t=>u.net_weight=t,ref:t=>a(i)[d+"net_weight"]=t,onKeyup:t=>g(t,d,"net_weight")},null,8,["modelValue","onUpdate:modelValue","onKeyup"])]),_:1}),e(m,{label:"\u89C4\u683C"},{default:o(({row:u,$index:d})=>[e(r,{modelValue:u.store_info,"onUpdate:modelValue":t=>u.store_info=t,ref:t=>a(i)[d+"store_info"]=t,onKeyup:t=>g(t,d,"store_info")},null,8,["modelValue","onUpdate:modelValue","onKeyup"])]),_:1}),e(m,{label:"\u552E\u540E"},{default:o(({row:u,$index:d})=>[e(r,{modelValue:u.after_sales,"onUpdate:modelValue":t=>u.after_sales=t,ref:t=>a(i)[d+"after_sales"]=t,onKeyup:t=>g(t,d,"after_sales")},null,8,["modelValue","onUpdate:modelValue","onKeyup"])]),_:1}),e(m,{label:"\u635F\u8017"},{default:o(({row:u,$index:d})=>[e(r,{modelValue:u.loss,"onUpdate:modelValue":t=>u.loss=t,ref:t=>a(i)[d+"loss"]=t,onKeyup:t=>g(t,d,"loss")},null,8,["modelValue","onUpdate:modelValue","onKeyup"])]),_:1}),e(m,{label:"\u5907\u6CE8"},{default:o(({row:u,$index:d})=>[e(r,{modelValue:u.mark,"onUpdate:modelValue":t=>u.mark=t,ref:t=>a(i)[d+"mark"]=t,onKeyup:t=>g(t,d,"mark")},null,8,["modelValue","onUpdate:modelValue","onKeyup"])]),_:1}),e(m,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:o(({row:u})=>[e(O,{type:"danger",link:"",onClick:d=>L(u.id)},{default:o(()=>[b(" \u5220\u9664 ")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])])]),_:1}),e(F,null,{default:o(()=>[e(O,{onClick:E,type:"primary",class:"w-40 ml-20"},{default:o(()=>[b("\u63D0\u4EA4")]),_:1}),e(p,{label:"\u603B\u4EF7",prop:"total_price"},{default:o(()=>[D("div",null,[b(Ke(a(s).total_price)+" ",1),je])]),_:1})]),_:1})]),_:1},8,["model","rules"])]),e(Z,{modelValue:a(V),"onUpdate:modelValue":l[19]||(l[19]=u=>j(V)?V.value=u:null),title:"\u9009\u62E9\u5546\u54C1",width:"70%"},{default:o(()=>[e(ie,{onOnBindStore:R})]),_:1},8,["modelValue"])]),_:1}),e(Z,{modelValue:a(y),"onUpdate:modelValue":l[20]||(l[20]=u=>j(y)?y.value=u:null),title:"\u9009\u62E9\u5546\u54C1",width:"1200"},{default:o(()=>[e(J,{data:a(U),onCurrentChange:h,height:300},{default:o(()=>[e(m,{label:"\u5546\u54C1ID",prop:"id","show-overflow-tooltip":""}),e(m,{label:"\u5546\u54C1\u56FE\u7247",prop:"image","min-width":"80"},{default:o(({row:u})=>[e(G,{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{ql as default};