moreShopAdmin/dist/admin/assets/add.754ad1f4.js

2 lines
18 KiB
JavaScript

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