2 lines
12 KiB
JavaScript
2 lines
12 KiB
JavaScript
import{x as ne,y as _e,U as ce,k as me,w as pe,L as fe,M as ve,b as he,C as Fe,N as ye,F as be,I as Ee,J as ge,K as De,D as xe}from"./element-plus.4a7d92a3.js";import{_ as Ce}from"./index.vue_vue_type_script_setup_true_name_systemStoreLists_lang.fc721916.js";import{g as Ve}from"./beforehand_order_cart_info.ac04c307.js";import{e as we,f as ke,g as Be}from"./beforehand_order.c9df1f7c.js";import{u as Ae}from"./vue-router.101084e3.js";import{_ as Ue}from"./goodsOffer.vue_vue_type_script_setup_true_name_subOrder_lang.913d4457.js";import{_ as $e}from"./orderCartInfo.vue_vue_type_script_setup_true_name_subOrder_lang.05eada0f.js";import{_ as Oe}from"./warehousing.vue_vue_type_script_setup_true_name_subOrder_lang.c8504ff4.js";import{_ as Le}from"./outbound.vue_vue_type_script_setup_true_name_subOrder_lang.368d2cef.js";import{h as Re}from"./index.8da9ff00.js";import{a as Ie}from"./system_store.4f5d1473.js";import{d as K,r as d,Z as Te,o as E,c as A,U as e,L as t,a,S as m,u,R as p,j as x,T as U,a9 as z,K as q}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.387ed951.js";import"./store_product.6f749902.js";import"./store_branch_product.15c3e0f1.js";import"./warehouse_product_storege.4fee09ef.js";import"./lodash.9dc701ad.js";import"./purchase_product_offer.fffe8adf.js";import"./warehouse.c6f74e89.js";import"./supplier.345ba33c.js";import"./delivery_service.59fa07c1.js";import"./editProduct.vue_vue_type_script_setup_true_name_warehouseOrderEdit_lang.cf65aab3.js";import"./index.062923d0.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";import"./warehouse_order.ece134d8.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 Se={class:"flex items-center justify-between m-4"},Pe={class:"flex flex-col"},Ye=a("div",{style:{color:"gray"}},"\u5355\u53F7\uFF1A",-1),Me={style:{color:"black"}},je={class:"flex flex-col"},Ne=a("div",{style:{color:"gray"}},"\u652F\u4ED8\u5355\u53F7\uFF1A",-1),ze={style:{color:"black"}},qe={class:"flex flex-col"},Ke=a("div",{style:{color:"gray"}},"\u95E8\u5E97\uFF1A",-1),Ge={style:{color:"black"}},Je={class:"flex items-center justify-between m-4"},Ze={class:"flex flex-col"},He=a("div",{style:{color:"gray"}},"\u59D3\u540D\uFF1A",-1),Qe={style:{color:"black"}},We={class:"flex flex-col"},Xe=a("div",{style:{color:"gray"}},"\u624B\u673A\uFF1A",-1),el={style:{color:"black"}},ll={class:"flex flex-col"},ol=a("div",{style:{color:"gray"}},"\u9001\u8D27\u5730\u5740\uFF1A",-1),tl={style:{color:"black"}},al={class:"flex items-center justify-between m-4"},ul={class:"flex flex-col"},sl=a("div",{style:{color:"gray"}},"\u5907\u6CE8\uFF1A",-1),il={style:{color:"black"}},dl={class:"flex items-center justify-between m-4"},rl={class:"flex flex-col"},nl=a("div",{style:{color:"gray"}},"\u603B\u4EF7",-1),_l={style:{color:"black"}},cl={class:"flex flex-col flex-2"},ml=a("div",{style:{color:"gray"}},"\u65F6\u95F4",-1),pl={style:{color:"black"}},fl={class:"mb-2"},vl={class:"dialog-footer"},hl={class:"dialog-footer"},Fl=K({name:"storeOrderDETAILS"}),go=K({...Fl,props:{dictData:{type:Object,default:()=>({})}},emits:["success","close"],setup(yl,{expose:G,emit:bl}){const y=d(!1),$=d(null),O=d(null),L=d(null),R=d(null),J=Ae(),Z=s=>{var o,r,v,D;s=="second"&&((o=R.value)==null||o.getList(i.value)),s=="offer"&&((r=$.value)==null||r.getList(i.value.id)),s=="warehousing"&&((v=O.value)==null||v.getList(i.value.id,i.value.warehousing_id)),s=="outbound"&&((D=L.value)==null||D.getList(i.value.id,i.value))},H=d(!1),h=d(!1),C=d("second"),I=d(0),T=d(0),Q=d(0),i=d({id:"",code:"",total_price:"",supplier_name:"",warehouse_name:"",system_store:"",financial_pm:"",order_sn:"",warehousing_id:"",top_cate:[]}),c=d({id:"",user_id:"",pay_type:"",store_id:""}),W=()=>{const s=f.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}));Ve({id:S.bhoid,product_arr:s}).then(o=>{h.value=!1})},S=Te({bhoid:J.query.id,pay_type:"",top_cate:"",top_cate_value:""});(()=>{we({id:S.bhoid}).then(s=>{i.value={...s},I.value=s.warehouse_id,c.value.id=s.id,s.financial_pm==0?T.value=1:Q.value=1,f.value=[]})})();const X=s=>{ke({id:s}).then(o=>{window.open(o.url,"_blank"),me.success("\u5BFC\u51FA\u6210\u529F")})},b=d(!1),f=d([]),ee=s=>{f.value=f.value.filter(o=>o.id!==s)},le=s=>{s.forEach(o=>{f.value.find(r=>r.id==o.id)||f.value.push(o)}),b.value=!1};function P(s){s.total_price=s.num*s.purchases}const oe=()=>{H.value=!0},g=d(!1),Y=d([]),te=(s="")=>{g.value=!0,Re({nickname:s,page_size:10}).then(o=>{Y.value=o.lists,setTimeout(()=>{g.value=!1},300)}).catch(o=>{setTimeout(()=>{g.value=!1},300)})},M=d([]),ae=()=>{y.value=!0,Ie({page_no:1,page_size:100}).then(s=>{M.value=s.lists})},ue=()=>{Be(c.value).then(s=>{})};return G({open:oe}),(s,o)=>{const r=pe,v=ne,D=_e,se=fe,_=ve,ie=he,V=Fe,j=ce,de=ye,N=be,w=Ee,re=Ce,F=ge,k=De,B=xe;return E(),A(U,null,[e(se,null,{default:t(()=>[a("div",Se,[a("div",Pe,[Ye,a("div",Me,m(u(i).order_id),1)]),a("div",je,[Ne,a("div",ze,m(u(i).order_sn),1)]),a("div",qe,[Ke,a("div",Ge,m(u(i).system_store),1)])]),a("div",Je,[a("div",Ze,[He,a("div",Qe,m(u(i).nikename),1)]),a("div",We,[Xe,a("div",el,m(u(i).phone),1)]),a("div",ll,[ol,a("div",tl,m(u(i).address),1)])]),a("div",al,[a("div",ul,[sl,a("div",il,m(u(i).mark),1)])]),a("div",dl,[a("div",rl,[nl,a("div",_l,"\uFFE5"+m(u(i).total_price),1)]),a("div",cl,[ml,a("div",pl,m(u(i).create_time),1)]),e(r,{onClick:o[0]||(o[0]=l=>X(u(i).id))},{default:t(()=>[p(" \u6253\u5370\u5546\u54C1\u6807\u7B7E ")]),_:1}),e(r,{onClick:ae},{default:t(()=>[p(" \u751F\u6210\u5546\u54C1\u8BA2\u5355 ")]),_:1})]),e(r,{type:"primary",onClick:o[1]||(o[1]=l=>h.value=!0)},{default:t(()=>[p(" \u8FFD\u52A0 ")]),_:1}),e(D,{modelValue:u(C),"onUpdate:modelValue":o[2]||(o[2]=l=>x(C)?C.value=l:null),class:"demo-tabs mt-3",type:"border-card",onTabChange:Z},{default:t(()=>[e(v,{label:"\u660E\u7EC6",name:"second"},{default:t(()=>[e($e,{ref_key:"orderCartInfoRef",ref:R,id:u(i).id},null,8,["id"])]),_:1}),e(v,{label:"\u91C7\u8D2D",name:"offer"},{default:t(()=>[e(Ue,{ref_key:"goodsOfferRef",ref:$,order_id:u(i).id},null,8,["order_id"])]),_:1}),e(v,{label:"\u5165\u5E93",name:"warehousing"},{default:t(()=>[e(Oe,{ref_key:"warehousingRef",ref:O,order_id:u(i).id},null,8,["order_id"])]),_:1}),e(v,{label:"\u51FA\u5E93",name:"outbound"},{default:t(()=>[e(Le,{ref_key:"outboundRef",ref:L,order_id:u(i).id},null,8,["order_id"])]),_:1})]),_:1},8,["modelValue"])]),_:1}),e(w,{modelValue:u(h),"onUpdate:modelValue":o[5]||(o[5]=l=>x(h)?h.value=l:null),title:"\u8FFD\u52A0\u5546\u54C1",width:"1200"},{footer:t(()=>[a("div",vl,[e(r,{onClick:o[4]||(o[4]=l=>h.value=!1)},{default:t(()=>[p("\u53D6\u6D88")]),_:1}),e(r,{type:"primary",onClick:W},{default:t(()=>[p(" \u786E\u8BA4 ")]),_:1})])]),default:t(()=>[e(N,{ref:"formRef","label-width":"90px"},{default:t(()=>[a("div",fl,[e(r,{type:"primary",onClick:o[3]||(o[3]=l=>b.value=!0)},{default:t(()=>[p("\u6DFB\u52A0\u5546\u54C1")]),_:1})]),e(de,{data:u(f)},{default:t(()=>[e(_,{label:"\u5546\u54C1ID",prop:"id","show-overflow-tooltip":""}),e(_,{label:"\u5546\u54C1\u56FE\u7247",prop:"image","min-width":"80"},{default:t(({row:l})=>[e(ie,{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:t(({row:l})=>[e(V,{modelValue:l.num,"onUpdate:modelValue":n=>l.num=n,onChange:n=>P(l)},null,8,["modelValue","onUpdate:modelValue","onChange"])]),_:1}),e(_,{label:"\u4EF7\u683C","min-width":"150"},{default:t(({row:l})=>[e(V,{modelValue:l.purchases,"onUpdate:modelValue":n=>l.purchases=n,onChange:n=>P(l)},null,8,["modelValue","onUpdate:modelValue","onChange"])]),_:1}),e(_,{label:"\u603B\u4EF7","min-width":"150"},{default:t(({row:l})=>[e(V,{modelValue:l.total_price,"onUpdate:modelValue":n=>l.total_price=n},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),e(_,{label:"\u751F\u4EA7\u65E5\u671F","min-width":"140"},{default:t(({row:l})=>[e(j,{readonly:!1,class:"flex-1 !flex",modelValue:l.manufacture,"onUpdate:modelValue":n=>l.manufacture=n,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:t(({row:l})=>[e(j,{readonly:!1,class:"flex-1 !flex",modelValue:l.expiration_date,"onUpdate:modelValue":n=>l.expiration_date=n,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:t(({row:l})=>[e(r,{type:"danger",link:"",onClick:n=>ee(l.id)},{default:t(()=>[p(" \u5220\u9664 ")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])]),_:1},512)]),_:1},8,["modelValue"]),e(w,{modelValue:u(b),"onUpdate:modelValue":o[6]||(o[6]=l=>x(b)?b.value=l:null),title:"\u9009\u62E9\u5546\u54C1",width:"70%"},{default:t(()=>[e(re,{onOnBindStore:le,warehouse_id:u(I),is_warehouse:u(T)},null,8,["warehouse_id","is_warehouse"])]),_:1},8,["modelValue"]),e(w,{modelValue:u(y),"onUpdate:modelValue":o[11]||(o[11]=l=>x(y)?y.value=l:null),title:"\u751F\u6210\u652F\u4ED8\u8BA2\u5355\u8BBE\u7F6E",width:"600"},{footer:t(()=>[a("div",hl,[e(r,{onClick:o[10]||(o[10]=l=>y.value=!1)},{default:t(()=>[p("\u53D6\u6D88")]),_:1}),e(r,{type:"primary",onClick:ue},{default:t(()=>[p(" \u786E\u8BA4 ")]),_:1})])]),default:t(()=>[e(N,{model:u(c),"label-width":"90px"},{default:t(()=>[e(B,{label:"\u7528\u6237"},{default:t(()=>[e(k,{modelValue:u(c).user_id,"onUpdate:modelValue":o[7]||(o[7]=l=>u(c).user_id=l),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u7528\u6237\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":te,loading:u(g),style:{width:"240px"}},{default:t(()=>[(E(!0),A(U,null,z(u(Y),l=>(E(),q(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(B,{label:"\u95E8\u5E97",prop:"store_id"},{default:t(()=>[e(k,{modelValue:u(c).store_id,"onUpdate:modelValue":o[8]||(o[8]=l=>u(c).store_id=l),placeholder:"\u8BF7\u9009\u62E9\u95E8\u5E97",size:"large",style:{width:"240px"}},{default:t(()=>[(E(!0),A(U,null,z(u(M),l=>(E(),q(F,{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:t(()=>[e(k,{modelValue:u(c).pay_type,"onUpdate:modelValue":o[9]||(o[9]=l=>u(c).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{go as default};
|