2 lines
19 KiB
JavaScript
2 lines
19 KiB
JavaScript
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 ge,T as Ve,G as ce,H as be,U as Fe,J as ye,K as we,v as Ce,I as Ee,L as he}from"./element-plus.91c68cc0.js";import{_ as De}from"./index.vue_vue_type_script_setup_true_lang.863ae816.js";import{d as P,Z as q,r as C,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.76ce7aa3.js";import{u as Ae}from"./usePaging.f8c888e4.js";import{u as qe}from"./useDictOptions.9fa317eb.js";import{a as te,b as Se}from"./store_product.03596167.js";import{a as Pe}from"./vue-router.10bd5b90.js";import{a as Ie}from"./beforehand_order.4d6038c2.js";import{a as Le}from"./system_store.c25e9809.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.27d7bb66.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 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=C([]);C();const I=E=>{s.value=E.map(({id:f})=>f)};qe("");const B=()=>{g()},{pager:c,getLists:g,resetParams:L,resetPage:R}=Ae({fetchFun:te,params:v});g();const x=H,T=()=>{const E=c.lists.filter(f=>s.value.includes(f.id));if(!E.length)return _e.error("\u8BF7\u5148\u9009\u62E9\u5546\u54C1");x("onBindStore",E)};return(E,f)=>{const U=W,w=X,h=$,N=ee,F=le,i=ue,V=oe,M=De,n=fe;return K(),S("div",null,[e(N,{class:"mb-[-16px]",model:a(v),inline:""},{default:o(()=>[e(w,{label:"\u5546\u54C1\u540D\u79F0",prop:"store_name"},{default:o(()=>[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]=Y(l=>B(),["enter"])),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u54C1\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(w,null,{default:o(()=>[e(h,{type:"primary",onClick:a(R)},{default:o(()=>f[3]||(f[3]=[b("\u67E5\u8BE2")])),_:1},8,["onClick"]),e(h,{onClick:a(L)},{default:o(()=>f[4]||(f[4]=[b("\u91CD\u7F6E")])),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"]),ve((K(),S("div",Re,[e(V,{data:a(c).lists,onSelectionChange:I,height:300},{default:o(()=>[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:o(({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(c).loading]]),D("div",xe,[e(M,{modelValue:a(c),"onUpdate:modelValue":f[2]||(f[2]=l=>j(c)?c.value=l:null),onChange:a(g)},null,8,["modelValue","onChange"])]),e(h,{class:"w-full mt-4",type:"primary",onClick:T},{default:o(()=>f[5]||(f[5]=[b("\u6DFB\u52A0\u5546\u54C1")])),_:1})])}}}),Me={class:"flex-1 w-full"},Oe={class:"mb-2"},Ye=P({name:"storeProductEdit"}),Kl=P({...Ye,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:"\u4F55\u6708\u82F1",distribution_personnel:"\u4F59\u53CB",transporter:"",system_store_name:"",regional_manager:"\u5F20\u6CE2",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=[];g.value.forEach(d=>{r.push(d.id)}),r.includes(0)==!1&&g.value.push({id:0})},c=C(!1),g=C([{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)}),c.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=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=C([]);Le({page_no:1,page_size:100}).then(n=>{f.value=n.lists});const U=C([]),w=C(!1),h=C(),N=n=>{te({store_name:n.store_name,product_type:0,is_warehouse:1}).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=q({}),V=(n,l,r)=>{const d=["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===g.value.length-1)return;i[l+r].blur(),A(()=>{i[l+1+r].focus()})}if(n.keyCode===37){if(l===0&&r===d[0])return;if(i[l+r].blur(),r===d[0])i[l-1+d[d.length-1]].focus();else{const _=d.findIndex(y=>y===r)-1;A(()=>{i[l+d[_]].focus()})}}if(n.keyCode===39){if(l===g.value.length-1&&r===d[d.length-1])return;if(i[l+r].blur(),r===d[d.length-1])i[l+1+d[0]].focus();else{const _=d.findIndex(y=>y===r)+1;A(()=>{i[l+d[_]].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,d=X,_=ge,y=Ve,k=ce,ne=be,re=ye,se=we,pe=Fe,z=Ce,O=$,m=le,G=ue,J=oe,de=ee,ie=Ne,Z=Ee,me=he;return K(),S(Q,null,[e(me,null,{default:o(()=>[l[30]||(l[30]=D("div",{class:"mb-4 text-lg font-bold"},"\u9884\u5B9A\u5355\u6DFB\u52A0",-1)),D("div",null,[e(de,{ref_key:"formRef",ref:v,model:a(s),"label-width":"90px",inline:!0,rules:a(M)},{default:o(()=>[e(y,null,{default:o(()=>[e(_,{span:4},{default:o(()=>[e(d,{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(d,{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(d,{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(y,null,{default:o(()=>[e(_,{span:12},{default:o(()=>[e(d,{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(()=>l[21]||(l[21]=[b("\u94FA\u8D27\u8BA2\u5355")])),_:1}),e(k,{label:2},{default:o(()=>l[22]||(l[22]=[b("\u644A\u8D29\u8BA2\u5355")])),_:1}),e(k,{label:3},{default:o(()=>l[23]||(l[23]=[b("\u4E00\u6761\u9F99\u8BA2\u5355")])),_:1}),e(k,{label:5},{default:o(()=>l[24]||(l[24]=[b("\u4ED3\u5E93\u8865\u8D27")])),_:1}),e(k,{label:6},{default:o(()=>l[25]||(l[25]=[b("\u5F80\u671F\u8865\u5355")])),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(_,{span:12},{default:o(()=>[e(d,{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(f),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(y,null,{default:o(()=>[e(_,{span:4},{default:o(()=>[e(d,{label:"\u5230\u8D27\u65F6\u95F4",prop:"arrival_time"},{default:o(()=>[e(pe,{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(d,{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(d,{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(d,{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(d,{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(y,null,{default:o(()=>[e(_,{span:12},{default:o(()=>[e(d,{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(d,{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(y,null,{default:o(()=>[e(_,{span:4},{default:o(()=>[e(d,{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(d,{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(d,{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(d,{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(d,{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(d,{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(d,{label:"\u5546\u54C1",prop:"product_id",class:"w-full"},{default:o(()=>[D("div",Me,[D("div",Oe,[e(O,{type:"primary",onClick:l[18]||(l[18]=u=>c.value=!0)},{default:o(()=>l[26]||(l[26]=[b("\u6DFB\u52A0\u5546\u54C1")])),_:1})]),e(J,{data:a(g)},{default:o(()=>[e(m,{label:"\u5546\u54C1ID",prop:"id","show-overflow-tooltip":""},{default:o(({row:u,$index:p})=>[e(r,{modelValue:u.id,"onUpdate:modelValue":t=>u.id=t,onKeydown:Y(t=>I(u),["enter"]),ref:t=>a(i)[p+"id"]=t,onKeyup:t=>V(t,p,"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:p})=>[e(r,{modelValue:u.store_name,"onUpdate:modelValue":t=>u.store_name=t,onKeydown:Y(t=>N(u),["enter"]),ref:t=>a(i)[p+"store_name"]=t,onKeyup:t=>V(t,p,"store_name")},null,8,["modelValue","onUpdate:modelValue","onKeydown","onKeyup"])]),_:1}),e(m,{label:"\u6570\u91CF"},{default:o(({row:u,$index:p})=>[e(r,{modelValue:u.nums,"onUpdate:modelValue":t=>u.nums=t,onChange:t=>x(u),ref:t=>a(i)[p+"nums"]=t,onKeyup:t=>V(t,p,"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":p=>u.price=p,disabled:""},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),e(m,{label:"\u603B\u4EF7"},{default:o(({row:u})=>[e(r,{modelValue:u.total_price,"onUpdate:modelValue":p=>u.total_price=p,disabled:""},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),e(m,{label:"\u578B\u53F7"},{default:o(({row:u,$index:p})=>[e(r,{modelValue:u.marques,"onUpdate:modelValue":t=>u.marques=t,ref:t=>a(i)[p+"marques"]=t,onKeyup:t=>V(t,p,"marques")},null,8,["modelValue","onUpdate:modelValue","onKeyup"])]),_:1}),e(m,{label:"\u5305\u88C5"},{default:o(({row:u,$index:p})=>[e(r,{modelValue:u.package,"onUpdate:modelValue":t=>u.package=t,ref:t=>a(i)[p+"package"]=t,onKeyup:t=>V(t,p,"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:p})=>[e(r,{modelValue:u.gross_weight,"onUpdate:modelValue":t=>u.gross_weight=t,ref:t=>a(i)[p+"gross_weight"]=t,onKeyup:t=>V(t,p,"gross_weight")},null,8,["modelValue","onUpdate:modelValue","onKeyup"])]),_:1}),e(m,{label:"\u51C0\u91CD"},{default:o(({row:u,$index:p})=>[e(r,{modelValue:u.net_weight,"onUpdate:modelValue":t=>u.net_weight=t,ref:t=>a(i)[p+"net_weight"]=t,onKeyup:t=>V(t,p,"net_weight")},null,8,["modelValue","onUpdate:modelValue","onKeyup"])]),_:1}),e(m,{label:"\u89C4\u683C"},{default:o(({row:u,$index:p})=>[e(r,{modelValue:u.store_info,"onUpdate:modelValue":t=>u.store_info=t,ref:t=>a(i)[p+"store_info"]=t,onKeyup:t=>V(t,p,"store_info")},null,8,["modelValue","onUpdate:modelValue","onKeyup"])]),_:1}),e(m,{label:"\u552E\u540E"},{default:o(({row:u,$index:p})=>[e(r,{modelValue:u.after_sales,"onUpdate:modelValue":t=>u.after_sales=t,ref:t=>a(i)[p+"after_sales"]=t,onKeyup:t=>V(t,p,"after_sales")},null,8,["modelValue","onUpdate:modelValue","onKeyup"])]),_:1}),e(m,{label:"\u635F\u8017"},{default:o(({row:u,$index:p})=>[e(r,{modelValue:u.loss,"onUpdate:modelValue":t=>u.loss=t,ref:t=>a(i)[p+"loss"]=t,onKeyup:t=>V(t,p,"loss")},null,8,["modelValue","onUpdate:modelValue","onKeyup"])]),_:1}),e(m,{label:"\u5907\u6CE8"},{default:o(({row:u,$index:p})=>[e(r,{modelValue:u.mark,"onUpdate:modelValue":t=>u.mark=t,ref:t=>a(i)[p+"mark"]=t,onKeyup:t=>V(t,p,"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:p=>L(u.id)},{default:o(()=>l[27]||(l[27]=[b(" \u5220\u9664 ")])),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])])]),_:1}),e(y,null,{default:o(()=>[e(O,{onClick:E,type:"primary",class:"w-40 ml-20"},{default:o(()=>l[28]||(l[28]=[b("\u63D0\u4EA4")])),_:1}),e(d,{label:"\u603B\u4EF7",prop:"total_price"},{default:o(()=>[D("div",null,[b(Ke(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(Z,{modelValue:a(c),"onUpdate:modelValue":l[19]||(l[19]=u=>j(c)?c.value=u:null),title:"\u9009\u62E9\u5546\u54C1",width:"70%"},{default:o(()=>[e(ie,{onOnBindStore:R})]),_:1},8,["modelValue"])]),_:1}),e(Z,{modelValue:a(w),"onUpdate:modelValue":l[20]||(l[20]=u=>j(w)?w.value=u:null),title:"\u9009\u62E9\u5546\u54C1",width:"1200"},{default:o(()=>[e(J,{data:a(U),onCurrentChange:F,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{Kl as default};
|