2 lines
4.0 KiB
JavaScript
2 lines
4.0 KiB
JavaScript
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.d8e0827b.js";import{u as q}from"./usePaging.6a6670f9.js";import"./index.58242ff9.js";import{d as N,e as I}from"./opurchaseclass.b030cd9b.js";import{u as M}from"./vue-router.101084e3.js";import{_ as S}from"./subOrder.vue_vue_type_script_setup_true_name_subOrder_lang.d57d3911.js";import"./goodsOffer.vue_vue_type_script_setup_true_name_subOrder_lang.76f6c35b.js";import{d as h,r as n,Z as U,o as d,c as _,U as e,L as t,u as r,j,R as l,S as i}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"./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.b67c1046.js";import"./useDictOptions.f8f89444.js";import"./detail.vue_vue_type_script_setup_true_name_brandEdit_lang.22b71a16.js";import"./index.vue_vue_type_script_setup_true_lang.2914ee54.js";import"./index.432b2bf9.js";import"./cashierinfo.f9a9811d.js";import"./cashierclass.5aafecc9.js";const G={key:0,style:{color:"#e6a23c"}},Q={key:1},W=h({name:"opurchaseclassDetail"}),Ue=h({...W,setup(X){const f=M(),u=n({}),m=n("detail"),b=n(new Map([["detail",!0],["order",!1],["offer",!1],["notPushedGoods",!1]]));(async()=>{const s=await N({id:f.query.id});u.value=s})();const D=n(null),E=n(null),v=s=>{var p,a;b.value.get(s)||(s=="order"&&((p=D.value)==null||p.getLists()),s=="offer"&&((a=E.value)==null||a.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,p)=>{const a=x,y=L,o=R,A=k,g=O,T=P,w=V;return d(),_("div",null,[e(w,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[e(T,{modelValue:r(m),"onUpdate:modelValue":p[0]||(p[0]=c=>j(m)?m.value=c:null),class:"demo-tabs",onTabChange:v},{default:t(()=>[e(g,{label:"\u6982\u51B5",name:"detail"},{default:t(()=>[e(y,{class:"margin-top",column:4,border:""},{default:t(()=>[e(a,{span:4,label:"\u5355\u636E\u7F16\u53F7"},{default:t(()=>[l(i(r(u).number),1)]),_:1}),e(a,{span:2,label:"\u5355\u636E\u91D1\u989D"},{default:t(()=>[l(i(r(u).total),1)]),_:1}),e(a,{span:2,label:"\u62B5\u6263\u91D1\u989D"},{default:t(()=>[l(i(r(u).deduction_price),1)]),_:1}),e(a,{span:2,label:"\u5B9E\u9645\u91D1\u989D"},{default:t(()=>[l(i(r(u).actual),1)]),_:1}),e(a,{span:2,label:"\u5B9E\u6536\u91D1\u989D"},{default:t(()=>[l(i(r(u).money),1)]),_:1}),e(a,{label:"\u6240\u5C5E\u5546\u6237"},{default:t(()=>[l(i(r(u).merchant_name),1)]),_:1})]),_:1}),e(A,{data:r(B).lists,border:"",style:{width:"100%","margin-top":"20px"}},{default:t(()=>[e(o,{prop:"id",label:"ID",width:"120"}),e(o,{prop:"goods_name",label:"\u5546\u54C1\u540D\u79F0"}),e(o,{prop:"price",label:"\u5355\u4EF7(\u5143)"}),e(o,{prop:"unit_name",label:"\u5355\u4F4D"}),e(o,{prop:"nums",label:"\u6570\u91CF"}),e(o,{prop:"total",label:"\u5408\u8BA1(\u5143)"}),e(o,{prop:"nums_count",label:"\u5DF2\u91C7\u7EB3\u6570\u91CF"}),e(o,{prop:"is_push",label:"\u63A8\u9001\u72B6\u6001"},{default:t(({row:c})=>[c.is_push==0?(d(),_("span",G,"\u672A\u63A8\u9001")):(d(),_("span",Q,"\u5DF2\u63A8\u9001"))]),_:1})]),_:1},8,["data"])]),_:1}),e(g,{label:"\u644A\u8D29\u8BA2\u5355",name:"order"},{default:t(()=>[e(S,{ref_key:"subOrderRef",ref:D},null,512)]),_:1})]),_:1},8,["modelValue"])]),_:1})])}}});export{Ue as default};
|