2 lines
16 KiB
JavaScript
2 lines
16 KiB
JavaScript
import{x as Ce,y as ke,U as we,k as E,w as Ve,L as Ae,M as Be,b as Oe,C as $e,N as Ue,F as Le,I as Re,J as Se,K as Pe,D as Ie}from"./element-plus.7e347b00.js";import{_ as Te}from"./index.vue_vue_type_script_setup_true_name_systemStoreLists_lang.bf10282b.js";import{g as je}from"./beforehand_order_cart_info.68556e13.js";import{c as Ye,g as Me,b as Ne,h as ze,i as We,j as qe,k as Ke}from"./beforehand_order.8995d03b.js";import{u as Ge}from"./vue-router.101084e3.js";import{_ as Je}from"./goodsOffer.vue_vue_type_script_setup_true_name_subOrder_lang.c683543d.js";import{_ as Ze}from"./orderCartInfo.vue_vue_type_script_setup_true_name_subOrder_lang.a32af55c.js";import{_ as He}from"./warehousing.vue_vue_type_script_setup_true_name_subOrder_lang.66b75021.js";import{_ as Qe}from"./outbound.vue_vue_type_script_setup_true_name_subOrder_lang.920fd7a8.js";import{_ as Xe}from"./returnWarehouse.vue_vue_type_script_setup_true_name_subOrder_lang.67648bd3.js";import{_ as eo}from"./returnSupplier.vue_vue_type_script_setup_true_name_subOrder_lang.7fa37699.js";import{h as oo}from"./index.551a785f.js";import{a as to}from"./system_store.c53888f7.js";import"./vue-plugin-hiprint.0b628454.js";import{d as ue,r,Z as lo,o as g,c as U,U as o,L as u,a as t,S as n,u as a,R as p,j as w,T as L,a9 as te,K as le}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.4734406a.js";import"./store_product.0fca0a3e.js";import"./store_branch_product.e2667f44.js";import"./warehouse_product_storege.1a0b24db.js";import"./lodash.1312d99b.js";import"./purchase_product_offer.d708f5e7.js";import"./warehouse.6582c2e6.js";import"./supplier.cbec4269.js";import"./delivery_service.3992b3dc.js";import"./editProduct.vue_vue_type_script_setup_true_name_warehouseOrderEdit_lang.05cbf43b.js";import"./index.b12708e3.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";import"./warehouse_order.d69d6672.js";import"./warehouse_product_return.8ad3d47f.js";import"./axios.ec410059.js";import"./jspdf.263a760e.js";import"./fflate.0418c72f.js";import"./pinia.a969beab.js";import"./css-color-function.9f6a56f3.js";import"./color.d1bc3784.js";import"./clone.83700f2e.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.e2816979.js";import"./engine.io-client.61035ef5.js";import"./engine.io-parser.4305f785.js";import"./@socket.io.063b20dd.js";import"./debug.b392f131.js";import"./socket.io-parser.53fa9de9.js";import"./html2canvas.6cb4876d.js";import"./canvg.e514d66c.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.4ada7813.js";const uo={class:"flex items-center justify-between m-4"},ao={class:"flex flex-col"},so=t("div",{style:{color:"gray"}},"\u59D3\u540D\uFF1A",-1),io={style:{color:"black"}},ro={class:"flex flex-col"},no=t("div",{style:{color:"gray"}},"\u624B\u673A\uFF1A",-1),_o={style:{color:"black"}},co={class:"flex flex-col"},po=t("div",{style:{color:"gray"}},"\u9001\u8D27\u5730\u5740\uFF1A",-1),mo={style:{color:"black"}},fo={class:"flex items-center justify-between m-4"},ho={class:"flex flex-col"},vo=t("div",{style:{color:"gray"}},"\u5355\u53F7\uFF1A",-1),Fo={style:{color:"black"}},yo={class:"flex flex-col"},bo=t("div",{style:{color:"gray"}},"\u652F\u4ED8\u5355\u53F7\uFF1A",-1),xo={style:{color:"black"}},Eo={class:"flex flex-col"},go=t("div",{style:{color:"gray"}},"\u95E8\u5E97\uFF1A",-1),Do={style:{color:"black"}},Co={class:"flex items-center justify-between m-4"},ko={class:"flex flex-col"},wo=t("div",{style:{color:"gray"}},"\u5230\u8D27\u65F6\u95F4\uFF1A",-1),Vo={style:{color:"black"}},Ao={class:"flex flex-col"},Bo=t("div",{style:{color:"gray"}},"\u684C\u6570\uFF1A",-1),Oo={style:{color:"black"}},$o={class:"flex flex-col"},Uo=t("div",{style:{color:"gray"}},"\u529E\u4E8B\u5929\u6570\uFF1A",-1),Lo={style:{color:"black"}},Ro={class:"flex flex-col"},So=t("div",{style:{color:"gray"}},"\u53A8\u5E08\uFF1A",-1),Po={style:{color:"black"}},Io={class:"flex flex-col"},To=t("div",{style:{color:"gray"}},"\u7535\u8BDD\uFF1A",-1),jo={style:{color:"black"}},Yo={class:"flex items-center justify-between m-4"},Mo={class:"flex flex-col"},No=t("div",{style:{color:"gray"}},"\u91C7\u8D2D\u4E8B\u7531\uFF1A",-1),zo={style:{color:"black"}},Wo={class:"flex flex-col"},qo=t("div",{style:{color:"gray"}},"\u5907\u6CE8\uFF1A",-1),Ko={style:{color:"black"}},Go={class:"flex items-center justify-between m-4"},Jo={class:"flex flex-col"},Zo=t("div",{style:{color:"gray"}},"\u603B\u4EF7",-1),Ho={style:{color:"black"}},Qo={class:"flex flex-col"},Xo=t("div",{style:{color:"gray"}},"\u652F\u4ED8\u91D1\u989D",-1),et={style:{color:"black"}},ot={class:"flex flex-col flex-2"},tt=t("div",{style:{color:"gray"}},"\u65F6\u95F4",-1),lt={style:{color:"black"}},ut={class:"justify-between m-4"},at={class:"mb-2"},st={class:"dialog-footer"},it={class:"dialog-footer"},rt=ue({name:"storeOrderDETAILS"}),Ll=ue({...rt,props:{dictData:{type:Object,default:()=>({})}},emits:["success","close"],setup(dt,{expose:ae,emit:nt}){const b=r(!1),R=r(null),S=r(null),P=r(null),I=r(null),T=r(null),j=r(null),se=Ge(),ie=s=>{var e,d,f,C,k,c;s=="second"&&((e=I.value)==null||e.getList(i.value)),s=="offer"&&((d=R.value)==null||d.getList(i.value.id)),s=="warehousing"&&((f=S.value)==null||f.getList(i.value.id,i.value.warehousing_id)),s=="outbound"&&((C=P.value)==null||C.getList(i.value.id,i.value)),s=="returnWarehouse"&&((k=T.value)==null||k.getList(i.value)),s=="returnSupplier"&&((c=j.value)==null||c.getList(i.value))},re=r(!1),F=r(!1),V=r("second"),Y=r(0),M=r(0),de=r(0),i=r({id:"",code:"",total_price:"",supplier_name:"",warehouse_name:"",system_store:"",financial_pm:"",order_sn:"",warehousing_id:"",top_cate:[]}),m=r({id:"",user_id:"",pay_type:"",store_id:""}),ne=()=>{const s=h.value.map(e=>({id:e.id,nums:e.num||0,purchase:e.price||0,prices:e.purchase||0,total_price:e.total_price||0,manufacture:e.manufacture,expiration_date:e.expiration_date}));je({id:N.bhoid,product_arr:s}).then(e=>{F.value=!1})},N=lo({bhoid:se.query.id,pay_type:"",top_cate:"",top_cate_value:""});(()=>{Ye({id:N.bhoid}).then(s=>{i.value={...s},Y.value=s.warehouse_id,m.value.id=s.id,s.financial_pm==0?M.value=1:de.value=1,h.value=[]})})();const _e=s=>{Me({id:s}).then(e=>{window.open(e.url,"_blank"),E.success("\u5BFC\u51FA\u6210\u529F")})},ce=s=>{Ne({id:s}).then(e=>{window.open(e.url,"_blank"),E.success("\u5BFC\u51FA\u6210\u529F")})},pe=s=>{ze({id:s}).then(e=>{window.open(e.url,"_blank"),E.success("\u5BFC\u51FA\u6210\u529F")})},me=s=>{We({id:s}).then(e=>{window.open(e.url,"_blank"),E.success("\u5BFC\u51FA\u6210\u529F")})},fe=s=>{qe({id:s}).then(e=>{window.open(e.url,"_blank"),E.success("\u5BFC\u51FA\u6210\u529F")})},x=r(!1),h=r([]),he=s=>{h.value=h.value.filter(e=>e.id!==s)},ve=s=>{s.forEach(e=>{h.value.find(d=>d.id==e.id)||h.value.push(e)}),x.value=!1};function z(s){s.total_price=s.num*s.price}const Fe=()=>{re.value=!0},D=r(!1),W=r([]),ye=(s="")=>{D.value=!0,oo({nickname:s,page_size:10}).then(e=>{W.value=e.lists,setTimeout(()=>{D.value=!1},300)}).catch(e=>{setTimeout(()=>{D.value=!1},300)})},q=r([]),be=()=>{b.value=!0,to({page_no:1,page_size:100}).then(s=>{q.value=s.lists})},xe=()=>{Ke(m.value).then(s=>{})};return ae({open:Fe}),(s,e)=>{const d=Ve,f=Ce,C=ke,k=Ae,c=Be,Ee=Oe,A=$e,K=we,ge=Ue,G=Le,B=Re,De=Te,y=Se,O=Pe,$=Ie;return g(),U(L,null,[o(k,null,{default:u(()=>{var l,_,J,Z,H,Q,X,ee,oe;return[t("div",uo,[t("div",ao,[so,t("div",io,n((l=a(i).other_data)==null?void 0:l.nickname),1)]),t("div",ro,[no,t("div",_o,n((_=a(i).other_data)==null?void 0:_.phone),1)]),t("div",co,[po,t("div",mo,n((J=a(i).other_data)==null?void 0:J.address),1)])]),t("div",fo,[t("div",ho,[vo,t("div",Fo,n(a(i).order_id),1)]),t("div",yo,[bo,t("div",xo,n(a(i).order_sn),1)]),t("div",Eo,[go,t("div",Do,n(a(i).system_store),1)])]),t("div",Co,[t("div",ko,[wo,t("div",Vo,n((Z=a(i).other_data)==null?void 0:Z.arrival_time),1)]),t("div",Ao,[Bo,t("div",Oo,n((H=a(i).other_data)==null?void 0:H.tables),1)]),t("div",$o,[Uo,t("div",Lo,n((Q=a(i).other_data)==null?void 0:Q.days),1)]),t("div",Ro,[So,t("div",Po,n((X=a(i).other_data)==null?void 0:X.chef),1)]),t("div",Io,[To,t("div",jo,n((ee=a(i).other_data)==null?void 0:ee.chef_phone),1)])]),t("div",Yo,[t("div",Mo,[No,t("div",zo,n((oe=a(i).other_data)==null?void 0:oe.purpose),1)]),t("div",Wo,[qo,t("div",Ko,n(a(i).mark),1)])]),t("div",Go,[t("div",Jo,[Zo,t("div",Ho,"\uFFE5"+n(a(i).total_price),1)]),t("div",Qo,[Xo,t("div",et,"\uFFE5"+n(a(i).pay_price),1)]),t("div",ot,[tt,t("div",lt,n(a(i).create_time),1)]),o(d,{onClick:e[0]||(e[0]=v=>_e(a(i).id))},{default:u(()=>[p(" \u6253\u5370\u5546\u54C1\u6807\u7B7E ")]),_:1}),o(d,{onClick:be},{default:u(()=>[p(" \u751F\u6210\u5546\u54C1\u8BA2\u5355 ")]),_:1})]),t("div",ut,[o(d,{onClick:e[1]||(e[1]=v=>ce(a(i).id))},{default:u(()=>[p(" \u6253\u5370\u4E0B\u5355\u6E05\u5355 ")]),_:1}),o(d,{onClick:e[2]||(e[2]=v=>pe(a(i).id))},{default:u(()=>[p(" \u6253\u5370\u5206\u914D\u5355 ")]),_:1}),o(d,{onClick:e[3]||(e[3]=v=>me(a(i).id))},{default:u(()=>[p(" \u6253\u5370\u91C7\u8D2D\u5355 ")]),_:1}),o(d,{onClick:e[4]||(e[4]=v=>fe(a(i).id))},{default:u(()=>[p(" \u6253\u5370\u51FA\u5E93\u5355 ")]),_:1})]),o(d,{type:"primary",onClick:e[5]||(e[5]=v=>F.value=!0)},{default:u(()=>[p(" \u8FFD\u52A0 ")]),_:1}),o(C,{modelValue:a(V),"onUpdate:modelValue":e[6]||(e[6]=v=>w(V)?V.value=v:null),class:"demo-tabs mt-3",type:"border-card",onTabChange:ie},{default:u(()=>[o(f,{label:"\u660E\u7EC6",name:"second"},{default:u(()=>[o(Ze,{ref_key:"orderCartInfoRef",ref:I,id:a(i).id},null,8,["id"])]),_:1}),o(f,{label:"\u91C7\u8D2D",name:"offer"},{default:u(()=>[o(Je,{ref_key:"goodsOfferRef",ref:R,order_id:a(i).id},null,8,["order_id"])]),_:1}),o(f,{label:"\u5165\u5E93",name:"warehousing"},{default:u(()=>[o(He,{ref_key:"warehousingRef",ref:S,order_id:a(i).id},null,8,["order_id"])]),_:1}),o(f,{label:"\u51FA\u5E93",name:"outbound"},{default:u(()=>[o(Qe,{ref_key:"outboundRef",ref:P,order_id:a(i).id},null,8,["order_id"])]),_:1}),o(f,{label:"\u9000\u5E93\u623F",name:"returnWarehouse"},{default:u(()=>[o(Xe,{ref_key:"returnWarehouseRef",ref:T},null,512)]),_:1}),o(f,{label:"\u9000\u4F9B\u5E94\u5546",name:"returnSupplier"},{default:u(()=>[o(eo,{ref_key:"returnSupplierRef",ref:j},null,512)]),_:1})]),_:1},8,["modelValue"])]}),_:1}),o(B,{modelValue:a(F),"onUpdate:modelValue":e[9]||(e[9]=l=>w(F)?F.value=l:null),title:"\u8FFD\u52A0\u5546\u54C1",width:"1200"},{footer:u(()=>[t("div",st,[o(d,{onClick:e[8]||(e[8]=l=>F.value=!1)},{default:u(()=>[p("\u53D6\u6D88")]),_:1}),o(d,{type:"primary",onClick:ne},{default:u(()=>[p(" \u786E\u8BA4 ")]),_:1})])]),default:u(()=>[o(G,{ref:"formRef","label-width":"90px"},{default:u(()=>[t("div",at,[o(d,{type:"primary",onClick:e[7]||(e[7]=l=>x.value=!0)},{default:u(()=>[p("\u6DFB\u52A0\u5546\u54C1")]),_:1})]),o(ge,{data:a(h)},{default:u(()=>[o(c,{label:"\u5546\u54C1ID",prop:"id","show-overflow-tooltip":""}),o(c,{label:"\u5546\u54C1\u56FE\u7247",prop:"image","min-width":"80"},{default:u(({row:l})=>[o(Ee,{style:{width:"50px",height:"50px"},src:l.image,"preview-teleported":!0},null,8,["src"])]),_:1}),o(c,{label:"\u5546\u54C1\u540D\u79F0",prop:"store_name","min-width":"180","show-overflow-tooltip":""}),o(c,{label:"\u5206\u7C7B",prop:"cate_name","min-width":"80","show-overflow-tooltip":""}),o(c,{label:"\u5355\u4F4D",prop:"unit_name","min-width":"80","show-overflow-tooltip":""}),o(c,{label:"\u6570\u91CF","min-width":"150"},{default:u(({row:l})=>[o(A,{modelValue:l.num,"onUpdate:modelValue":_=>l.num=_,onChange:_=>z(l)},null,8,["modelValue","onUpdate:modelValue","onChange"])]),_:1}),o(c,{label:"\u4EF7\u683C","min-width":"150"},{default:u(({row:l})=>[o(A,{modelValue:l.price,"onUpdate:modelValue":_=>l.price=_,onChange:_=>z(l)},null,8,["modelValue","onUpdate:modelValue","onChange"])]),_:1}),o(c,{label:"\u603B\u4EF7","min-width":"150"},{default:u(({row:l})=>[o(A,{modelValue:l.total_price,"onUpdate:modelValue":_=>l.total_price=_},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),o(c,{label:"\u751F\u4EA7\u65E5\u671F","min-width":"140"},{default:u(({row:l})=>[o(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}),o(c,{label:"\u4FDD\u8D28\u671F","min-width":"140"},{default:u(({row:l})=>[o(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}),o(c,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:u(({row:l})=>[o(d,{type:"danger",link:"",onClick:_=>he(l.id)},{default:u(()=>[p(" \u5220\u9664 ")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])]),_:1},512)]),_:1},8,["modelValue"]),o(B,{modelValue:a(x),"onUpdate:modelValue":e[10]||(e[10]=l=>w(x)?x.value=l:null),title:"\u9009\u62E9\u5546\u54C1",width:"70%"},{default:u(()=>[o(De,{onOnBindStore:ve,warehouse_id:a(Y),is_warehouse:a(M)},null,8,["warehouse_id","is_warehouse"])]),_:1},8,["modelValue"]),o(B,{modelValue:a(b),"onUpdate:modelValue":e[15]||(e[15]=l=>w(b)?b.value=l:null),title:"\u751F\u6210\u652F\u4ED8\u8BA2\u5355\u8BBE\u7F6E",width:"600"},{footer:u(()=>[t("div",it,[o(d,{onClick:e[14]||(e[14]=l=>b.value=!1)},{default:u(()=>[p("\u53D6\u6D88")]),_:1}),o(d,{type:"primary",onClick:xe},{default:u(()=>[p(" \u786E\u8BA4 ")]),_:1})])]),default:u(()=>[o(G,{model:a(m),"label-width":"90px"},{default:u(()=>[o($,{label:"\u7528\u6237"},{default:u(()=>[o(O,{modelValue:a(m).user_id,"onUpdate:modelValue":e[11]||(e[11]=l=>a(m).user_id=l),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u7528\u6237\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":ye,loading:a(D),style:{width:"240px"}},{default:u(()=>[(g(!0),U(L,null,te(a(W),l=>(g(),le(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}),o($,{label:"\u95E8\u5E97",prop:"store_id"},{default:u(()=>[o(O,{modelValue:a(m).store_id,"onUpdate:modelValue":e[12]||(e[12]=l=>a(m).store_id=l),placeholder:"\u8BF7\u9009\u62E9\u95E8\u5E97",size:"large",style:{width:"240px"}},{default:u(()=>[(g(!0),U(L,null,te(a(q),l=>(g(),le(y,{key:l.id,label:l.name,value:l.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),o($,{label:"\u652F\u4ED8\u65B9\u5F0F",prop:"pay_type"},{default:u(()=>[o(O,{modelValue:a(m).pay_type,"onUpdate:modelValue":e[13]||(e[13]=l=>a(m).pay_type=l),placeholder:"\u8BF7\u9009\u62E9\u652F\u4ED8\u65B9\u5F0F",size:"large",style:{width:"240px"}},{default:u(()=>[o(y,{label:"\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F\u652F\u4ED8",value:"7"}),o(y,{label:"\u91C7\u8D2D\u6B3E\u652F\u4ED8",value:"18"}),o(y,{label:"\u4F59\u989D\u652F\u4ED8",value:"3"}),o(y,{label:"\u73B0\u91D1\u652F\u4ED8",value:"17"})]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"])],64)}}});export{Ll as default};
|