ERP-admin/build/admin/assets/detail.4bb96cd1.js

2 lines
3.8 KiB
JavaScript

import{W as h,X as R,x as T,y as w,O as x,Q as O,T as y}from"./element-plus.9990c39e.js";import"./index.9424646f.js";import{d as V}from"./opurchaseclass.6c3bffb1.js";import{u as k}from"./vue-router.886c5f5a.js";import{_ as A}from"./subOrder.vue_vue_type_script_setup_true_name_subOrder_lang.f28af67e.js";import{_ as L}from"./goodsOffer.vue_vue_type_script_setup_true_name_subOrder_lang.49e9e8af.js";import{d as b,r as p,o as N,c as I,U as e,L as t,u as l,j as M,R as s,S as n}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.ef95d8c0.js";import"./axios.77245e3c.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./lodash.be6e4bb5.js";import"./pinia.a969beab.js";import"./css-color-function.6061d63f.js";import"./color.1580a89c.js";import"./clone.4ed29f58.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.b29ee5e2.js";import"./vue-clipboard3.15c43b43.js";import"./clipboard.4a3580c9.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.3de7c996.js";import"./usePaging.6a6670f9.js";import"./useDictOptions.d0c29343.js";import"./detail.vue_vue_type_script_setup_true_name_brandEdit_lang.f5d3ce24.js";import"./index.vue_vue_type_script_setup_true_lang.ab7008c1.js";import"./index.1fdb40b8.js";import"./cashierinfo.14ca2440.js";import"./cashierclass.a2492f72.js";const S=b({name:"opurchaseclassDetail"}),Oe=b({...S,setup(U){const D=k(),a=p({}),m=p("detail"),_=p(new Map([["detail",!0],["order",!1],["offer",!1]]));console.log(_.value),(async()=>{const r=await V({id:D.query.id});a.value=r})();const d=p(null),f=p(null),E=r=>{var i,o;_.value.get(r)||(r=="order"&&((i=d.value)==null||i.getLists()),r=="offer"&&((o=f.value)==null||o.getLists()),_.value.set(r,!0))};return(r,i)=>{const o=h,g=R,u=x,v=O,c=T,C=w,B=y;return N(),I("div",null,[e(B,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[e(C,{modelValue:l(m),"onUpdate:modelValue":i[0]||(i[0]=F=>M(m)?m.value=F:null),class:"demo-tabs",onTabChange:E},{default:t(()=>[e(c,{label:"\u6982\u51B5",name:"detail"},{default:t(()=>[e(g,{class:"margin-top",column:4,border:""},{default:t(()=>[e(o,{span:4,label:"\u5355\u636E\u7F16\u53F7"},{default:t(()=>[s(n(l(a).number),1)]),_:1}),e(o,{span:2,label:"\u5355\u636E\u91D1\u989D"},{default:t(()=>[s(n(l(a).total),1)]),_:1}),e(o,{span:2,label:"\u62B5\u6263\u91D1\u989D"},{default:t(()=>[s(n(l(a).deduction_price),1)]),_:1}),e(o,{span:2,label:"\u5B9E\u9645\u91D1\u989D"},{default:t(()=>[s(n(l(a).actual),1)]),_:1}),e(o,{span:2,label:"\u5B9E\u6536\u91D1\u989D"},{default:t(()=>[s(n(l(a).money),1)]),_:1}),e(o,{label:"\u6240\u5C5E\u5546\u6237"},{default:t(()=>[s(n(l(a).merchant_name),1)]),_:1})]),_:1}),e(v,{data:l(a).goods_info,border:"",style:{width:"100%","margin-top":"20px"}},{default:t(()=>[e(u,{prop:"id",label:"ID",width:"120"}),e(u,{prop:"goods_name",label:"\u5546\u54C1\u540D\u79F0"}),e(u,{prop:"price",label:"\u5355\u4EF7(\u5143)"}),e(u,{prop:"unit_name",label:"\u5355\u4F4D"}),e(u,{prop:"nums",label:"\u6570\u91CF"}),e(u,{prop:"total",label:"\u5408\u8BA1(\u5143)"}),e(u,{prop:"nums_count",label:"\u5DF2\u91C7\u7EB3\u6570\u91CF"})]),_:1},8,["data"])]),_:1}),e(c,{label:"\u5B50\u8BA2\u5355",name:"order"},{default:t(()=>[e(A,{ref_key:"subOrderRef",ref:d},null,512)]),_:1}),e(c,{label:"\u62A5\u4EF7\u5217\u8868",name:"offer"},{default:t(()=>[e(L,{ref_key:"goodsOfferRef",ref:f},null,512)]),_:1})]),_:1},8,["modelValue"])]),_:1})])}}});export{Oe as default};