2 lines
14 KiB
JavaScript
2 lines
14 KiB
JavaScript
import{x as ce,y as me,U as pe,k as fe,w as he,L as ve,M as ye,b as Fe,C as be,N as ge,F as Ee,I as xe,J as De,K as Ce,D as ke}from"./element-plus.4a7d92a3.js";import{_ as we}from"./index.vue_vue_type_script_setup_true_name_systemStoreLists_lang.a4b18d9a.js";import{g as Ve}from"./beforehand_order_cart_info.1e23dab7.js";import{e as Ae,f as Be,g as Ue}from"./beforehand_order.fe6ada9b.js";import{u as $e}from"./vue-router.101084e3.js";import{_ as Re}from"./goodsOffer.vue_vue_type_script_setup_true_name_subOrder_lang.e2a08ee4.js";import{_ as Le}from"./orderCartInfo.vue_vue_type_script_setup_true_name_subOrder_lang.0be37f3f.js";import{_ as Oe}from"./warehousing.vue_vue_type_script_setup_true_name_subOrder_lang.184c02ba.js";import{_ as Se}from"./outbound.vue_vue_type_script_setup_true_name_subOrder_lang.9a426201.js";import{_ as Ie}from"./returnWarehouse.vue_vue_type_script_setup_true_name_subOrder_lang.4198a06b.js";import{_ as Te}from"./returnSupplier.vue_vue_type_script_setup_true_name_subOrder_lang.a1009bdb.js";import{h as Pe}from"./index.c7609165.js";import{a as Ye}from"./system_store.388b00e0.js";import{d as J,r,Z as je,o as g,c as U,U as e,L as a,a as o,S as d,u,R as f,j as C,T as $,a9 as K,K as G}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.7347fedc.js";import"./axios.4607972f.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./index.vue_vue_type_script_setup_true_lang.5d4e738c.js";import"./usePaging.6a6670f9.js";import"./useDictOptions.a0f95660.js";import"./store_product.287da381.js";import"./store_branch_product.113cacf1.js";import"./warehouse_product_storege.b4f4f39b.js";import"./lodash.9dc701ad.js";import"./purchase_product_offer.4b5e07ac.js";import"./warehouse.9ba28c8b.js";import"./supplier.700f3e1f.js";import"./delivery_service.81fa6deb.js";import"./editProduct.vue_vue_type_script_setup_true_name_warehouseOrderEdit_lang.4301666f.js";import"./index.e5c5a370.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";import"./warehouse_order.bbf587ca.js";import"./warehouse_product_return.214b3f9e.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.0d2736b7.js";import"./vue-clipboard3.7d5a7a5d.js";import"./clipboard.860a1cea.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";const Me={class:"flex items-center justify-between m-4"},Ne={class:"flex flex-col"},ze=o("div",{style:{color:"gray"}},"\u59D3\u540D\uFF1A",-1),We={style:{color:"black"}},qe={class:"flex flex-col"},Ke=o("div",{style:{color:"gray"}},"\u624B\u673A\uFF1A",-1),Ge={style:{color:"black"}},Je={class:"flex flex-col"},Ze=o("div",{style:{color:"gray"}},"\u9001\u8D27\u5730\u5740\uFF1A",-1),He={style:{color:"black"}},Qe={class:"flex items-center justify-between m-4"},Xe={class:"flex flex-col"},eo=o("div",{style:{color:"gray"}},"\u5355\u53F7\uFF1A",-1),oo={style:{color:"black"}},lo={class:"flex flex-col"},to=o("div",{style:{color:"gray"}},"\u652F\u4ED8\u5355\u53F7\uFF1A",-1),ao={style:{color:"black"}},uo={class:"flex flex-col"},so=o("div",{style:{color:"gray"}},"\u95E8\u5E97\uFF1A",-1),io={style:{color:"black"}},ro={class:"flex items-center justify-between m-4"},no={class:"flex flex-col"},_o=o("div",{style:{color:"gray"}},"\u5230\u8D27\u65F6\u95F4\uFF1A",-1),co={style:{color:"black"}},mo={class:"flex flex-col"},po=o("div",{style:{color:"gray"}},"\u684C\u6570\uFF1A",-1),fo={style:{color:"black"}},ho={class:"flex flex-col"},vo=o("div",{style:{color:"gray"}},"\u529E\u4E8B\u5929\u6570\uFF1A",-1),yo={style:{color:"black"}},Fo={class:"flex flex-col"},bo=o("div",{style:{color:"gray"}},"\u53A8\u5E08\uFF1A",-1),go={style:{color:"black"}},Eo={class:"flex flex-col"},xo=o("div",{style:{color:"gray"}},"\u7535\u8BDD\uFF1A",-1),Do={style:{color:"black"}},Co={class:"flex items-center justify-between m-4"},ko={class:"flex flex-col"},wo=o("div",{style:{color:"gray"}},"\u91C7\u8D2D\u4E8B\u7531\uFF1A",-1),Vo={style:{color:"black"}},Ao={class:"flex flex-col"},Bo=o("div",{style:{color:"gray"}},"\u5907\u6CE8\uFF1A",-1),Uo={style:{color:"black"}},$o={class:"flex items-center justify-between m-4"},Ro={class:"flex flex-col"},Lo=o("div",{style:{color:"gray"}},"\u603B\u4EF7",-1),Oo={style:{color:"black"}},So={class:"flex flex-col flex-2"},Io=o("div",{style:{color:"gray"}},"\u65F6\u95F4",-1),To={style:{color:"black"}},Po={class:"mb-2"},Yo={class:"dialog-footer"},jo={class:"dialog-footer"},Mo=J({name:"storeOrderDETAILS"}),Gl=J({...Mo,props:{dictData:{type:Object,default:()=>({})}},emits:["success","close"],setup(No,{expose:Z,emit:zo}){const F=r(!1),R=r(null),L=r(null),O=r(null),S=r(null),I=r(null),T=r(null),H=$e(),Q=i=>{var t,n,p,x,D,_;i=="second"&&((t=S.value)==null||t.getList(s.value)),i=="offer"&&((n=R.value)==null||n.getList(s.value.id)),i=="warehousing"&&((p=L.value)==null||p.getList(s.value.id,s.value.warehousing_id)),i=="outbound"&&((x=O.value)==null||x.getList(s.value.id,s.value)),i=="returnWarehouse"&&((D=I.value)==null||D.getList(s.value)),i=="returnSupplier"&&((_=T.value)==null||_.getList(s.value))},X=r(!1),v=r(!1),k=r("second"),P=r(0),Y=r(0),ee=r(0),s=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:""}),oe=()=>{const i=h.value.map(t=>({id:t.id,nums:t.num||0,purchase:t.purchases||0,prices:t.purchase||0,total_price:t.total_price||0,manufacture:t.manufacture,expiration_date:t.expiration_date}));Ve({id:j.bhoid,product_arr:i}).then(t=>{v.value=!1})},j=je({bhoid:H.query.id,pay_type:"",top_cate:"",top_cate_value:""});(()=>{Ae({id:j.bhoid}).then(i=>{s.value={...i},P.value=i.warehouse_id,m.value.id=i.id,i.financial_pm==0?Y.value=1:ee.value=1,h.value=[]})})();const le=i=>{Be({id:i}).then(t=>{window.open(t.url,"_blank"),fe.success("\u5BFC\u51FA\u6210\u529F")})},b=r(!1),h=r([]),te=i=>{h.value=h.value.filter(t=>t.id!==i)},ae=i=>{i.forEach(t=>{h.value.find(n=>n.id==t.id)||h.value.push(t)}),b.value=!1};function M(i){i.total_price=i.num*i.purchases}const ue=()=>{X.value=!0},E=r(!1),N=r([]),se=(i="")=>{E.value=!0,Pe({nickname:i,page_size:10}).then(t=>{N.value=t.lists,setTimeout(()=>{E.value=!1},300)}).catch(t=>{setTimeout(()=>{E.value=!1},300)})},z=r([]),ie=()=>{F.value=!0,Ye({page_no:1,page_size:100}).then(i=>{z.value=i.lists})},re=()=>{Ue(m.value).then(i=>{})};return Z({open:ue}),(i,t)=>{const n=he,p=ce,x=me,D=ve,_=ye,de=Fe,w=be,W=pe,ne=ge,q=Ee,V=xe,_e=we,y=De,A=Ce,B=ke;return g(),U($,null,[e(D,null,{default:a(()=>[o("div",Me,[o("div",Ne,[ze,o("div",We,d(u(s).other_data.nickname),1)]),o("div",qe,[Ke,o("div",Ge,d(u(s).other_data.phone),1)]),o("div",Je,[Ze,o("div",He,d(u(s).other_data.address),1)])]),o("div",Qe,[o("div",Xe,[eo,o("div",oo,d(u(s).order_id),1)]),o("div",lo,[to,o("div",ao,d(u(s).order_sn),1)]),o("div",uo,[so,o("div",io,d(u(s).system_store),1)])]),o("div",ro,[o("div",no,[_o,o("div",co,d(u(s).other_data.arrival_time),1)]),o("div",mo,[po,o("div",fo,d(u(s).other_data.tables),1)]),o("div",ho,[vo,o("div",yo,d(u(s).other_data.days),1)]),o("div",Fo,[bo,o("div",go,d(u(s).other_data.chef),1)]),o("div",Eo,[xo,o("div",Do,d(u(s).other_data.chef_phone),1)])]),o("div",Co,[o("div",ko,[wo,o("div",Vo,d(u(s).other_data.purpose),1)]),o("div",Ao,[Bo,o("div",Uo,d(u(s).mark),1)])]),o("div",$o,[o("div",Ro,[Lo,o("div",Oo,"\uFFE5"+d(u(s).total_price),1)]),o("div",So,[Io,o("div",To,d(u(s).create_time),1)]),e(n,{onClick:t[0]||(t[0]=l=>le(u(s).id))},{default:a(()=>[f(" \u6253\u5370\u5546\u54C1\u6807\u7B7E ")]),_:1}),e(n,{onClick:ie},{default:a(()=>[f(" \u751F\u6210\u5546\u54C1\u8BA2\u5355 ")]),_:1})]),e(n,{type:"primary",onClick:t[1]||(t[1]=l=>v.value=!0)},{default:a(()=>[f(" \u8FFD\u52A0 ")]),_:1}),e(x,{modelValue:u(k),"onUpdate:modelValue":t[2]||(t[2]=l=>C(k)?k.value=l:null),class:"demo-tabs mt-3",type:"border-card",onTabChange:Q},{default:a(()=>[e(p,{label:"\u660E\u7EC6",name:"second"},{default:a(()=>[e(Le,{ref_key:"orderCartInfoRef",ref:S,id:u(s).id},null,8,["id"])]),_:1}),e(p,{label:"\u91C7\u8D2D",name:"offer"},{default:a(()=>[e(Re,{ref_key:"goodsOfferRef",ref:R,order_id:u(s).id},null,8,["order_id"])]),_:1}),e(p,{label:"\u5165\u5E93",name:"warehousing"},{default:a(()=>[e(Oe,{ref_key:"warehousingRef",ref:L,order_id:u(s).id},null,8,["order_id"])]),_:1}),e(p,{label:"\u51FA\u5E93",name:"outbound"},{default:a(()=>[e(Se,{ref_key:"outboundRef",ref:O,order_id:u(s).id},null,8,["order_id"])]),_:1}),e(p,{label:"\u9000\u5E93\u623F",name:"returnWarehouse"},{default:a(()=>[e(Ie,{ref_key:"returnWarehouseRef",ref:I},null,512)]),_:1}),e(p,{label:"\u9000\u4F9B\u5E94\u5546",name:"returnSupplier"},{default:a(()=>[e(Te,{ref_key:"returnSupplierRef",ref:T},null,512)]),_:1})]),_:1},8,["modelValue"])]),_:1}),e(V,{modelValue:u(v),"onUpdate:modelValue":t[5]||(t[5]=l=>C(v)?v.value=l:null),title:"\u8FFD\u52A0\u5546\u54C1",width:"1200"},{footer:a(()=>[o("div",Yo,[e(n,{onClick:t[4]||(t[4]=l=>v.value=!1)},{default:a(()=>[f("\u53D6\u6D88")]),_:1}),e(n,{type:"primary",onClick:oe},{default:a(()=>[f(" \u786E\u8BA4 ")]),_:1})])]),default:a(()=>[e(q,{ref:"formRef","label-width":"90px"},{default:a(()=>[o("div",Po,[e(n,{type:"primary",onClick:t[3]||(t[3]=l=>b.value=!0)},{default:a(()=>[f("\u6DFB\u52A0\u5546\u54C1")]),_:1})]),e(ne,{data:u(h)},{default:a(()=>[e(_,{label:"\u5546\u54C1ID",prop:"id","show-overflow-tooltip":""}),e(_,{label:"\u5546\u54C1\u56FE\u7247",prop:"image","min-width":"80"},{default:a(({row:l})=>[e(de,{style:{width:"50px",height:"50px"},src:l.image,"preview-teleported":!0},null,8,["src"])]),_:1}),e(_,{label:"\u5546\u54C1\u540D\u79F0",prop:"store_name","min-width":"180","show-overflow-tooltip":""}),e(_,{label:"\u5206\u7C7B",prop:"cate_name","min-width":"80","show-overflow-tooltip":""}),e(_,{label:"\u5355\u4F4D",prop:"unit_name","min-width":"80","show-overflow-tooltip":""}),e(_,{label:"\u6570\u91CF","min-width":"150"},{default:a(({row:l})=>[e(w,{modelValue:l.num,"onUpdate:modelValue":c=>l.num=c,onChange:c=>M(l)},null,8,["modelValue","onUpdate:modelValue","onChange"])]),_:1}),e(_,{label:"\u4EF7\u683C","min-width":"150"},{default:a(({row:l})=>[e(w,{modelValue:l.purchases,"onUpdate:modelValue":c=>l.purchases=c,onChange:c=>M(l)},null,8,["modelValue","onUpdate:modelValue","onChange"])]),_:1}),e(_,{label:"\u603B\u4EF7","min-width":"150"},{default:a(({row:l})=>[e(w,{modelValue:l.total_price,"onUpdate:modelValue":c=>l.total_price=c},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),e(_,{label:"\u751F\u4EA7\u65E5\u671F","min-width":"140"},{default:a(({row:l})=>[e(W,{readonly:!1,class:"flex-1 !flex",modelValue:l.manufacture,"onUpdate:modelValue":c=>l.manufacture=c,clearable:"",type:"date","value-format":"YYYY-MM-DD",placeholder:"\u9009\u62E9\u751F\u4EA7\u65E5\u671F"},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),e(_,{label:"\u4FDD\u8D28\u671F","min-width":"140"},{default:a(({row:l})=>[e(W,{readonly:!1,class:"flex-1 !flex",modelValue:l.expiration_date,"onUpdate:modelValue":c=>l.expiration_date=c,clearable:"",type:"date","value-format":"YYYY-MM-DD",placeholder:"\u9009\u62E9\u4FDD\u8D28\u671F"},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),e(_,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:a(({row:l})=>[e(n,{type:"danger",link:"",onClick:c=>te(l.id)},{default:a(()=>[f(" \u5220\u9664 ")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])]),_:1},512)]),_:1},8,["modelValue"]),e(V,{modelValue:u(b),"onUpdate:modelValue":t[6]||(t[6]=l=>C(b)?b.value=l:null),title:"\u9009\u62E9\u5546\u54C1",width:"70%"},{default:a(()=>[e(_e,{onOnBindStore:ae,warehouse_id:u(P),is_warehouse:u(Y)},null,8,["warehouse_id","is_warehouse"])]),_:1},8,["modelValue"]),e(V,{modelValue:u(F),"onUpdate:modelValue":t[11]||(t[11]=l=>C(F)?F.value=l:null),title:"\u751F\u6210\u652F\u4ED8\u8BA2\u5355\u8BBE\u7F6E",width:"600"},{footer:a(()=>[o("div",jo,[e(n,{onClick:t[10]||(t[10]=l=>F.value=!1)},{default:a(()=>[f("\u53D6\u6D88")]),_:1}),e(n,{type:"primary",onClick:re},{default:a(()=>[f(" \u786E\u8BA4 ")]),_:1})])]),default:a(()=>[e(q,{model:u(m),"label-width":"90px"},{default:a(()=>[e(B,{label:"\u7528\u6237"},{default:a(()=>[e(A,{modelValue:u(m).user_id,"onUpdate:modelValue":t[7]||(t[7]=l=>u(m).user_id=l),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u7528\u6237\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":se,loading:u(E),style:{width:"240px"}},{default:a(()=>[(g(!0),U($,null,K(u(N),l=>(g(),G(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}),e(B,{label:"\u95E8\u5E97",prop:"store_id"},{default:a(()=>[e(A,{modelValue:u(m).store_id,"onUpdate:modelValue":t[8]||(t[8]=l=>u(m).store_id=l),placeholder:"\u8BF7\u9009\u62E9\u95E8\u5E97",size:"large",style:{width:"240px"}},{default:a(()=>[(g(!0),U($,null,K(u(z),l=>(g(),G(y,{key:l.id,label:l.name,value:l.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(B,{label:"\u652F\u4ED8\u65B9\u5F0F",prop:"pay_type"},{default:a(()=>[e(A,{modelValue:u(m).pay_type,"onUpdate:modelValue":t[9]||(t[9]=l=>u(m).pay_type=l),placeholder:"\u8BF7\u9009\u62E9\u652F\u4ED8\u65B9\u5F0F",size:"large",style:{width:"240px"}},{default:a(()=>[e(y,{label:"\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F\u652F\u4ED8",value:"7"}),e(y,{label:"\u91C7\u8D2D\u6B3E\u652F\u4ED8",value:"18"}),e(y,{label:"\u4F59\u989D\u652F\u4ED8",value:"3"}),e(y,{label:"\u73B0\u91D1\u652F\u4ED8",value:"17"})]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"])],64)}}});export{Gl as default};
|