2 lines
17 KiB
JavaScript
2 lines
17 KiB
JavaScript
import{x as Oe,y as $e,U as Ue,k as g,w as Le,L as Re,M as Se,b as Pe,C as Ie,N as Te,F as je,I as Ye,J as Me,K as Ne,D as ze}from"./element-plus.7e347b00.js";import{_ as We}from"./index.vue_vue_type_script_setup_true_name_systemStoreLists_lang.b993a112.js";import{g as qe}from"./beforehand_order_cart_info.fb0d472b.js";import{c as Ke,g as Ge,b as Je,h as Ze,i as He,j as Qe,k as Xe}from"./beforehand_order.96ebe9df.js";import{u as eo}from"./vue-router.101084e3.js";import{_ as oo}from"./goodsOffer.vue_vue_type_script_setup_true_name_subOrder_lang.cd4d3fb0.js";import{_ as to}from"./orderCartInfo.vue_vue_type_script_setup_true_name_subOrder_lang.4ff985c4.js";import{_ as lo}from"./warehousing.vue_vue_type_script_setup_true_name_subOrder_lang.ec19f06a.js";import{_ as uo}from"./outbound.vue_vue_type_script_setup_true_name_subOrder_lang.964e3923.js";import{_ as ao}from"./returnWarehouse.vue_vue_type_script_setup_true_name_subOrder_lang.e209e78f.js";import{_ as so}from"./returnSupplier.vue_vue_type_script_setup_true_name_subOrder_lang.a0198da0.js";import{h as io}from"./index.5aa7d0e8.js";import{a as ro}from"./system_store.8f6870fa.js";import"./vue-plugin-hiprint.838ee9c9.js";import{d as ne,r as d,Z as no,o as E,c as U,U as t,L as a,a as e,S as r,u,R as p,j as w,T as L,a9 as re,K as de}from"./@vue.18505fe0.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.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.af250dfd.js";import"./usePaging.6a6670f9.js";import"./useDictOptions.14b113d2.js";import"./store_product.48702cca.js";import"./store_branch_product.0ed8c6c5.js";import"./warehouse_product_storege.a30de2d6.js";import"./lodash.4e6d2a38.js";import"./purchase_product_offer.dd286baa.js";import"./warehouse.dd28022c.js";import"./supplier.31fdf287.js";import"./delivery_service.1d8bb54c.js";import"./editProduct.vue_vue_type_script_setup_true_name_warehouseOrderEdit_lang.e50994fc.js";import"./index.a037a0fd.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";import"./warehouse_order.3c5caa39.js";import"./warehouse_product_return.3afe2e5e.js";import"./axios.cffda5ac.js";import"./jspdf.6c61b9d3.js";import"./fflate.0418c72f.js";import"./pinia.a969beab.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.b0c09b66.js";import"./jquery.da0c3ace.js";import"./jsbarcode.39151b53.js";import"./socket.io-client.3d1dc32f.js";import"./engine.io-client.6bbd7bb9.js";import"./engine.io-parser.4305f785.js";import"./@socket.io.573b606e.js";import"./debug.b392f131.js";import"./socket.io-parser.4db37fe5.js";import"./html2canvas.c8f3682e.js";import"./canvg.90844e8b.js";import"./core-js.02a9a8e7.js";import"./raf.4a8e4708.js";import"./performance-now.36ef0a90.js";import"./rgbcolor.20c71161.js";import"./svg-pathdata.200d31ca.js";import"./stackblur-canvas.7cb77c32.js";const _o={class:"flex items-center justify-between m-4"},co={class:"flex flex-col"},po=e("div",{style:{color:"gray"}},"\u59D3\u540D\uFF1A",-1),mo={style:{color:"black"}},fo={class:"flex flex-col"},ho=e("div",{style:{color:"gray"}},"\u624B\u673A\uFF1A",-1),vo={style:{color:"black"}},Fo={class:"flex flex-col"},yo=e("div",{style:{color:"gray"}},"\u9001\u8D27\u5730\u5740\uFF1A",-1),bo={style:{color:"black"}},xo={class:"flex items-center justify-between m-4"},go={class:"flex flex-col"},Eo=e("div",{style:{color:"gray"}},"\u5355\u53F7\uFF1A",-1),Do={style:{color:"black"}},ko={class:"flex flex-col"},Co=e("div",{style:{color:"gray"}},"\u652F\u4ED8\u5355\u53F7\uFF1A",-1),wo={style:{color:"black"}},Ao={class:"flex flex-col"},Vo=e("div",{style:{color:"gray"}},"\u95E8\u5E97\uFF1A",-1),Bo={style:{color:"black"}},Oo={class:"flex items-center justify-between m-4"},$o={class:"flex flex-col"},Uo=e("div",{style:{color:"gray"}},"\u5230\u8D27\u65F6\u95F4\uFF1A",-1),Lo={style:{color:"black"}},Ro={class:"flex flex-col"},So=e("div",{style:{color:"gray"}},"\u684C\u6570\uFF1A",-1),Po={style:{color:"black"}},Io={class:"flex flex-col"},To=e("div",{style:{color:"gray"}},"\u529E\u4E8B\u5929\u6570\uFF1A",-1),jo={style:{color:"black"}},Yo={class:"flex flex-col"},Mo=e("div",{style:{color:"gray"}},"\u53A8\u5E08\uFF1A",-1),No={style:{color:"black"}},zo={class:"flex flex-col"},Wo=e("div",{style:{color:"gray"}},"\u7535\u8BDD\uFF1A",-1),qo={style:{color:"black"}},Ko={class:"flex items-center justify-between m-4"},Go={class:"flex flex-col"},Jo=e("div",{style:{color:"gray"}},"\u91C7\u8D2D\u4E8B\u7531\uFF1A",-1),Zo={style:{color:"black"}},Ho={class:"flex flex-col"},Qo=e("div",{style:{color:"gray"}},"\u5907\u6CE8\uFF1A",-1),Xo={style:{color:"black"}},et={class:"flex flex-col"},ot=e("div",{style:{color:"gray"}},"\u5206\u5355\u5458\uFF1A",-1),tt={style:{color:"black"}},lt={class:"flex flex-col"},ut=e("div",{style:{color:"gray"}},"\u8DDF\u5355\u5458\uFF1A",-1),at={style:{color:"black"}},st={class:"flex flex-col"},it=e("div",{style:{color:"gray"}},"\u4ED3\u7BA1\u5458\uFF1A",-1),rt={style:{color:"black"}},dt={class:"flex flex-col"},nt=e("div",{style:{color:"gray"}},"\u8FD0\u8F93\u5458\uFF1A",-1),_t={style:{color:"black"}},ct={class:"flex flex-col"},pt=e("div",{style:{color:"gray"}},"\u95E8\u5E97\u5458\uFF1A",-1),mt={style:{color:"black"}},ft={class:"flex flex-col"},ht=e("div",{style:{color:"gray"}},"\u533A\u57DF\u7ECF\u7406\uFF1A",-1),vt={style:{color:"black"}},Ft={class:"flex items-center justify-between m-4"},yt={class:"flex flex-col"},bt=e("div",{style:{color:"gray"}},"\u603B\u4EF7",-1),xt={style:{color:"black"}},gt={class:"flex flex-col"},Et=e("div",{style:{color:"gray"}},"\u652F\u4ED8\u91D1\u989D",-1),Dt={style:{color:"black"}},kt={class:"flex flex-col flex-2"},Ct=e("div",{style:{color:"gray"}},"\u65F6\u95F4",-1),wt={style:{color:"black"}},At={class:"justify-between m-4"},Vt={class:"mb-2"},Bt={class:"dialog-footer"},Ot={class:"dialog-footer"},$t=ne({name:"storeOrderDETAILS"}),uu=ne({...$t,props:{dictData:{type:Object,default:()=>({})}},emits:["success","close"],setup(Ut,{expose:_e,emit:Lt}){const b=d(!1),R=d(null),S=d(null),P=d(null),I=d(null),T=d(null),j=d(null),ce=eo(),pe=i=>{var o,n,f,k,C,c;i=="second"&&((o=I.value)==null||o.getList(s.value)),i=="offer"&&((n=R.value)==null||n.getList(s.value.id)),i=="warehousing"&&((f=S.value)==null||f.getList(s.value.id,s.value.warehousing_id)),i=="outbound"&&((k=P.value)==null||k.getList(s.value.id,s.value)),i=="returnWarehouse"&&((C=T.value)==null||C.getList(s.value)),i=="returnSupplier"&&((c=j.value)==null||c.getList(s.value))},me=d(!1),F=d(!1),A=d("second"),Y=d(0),M=d(0),fe=d(0),s=d({id:"",code:"",total_price:"",supplier_name:"",warehouse_name:"",system_store:"",financial_pm:"",order_sn:"",warehousing_id:"",top_cate:[]}),m=d({id:"",user_id:"",pay_type:"",store_id:""}),he=()=>{const i=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}));qe({id:N.bhoid,product_arr:i}).then(o=>{F.value=!1})},N=no({bhoid:ce.query.id,pay_type:"",top_cate:"",top_cate_value:""});(()=>{Ke({id:N.bhoid}).then(i=>{s.value={...i},Y.value=i.warehouse_id,m.value.id=i.id,i.financial_pm==0?M.value=1:fe.value=1,h.value=[]})})();const ve=i=>{Ge({id:i}).then(o=>{window.open(o.url,"_blank"),g.success("\u5BFC\u51FA\u6210\u529F")})},Fe=i=>{Je({id:i}).then(o=>{window.open(o.url,"_blank"),g.success("\u5BFC\u51FA\u6210\u529F")})},ye=i=>{Ze({id:i}).then(o=>{window.open(o.url,"_blank"),g.success("\u5BFC\u51FA\u6210\u529F")})},be=i=>{He({id:i}).then(o=>{window.open(o.url,"_blank"),g.success("\u5BFC\u51FA\u6210\u529F")})},xe=i=>{Qe({id:i}).then(o=>{window.open(o.url,"_blank"),g.success("\u5BFC\u51FA\u6210\u529F")})},x=d(!1),h=d([]),ge=i=>{h.value=h.value.filter(o=>o.id!==i)},Ee=i=>{i.forEach(o=>{h.value.find(n=>n.id==o.id)||h.value.push(o)}),x.value=!1};function z(i){i.total_price=i.num*i.price}const De=()=>{me.value=!0},D=d(!1),W=d([]),ke=(i="")=>{D.value=!0,io({nickname:i,page_size:10}).then(o=>{W.value=o.lists,setTimeout(()=>{D.value=!1},300)}).catch(o=>{setTimeout(()=>{D.value=!1},300)})},q=d([]),Ce=()=>{b.value=!0,ro({page_no:1,page_size:100}).then(i=>{q.value=i.lists})},we=()=>{Xe(m.value).then(i=>{})};return _e({open:De}),(i,o)=>{const n=Le,f=Oe,k=$e,C=Re,c=Se,Ae=Pe,V=Ie,K=Ue,Ve=Te,G=je,B=Ye,Be=We,y=Me,O=Ne,$=ze;return E(),U(L,null,[t(C,null,{default:a(()=>{var l,_,J,Z,H,Q,X,ee,oe,te,le,ue,ae,se,ie;return[e("div",_o,[e("div",co,[po,e("div",mo,r((l=u(s).other_data)==null?void 0:l.nickname),1)]),e("div",fo,[ho,e("div",vo,r((_=u(s).other_data)==null?void 0:_.phone),1)]),e("div",Fo,[yo,e("div",bo,r((J=u(s).other_data)==null?void 0:J.address),1)])]),e("div",xo,[e("div",go,[Eo,e("div",Do,r(u(s).order_id),1)]),e("div",ko,[Co,e("div",wo,r(u(s).order_sn),1)]),e("div",Ao,[Vo,e("div",Bo,r(u(s).system_store),1)])]),e("div",Oo,[e("div",$o,[Uo,e("div",Lo,r((Z=u(s).other_data)==null?void 0:Z.arrival_time),1)]),e("div",Ro,[So,e("div",Po,r((H=u(s).other_data)==null?void 0:H.tables),1)]),e("div",Io,[To,e("div",jo,r((Q=u(s).other_data)==null?void 0:Q.days),1)]),e("div",Yo,[Mo,e("div",No,r((X=u(s).other_data)==null?void 0:X.chef),1)]),e("div",zo,[Wo,e("div",qo,r((ee=u(s).other_data)==null?void 0:ee.chef_phone),1)])]),e("div",Ko,[e("div",Go,[Jo,e("div",Zo,r((oe=u(s).other_data)==null?void 0:oe.purpose),1)]),e("div",Ho,[Qo,e("div",Xo,r(u(s).mark),1)]),e("div",et,[ot,e("div",tt,r((te=u(s).other_data)==null?void 0:te.splitting_officer),1)]),e("div",lt,[ut,e("div",at,r((le=u(s).other_data)==null?void 0:le.merchandiser),1)]),e("div",st,[it,e("div",rt,r((ue=u(s).other_data)==null?void 0:ue.distribution_personnel),1)]),e("div",dt,[nt,e("div",_t,r((ae=u(s).other_data)==null?void 0:ae.transporter),1)]),e("div",ct,[pt,e("div",mt,r((se=u(s).other_data)==null?void 0:se.system_store_name),1)]),e("div",ft,[ht,e("div",vt,r((ie=u(s).other_data)==null?void 0:ie.regional_manager),1)])]),e("div",Ft,[e("div",yt,[bt,e("div",xt,"\uFFE5"+r(u(s).total_price),1)]),e("div",gt,[Et,e("div",Dt,"\uFFE5"+r(u(s).pay_price),1)]),e("div",kt,[Ct,e("div",wt,r(u(s).create_time),1)]),t(n,{onClick:o[0]||(o[0]=v=>ve(u(s).id))},{default:a(()=>[p(" \u6253\u5370\u5546\u54C1\u6807\u7B7E ")]),_:1}),t(n,{onClick:Ce},{default:a(()=>[p(" \u751F\u6210\u5546\u54C1\u8BA2\u5355 ")]),_:1})]),e("div",At,[t(n,{onClick:o[1]||(o[1]=v=>Fe(u(s).id))},{default:a(()=>[p(" \u6253\u5370\u4E0B\u5355\u6E05\u5355 ")]),_:1}),t(n,{onClick:o[2]||(o[2]=v=>ye(u(s).id))},{default:a(()=>[p(" \u6253\u5370\u5206\u914D\u5355 ")]),_:1}),t(n,{onClick:o[3]||(o[3]=v=>be(u(s).id))},{default:a(()=>[p(" \u6253\u5370\u91C7\u8D2D\u5355 ")]),_:1}),t(n,{onClick:o[4]||(o[4]=v=>xe(u(s).id))},{default:a(()=>[p(" \u6253\u5370\u51FA\u5E93\u5355 ")]),_:1})]),t(n,{type:"primary",onClick:o[5]||(o[5]=v=>F.value=!0)},{default:a(()=>[p(" \u8FFD\u52A0 ")]),_:1}),t(k,{modelValue:u(A),"onUpdate:modelValue":o[6]||(o[6]=v=>w(A)?A.value=v:null),class:"demo-tabs mt-3",type:"border-card",onTabChange:pe},{default:a(()=>[t(f,{label:"\u660E\u7EC6",name:"second"},{default:a(()=>[t(to,{ref_key:"orderCartInfoRef",ref:I,id:u(s).id},null,8,["id"])]),_:1}),t(f,{label:"\u91C7\u8D2D",name:"offer"},{default:a(()=>[t(oo,{ref_key:"goodsOfferRef",ref:R,order_id:u(s).id},null,8,["order_id"])]),_:1}),t(f,{label:"\u5165\u5E93",name:"warehousing"},{default:a(()=>[t(lo,{ref_key:"warehousingRef",ref:S,order_id:u(s).id},null,8,["order_id"])]),_:1}),t(f,{label:"\u51FA\u5E93",name:"outbound"},{default:a(()=>[t(uo,{ref_key:"outboundRef",ref:P,order_id:u(s).id},null,8,["order_id"])]),_:1}),t(f,{label:"\u9000\u5E93\u623F",name:"returnWarehouse"},{default:a(()=>[t(ao,{ref_key:"returnWarehouseRef",ref:T},null,512)]),_:1}),t(f,{label:"\u9000\u4F9B\u5E94\u5546",name:"returnSupplier"},{default:a(()=>[t(so,{ref_key:"returnSupplierRef",ref:j},null,512)]),_:1})]),_:1},8,["modelValue"])]}),_:1}),t(B,{modelValue:u(F),"onUpdate:modelValue":o[9]||(o[9]=l=>w(F)?F.value=l:null),title:"\u8FFD\u52A0\u5546\u54C1",width:"1200"},{footer:a(()=>[e("div",Bt,[t(n,{onClick:o[8]||(o[8]=l=>F.value=!1)},{default:a(()=>[p("\u53D6\u6D88")]),_:1}),t(n,{type:"primary",onClick:he},{default:a(()=>[p(" \u786E\u8BA4 ")]),_:1})])]),default:a(()=>[t(G,{ref:"formRef","label-width":"90px"},{default:a(()=>[e("div",Vt,[t(n,{type:"primary",onClick:o[7]||(o[7]=l=>x.value=!0)},{default:a(()=>[p("\u6DFB\u52A0\u5546\u54C1")]),_:1})]),t(Ve,{data:u(h)},{default:a(()=>[t(c,{label:"\u5546\u54C1ID",prop:"id","show-overflow-tooltip":""}),t(c,{label:"\u5546\u54C1\u56FE\u7247",prop:"image","min-width":"80"},{default:a(({row:l})=>[t(Ae,{style:{width:"50px",height:"50px"},src:l.image,"preview-teleported":!0},null,8,["src"])]),_:1}),t(c,{label:"\u5546\u54C1\u540D\u79F0",prop:"store_name","min-width":"180","show-overflow-tooltip":""}),t(c,{label:"\u5206\u7C7B",prop:"cate_name","min-width":"80","show-overflow-tooltip":""}),t(c,{label:"\u5355\u4F4D",prop:"unit_name","min-width":"80","show-overflow-tooltip":""}),t(c,{label:"\u6570\u91CF","min-width":"150"},{default:a(({row:l})=>[t(V,{modelValue:l.num,"onUpdate:modelValue":_=>l.num=_,onChange:_=>z(l)},null,8,["modelValue","onUpdate:modelValue","onChange"])]),_:1}),t(c,{label:"\u4EF7\u683C","min-width":"150"},{default:a(({row:l})=>[t(V,{modelValue:l.price,"onUpdate:modelValue":_=>l.price=_,onChange:_=>z(l)},null,8,["modelValue","onUpdate:modelValue","onChange"])]),_:1}),t(c,{label:"\u603B\u4EF7","min-width":"150"},{default:a(({row:l})=>[t(V,{modelValue:l.total_price,"onUpdate:modelValue":_=>l.total_price=_},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),t(c,{label:"\u751F\u4EA7\u65E5\u671F","min-width":"140"},{default:a(({row:l})=>[t(K,{readonly:!1,class:"flex-1 !flex",modelValue:l.manufacture,"onUpdate:modelValue":_=>l.manufacture=_,clearable:"",type:"date","value-format":"YYYY-MM-DD",placeholder:"\u9009\u62E9\u751F\u4EA7\u65E5\u671F"},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),t(c,{label:"\u4FDD\u8D28\u671F","min-width":"140"},{default:a(({row:l})=>[t(K,{readonly:!1,class:"flex-1 !flex",modelValue:l.expiration_date,"onUpdate:modelValue":_=>l.expiration_date=_,clearable:"",type:"date","value-format":"YYYY-MM-DD",placeholder:"\u9009\u62E9\u4FDD\u8D28\u671F"},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),t(c,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:a(({row:l})=>[t(n,{type:"danger",link:"",onClick:_=>ge(l.id)},{default:a(()=>[p(" \u5220\u9664 ")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])]),_:1},512)]),_:1},8,["modelValue"]),t(B,{modelValue:u(x),"onUpdate:modelValue":o[10]||(o[10]=l=>w(x)?x.value=l:null),title:"\u9009\u62E9\u5546\u54C1",width:"70%"},{default:a(()=>[t(Be,{onOnBindStore:Ee,warehouse_id:u(Y),is_warehouse:u(M)},null,8,["warehouse_id","is_warehouse"])]),_:1},8,["modelValue"]),t(B,{modelValue:u(b),"onUpdate:modelValue":o[15]||(o[15]=l=>w(b)?b.value=l:null),title:"\u751F\u6210\u652F\u4ED8\u8BA2\u5355\u8BBE\u7F6E",width:"600"},{footer:a(()=>[e("div",Ot,[t(n,{onClick:o[14]||(o[14]=l=>b.value=!1)},{default:a(()=>[p("\u53D6\u6D88")]),_:1}),t(n,{type:"primary",onClick:we},{default:a(()=>[p(" \u786E\u8BA4 ")]),_:1})])]),default:a(()=>[t(G,{model:u(m),"label-width":"90px"},{default:a(()=>[t($,{label:"\u7528\u6237"},{default:a(()=>[t(O,{modelValue:u(m).user_id,"onUpdate:modelValue":o[11]||(o[11]=l=>u(m).user_id=l),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u7528\u6237\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":ke,loading:u(D),style:{width:"240px"}},{default:a(()=>[(E(!0),U(L,null,re(u(W),l=>(E(),de(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}),t($,{label:"\u95E8\u5E97",prop:"store_id"},{default:a(()=>[t(O,{modelValue:u(m).store_id,"onUpdate:modelValue":o[12]||(o[12]=l=>u(m).store_id=l),placeholder:"\u8BF7\u9009\u62E9\u95E8\u5E97",size:"large",style:{width:"240px"}},{default:a(()=>[(E(!0),U(L,null,re(u(q),l=>(E(),de(y,{key:l.id,label:l.name,value:l.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),t($,{label:"\u652F\u4ED8\u65B9\u5F0F",prop:"pay_type"},{default:a(()=>[t(O,{modelValue:u(m).pay_type,"onUpdate:modelValue":o[13]||(o[13]=l=>u(m).pay_type=l),placeholder:"\u8BF7\u9009\u62E9\u652F\u4ED8\u65B9\u5F0F",size:"large",style:{width:"240px"}},{default:a(()=>[t(y,{label:"\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F\u652F\u4ED8",value:"7"}),t(y,{label:"\u91C7\u8D2D\u6B3E\u652F\u4ED8",value:"18"}),t(y,{label:"\u4F59\u989D\u652F\u4ED8",value:"3"}),t(y,{label:"\u73B0\u91D1\u652F\u4ED8",value:"17"})]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"])],64)}}});export{uu as default};
|