2 lines
13 KiB
JavaScript
2 lines
13 KiB
JavaScript
import{x as be,y as xe,w as Ee,J as ge,M as De,b as ke,D as Ce,N as Ve,G as Ae,K as we,R as Be,S as Ue,F as $e}from"./element-plus.e43a9281.js";import{c as Ie}from"./editProduct.vue_vue_type_script_setup_true_name_warehouseOrderEdit_lang.9c4444bf.js";import{d as Oe,e as Te}from"./beforehand_order.a876e519.js";import{u as je}from"./vue-router.9ddb0e92.js";import{_ as Le}from"./orderCartInfo.vue_vue_type_script_setup_true_name_subOrder_lang.22b12eac.js";import{_ as Pe}from"./productWarehousePop.vue_vue_type_script_setup_true_name_systemStoreLists_lang.d1bf7aac.js";import{k as Se}from"./index.31123381.js";import{d as Y,r,$ as Ne,o as m,c as w,W as s,Q as d,a as e,V as u,u as o,P as x,U as h,T as H,j as g,F as B,a9 as X}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.e7a16a92.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 Re={class:"flex items-center justify-between m-4"},ze={class:"flex flex-col"},Me=e("div",{style:{color:"gray"}},"\u59D3\u540D\uFF1A",-1),qe={style:{color:"black"}},Ge={class:"flex flex-col"},Ke=e("div",{style:{color:"gray"}},"\u624B\u673A\uFF1A",-1),Je={style:{color:"black"}},Qe={class:"flex flex-col"},We=e("div",{style:{color:"gray"}},"\u9001\u8D27\u5730\u5740\uFF1A",-1),He={style:{color:"black"}},Xe={class:"flex items-center justify-between m-4"},Ye={class:"flex flex-col"},Ze=e("div",{style:{color:"gray"}},"\u5355\u53F7\uFF1A",-1),eo={style:{color:"black"}},oo={class:"flex flex-col"},to=e("div",{style:{color:"gray"}},"\u652F\u4ED8\u5355\u53F7\uFF1A",-1),lo={style:{color:"black"}},so={class:"flex flex-col"},ao=e("div",{style:{color:"gray"}},"\u95E8\u5E97\uFF1A",-1),uo={style:{color:"black"}},io={class:"flex items-center justify-between m-4"},ro={class:"flex flex-col"},no=e("div",{style:{color:"gray"}},"\u5230\u8D27\u65F6\u95F4\uFF1A",-1),co={style:{color:"black"}},_o={class:"flex flex-col"},po=e("div",{style:{color:"gray"}},"\u684C\u6570\uFF1A",-1),mo={style:{color:"black"}},fo={class:"flex flex-col"},ho=e("div",{style:{color:"gray"}},"\u529E\u4E8B\u5929\u6570\uFF1A",-1),vo={style:{color:"black"}},yo={class:"flex flex-col"},Fo=e("div",{style:{color:"gray"}},"\u53A8\u5E08\uFF1A",-1),bo={style:{color:"black"}},xo={class:"flex flex-col"},Eo=e("div",{style:{color:"gray"}},"\u7535\u8BDD\uFF1A",-1),go={style:{color:"black"}},Do={class:"flex items-center justify-between m-4"},ko={class:"flex flex-col"},Co=e("div",{style:{color:"gray"}},"\u91C7\u8D2D\u4E8B\u7531\uFF1A",-1),Vo={style:{color:"black"}},Ao={class:"flex flex-col"},wo=e("div",{style:{color:"gray"}},"\u5907\u6CE8\uFF1A",-1),Bo={style:{color:"black"}},Uo={class:"flex flex-col"},$o=e("div",{style:{color:"gray"}},"\u5206\u5355\u5458\uFF1A",-1),Io={style:{color:"black"}},Oo={class:"flex flex-col"},To=e("div",{style:{color:"gray"}},"\u8DDF\u5355\u5458\uFF1A",-1),jo={style:{color:"black"}},Lo={class:"flex flex-col"},Po=e("div",{style:{color:"gray"}},"\u4ED3\u7BA1\u5458\uFF1A",-1),So={style:{color:"black"}},No={class:"flex flex-col"},Ro=e("div",{style:{color:"gray"}},"\u8FD0\u8F93\u5458\uFF1A",-1),zo={style:{color:"black"}},Mo={class:"flex flex-col"},qo=e("div",{style:{color:"gray"}},"\u95E8\u5E97\u5458\uFF1A",-1),Go={style:{color:"black"}},Ko={class:"flex flex-col"},Jo=e("div",{style:{color:"gray"}},"\u533A\u57DF\u7ECF\u7406\uFF1A",-1),Qo={style:{color:"black"}},Wo={class:"flex items-center justify-between m-4"},Ho={class:"flex flex-col"},Xo=e("div",{style:{color:"gray"}},"\u4EE3\u8D2D\u5907\u6CE8\uFF1A",-1),Yo={style:{color:"black"}},Zo={class:"flex items-center justify-between m-4"},et={class:"flex flex-col"},ot=e("div",{style:{color:"gray"}},"\u603B\u4EF7",-1),tt={style:{color:"black"}},lt={class:"flex flex-col"},st=e("div",{style:{color:"gray"}},"\u652F\u4ED8\u91D1\u989D",-1),at={style:{color:"black"}},dt={class:"flex flex-col flex-2"},ut=e("div",{style:{color:"gray"}},"\u65F6\u95F4",-1),it={style:{color:"black"}},rt={class:"mb-2"},nt={class:"dialog-footer"},ct={class:"dialog-footer"},_t=Y({name:"storeOrderDETAILS"}),tl=Y({..._t,props:{dictData:{type:Object,default:()=>({})}},emits:["success","close"],setup(pt,{expose:Z,emit:mt}){const F=r(!1),U=r(null),ee=je(),oe=i=>{var t;i=="second"&&((t=U.value)==null||t.getList(a.value))},te=r(!1),v=r(!1),D=r("second"),le=r(0),se=r(0),ae=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:"",is_confirm:0}),n=r({id:"",user_id:"",pay_type:"",store_id:""}),de=()=>{const i=f.value.map(t=>({id:t.id,nums:t.num||0,purchase:t.price||0,prices:t.purchase||0,total_price:t.total_price||0,manufacture:t.manufacture,expiration_date:t.expiration_date}));Ie({id:$.bhoid,product_arr:i}).then(t=>{v.value=!1})},$=Ne({bhoid:ee.query.id,pay_type:"",top_cate:"",top_cate_value:""});(()=>{Oe({id:$.bhoid}).then(i=>{a.value={...i},le.value=i.warehouse_id,n.value.id=i.id,n.value.store_id=i.store_id,n.value.user_id=i.uid,i.financial_pm==0?se.value=1:ae.value=1,f.value=[]})})();const b=r(!1),f=r([]),ue=i=>{f.value=f.value.filter(t=>t.id!==i)},ie=i=>{i.forEach(t=>{f.value.find(_=>_.id==t.id)||f.value.push(t)}),b.value=!1};function re(i){i.total_price=i.num*i.price}const ne=()=>{te.value=!0},E=r(!1),I=r([]),ce=(i="")=>{E.value=!0,Se({nickname:i,page_size:10}).then(t=>{I.value=t.lists,setTimeout(()=>{E.value=!1},300)}).catch(t=>{setTimeout(()=>{E.value=!1},300)})},_e=r([]),pe=()=>{Te(n.value).then(i=>{F.value=!1})},me=r(0);return Z({open:ne}),(i,t)=>{const _=Ee,fe=be,he=xe,ve=ge,p=De,ye=ke,k=Ce,Fe=Ve,O=Ae,C=we,y=Be,V=Ue,A=$e;return m(),w(B,null,[s(ve,null,{default:d(()=>{var l,c,T,j,L,P,S,N,R,z,M,q,G,K,J,Q;return[e("div",Re,[e("div",ze,[Me,e("div",qe,u((l=o(a).other_data)==null?void 0:l.nickname),1)]),e("div",Ge,[Ke,e("div",Je,u((c=o(a).other_data)==null?void 0:c.phone),1)]),e("div",Qe,[We,e("div",He,u((T=o(a).other_data)==null?void 0:T.address),1)])]),e("div",Xe,[e("div",Ye,[Ze,e("div",eo,u(o(a).order_id),1)]),e("div",oo,[to,e("div",lo,u(o(a).order_sn),1)]),e("div",so,[ao,e("div",uo,u(o(a).system_store),1)])]),e("div",io,[e("div",ro,[no,e("div",co,u((j=o(a).other_data)==null?void 0:j.arrival_time),1)]),e("div",_o,[po,e("div",mo,u((L=o(a).other_data)==null?void 0:L.tables),1)]),e("div",fo,[ho,e("div",vo,u((P=o(a).other_data)==null?void 0:P.days),1)]),e("div",yo,[Fo,e("div",bo,u((S=o(a).other_data)==null?void 0:S.chef),1)]),e("div",xo,[Eo,e("div",go,u((N=o(a).other_data)==null?void 0:N.chef_phone),1)])]),e("div",Do,[e("div",ko,[Co,e("div",Vo,u((R=o(a).other_data)==null?void 0:R.purpose),1)]),e("div",Ao,[wo,e("div",Bo,u(o(a).mark),1)]),e("div",Uo,[$o,e("div",Io,u((z=o(a).other_data)==null?void 0:z.splitting_officer),1)]),e("div",Oo,[To,e("div",jo,u((M=o(a).other_data)==null?void 0:M.merchandiser),1)]),e("div",Lo,[Po,e("div",So,u((q=o(a).other_data)==null?void 0:q.distribution_personnel),1)]),e("div",No,[Ro,e("div",zo,u((G=o(a).other_data)==null?void 0:G.transporter),1)]),e("div",Mo,[qo,e("div",Go,u((K=o(a).other_data)==null?void 0:K.system_store_name),1)]),e("div",Ko,[Jo,e("div",Qo,u((J=o(a).other_data)==null?void 0:J.regional_manager),1)])]),e("div",Wo,[e("div",Ho,[Xo,e("div",Yo,u((Q=o(a).other_data)==null?void 0:Q.store_mark),1)])]),e("div",Zo,[e("div",et,[ot,e("div",tt,"\uFFE5"+u(o(a).total_price),1)]),e("div",lt,[st,e("div",at,"\uFFE5"+u(o(a).pay_price),1)]),e("div",dt,[ut,e("div",it,u(o(a).create_time),1)])]),o(a).order_type!=7&&o(a).is_confirm==0?(m(),x(_,{key:0,type:"primary",onClick:t[0]||(t[0]=W=>v.value=!0)},{default:d(()=>[h(" \u8FFD\u52A0 ")]),_:1})):H("",!0),s(he,{modelValue:o(D),"onUpdate:modelValue":t[1]||(t[1]=W=>g(D)?D.value=W:null),class:"demo-tabs mt-3",type:"border-card",onTabChange:oe},{default:d(()=>[o(a).order_type!=7?(m(),x(fe,{key:0,label:"\u660E\u7EC6",name:"second"},{default:d(()=>[s(Le,{ref_key:"orderCartInfoRef",ref:U,id:o(a).id},null,8,["id"])]),_:1})):H("",!0)]),_:1},8,["modelValue"])]}),_:1}),s(C,{modelValue:o(v),"onUpdate:modelValue":t[4]||(t[4]=l=>g(v)?v.value=l:null),title:"\u8FFD\u52A0\u5546\u54C1",width:"1200"},{footer:d(()=>[e("div",nt,[s(_,{onClick:t[3]||(t[3]=l=>v.value=!1)},{default:d(()=>[h("\u53D6\u6D88")]),_:1}),s(_,{type:"primary",onClick:de},{default:d(()=>[h(" \u786E\u8BA4 ")]),_:1})])]),default:d(()=>[s(O,{ref:"formRef","label-width":"90px"},{default:d(()=>[e("div",rt,[s(_,{type:"primary",onClick:t[2]||(t[2]=l=>b.value=!0)},{default:d(()=>[h("\u6DFB\u52A0\u5546\u54C1")]),_:1})]),s(Fe,{data:o(f)},{default:d(()=>[s(p,{label:"\u5546\u54C1ID",prop:"id","show-overflow-tooltip":""}),s(p,{label:"\u5546\u54C1\u56FE\u7247",prop:"image","min-width":"80"},{default:d(({row:l})=>[s(ye,{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:d(({row:l})=>[s(k,{modelValue:l.num,"onUpdate:modelValue":c=>l.num=c,onChange:c=>re(l)},null,8,["modelValue","onUpdate:modelValue","onChange"])]),_:1}),s(p,{label:"\u4EF7\u683C","min-width":"150"},{default:d(({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:d(({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:d(({row:l})=>[s(_,{type:"danger",link:"",onClick:c=>ue(l.id)},{default:d(()=>[h(" \u5220\u9664 ")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])]),_:1},512)]),_:1},8,["modelValue"]),s(C,{modelValue:o(b),"onUpdate:modelValue":t[5]||(t[5]=l=>g(b)?b.value=l:null),title:"\u9009\u62E9\u5546\u54C1",width:"70%"},{default:d(()=>[(m(),x(Pe,{key:o(me),userId:o(a).uid,onOnBindStore:ie},null,8,["userId"]))]),_:1},8,["modelValue"]),s(C,{modelValue:o(F),"onUpdate:modelValue":t[10]||(t[10]=l=>g(F)?F.value=l:null),title:"\u751F\u6210\u652F\u4ED8\u8BA2\u5355\u8BBE\u7F6E",width:"600"},{footer:d(()=>[e("div",ct,[s(_,{onClick:t[9]||(t[9]=l=>F.value=!1)},{default:d(()=>[h("\u53D6\u6D88")]),_:1}),s(_,{type:"primary",onClick:pe},{default:d(()=>[h(" \u786E\u8BA4 ")]),_:1})])]),default:d(()=>[s(O,{model:o(n),"label-width":"90px"},{default:d(()=>[s(A,{label:"\u7528\u6237"},{default:d(()=>[s(V,{modelValue:o(n).user_id,"onUpdate:modelValue":t[6]||(t[6]=l=>o(n).user_id=l),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u7528\u6237\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":ce,loading:o(E),style:{width:"240px"}},{default:d(()=>[(m(!0),w(B,null,X(o(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:d(()=>[s(V,{modelValue:o(n).store_id,"onUpdate:modelValue":t[7]||(t[7]=l=>o(n).store_id=l),placeholder:"\u8BF7\u9009\u62E9\u95E8\u5E97",size:"large",style:{width:"240px"}},{default:d(()=>[(m(!0),w(B,null,X(o(_e),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:d(()=>[s(V,{modelValue:o(n).pay_type,"onUpdate:modelValue":t[8]||(t[8]=l=>o(n).pay_type=l),placeholder:"\u8BF7\u9009\u62E9\u652F\u4ED8\u65B9\u5F0F",size:"large",style:{width:"240px"}},{default:d(()=>[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{tl as default};
|