import{a0 as P,a1 as x,x as T,y as V,M as k,N as w,L}from"./element-plus.a63a26dd.js";import{u as N}from"./usePaging.6a6670f9.js";import"./index.038cab91.js";import{a as O,b as R}from"./purchase_order.21f68db8.js";import{u as q}from"./vue-router.101084e3.js";import{_ as I}from"./subOrder.vue_vue_type_script_setup_true_name_subOrder_lang.0b7785d8.js";import{d as b,r as l,Z as S,o as f,c as U,U as e,L as t,u as a,j,R as i,S as p,K as A,Q as K}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.4884cfc2.js";import"./axios.932d3f8a.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./lodash.2473fc51.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.fcc9be76.js";import"./vue-clipboard3.9e751565.js";import"./clipboard.dda64e67.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./index.vue_vue_type_script_setup_true_lang.ecb80feb.js";import"./useDictOptions.01b6a4d4.js";import"./details.vue_vue_type_script_setup_true_name_storeOrderDETAILS_lang.01bda81e.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";import"./moment.40bc58bf.js";import"./storeTable.vue_vue_type_script_setup_true_name_storeTable_lang.8e06ffb4.js";const M=b({name:"purchaseOrderDetail"}),Oe=b({...M,setup(Q){const c=q(),o=l({}),m=l("detail");(async()=>{const n=await O({id:c.query.id});o.value=n})();const _=l(null);l(null),l(null),l(null),l(null);const D=n=>{var s;n=="order"&&((s=_.value)==null||s.getLists())},E=S({oid:c.query.id}),{pager:g,getLists:C,resetParams:$,resetPage:z}=N({fetchFun:R,params:E});return C(),(n,s)=>{const u=P,y=x,r=k,h=w,d=T,B=V,F=L;return f(),U("div",null,[e(F,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[e(B,{modelValue:a(m),"onUpdate:modelValue":s[0]||(s[0]=v=>j(m)?m.value=v:null),class:"demo-tabs",onTabChange:D},{default:t(()=>[e(d,{label:"\u6982\u51B5",name:"detail"},{default:t(()=>[e(y,{class:"margin-top",column:4,border:""},{default:t(()=>[e(u,{span:4,label:"\u5355\u636E\u7F16\u53F7"},{default:t(()=>[i(p(a(o).order_id),1)]),_:1}),e(u,{span:2,label:"\u5355\u636E\u91D1\u989D"},{default:t(()=>[i(p(a(o).total),1)]),_:1}),e(u,{span:2,label:"\u5B9E\u9645\u91D1\u989D"},{default:t(()=>[i(p(a(o).actual),1)]),_:1}),e(u,{span:2,label:"\u5B9E\u6536\u91D1\u989D"},{default:t(()=>[i(p(a(o).money),1)]),_:1}),e(u,{label:"\u6240\u5C5E\u5546\u6237"},{default:t(()=>[i(p(a(o).system_store),1)]),_:1})]),_:1}),e(h,{data:a(g).lists,border:"",style:{width:"100%","margin-top":"20px"}},{default:t(()=>[e(r,{prop:"id",label:"ID",width:"120"}),e(r,{prop:"store_name",label:"\u5546\u54C1\u540D\u79F0"}),e(r,{prop:"unit_name",label:"\u5355\u4F4D"}),e(r,{prop:"store_info",label:"\u89C4\u683C"}),e(r,{prop:"cart_num",label:"\u6570\u91CF"}),e(r,{prop:"price",label:"\u5355\u4EF7(\u5143)"}),e(r,{prop:"total_price",label:"\u603B\u4EF7"})]),_:1},8,["data"])]),_:1}),a(o).is_mer==2?(f(),A(d,{key:0,label:"\u5546\u6237\u8BA2\u5355",name:"order"},{default:t(()=>[e(I,{ref_key:"subOrderRef",ref:_},null,512)]),_:1})):K("",!0)]),_:1},8,["modelValue"])]),_:1})])}}});export{Oe as default};