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.619595c4.js";import{u as q}from"./usePaging.6a6670f9.js";import"./index.adbcc6f1.js";import{d as N,e as I}from"./opurchaseclass.e1b8a0ff.js";import{u as M}from"./vue-router.101084e3.js";import{_ as S}from"./subOrder.vue_vue_type_script_setup_true_name_subOrder_lang.0ba88cdd.js";import"./goodsOffer.vue_vue_type_script_setup_true_name_subOrder_lang.3dd67c6d.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.6ad9ae30.js";import"./axios.fbe06b45.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./lodash.0987e768.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.316b9a3d.js";import"./vue-clipboard3.f9a42727.js";import"./clipboard.bf37ca4b.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.02c63712.js";import"./useDictOptions.2130484f.js";import"./detail.vue_vue_type_script_setup_true_name_brandEdit_lang.946ae994.js";import"./index.vue_vue_type_script_setup_true_lang.2914ee54.js";import"./index.122ff80d.js";import"./cashierinfo.66697ca0.js";import"./cashierclass.c4df2ab8.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};
|