import{k as Ce,C as se,D as de,w as ie,F as pe,M as me,b as _e,N as fe,O as De,S as he,T as ve,G as Be,H as Ue,U as ke,J as Ke,K as Ae,v as qe,I as Ie,L as Se}from"./element-plus.91c68cc0.js";import{_ as Pe}from"./index.vue_vue_type_script_setup_true_lang.863ae816.js";import{d as x,Z as T,r as y,o as h,c as P,U as e,L as t,u as a,aa as J,R as c,M as Le,a as K,j as Z,s as Re,T as H,a9 as re,K as G,S as Te,n as R}from"./@vue.76ce7aa3.js";import{u as xe}from"./usePaging.f8c888e4.js";import{u as Me}from"./useDictOptions.8c96604e.js";import{a as ge,b as Ne}from"./store_product.809eb5bd.js";import{a as Oe}from"./vue-router.10bd5b90.js";import{a as Ye}from"./beforehand_order.41fdb68a.js";import{a as $e}from"./system_store.031ca026.js";import{f as ne,h as je}from"./index.b1b01f62.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.9ffef7f8.js";import"./@element-plus.73235148.js";import"./dayjs.0112e2c7.js";import"./@babel.80d29b7b.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./lodash.905d29aa.js";import"./axios.74873e41.js";import"./jspdf.9e946b0e.js";import"./fflate.0418c72f.js";import"./pinia.f3529286.js";import"./css-color-function.5dec0992.js";import"./color.f3e3a53f.js";import"./clone.8eedf8fa.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.8d65305c.js";const ze={class:"mt-4"},He={class:"flex mt-4 justify-end"},Ge=x({name:"systemStoreLists"}),Je=x({...Ge,props:{userId:Number},emits:["onBindStore"],setup(Q,{emit:W}){const r=T({store_name:"",product_type:0,is_warehouse:1,user_id:Q.userId}),L=y([]);y();const q=B=>{L.value=B.map(({id:g})=>g)};Me("");const v=()=>{I()},{pager:V,getLists:I,resetParams:M,resetPage:N}=xe({fetchFun:ge,params:r});I();const O=W,Y=()=>{const B=V.lists.filter(g=>L.value.includes(g.id));if(!B.length)return Ce.error("\u8BF7\u5148\u9009\u62E9\u5546\u54C1");O("onBindStore",B)};return(B,g)=>{const S=se,C=de,U=ie,$=pe,E=me,d=_e,F=fe,j=Pe,A=De;return h(),P("div",null,[e($,{class:"mb-[-16px]",model:a(r),inline:""},{default:t(()=>[e(C,{label:"\u5546\u54C1\u540D\u79F0",prop:"store_name"},{default:t(()=>[e(S,{class:"w-[200px]",modelValue:a(r).store_name,"onUpdate:modelValue":g[0]||(g[0]=w=>a(r).store_name=w),onKeydown:g[1]||(g[1]=J(w=>v(),["enter"])),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u54C1\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(C,null,{default:t(()=>[e(U,{type:"primary",onClick:a(N)},{default:t(()=>g[3]||(g[3]=[c("\u67E5\u8BE2")])),_:1},8,["onClick"]),e(U,{onClick:a(M)},{default:t(()=>g[4]||(g[4]=[c("\u91CD\u7F6E")])),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"]),Le((h(),P("div",ze,[e(F,{data:a(V).lists,onSelectionChange:q,height:300},{default:t(()=>[e(E,{type:"selection",width:"55"}),e(E,{label:"\u5546\u54C1ID",prop:"id","show-overflow-tooltip":""}),e(E,{label:"\u5546\u54C1\u56FE\u7247",prop:"image","min-width":"80"},{default:t(({row:w})=>[e(d,{style:{width:"50px",height:"50px"},src:w.image,"preview-teleported":!0},null,8,["src"])]),_:1}),e(E,{label:"\u5546\u54C1\u540D\u79F0",prop:"store_name","min-width":"200","show-overflow-tooltip":""}),e(E,{label:"\u5206\u7C7B",prop:"cate_name","min-width":"120","show-overflow-tooltip":""}),e(E,{label:"\u5355\u4F4D",prop:"unit_name","min-width":"80","show-overflow-tooltip":""}),e(E,{label:"\u5546\u54C1\u4EF7\u683C",prop:"price","min-width":"100","show-overflow-tooltip":""}),e(E,{label:"\u4ED3\u5E93\u5E93\u5B58",prop:"stock","min-width":"100","show-overflow-tooltip":""})]),_:1},8,["data"])])),[[A,a(V).loading]]),K("div",He,[e(j,{modelValue:a(V),"onUpdate:modelValue":g[2]||(g[2]=w=>Z(V)?V.value=w:null),onChange:a(I)},null,8,["modelValue","onChange"])]),e(U,{class:"w-full mt-4",type:"primary",onClick:Y},{default:t(()=>g[5]||(g[5]=[c("\u6DFB\u52A0\u5546\u54C1")])),_:1})])}}}),Ze={class:"flex-1 w-full"},Qe={class:"mb-2"},We=x({name:"storeProductEdit"}),xu=x({...We,props:{dictData:{type:Object,default:()=>({})}},emits:["success","close"],setup(Q,{emit:W}){const X=Re(),r=T({warehouse_id:"",is_buyer:-1,supplier_id:"",code:"",total_price:0,order_type:1,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:"",uid:""}),L=async n=>{const u=await Ne({id:n.id});q(n,u)},q=(n,u)=>{n.id=u.id,n.image=u.image,n.marques=u.marques,n.store_info=u.store_info,n.price=u.price,n.purchase=u.purchase,n.after_sales=u.after_sales,n.loss=u.loss,n.unit=u.unit,n.store_name=u.store_name,n.unit_name=u.unit_name,n.gross_weight=u.gross_weight,n.net_weight=u.net_weight,n.package=u.package;const _=[];V.value.forEach(b=>{_.push(b.id)}),_.includes(0)==!1&&V.value.push({id:0})},v=y(!1),V=y([{id:0}]),I=n=>{V.value=V.value.filter(u=>u.id!==n)},M=n=>{n.forEach(u=>{V.value.find(_=>_.id==u.id)||V.value.push(u)}),v.value=!1};function N(n){n.total_price=(n.nums*n.price).toFixed(2),n.total_price>0&&(r.total_price=(parseFloat(r.total_price)+parseFloat(n.total_price)).toFixed(2))}function O(n){r.order_type==7||r.order_type==5?r.is_buyer=1:r.is_buyer=-1}const Y=Oe(),B=async()=>{const n=V.value.map(u=>({product_id:u.id,nums:u.nums,price:u.price||0,purchase:u.purchase||0,total_price:u.total_price||0,marques:u.marques,store_info:u.store_info,after_sales:u.after_sales,loss:u.loss,unit:u.unit,gross_weight:u.gross_weight,net_weight:u.net_weight,package:u.package,mark:u.mark}));Ye({product_arr:n,...r}).then(u=>{setTimeout(()=>{Y.push({path:"/order/beforehand_order"})},2e3)})},g=y([]);$e({page_no:1,page_size:100}).then(n=>{g.value=n.lists});const S=y([]),C=y(!1),U=y(),$=n=>{if(r.uid==""){ne.alertError("\u8BF7\u5148\u9009\u62E9\u7528\u6237");return}ge({store_name:n.store_name,product_type:0,is_warehouse:1,user_id:r.uid}).then(u=>{if(u.count==1){const _=u.lists[0];q(n,_)}u.count>1&&(S.value=u.lists,C.value=!0,U.value=n)})},E=n=>{n!=null&&(q(U.value,n),C.value=!1,S.value=[],U.value=[])},d=T({}),F=(n,u,_)=>{const b=["id","store_name","nums","marques","gross_weight","net_weight","store_info","after_sales","loss","package","mark"];if(n.keyCode===38){if(u===0)return;d[u+_].blur(),R(()=>{d[u-1+_].focus()})}if(n.keyCode===40){if(u===V.value.length-1)return;d[u+_].blur(),R(()=>{d[u+1+_].focus()})}if(n.keyCode===37){if(u===0&&_===b[0])return;if(d[u+_].blur(),_===b[0])d[u-1+b[b.length-1]].focus();else{const i=b.findIndex(f=>f===_)-1;R(()=>{d[u+b[i]].focus()})}}if(n.keyCode===39){if(u===V.value.length-1&&_===b[b.length-1])return;if(d[u+_].blur(),_===b[b.length-1])d[u+1+b[0]].focus();else{const i=b.findIndex(f=>f===_)+1;R(()=>{d[u+b[i]].focus()})}}},j=T({uid:[{required:!0,message:"\u8BF7\u8F93\u5165\u91C7\u8D2D\u7528\u6237",trigger:["blur"]}],store_id:[{required:!0,message:"\u8BF7\u9009\u62E9\u95E8\u5E97",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"]}]}),A=y(!1),w=y([]),be=(n="")=>{A.value=!0,je({nickname:n,page_size:10}).then(u=>{w.value=u.lists,setTimeout(()=>{A.value=!1},300)}).catch(u=>{setTimeout(()=>{A.value=!1},300)})},Ve=()=>{if(r.uid==""){ne.alertError("\u8BF7\u5148\u9009\u62E9\u7528\u6237");return}v.value=!0},ee=y(0),ce=n=>{ee.value++};return(n,u)=>{const _=Ke,b=Ae,i=de,f=he,k=ve,D=Be,ue=Ue,Fe=ke,le=qe,p=se,z=ie,m=me,te=_e,oe=fe,ye=pe,Ee=Je,ae=Ie,we=Se;return h(),P(H,null,[e(we,null,{default:t(()=>[u[33]||(u[33]=K("div",{class:"mb-4 text-lg font-bold"},"\u9884\u5B9A\u5355\u6DFB\u52A0",-1)),K("div",null,[e(ye,{ref_key:"formRef",ref:X,model:a(r),"label-width":"90px",inline:!0,rules:a(j)},{default:t(()=>[e(k,null,{default:t(()=>[e(f,{span:4},{default:t(()=>[e(i,{label:"\u7528\u6237",prop:"nickname"},{default:t(()=>[e(b,{modelValue:a(r).uid,"onUpdate:modelValue":u[0]||(u[0]=l=>a(r).uid=l),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u7528\u6237\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":be,loading:a(A),style:{width:"220px"},onChange:ce},{default:t(()=>[(h(!0),P(H,null,re(a(w),l=>(h(),G(_,{key:l.id,label:`${l.real_name}|${l.mobile} (ID:${l.id})`,value:l.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading"])]),_:1})]),_:1})]),_:1}),e(k,null,{default:t(()=>[e(f,{span:12},{default:t(()=>[e(i,{label:"\u8BA2\u5355\u7C7B\u578B",prop:"order_type"},{default:t(()=>[e(ue,{modelValue:a(r).order_type,"onUpdate:modelValue":u[1]||(u[1]=l=>a(r).order_type=l),onChange:u[2]||(u[2]=l=>O())},{default:t(()=>[e(D,{label:1},{default:t(()=>u[21]||(u[21]=[c("\u94FA\u8D27\u8BA2\u5355")])),_:1}),e(D,{label:2},{default:t(()=>u[22]||(u[22]=[c("\u644A\u8D29\u8BA2\u5355")])),_:1}),e(D,{label:3},{default:t(()=>u[23]||(u[23]=[c("\u4E00\u6761\u9F99\u8BA2\u5355")])),_:1}),e(D,{label:5},{default:t(()=>u[24]||(u[24]=[c("\u4ED3\u5E93\u8865\u8D27")])),_:1}),e(D,{label:6},{default:t(()=>u[25]||(u[25]=[c("\u5F80\u671F\u8865\u5355")])),_:1}),e(D,{label:7},{default:t(()=>u[26]||(u[26]=[c("\u91C7\u8D2D\u5355")])),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(f,{span:12},{default:t(()=>[e(i,{label:"\u95E8\u5E97",prop:"store_id",style:{width:"300px"}},{default:t(()=>[e(b,{modelValue:a(r).store_id,"onUpdate:modelValue":u[3]||(u[3]=l=>a(r).store_id=l),placeholder:"\u8BF7\u9009\u62E9\u95E8\u5E97",size:"large"},{default:t(()=>[(h(!0),P(H,null,re(a(g),l=>(h(),G(_,{key:l.id,label:l.name,value:l.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(k,null,{default:t(()=>[e(f,{span:12},{default:t(()=>[e(i,{label:"\u4E00\u952E\u4E0D\u91C7\u8D2D",prop:"is_buyer"},{default:t(()=>[e(ue,{modelValue:a(r).is_buyer,"onUpdate:modelValue":u[4]||(u[4]=l=>a(r).is_buyer=l)},{default:t(()=>[e(D,{label:1},{default:t(()=>u[27]||(u[27]=[c("\u91C7\u8D2D")])),_:1}),e(D,{label:-1},{default:t(()=>u[28]||(u[28]=[c("\u4E0D\u91C7\u8D2D")])),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(k,null,{default:t(()=>[e(f,{span:4},{default:t(()=>[e(i,{label:"\u5230\u8D27\u65F6\u95F4",prop:"arrival_time"},{default:t(()=>[e(Fe,{modelValue:a(r).arrival_time,"onUpdate:modelValue":u[5]||(u[5]=l=>a(r).arrival_time=l),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(f,{span:4},{default:t(()=>[e(i,{label:"\u684C\u6570",prop:"tables"},{default:t(()=>[e(le,{modelValue:a(r).tables,"onUpdate:modelValue":u[6]||(u[6]=l=>a(r).tables=l),type:"input"},null,8,["modelValue"])]),_:1})]),_:1}),e(f,{span:4},{default:t(()=>[e(i,{label:"\u529E\u4E8B\u5929\u6570",prop:"days"},{default:t(()=>[e(le,{modelValue:a(r).days,"onUpdate:modelValue":u[7]||(u[7]=l=>a(r).days=l),type:"input"},null,8,["modelValue"])]),_:1})]),_:1}),e(f,{span:4},{default:t(()=>[e(i,{label:"\u53A8\u5E08",prop:"chef"},{default:t(()=>[e(p,{modelValue:a(r).chef,"onUpdate:modelValue":u[8]||(u[8]=l=>a(r).chef=l),type:"input"},null,8,["modelValue"])]),_:1})]),_:1}),e(f,{span:4},{default:t(()=>[e(i,{label:"\u7535\u8BDD",prop:"chef_phone"},{default:t(()=>[e(p,{modelValue:a(r).chef_phone,"onUpdate:modelValue":u[9]||(u[9]=l=>a(r).chef_phone=l),type:"input"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(k,null,{default:t(()=>[e(f,{span:12},{default:t(()=>[e(i,{label:"\u5907\u6CE8",prop:"purpose"},{default:t(()=>[e(p,{modelValue:a(r).purpose,"onUpdate:modelValue":u[10]||(u[10]=l=>a(r).purpose=l),type:"input",style:{width:"480px"}},null,8,["modelValue"])]),_:1})]),_:1}),e(f,{span:12},{default:t(()=>[e(i,{label:"\u5185\u90E8\u5907\u6CE8",prop:"mark"},{default:t(()=>[e(p,{modelValue:a(r).mark,"onUpdate:modelValue":u[11]||(u[11]=l=>a(r).mark=l),type:"input",style:{width:"480px"}},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(k,null,{default:t(()=>[e(f,{span:4},{default:t(()=>[e(i,{label:"\u5206\u5355\u5458",prop:"splitting_officer"},{default:t(()=>[e(p,{modelValue:a(r).splitting_officer,"onUpdate:modelValue":u[12]||(u[12]=l=>a(r).splitting_officer=l),type:"input"},null,8,["modelValue"])]),_:1})]),_:1}),e(f,{span:4},{default:t(()=>[e(i,{label:"\u8DDF\u5355\u5458",prop:"merchandiser"},{default:t(()=>[e(p,{modelValue:a(r).merchandiser,"onUpdate:modelValue":u[13]||(u[13]=l=>a(r).merchandiser=l),type:"input"},null,8,["modelValue"])]),_:1})]),_:1}),e(f,{span:4},{default:t(()=>[e(i,{label:"\u4ED3\u7BA1\u5458",prop:"distribution_personnel"},{default:t(()=>[e(p,{modelValue:a(r).distribution_personnel,"onUpdate:modelValue":u[14]||(u[14]=l=>a(r).distribution_personnel=l),type:"input"},null,8,["modelValue"])]),_:1})]),_:1}),e(f,{span:4},{default:t(()=>[e(i,{label:"\u8FD0\u8F93\u5458",prop:"transporter"},{default:t(()=>[e(p,{modelValue:a(r).transporter,"onUpdate:modelValue":u[15]||(u[15]=l=>a(r).transporter=l),type:"input"},null,8,["modelValue"])]),_:1})]),_:1}),e(f,{span:4},{default:t(()=>[e(i,{label:"\u95E8\u5E97\u5458",prop:"system_store_name"},{default:t(()=>[e(p,{modelValue:a(r).system_store_name,"onUpdate:modelValue":u[16]||(u[16]=l=>a(r).system_store_name=l),type:"input"},null,8,["modelValue"])]),_:1})]),_:1}),e(f,{span:4},{default:t(()=>[e(i,{label:"\u533A\u57DF\u7ECF\u7406",prop:"regional_manager"},{default:t(()=>[e(p,{modelValue:a(r).regional_manager,"onUpdate:modelValue":u[17]||(u[17]=l=>a(r).regional_manager=l),type:"input"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(i,{label:"\u5546\u54C1",prop:"product_id",class:"w-full"},{default:t(()=>[K("div",Ze,[K("div",Qe,[e(z,{type:"primary",onClick:u[18]||(u[18]=l=>Ve())},{default:t(()=>u[29]||(u[29]=[c("\u6DFB\u52A0\u5546\u54C1")])),_:1})]),e(oe,{data:a(V)},{default:t(()=>[e(m,{label:"\u5546\u54C1ID",prop:"id","show-overflow-tooltip":""},{default:t(({row:l,$index:s})=>[e(p,{modelValue:l.id,"onUpdate:modelValue":o=>l.id=o,onKeydown:J(o=>L(l),["enter"]),ref:o=>a(d)[s+"id"]=o,onKeyup:o=>F(o,s,"id")},null,8,["modelValue","onUpdate:modelValue","onKeydown","onKeyup"])]),_:1}),e(m,{label:"\u5546\u54C1\u56FE\u7247",prop:"image","min-width":"80"},{default:t(({row:l})=>[e(te,{style:{width:"50px",height:"50px"},src:l.image,"preview-teleported":!0},null,8,["src"])]),_:1}),e(m,{label:"\u5546\u54C1\u540D\u79F0",prop:"store_name","show-overflow-tooltip":""},{default:t(({row:l,$index:s})=>[e(p,{modelValue:l.store_name,"onUpdate:modelValue":o=>l.store_name=o,onKeydown:J(o=>$(l),["enter"]),ref:o=>a(d)[s+"store_name"]=o,onKeyup:o=>F(o,s,"store_name")},null,8,["modelValue","onUpdate:modelValue","onKeydown","onKeyup"])]),_:1}),e(m,{label:"\u6570\u91CF"},{default:t(({row:l,$index:s})=>[e(p,{modelValue:l.nums,"onUpdate:modelValue":o=>l.nums=o,onChange:o=>N(l),ref:o=>a(d)[s+"nums"]=o,onKeyup:o=>F(o,s,"nums")},null,8,["modelValue","onUpdate:modelValue","onChange","onKeyup"])]),_:1}),e(m,{label:"\u4EF7\u683C"},{default:t(({row:l})=>[e(p,{modelValue:l.price,"onUpdate:modelValue":s=>l.price=s,disabled:""},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),e(m,{label:"\u603B\u4EF7"},{default:t(({row:l})=>[e(p,{modelValue:l.total_price,"onUpdate:modelValue":s=>l.total_price=s,disabled:""},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),e(m,{label:"\u578B\u53F7"},{default:t(({row:l,$index:s})=>[e(p,{modelValue:l.marques,"onUpdate:modelValue":o=>l.marques=o,ref:o=>a(d)[s+"marques"]=o,onKeyup:o=>F(o,s,"marques")},null,8,["modelValue","onUpdate:modelValue","onKeyup"])]),_:1}),e(m,{label:"\u5305\u88C5"},{default:t(({row:l,$index:s})=>[e(p,{modelValue:l.package,"onUpdate:modelValue":o=>l.package=o,ref:o=>a(d)[s+"package"]=o,onKeyup:o=>F(o,s,"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:l,$index:s})=>[e(p,{modelValue:l.gross_weight,"onUpdate:modelValue":o=>l.gross_weight=o,ref:o=>a(d)[s+"gross_weight"]=o,onKeyup:o=>F(o,s,"gross_weight")},null,8,["modelValue","onUpdate:modelValue","onKeyup"])]),_:1}),e(m,{label:"\u51C0\u91CD"},{default:t(({row:l,$index:s})=>[e(p,{modelValue:l.net_weight,"onUpdate:modelValue":o=>l.net_weight=o,ref:o=>a(d)[s+"net_weight"]=o,onKeyup:o=>F(o,s,"net_weight")},null,8,["modelValue","onUpdate:modelValue","onKeyup"])]),_:1}),e(m,{label:"\u89C4\u683C"},{default:t(({row:l,$index:s})=>[e(p,{modelValue:l.store_info,"onUpdate:modelValue":o=>l.store_info=o,ref:o=>a(d)[s+"store_info"]=o,onKeyup:o=>F(o,s,"store_info")},null,8,["modelValue","onUpdate:modelValue","onKeyup"])]),_:1}),e(m,{label:"\u552E\u540E"},{default:t(({row:l,$index:s})=>[e(p,{modelValue:l.after_sales,"onUpdate:modelValue":o=>l.after_sales=o,ref:o=>a(d)[s+"after_sales"]=o,onKeyup:o=>F(o,s,"after_sales")},null,8,["modelValue","onUpdate:modelValue","onKeyup"])]),_:1}),e(m,{label:"\u635F\u8017"},{default:t(({row:l,$index:s})=>[e(p,{modelValue:l.loss,"onUpdate:modelValue":o=>l.loss=o,ref:o=>a(d)[s+"loss"]=o,onKeyup:o=>F(o,s,"loss")},null,8,["modelValue","onUpdate:modelValue","onKeyup"])]),_:1}),e(m,{label:"\u5907\u6CE8"},{default:t(({row:l,$index:s})=>[e(p,{modelValue:l.mark,"onUpdate:modelValue":o=>l.mark=o,ref:o=>a(d)[s+"mark"]=o,onKeyup:o=>F(o,s,"mark")},null,8,["modelValue","onUpdate:modelValue","onKeyup"])]),_:1}),e(m,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:t(({row:l})=>[e(z,{type:"danger",link:"",onClick:s=>I(l.id)},{default:t(()=>u[30]||(u[30]=[c(" \u5220\u9664 ")])),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])])]),_:1}),e(k,null,{default:t(()=>[e(z,{onClick:B,type:"primary",class:"w-40 ml-20"},{default:t(()=>u[31]||(u[31]=[c("\u63D0\u4EA4")])),_:1}),e(i,{label:"\u603B\u4EF7",prop:"total_price"},{default:t(()=>[K("div",null,[c(Te(a(r).total_price)+" ",1),u[32]||(u[32]=K("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(ae,{modelValue:a(v),"onUpdate:modelValue":u[19]||(u[19]=l=>Z(v)?v.value=l:null),title:"\u9009\u62E9\u5546\u54C1",width:"70%"},{default:t(()=>[(h(),G(Ee,{key:a(ee),userId:a(r).uid,onOnBindStore:M},null,8,["userId"]))]),_:1},8,["modelValue"])]),_:1}),e(ae,{modelValue:a(C),"onUpdate:modelValue":u[20]||(u[20]=l=>Z(C)?C.value=l:null),title:"\u9009\u62E9\u5546\u54C1",width:"1200"},{default:t(()=>[e(oe,{data:a(S),onCurrentChange:E,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:l})=>[e(te,{style:{width:"50px",height:"50px"},src:l.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{xu as default};