import{W as L,X as O,x as T,y as w,O as x,Q as G,T as V}from"./element-plus.bccb9376.js";import{u as $}from"./usePaging.6a6670f9.js";import"./index.ac7c1248.js";import{d as q,e as N}from"./opurchaseclass.4d142976.js";import{u as I}from"./vue-router.101084e3.js";import{_ as M}from"./subOrder.vue_vue_type_script_setup_true_name_subOrder_lang.d466a0b3.js";import{_ as S}from"./goodsOffer.vue_vue_type_script_setup_true_name_subOrder_lang.792b373c.js";import{_ as U}from"./noPush.vue_vue_type_script_setup_true_name_subOrder_lang.81a18b9a.js";import{d as P,r as i,Z as j,o as c,c as b,U as e,L as t,u,j as Q,R as p,S as m}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.f22931fb.js";import"./detail.vue_vue_type_script_setup_true_name_brandEdit_lang.625d2131.js";import"./index.vue_vue_type_script_setup_true_lang.2914ee54.js";import"./index.8f1b3064.js";import"./cashierinfo.da54d98e.js";import"./cashierclass.22bbe5ed.js";const W={key:1},X=P({name:"opurchaseclassDetail"}),it=P({...X,setup(Z){const D=I(),s=i({}),n=i("detail"),g=i(new Map([["detail",!0],["order",!1],["offer",!1],["notPushedGoods",!1]]));(async()=>{const a=await q({id:D.query.id});s.value=a})();const h=i(null),E=i(null),v=i(null),C=a=>{var l,o,d;g.value.get(a)||(g.value.set(a,!0),a=="order"&&((l=h.value)==null||l.getLists()),a=="offer"&&((o=E.value)==null||o.getLists()),a=="notPushedGoods"&&((d=v.value)==null||d.getLists()))},F=j({id:D.query.id}),{pager:y,getLists:B,resetParams:H,resetPage:J}=$({fetchFun:N,params:F});return B(),(a,l)=>{const o=L,d=O,r=x,A=G,_=T,R=w,k=V;return c(),b("div",null,[e(k,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[e(R,{modelValue:u(n),"onUpdate:modelValue":l[1]||(l[1]=f=>Q(n)?n.value=f:null),class:"demo-tabs",onTabChange:C},{default:t(()=>[e(_,{label:"\u6982\u51B5",name:"detail"},{default:t(()=>[e(d,{class:"margin-top",column:4,border:""},{default:t(()=>[e(o,{span:4,label:"\u5355\u636E\u7F16\u53F7"},{default:t(()=>[p(m(u(s).number),1)]),_:1}),e(o,{span:2,label:"\u5355\u636E\u91D1\u989D"},{default:t(()=>[p(m(u(s).total),1)]),_:1}),e(o,{span:2,label:"\u62B5\u6263\u91D1\u989D"},{default:t(()=>[p(m(u(s).deduction_price),1)]),_:1}),e(o,{span:2,label:"\u5B9E\u9645\u91D1\u989D"},{default:t(()=>[p(m(u(s).actual),1)]),_:1}),e(o,{span:2,label:"\u5B9E\u6536\u91D1\u989D"},{default:t(()=>[p(m(u(s).money),1)]),_:1}),e(o,{label:"\u6240\u5C5E\u5546\u6237"},{default:t(()=>[p(m(u(s).merchant_name),1)]),_:1})]),_:1}),e(A,{data:u(y).lists,border:"",style:{width:"100%","margin-top":"20px"}},{default:t(()=>[e(r,{prop:"id",label:"ID",width:"120"}),e(r,{prop:"goods_name",label:"\u5546\u54C1\u540D\u79F0"}),e(r,{prop:"price",label:"\u5355\u4EF7(\u5143)"}),e(r,{prop:"unit_name",label:"\u5355\u4F4D"}),e(r,{prop:"nums",label:"\u6570\u91CF"}),e(r,{prop:"total",label:"\u5408\u8BA1(\u5143)"}),e(r,{prop:"nums_count",label:"\u5DF2\u91C7\u7EB3\u6570\u91CF"}),e(r,{prop:"is_push",label:"\u63A8\u9001\u72B6\u6001"},{default:t(({row:f})=>[f.is_push==0?(c(),b("span",{key:0,style:{color:"#e6a23c",cursor:"pointer"},onClick:l[0]||(l[0]=K=>{n.value="notPushedGoods",C("notPushedGoods")})},"\u672A\u63A8\u9001")):(c(),b("span",W,"\u5DF2\u63A8\u9001"))]),_:1})]),_:1},8,["data"])]),_:1}),e(_,{label:"\u5546\u6237\u8BA2\u5355",name:"order"},{default:t(()=>[e(M,{ref_key:"subOrderRef",ref:h},null,512)]),_:1}),e(_,{label:"\u62A5\u4EF7\u5217\u8868",name:"offer"},{default:t(()=>[e(S,{ref_key:"goodsOfferRef",ref:E},null,512)]),_:1}),e(_,{label:"\u672A\u63A8\u9001\u5546\u54C1",name:"notPushedGoods"},{default:t(()=>[e(U,{ref_key:"noPushRef",ref:v},null,512)]),_:1})]),_:1},8,["modelValue"])]),_:1})])}}});export{it as default};