import{a0 as P,a1 as R,x as k,y as x,M as L,N as T,L as V}from"./element-plus.a63a26dd.js";import{u as w}from"./usePaging.6a6670f9.js";import"./index.82a85bee.js";import{a as N,b as q}from"./purchase_order.6553a6c9.js";import{u as I}from"./vue-router.101084e3.js";import{_ as S}from"./subOrder.vue_vue_type_script_setup_true_name_subOrder_lang.4f5b382f.js";import{_ as U}from"./goodsOffer.vue_vue_type_script_setup_true_name_subOrder_lang.0459f7bc.js";import{d as g,r as s,Z as $,o as b,c as j,U as e,L as t,u as a,j as A,R as m,S as p,K,Q as M}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.52006ef3.js";import"./details.vue_vue_type_script_setup_true_name_storeOrderDETAILS_lang.08cb8836.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.edc2fd19.js";import"./delivery_service.4d720626.js";import"./warehouseEdit.vue_vue_type_script_setup_true_name_warehouseProductEdit_lang.f47840a0.js";import"./index.vue_vue_type_script_setup_true_name_systemStoreLists_lang.b9184013.js";import"./store_product.7dc808fb.js";import"./store_branch_product.93a34a07.js";import"./warehouse_product_storege.6a221fca.js";import"./index.vue_vue_type_script_setup_true_name_systemStoreLists_lang.208bf446.js";import"./warehouse.c2fade1a.js";import"./index.0b0584cf.js";import"./warehouse_product.e9002a9c.js";import"./supplier.df279b8a.js";const Q=g({name:"purchaseOrderDetail"}),Ge=g({...Q,setup(Z){const c=I(),r=s({}),n=s("detail");(async()=>{const i=await N({id:c.query.id});r.value=i})();const d=s(null),f=s(null);s(null),s(null),s(null);const D=i=>{var u,o;i=="order"&&((u=d.value)==null||u.getLists()),i=="offer"&&((o=f.value)==null||o.getLists())},E=$({oid:c.query.id}),{pager:C,getLists:y,resetParams:G,resetPage:H}=w({fetchFun:q,params:E});return y(),(i,u)=>{const o=P,h=R,l=L,v=T,_=k,B=x,F=V;return b(),j("div",null,[e(F,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[e(B,{modelValue:a(n),"onUpdate:modelValue":u[0]||(u[0]=O=>A(n)?n.value=O:null),class:"demo-tabs",onTabChange:D},{default:t(()=>[e(_,{label:"\u6982\u51B5",name:"detail"},{default:t(()=>[e(h,{class:"margin-top",column:4,border:""},{default:t(()=>[e(o,{span:4,label:"\u5355\u636E\u7F16\u53F7"},{default:t(()=>[m(p(a(r).order_id),1)]),_:1}),e(o,{span:2,label:"\u5355\u636E\u91D1\u989D"},{default:t(()=>[m(p(a(r).total),1)]),_:1}),e(o,{span:2,label:"\u5B9E\u9645\u91D1\u989D"},{default:t(()=>[m(p(a(r).actual),1)]),_:1}),e(o,{span:2,label:"\u5B9E\u6536\u91D1\u989D"},{default:t(()=>[m(p(a(r).money),1)]),_:1}),e(o,{label:"\u6240\u5C5E\u5546\u6237"},{default:t(()=>[m(p(a(r).system_store),1)]),_:1})]),_:1}),e(v,{data:a(C).lists,border:"",style:{width:"100%","margin-top":"20px"}},{default:t(()=>[e(l,{prop:"id",label:"ID",width:"120"}),e(l,{prop:"store_name",label:"\u5546\u54C1\u540D\u79F0"}),e(l,{prop:"unit_name",label:"\u5355\u4F4D"}),e(l,{prop:"store_info",label:"\u89C4\u683C"}),e(l,{prop:"cart_num",label:"\u6570\u91CF"}),e(l,{prop:"price",label:"\u5355\u4EF7(\u5143)"}),e(l,{prop:"total_price",label:"\u603B\u4EF7"})]),_:1},8,["data"])]),_:1}),a(r).is_mer==2?(b(),K(_,{key:0,label:"\u5546\u6237\u8BA2\u5355",name:"order"},{default:t(()=>[e(S,{ref_key:"subOrderRef",ref:d},null,512)]),_:1})):M("",!0),e(_,{label:"\u5546\u54C1\u5217\u8868",name:"offer"},{default:t(()=>[e(U,{ref_key:"goodsOfferRef",ref:f},null,512)]),_:1})]),_:1},8,["modelValue"])]),_:1})])}}});export{Ge as default};