multiStoreAdmin/build/store/assets/details.e143703c.js
2025-02-01 15:57:42 +08:00

2 lines
13 KiB
JavaScript

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