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.c0c1189d.js";import{u as q}from"./usePaging.6a6670f9.js";import"./index.13b023cd.js";import{d as N,e as I}from"./opurchaseclass.8f390b37.js";import{u as M}from"./vue-router.101084e3.js";import{_ as S}from"./subOrder.vue_vue_type_script_setup_true_name_subOrder_lang.ee296997.js";import"./goodsOffer.vue_vue_type_script_setup_true_name_subOrder_lang.82f671a8.js";import{d as h,r as n,Z as U,o as d,c as _,U as e,L as t,u,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.3f38f327.js";import"./axios.18becb61.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./lodash.403d4198.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.48cb4095.js";import"./vue-clipboard3.6d09ff6e.js";import"./clipboard.564aa4b9.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.79ff4a10.js";import"./useDictOptions.4b8bdc26.js";import"./detail.vue_vue_type_script_setup_true_name_brandEdit_lang.c1f76c32.js";import"./index.vue_vue_type_script_setup_true_lang.2914ee54.js";import"./index.8bb0bf0f.js";import"./cashierinfo.9c324303.js";import"./cashierclass.5a29284c.js";const G={key:0,style:{color:"#e6a23c"}},Q={key:1},W=h({name:"opurchaseclassDetail"}),Ie=h({...W,setup(X){const f=M(),s=n({}),m=n("detail"),b=n(new Map([["detail",!0],["order",!1],["offer",!1],["notPushedGoods",!1]]));(async()=>{const r=await N({id:f.query.id});s.value=r})();const D=n(null),E=n(null),v=r=>{var p,a;b.value.get(r)||(r=="order"&&((p=D.value)==null||p.getLists()),r=="offer"&&((a=E.value)==null||a.getLists()),b.value.set(r,!0))},C=U({id:f.query.id}),{pager:B,getLists:F,resetParams:$,resetPage:z}=q({fetchFun:I,params:C});return F(),(r,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:u(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(u(s).number),1)]),_:1}),e(a,{span:2,label:"\u5355\u636E\u91D1\u989D"},{default:t(()=>[l(i(u(s).total),1)]),_:1}),e(a,{span:2,label:"\u62B5\u6263\u91D1\u989D"},{default:t(()=>[l(i(u(s).deduction_price),1)]),_:1}),e(a,{span:2,label:"\u5B9E\u9645\u91D1\u989D"},{default:t(()=>[l(i(u(s).actual),1)]),_:1}),e(a,{span:2,label:"\u5B9E\u6536\u91D1\u989D"},{default:t(()=>[l(i(u(s).money),1)]),_:1}),e(a,{label:"\u6240\u5C5E\u5546\u6237"},{default:t(()=>[l(i(u(s).merchant_name),1)]),_:1})]),_:1}),e(A,{data:u(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{Ie as default};
|