moreShopAdmin/dist/admin/assets/details.9a28b34a.js

2 lines
12 KiB
JavaScript

import{x as me,y as pe,U as ce,k as fe,w as ve,L as he,M as Fe,b as be,C as ye,N as Ee,F as ge,I as De,J as xe,K as Ce,D as Ve}from"./element-plus.4a7d92a3.js";import{_ as we}from"./index.vue_vue_type_script_setup_true_name_systemStoreLists_lang.63fdc5ad.js";import{g as ke}from"./beforehand_order_cart_info.e241eec0.js";import{e as Be,f as Ae,g as Ue}from"./beforehand_order.39173c45.js";import{u as $e}from"./vue-router.101084e3.js";import{_ as Re}from"./goodsOffer.vue_vue_type_script_setup_true_name_subOrder_lang.80ef581d.js";import{_ as Le}from"./orderCartInfo.vue_vue_type_script_setup_true_name_subOrder_lang.1abbe588.js";import{_ as Oe}from"./warehousing.vue_vue_type_script_setup_true_name_subOrder_lang.7899d78b.js";import{_ as Se}from"./outbound.vue_vue_type_script_setup_true_name_subOrder_lang.0920ef83.js";import{_ as Ie}from"./returnWarehouse.vue_vue_type_script_setup_true_name_subOrder_lang.8390f096.js";import{_ as Te}from"./returnSupplier.vue_vue_type_script_setup_true_name_subOrder_lang.a96d9485.js";import{h as Pe}from"./index.bc979bce.js";import{a as Ye}from"./system_store.941ceebc.js";import{d as J,r as i,Z as Me,o as E,c as U,U as e,L as t,a,S as c,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.0a8ef1e8.js";import"./store_product.f8be581a.js";import"./store_branch_product.389a05bf.js";import"./warehouse_product_storege.1478a2ce.js";import"./lodash.9dc701ad.js";import"./purchase_product_offer.e482515d.js";import"./warehouse.353572c7.js";import"./supplier.01699ca3.js";import"./delivery_service.b6364849.js";import"./editProduct.vue_vue_type_script_setup_true_name_warehouseOrderEdit_lang.6b3d26d2.js";import"./index.4ea08cc4.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";import"./warehouse_order.c0ee2cba.js";import"./warehouse_product_return.355ef28e.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 je={class:"flex items-center justify-between m-4"},Ne={class:"flex flex-col"},ze=a("div",{style:{color:"gray"}},"\u5355\u53F7\uFF1A",-1),We={style:{color:"black"}},qe={class:"flex flex-col"},Ke=a("div",{style:{color:"gray"}},"\u652F\u4ED8\u5355\u53F7\uFF1A",-1),Ge={style:{color:"black"}},Je={class:"flex flex-col"},Ze=a("div",{style:{color:"gray"}},"\u95E8\u5E97\uFF1A",-1),He={style:{color:"black"}},Qe={class:"flex items-center justify-between m-4"},Xe={class:"flex flex-col"},el=a("div",{style:{color:"gray"}},"\u59D3\u540D\uFF1A",-1),ll={style:{color:"black"}},ol={class:"flex flex-col"},tl=a("div",{style:{color:"gray"}},"\u624B\u673A\uFF1A",-1),al={style:{color:"black"}},ul={class:"flex flex-col"},sl=a("div",{style:{color:"gray"}},"\u9001\u8D27\u5730\u5740\uFF1A",-1),rl={style:{color:"black"}},il={class:"flex items-center justify-between m-4"},nl={class:"flex flex-col"},dl=a("div",{style:{color:"gray"}},"\u5907\u6CE8\uFF1A",-1),_l={style:{color:"black"}},ml={class:"flex items-center justify-between m-4"},pl={class:"flex flex-col"},cl=a("div",{style:{color:"gray"}},"\u603B\u4EF7",-1),fl={style:{color:"black"}},vl={class:"flex flex-col flex-2"},hl=a("div",{style:{color:"gray"}},"\u65F6\u95F4",-1),Fl={style:{color:"black"}},bl={class:"mb-2"},yl={class:"dialog-footer"},El={class:"dialog-footer"},gl=J({name:"storeOrderDETAILS"}),Bo=J({...gl,props:{dictData:{type:Object,default:()=>({})}},emits:["success","close"],setup(Dl,{expose:Z,emit:xl}){const b=i(!1),R=i(null),L=i(null),O=i(null),S=i(null),I=i(null),T=i(null),H=$e(),Q=s=>{var o,n,p,D,x,d;s=="second"&&((o=S.value)==null||o.getList(r.value)),s=="offer"&&((n=R.value)==null||n.getList(r.value.id)),s=="warehousing"&&((p=L.value)==null||p.getList(r.value.id,r.value.warehousing_id)),s=="outbound"&&((D=O.value)==null||D.getList(r.value.id,r.value)),s=="returnWarehouse"&&((x=I.value)==null||x.getList(r.value)),s=="returnSupplier"&&((d=T.value)==null||d.getList(r.value))},X=i(!1),h=i(!1),V=i("second"),P=i(0),Y=i(0),ee=i(0),r=i({id:"",code:"",total_price:"",supplier_name:"",warehouse_name:"",system_store:"",financial_pm:"",order_sn:"",warehousing_id:"",top_cate:[]}),m=i({id:"",user_id:"",pay_type:"",store_id:""}),le=()=>{const s=v.value.map(o=>({id:o.id,nums:o.num||0,purchase:o.purchases||0,prices:o.purchase||0,total_price:o.total_price||0,manufacture:o.manufacture,expiration_date:o.expiration_date}));ke({id:M.bhoid,product_arr:s}).then(o=>{h.value=!1})},M=Me({bhoid:H.query.id,pay_type:"",top_cate:"",top_cate_value:""});(()=>{Be({id:M.bhoid}).then(s=>{r.value={...s},P.value=s.warehouse_id,m.value.id=s.id,s.financial_pm==0?Y.value=1:ee.value=1,v.value=[]})})();const oe=s=>{Ae({id:s}).then(o=>{window.open(o.url,"_blank"),fe.success("\u5BFC\u51FA\u6210\u529F")})},y=i(!1),v=i([]),te=s=>{v.value=v.value.filter(o=>o.id!==s)},ae=s=>{s.forEach(o=>{v.value.find(n=>n.id==o.id)||v.value.push(o)}),y.value=!1};function j(s){s.total_price=s.num*s.purchases}const ue=()=>{X.value=!0},g=i(!1),N=i([]),se=(s="")=>{g.value=!0,Pe({nickname:s,page_size:10}).then(o=>{N.value=o.lists,setTimeout(()=>{g.value=!1},300)}).catch(o=>{setTimeout(()=>{g.value=!1},300)})},z=i([]),re=()=>{b.value=!0,Ye({page_no:1,page_size:100}).then(s=>{z.value=s.lists})},ie=()=>{Ue(m.value).then(s=>{})};return Z({open:ue}),(s,o)=>{const n=ve,p=me,D=pe,x=he,d=Fe,ne=be,w=ye,W=ce,de=Ee,q=ge,k=De,_e=we,F=xe,B=Ce,A=Ve;return E(),U($,null,[e(x,null,{default:t(()=>[a("div",je,[a("div",Ne,[ze,a("div",We,c(u(r).order_id),1)]),a("div",qe,[Ke,a("div",Ge,c(u(r).order_sn),1)]),a("div",Je,[Ze,a("div",He,c(u(r).system_store),1)])]),a("div",Qe,[a("div",Xe,[el,a("div",ll,c(u(r).nikename),1)]),a("div",ol,[tl,a("div",al,c(u(r).phone),1)]),a("div",ul,[sl,a("div",rl,c(u(r).address),1)])]),a("div",il,[a("div",nl,[dl,a("div",_l,c(u(r).mark),1)])]),a("div",ml,[a("div",pl,[cl,a("div",fl,"\uFFE5"+c(u(r).total_price),1)]),a("div",vl,[hl,a("div",Fl,c(u(r).create_time),1)]),e(n,{onClick:o[0]||(o[0]=l=>oe(u(r).id))},{default:t(()=>[f(" \u6253\u5370\u5546\u54C1\u6807\u7B7E ")]),_:1}),e(n,{onClick:re},{default:t(()=>[f(" \u751F\u6210\u5546\u54C1\u8BA2\u5355 ")]),_:1})]),e(n,{type:"primary",onClick:o[1]||(o[1]=l=>h.value=!0)},{default:t(()=>[f(" \u8FFD\u52A0 ")]),_:1}),e(D,{modelValue:u(V),"onUpdate:modelValue":o[2]||(o[2]=l=>C(V)?V.value=l:null),class:"demo-tabs mt-3",type:"border-card",onTabChange:Q},{default:t(()=>[e(p,{label:"\u660E\u7EC6",name:"second"},{default:t(()=>[e(Le,{ref_key:"orderCartInfoRef",ref:S,id:u(r).id},null,8,["id"])]),_:1}),e(p,{label:"\u91C7\u8D2D",name:"offer"},{default:t(()=>[e(Re,{ref_key:"goodsOfferRef",ref:R,order_id:u(r).id},null,8,["order_id"])]),_:1}),e(p,{label:"\u5165\u5E93",name:"warehousing"},{default:t(()=>[e(Oe,{ref_key:"warehousingRef",ref:L,order_id:u(r).id},null,8,["order_id"])]),_:1}),e(p,{label:"\u51FA\u5E93",name:"outbound"},{default:t(()=>[e(Se,{ref_key:"outboundRef",ref:O,order_id:u(r).id},null,8,["order_id"])]),_:1}),e(p,{label:"\u9000\u5E93\u623F",name:"returnWarehouse"},{default:t(()=>[e(Ie,{ref_key:"returnWarehouseRef",ref:I},null,512)]),_:1}),e(p,{label:"\u9000\u4F9B\u5E94\u5546",name:"returnSupplier"},{default:t(()=>[e(Te,{ref_key:"returnSupplierRef",ref:T},null,512)]),_:1})]),_:1},8,["modelValue"])]),_:1}),e(k,{modelValue:u(h),"onUpdate:modelValue":o[5]||(o[5]=l=>C(h)?h.value=l:null),title:"\u8FFD\u52A0\u5546\u54C1",width:"1200"},{footer:t(()=>[a("div",yl,[e(n,{onClick:o[4]||(o[4]=l=>h.value=!1)},{default:t(()=>[f("\u53D6\u6D88")]),_:1}),e(n,{type:"primary",onClick:le},{default:t(()=>[f(" \u786E\u8BA4 ")]),_:1})])]),default:t(()=>[e(q,{ref:"formRef","label-width":"90px"},{default:t(()=>[a("div",bl,[e(n,{type:"primary",onClick:o[3]||(o[3]=l=>y.value=!0)},{default:t(()=>[f("\u6DFB\u52A0\u5546\u54C1")]),_:1})]),e(de,{data:u(v)},{default:t(()=>[e(d,{label:"\u5546\u54C1ID",prop:"id","show-overflow-tooltip":""}),e(d,{label:"\u5546\u54C1\u56FE\u7247",prop:"image","min-width":"80"},{default:t(({row:l})=>[e(ne,{style:{width:"50px",height:"50px"},src:l.image,"preview-teleported":!0},null,8,["src"])]),_:1}),e(d,{label:"\u5546\u54C1\u540D\u79F0",prop:"store_name","min-width":"180","show-overflow-tooltip":""}),e(d,{label:"\u5206\u7C7B",prop:"cate_name","min-width":"80","show-overflow-tooltip":""}),e(d,{label:"\u5355\u4F4D",prop:"unit_name","min-width":"80","show-overflow-tooltip":""}),e(d,{label:"\u6570\u91CF","min-width":"150"},{default:t(({row:l})=>[e(w,{modelValue:l.num,"onUpdate:modelValue":_=>l.num=_,onChange:_=>j(l)},null,8,["modelValue","onUpdate:modelValue","onChange"])]),_:1}),e(d,{label:"\u4EF7\u683C","min-width":"150"},{default:t(({row:l})=>[e(w,{modelValue:l.purchases,"onUpdate:modelValue":_=>l.purchases=_,onChange:_=>j(l)},null,8,["modelValue","onUpdate:modelValue","onChange"])]),_:1}),e(d,{label:"\u603B\u4EF7","min-width":"150"},{default:t(({row:l})=>[e(w,{modelValue:l.total_price,"onUpdate:modelValue":_=>l.total_price=_},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),e(d,{label:"\u751F\u4EA7\u65E5\u671F","min-width":"140"},{default:t(({row:l})=>[e(W,{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}),e(d,{label:"\u4FDD\u8D28\u671F","min-width":"140"},{default:t(({row:l})=>[e(W,{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}),e(d,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:t(({row:l})=>[e(n,{type:"danger",link:"",onClick:_=>te(l.id)},{default:t(()=>[f(" \u5220\u9664 ")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])]),_:1},512)]),_:1},8,["modelValue"]),e(k,{modelValue:u(y),"onUpdate:modelValue":o[6]||(o[6]=l=>C(y)?y.value=l:null),title:"\u9009\u62E9\u5546\u54C1",width:"70%"},{default:t(()=>[e(_e,{onOnBindStore:ae,warehouse_id:u(P),is_warehouse:u(Y)},null,8,["warehouse_id","is_warehouse"])]),_:1},8,["modelValue"]),e(k,{modelValue:u(b),"onUpdate:modelValue":o[11]||(o[11]=l=>C(b)?b.value=l:null),title:"\u751F\u6210\u652F\u4ED8\u8BA2\u5355\u8BBE\u7F6E",width:"600"},{footer:t(()=>[a("div",El,[e(n,{onClick:o[10]||(o[10]=l=>b.value=!1)},{default:t(()=>[f("\u53D6\u6D88")]),_:1}),e(n,{type:"primary",onClick:ie},{default:t(()=>[f(" \u786E\u8BA4 ")]),_:1})])]),default:t(()=>[e(q,{model:u(m),"label-width":"90px"},{default:t(()=>[e(A,{label:"\u7528\u6237"},{default:t(()=>[e(B,{modelValue:u(m).user_id,"onUpdate:modelValue":o[7]||(o[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(g),style:{width:"240px"}},{default:t(()=>[(E(!0),U($,null,K(u(N),l=>(E(),G(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}),e(A,{label:"\u95E8\u5E97",prop:"store_id"},{default:t(()=>[e(B,{modelValue:u(m).store_id,"onUpdate:modelValue":o[8]||(o[8]=l=>u(m).store_id=l),placeholder:"\u8BF7\u9009\u62E9\u95E8\u5E97",size:"large",style:{width:"240px"}},{default:t(()=>[(E(!0),U($,null,K(u(z),l=>(E(),G(F,{key:l.id,label:l.name,value:l.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(A,{label:"\u652F\u4ED8\u65B9\u5F0F",prop:"pay_type"},{default:t(()=>[e(B,{modelValue:u(m).pay_type,"onUpdate:modelValue":o[9]||(o[9]=l=>u(m).pay_type=l),placeholder:"\u8BF7\u9009\u62E9\u652F\u4ED8\u65B9\u5F0F",size:"large",style:{width:"240px"}},{default:t(()=>[e(F,{label:"\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F\u652F\u4ED8",value:"7"}),e(F,{label:"\u91C7\u8D2D\u6B3E\u652F\u4ED8",value:"18"}),e(F,{label:"\u4F59\u989D\u652F\u4ED8",value:"3"}),e(F,{label:"\u73B0\u91D1\u652F\u4ED8",value:"17"})]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"])],64)}}});export{Bo as default};