multiStoreAdmin/build/store/assets/details.04a9f152.js
2025-01-07 15:19:09 +08:00

2 lines
12 KiB
JavaScript

import{x as Fe,y as be,w as xe,J as Ee,M as ge,b as De,D as ke,N as Ce,G as Ve,K as Ae,R as we,S as Be,F as Ue}from"./element-plus.e43a9281.js";import{c as $e}from"./editProduct.vue_vue_type_script_setup_true_name_warehouseOrderEdit_lang.ba05c725.js";import{b as Ie,c as Oe}from"./beforehand_order.6a22163f.js";import{u as Te}from"./vue-router.9ddb0e92.js";import{_ as je}from"./orderCartInfo.vue_vue_type_script_setup_true_name_subOrder_lang.a6454063.js";import{_ as Le}from"./productWarehousePop.vue_vue_type_script_setup_true_name_systemStoreLists_lang.c8a1b53a.js";import{k as Pe}from"./index.440d70e1.js";import{d as X,r,$ as Se,o as m,c as w,W as s,Q as a,a as e,V as i,u as t,P as x,U as h,T as W,j as g,F as B,a9 as H}from"./@vue.340249d8.js";import"./lodash-es.edba6135.js";import"./@vueuse.e3650918.js";import"./@element-plus.558a564d.js";import"./@popperjs.36402333.js";import"./@ctrl.b082b0c1.js";import"./dayjs.5d871bc3.js";import"./axios.7bd66c25.js";import"./async-validator.fb49d0f5.js";import"./memoize-one.4ee5c96d.js";import"./normalize-wheel-es.8aeb3683.js";import"./@floating-ui.0f9ce7c3.js";import"./index.758a6862.js";import"./lodash.e1b6d49d.js";import"./index.vue_vue_type_script_setup_true_lang.4e4b54d4.js";import"./usePaging.fff444fa.js";import"./pinia.97fe9b12.js";import"./css-color-function.92cf4b29.js";import"./color.10cd7b9e.js";import"./clone.3a905afa.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.95290f48.js";import"./vue-clipboard3.d7f6d60e.js";import"./clipboard.07d173e7.js";import"./echarts.8535e5a6.js";import"./zrender.3eba8991.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.309a94da.js";const Ne={class:"flex items-center justify-between m-4"},Re={class:"flex flex-col"},ze=e("div",{style:{color:"gray"}},"\u59D3\u540D\uFF1A",-1),Me={style:{color:"black"}},qe={class:"flex flex-col"},Ge=e("div",{style:{color:"gray"}},"\u624B\u673A\uFF1A",-1),Ke={style:{color:"black"}},Je={class:"flex flex-col"},Qe=e("div",{style:{color:"gray"}},"\u9001\u8D27\u5730\u5740\uFF1A",-1),We={style:{color:"black"}},He={class:"flex items-center justify-between m-4"},Xe={class:"flex flex-col"},Ye=e("div",{style:{color:"gray"}},"\u5355\u53F7\uFF1A",-1),Ze={style:{color:"black"}},eo={class:"flex flex-col"},oo=e("div",{style:{color:"gray"}},"\u652F\u4ED8\u5355\u53F7\uFF1A",-1),to={style:{color:"black"}},lo={class:"flex flex-col"},so=e("div",{style:{color:"gray"}},"\u95E8\u5E97\uFF1A",-1),ao={style:{color:"black"}},uo={class:"flex items-center justify-between m-4"},io={class:"flex flex-col"},ro=e("div",{style:{color:"gray"}},"\u5230\u8D27\u65F6\u95F4\uFF1A",-1),no={style:{color:"black"}},co={class:"flex flex-col"},_o=e("div",{style:{color:"gray"}},"\u684C\u6570\uFF1A",-1),po={style:{color:"black"}},mo={class:"flex flex-col"},fo=e("div",{style:{color:"gray"}},"\u529E\u4E8B\u5929\u6570\uFF1A",-1),ho={style:{color:"black"}},vo={class:"flex flex-col"},yo=e("div",{style:{color:"gray"}},"\u53A8\u5E08\uFF1A",-1),Fo={style:{color:"black"}},bo={class:"flex flex-col"},xo=e("div",{style:{color:"gray"}},"\u7535\u8BDD\uFF1A",-1),Eo={style:{color:"black"}},go={class:"flex items-center justify-between m-4"},Do={class:"flex flex-col"},ko=e("div",{style:{color:"gray"}},"\u91C7\u8D2D\u4E8B\u7531\uFF1A",-1),Co={style:{color:"black"}},Vo={class:"flex flex-col"},Ao=e("div",{style:{color:"gray"}},"\u5907\u6CE8\uFF1A",-1),wo={style:{color:"black"}},Bo={class:"flex flex-col"},Uo=e("div",{style:{color:"gray"}},"\u5206\u5355\u5458\uFF1A",-1),$o={style:{color:"black"}},Io={class:"flex flex-col"},Oo=e("div",{style:{color:"gray"}},"\u8DDF\u5355\u5458\uFF1A",-1),To={style:{color:"black"}},jo={class:"flex flex-col"},Lo=e("div",{style:{color:"gray"}},"\u4ED3\u7BA1\u5458\uFF1A",-1),Po={style:{color:"black"}},So={class:"flex flex-col"},No=e("div",{style:{color:"gray"}},"\u8FD0\u8F93\u5458\uFF1A",-1),Ro={style:{color:"black"}},zo={class:"flex flex-col"},Mo=e("div",{style:{color:"gray"}},"\u95E8\u5E97\u5458\uFF1A",-1),qo={style:{color:"black"}},Go={class:"flex flex-col"},Ko=e("div",{style:{color:"gray"}},"\u533A\u57DF\u7ECF\u7406\uFF1A",-1),Jo={style:{color:"black"}},Qo={class:"flex items-center justify-between m-4"},Wo={class:"flex flex-col"},Ho=e("div",{style:{color:"gray"}},"\u603B\u4EF7",-1),Xo={style:{color:"black"}},Yo={class:"flex flex-col"},Zo=e("div",{style:{color:"gray"}},"\u652F\u4ED8\u91D1\u989D",-1),et={style:{color:"black"}},ot={class:"flex flex-col flex-2"},tt=e("div",{style:{color:"gray"}},"\u65F6\u95F4",-1),lt={style:{color:"black"}},st={class:"mb-2"},at={class:"dialog-footer"},dt={class:"dialog-footer"},ut=X({name:"storeOrderDETAILS"}),Xt=X({...ut,props:{dictData:{type:Object,default:()=>({})}},emits:["success","close"],setup(it,{expose:Y,emit:rt}){const F=r(!1),U=r(null),Z=Te(),ee=u=>{var o;u=="second"&&((o=U.value)==null||o.getList(d.value))},oe=r(!1),v=r(!1),D=r("second"),te=r(0),le=r(0),se=r(0),d=r({id:"",code:"",total_price:"",supplier_name:"",warehouse_name:"",system_store:"",financial_pm:"",order_sn:"",warehousing_id:"",top_cate:[],uid:"",store_id:"",order_type:""}),n=r({id:"",user_id:"",pay_type:"",store_id:""}),ae=()=>{const u=f.value.map(o=>({id:o.id,nums:o.num||0,purchase:o.price||0,prices:o.purchase||0,total_price:o.total_price||0,manufacture:o.manufacture,expiration_date:o.expiration_date}));$e({id:$.bhoid,product_arr:u}).then(o=>{v.value=!1})},$=Se({bhoid:Z.query.id,pay_type:"",top_cate:"",top_cate_value:""});(()=>{Ie({id:$.bhoid}).then(u=>{d.value={...u},te.value=u.warehouse_id,n.value.id=u.id,n.value.store_id=u.store_id,n.value.user_id=u.uid,u.financial_pm==0?le.value=1:se.value=1,f.value=[]})})();const b=r(!1),f=r([]),de=u=>{f.value=f.value.filter(o=>o.id!==u)},ue=u=>{u.forEach(o=>{f.value.find(_=>_.id==o.id)||f.value.push(o)}),b.value=!1};function ie(u){u.total_price=u.num*u.price}const re=()=>{oe.value=!0},E=r(!1),I=r([]),ne=(u="")=>{E.value=!0,Pe({nickname:u,page_size:10}).then(o=>{I.value=o.lists,setTimeout(()=>{E.value=!1},300)}).catch(o=>{setTimeout(()=>{E.value=!1},300)})},ce=r([]),_e=()=>{Oe(n.value).then(u=>{F.value=!1})},pe=r(0);return Y({open:re}),(u,o)=>{const _=xe,me=Fe,fe=be,he=Ee,p=ge,ve=De,k=ke,ye=Ce,O=Ve,C=Ae,y=we,V=Be,A=Ue;return m(),w(B,null,[s(he,null,{default:a(()=>{var l,c,T,j,L,P,S,N,R,z,M,q,G,K,J;return[e("div",Ne,[e("div",Re,[ze,e("div",Me,i((l=t(d).other_data)==null?void 0:l.nickname),1)]),e("div",qe,[Ge,e("div",Ke,i((c=t(d).other_data)==null?void 0:c.phone),1)]),e("div",Je,[Qe,e("div",We,i((T=t(d).other_data)==null?void 0:T.address),1)])]),e("div",He,[e("div",Xe,[Ye,e("div",Ze,i(t(d).order_id),1)]),e("div",eo,[oo,e("div",to,i(t(d).order_sn),1)]),e("div",lo,[so,e("div",ao,i(t(d).system_store),1)])]),e("div",uo,[e("div",io,[ro,e("div",no,i((j=t(d).other_data)==null?void 0:j.arrival_time),1)]),e("div",co,[_o,e("div",po,i((L=t(d).other_data)==null?void 0:L.tables),1)]),e("div",mo,[fo,e("div",ho,i((P=t(d).other_data)==null?void 0:P.days),1)]),e("div",vo,[yo,e("div",Fo,i((S=t(d).other_data)==null?void 0:S.chef),1)]),e("div",bo,[xo,e("div",Eo,i((N=t(d).other_data)==null?void 0:N.chef_phone),1)])]),e("div",go,[e("div",Do,[ko,e("div",Co,i((R=t(d).other_data)==null?void 0:R.purpose),1)]),e("div",Vo,[Ao,e("div",wo,i(t(d).mark),1)]),e("div",Bo,[Uo,e("div",$o,i((z=t(d).other_data)==null?void 0:z.splitting_officer),1)]),e("div",Io,[Oo,e("div",To,i((M=t(d).other_data)==null?void 0:M.merchandiser),1)]),e("div",jo,[Lo,e("div",Po,i((q=t(d).other_data)==null?void 0:q.distribution_personnel),1)]),e("div",So,[No,e("div",Ro,i((G=t(d).other_data)==null?void 0:G.transporter),1)]),e("div",zo,[Mo,e("div",qo,i((K=t(d).other_data)==null?void 0:K.system_store_name),1)]),e("div",Go,[Ko,e("div",Jo,i((J=t(d).other_data)==null?void 0:J.regional_manager),1)])]),e("div",Qo,[e("div",Wo,[Ho,e("div",Xo,"\uFFE5"+i(t(d).total_price),1)]),e("div",Yo,[Zo,e("div",et,"\uFFE5"+i(t(d).pay_price),1)]),e("div",ot,[tt,e("div",lt,i(t(d).create_time),1)])]),t(d).order_type!=7?(m(),x(_,{key:0,type:"primary",onClick:o[0]||(o[0]=Q=>v.value=!0)},{default:a(()=>[h(" \u8FFD\u52A0 ")]),_:1})):W("",!0),s(fe,{modelValue:t(D),"onUpdate:modelValue":o[1]||(o[1]=Q=>g(D)?D.value=Q:null),class:"demo-tabs mt-3",type:"border-card",onTabChange:ee},{default:a(()=>[t(d).order_type!=7?(m(),x(me,{key:0,label:"\u660E\u7EC6",name:"second"},{default:a(()=>[s(je,{ref_key:"orderCartInfoRef",ref:U,id:t(d).id},null,8,["id"])]),_:1})):W("",!0)]),_:1},8,["modelValue"])]}),_:1}),s(C,{modelValue:t(v),"onUpdate:modelValue":o[4]||(o[4]=l=>g(v)?v.value=l:null),title:"\u8FFD\u52A0\u5546\u54C1",width:"1200"},{footer:a(()=>[e("div",at,[s(_,{onClick:o[3]||(o[3]=l=>v.value=!1)},{default:a(()=>[h("\u53D6\u6D88")]),_:1}),s(_,{type:"primary",onClick:ae},{default:a(()=>[h(" \u786E\u8BA4 ")]),_:1})])]),default:a(()=>[s(O,{ref:"formRef","label-width":"90px"},{default:a(()=>[e("div",st,[s(_,{type:"primary",onClick:o[2]||(o[2]=l=>b.value=!0)},{default:a(()=>[h("\u6DFB\u52A0\u5546\u54C1")]),_:1})]),s(ye,{data:t(f)},{default:a(()=>[s(p,{label:"\u5546\u54C1ID",prop:"id","show-overflow-tooltip":""}),s(p,{label:"\u5546\u54C1\u56FE\u7247",prop:"image","min-width":"80"},{default:a(({row:l})=>[s(ve,{style:{width:"50px",height:"50px"},src:l.image,"preview-teleported":!0},null,8,["src"])]),_:1}),s(p,{label:"\u5546\u54C1\u540D\u79F0",prop:"store_name","min-width":"180","show-overflow-tooltip":""}),s(p,{label:"\u5206\u7C7B",prop:"cate_name","min-width":"80","show-overflow-tooltip":""}),s(p,{label:"\u5355\u4F4D",prop:"unit_name","min-width":"80","show-overflow-tooltip":""}),s(p,{label:"\u6570\u91CF","min-width":"150"},{default:a(({row:l})=>[s(k,{modelValue:l.num,"onUpdate:modelValue":c=>l.num=c,onChange:c=>ie(l)},null,8,["modelValue","onUpdate:modelValue","onChange"])]),_:1}),s(p,{label:"\u4EF7\u683C","min-width":"150"},{default:a(({row:l})=>[s(k,{modelValue:l.price,"onUpdate:modelValue":c=>l.price=c,disabled:""},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),s(p,{label:"\u603B\u4EF7","min-width":"150"},{default:a(({row:l})=>[s(k,{modelValue:l.total_price,"onUpdate:modelValue":c=>l.total_price=c,disabled:""},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),s(p,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:a(({row:l})=>[s(_,{type:"danger",link:"",onClick:c=>de(l.id)},{default:a(()=>[h(" \u5220\u9664 ")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])]),_:1},512)]),_:1},8,["modelValue"]),s(C,{modelValue:t(b),"onUpdate:modelValue":o[5]||(o[5]=l=>g(b)?b.value=l:null),title:"\u9009\u62E9\u5546\u54C1",width:"70%"},{default:a(()=>[(m(),x(Le,{key:t(pe),userId:t(d).uid,onOnBindStore:ue},null,8,["userId"]))]),_:1},8,["modelValue"]),s(C,{modelValue:t(F),"onUpdate:modelValue":o[10]||(o[10]=l=>g(F)?F.value=l:null),title:"\u751F\u6210\u652F\u4ED8\u8BA2\u5355\u8BBE\u7F6E",width:"600"},{footer:a(()=>[e("div",dt,[s(_,{onClick:o[9]||(o[9]=l=>F.value=!1)},{default:a(()=>[h("\u53D6\u6D88")]),_:1}),s(_,{type:"primary",onClick:_e},{default:a(()=>[h(" \u786E\u8BA4 ")]),_:1})])]),default:a(()=>[s(O,{model:t(n),"label-width":"90px"},{default:a(()=>[s(A,{label:"\u7528\u6237"},{default:a(()=>[s(V,{modelValue:t(n).user_id,"onUpdate:modelValue":o[6]||(o[6]=l=>t(n).user_id=l),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u7528\u6237\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":ne,loading:t(E),style:{width:"240px"}},{default:a(()=>[(m(!0),w(B,null,H(t(I),l=>(m(),x(y,{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}),s(A,{label:"\u95E8\u5E97",prop:"store_id"},{default:a(()=>[s(V,{modelValue:t(n).store_id,"onUpdate:modelValue":o[7]||(o[7]=l=>t(n).store_id=l),placeholder:"\u8BF7\u9009\u62E9\u95E8\u5E97",size:"large",style:{width:"240px"}},{default:a(()=>[(m(!0),w(B,null,H(t(ce),l=>(m(),x(y,{key:l.id,label:l.name,value:l.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),s(A,{label:"\u652F\u4ED8\u65B9\u5F0F",prop:"pay_type"},{default:a(()=>[s(V,{modelValue:t(n).pay_type,"onUpdate:modelValue":o[8]||(o[8]=l=>t(n).pay_type=l),placeholder:"\u8BF7\u9009\u62E9\u652F\u4ED8\u65B9\u5F0F",size:"large",style:{width:"240px"}},{default:a(()=>[s(y,{label:"\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F\u652F\u4ED8",value:"7"}),s(y,{label:"\u91C7\u8D2D\u6B3E\u652F\u4ED8",value:"18"}),s(y,{label:"\u4F59\u989D\u652F\u4ED8",value:"3"}),s(y,{label:"\u73B0\u91D1\u652F\u4ED8",value:"17"})]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"])],64)}}});export{Xt as default};