moreShopAdmin/dist/admin/assets/add.ce88a494.js

2 lines
20 KiB
JavaScript

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