import{W as x,X as L,x as O,y as P,O as R,Q as k,T as V}from"./element-plus.bccb9376.js";import{u as q}from"./usePaging.6a6670f9.js";import"./index.383cb31f.js";import{d as N,e as I}from"./opurchaseclass.7c5ae32e.js";import{u as M}from"./vue-router.101084e3.js";import{_ as S}from"./subOrder.vue_vue_type_script_setup_true_name_subOrder_lang.c65efd47.js";import"./goodsOffer.vue_vue_type_script_setup_true_name_subOrder_lang.320ce13e.js";import{d as h,r as m,Z as U,o as d,c as _,U as t,L as e,u as r,j,R as i,S as p}from"./@vue.18505fe0.js";import"./lodash-es.bdeecbdb.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.a6528143.js";import"./@babel.16688d44.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./lodash.466e9fe4.js";import"./axios.4905d81f.js";import"./jspdf.54afd842.js";import"./fflate.fca59393.js";import"./pinia.a969beab.js";import"./css-color-function.29b71fa4.js";import"./color.87d313dc.js";import"./clone.a63396d9.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"./vue-plugin-hiprint.a2d84e76.js";import"./jquery.c3f97e49.js";import"./jsbarcode.39151b53.js";import"./socket.io-client.0b5a7289.js";import"./engine.io-client.81030771.js";import"./engine.io-parser.c748e159.js";import"./@socket.io.77accf6a.js";import"./debug.b392f131.js";import"./socket.io-parser.b7256298.js";import"./html2canvas.0f5947bc.js";import"./canvg.a673c4b2.js";import"./core-js.97b94d69.js";import"./raf.407ad6ad.js";import"./performance-now.a710f6e4.js";import"./rgbcolor.20c71161.js";import"./svg-pathdata.eba17832.js";import"./stackblur-canvas.0fb5df18.js";import"./nprogress.3461658b.js";import"./vue-clipboard3.c63182fd.js";import"./clipboard.dd2c63d0.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.120de7ce.js";import"./useDictOptions.a4ceb670.js";import"./detail.vue_vue_type_script_setup_true_name_brandEdit_lang.65c23e30.js";import"./index.vue_vue_type_script_setup_true_lang.2914ee54.js";import"./index.5b44360d.js";import"./cashierinfo.0940f1ed.js";import"./cashierclass.7c832837.js";const G={key:0,style:{color:"#e6a23c"}},Q={key:1},W=h({name:"opurchaseclassDetail"}),re=h({...W,setup(X){const f=M(),u=m({}),n=m("detail"),b=m(new Map([["detail",!0],["order",!1],["offer",!1],["notPushedGoods",!1]]));(async()=>{const s=await N({id:f.query.id});u.value=s})();const D=m(null),E=m(null),v=s=>{var l,o;b.value.get(s)||(s=="order"&&((l=D.value)==null||l.getLists()),s=="offer"&&((o=E.value)==null||o.getLists()),b.value.set(s,!0))},C=U({id:f.query.id}),{pager:B,getLists:F,resetParams:$,resetPage:z}=q({fetchFun:I,params:C});return F(),(s,l)=>{const o=x,y=L,a=R,A=k,g=O,T=P,w=V;return d(),_("div",null,[t(w,{class:"!border-none mb-4",shadow:"never"},{default:e(()=>[t(T,{modelValue:r(n),"onUpdate:modelValue":l[0]||(l[0]=c=>j(n)?n.value=c:null),class:"demo-tabs",onTabChange:v},{default:e(()=>[t(g,{label:"\u6982\u51B5",name:"detail"},{default:e(()=>[t(y,{class:"margin-top",column:4,border:""},{default:e(()=>[t(o,{span:4,label:"\u5355\u636E\u7F16\u53F7"},{default:e(()=>[i(p(r(u).number),1)]),_:1}),t(o,{span:2,label:"\u5355\u636E\u91D1\u989D"},{default:e(()=>[i(p(r(u).total),1)]),_:1}),t(o,{span:2,label:"\u62B5\u6263\u91D1\u989D"},{default:e(()=>[i(p(r(u).deduction_price),1)]),_:1}),t(o,{span:2,label:"\u5B9E\u9645\u91D1\u989D"},{default:e(()=>[i(p(r(u).actual),1)]),_:1}),t(o,{span:2,label:"\u5B9E\u6536\u91D1\u989D"},{default:e(()=>[i(p(r(u).money),1)]),_:1}),t(o,{label:"\u6240\u5C5E\u5546\u6237"},{default:e(()=>[i(p(r(u).merchant_name),1)]),_:1})]),_:1}),t(A,{data:r(B).lists,border:"",style:{width:"100%","margin-top":"20px"}},{default:e(()=>[t(a,{prop:"id",label:"ID",width:"120"}),t(a,{prop:"goods_name",label:"\u5546\u54C1\u540D\u79F0"}),t(a,{prop:"price",label:"\u5355\u4EF7(\u5143)"}),t(a,{prop:"unit_name",label:"\u5355\u4F4D"}),t(a,{prop:"nums",label:"\u6570\u91CF"}),t(a,{prop:"total",label:"\u5408\u8BA1(\u5143)"}),t(a,{prop:"nums_count",label:"\u5DF2\u91C7\u7EB3\u6570\u91CF"}),t(a,{prop:"is_push",label:"\u63A8\u9001\u72B6\u6001"},{default:e(({row:c})=>[c.is_push==0?(d(),_("span",G,"\u672A\u63A8\u9001")):(d(),_("span",Q,"\u5DF2\u63A8\u9001"))]),_:1})]),_:1},8,["data"])]),_:1}),t(g,{label:"\u644A\u8D29\u8BA2\u5355",name:"order"},{default:e(()=>[t(S,{ref_key:"subOrderRef",ref:D},null,512)]),_:1})]),_:1},8,["modelValue"])]),_:1})])}}});export{re as default};