2 lines
4.3 KiB
JavaScript
2 lines
4.3 KiB
JavaScript
import{W as x,X as y,x as L,y as O,O as P,Q as R,T as V}from"./element-plus.681b9893.js";import{u as k}from"./usePaging.6a6670f9.js";import{s as q,v as A}from"./index.0c8416f0.js";import{u as N}from"./vue-router.101084e3.js";import{_ as I}from"./subOrder.vue_vue_type_script_setup_true_name_subOrder_lang.e90924d0.js";import"./goodsOffer.vue_vue_type_script_setup_true_name_subOrder_lang.64caaa80.js";import{d as b,r as u,Z as M,o as S,c as U,U as t,L as e,u as a,j,R as l,S as p}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.58d80c54.js";import"./useDictOptions.b307efcf.js";import"./detail.vue_vue_type_script_setup_true_name_brandEdit_lang.adc91481.js";import"./index.vue_vue_type_script_setup_true_lang.2914ee54.js";import"./index.a7179cc9.js";import"./cashierinfo.48c49872.js";import"./cashierclass.284635b4.js";const G=b({name:"opurchaseclassDetail"}),ee=b({...G,setup(Q){const c=N(),r=u({}),n=u("detail"),d=u(new Map([["detail",!0],["order",!1],["offer",!1],["notPushedGoods",!1]]));(async()=>{const i=await q({id:c.query.id});r.value=i})();const _=u(null),D=u(null),g=i=>{var m,o;d.value.get(i)||(i=="order"&&((m=_.value)==null||m.getLists()),i=="offer"&&((o=D.value)==null||o.getLists()),d.value.set(i,!0))},E=M({id:c.query.id}),{pager:v,getLists:h,resetParams:X,resetPage:Z}=k({fetchFun:A,params:E});return h(),(i,m)=>{const o=x,C=y,s=P,B=R,f=L,F=O,T=V;return S(),U("div",null,[t(T,{class:"!border-none mb-4",shadow:"never"},{default:e(()=>[t(F,{modelValue:a(n),"onUpdate:modelValue":m[0]||(m[0]=w=>j(n)?n.value=w:null),class:"demo-tabs",onTabChange:g},{default:e(()=>[t(f,{label:"\u6982\u51B5",name:"detail"},{default:e(()=>[t(C,{class:"margin-top",column:4,border:""},{default:e(()=>[t(o,{span:4,label:"\u5355\u636E\u7F16\u53F7"},{default:e(()=>[l(p(a(r).number),1)]),_:1}),t(o,{span:2,label:"\u5355\u636E\u91D1\u989D"},{default:e(()=>[l(p(a(r).total),1)]),_:1}),t(o,{span:2,label:"\u62B5\u6263\u91D1\u989D"},{default:e(()=>[l(p(a(r).deduction_price),1)]),_:1}),t(o,{span:2,label:"\u5B9E\u9645\u91D1\u989D"},{default:e(()=>[l(p(a(r).actual),1)]),_:1}),t(o,{span:2,label:"\u5B9E\u6536\u91D1\u989D"},{default:e(()=>[l(p(a(r).money),1)]),_:1}),t(o,{label:"\u6240\u5C5E\u5546\u6237"},{default:e(()=>[l(p(a(r).merchant_name),1)]),_:1})]),_:1}),t(B,{data:a(v).lists,border:"",style:{width:"100%","margin-top":"20px"}},{default:e(()=>[t(s,{prop:"id",label:"ID",width:"120"}),t(s,{prop:"goods_name",label:"\u5546\u54C1\u540D\u79F0"}),t(s,{prop:"price",label:"\u5355\u4EF7(\u5143)"}),t(s,{prop:"unit_name",label:"\u5355\u4F4D"}),t(s,{prop:"nums",label:"\u6570\u91CF"}),t(s,{prop:"total",label:"\u5408\u8BA1(\u5143)"})]),_:1},8,["data"])]),_:1}),t(f,{label:"\u644A\u8D29\u8BA2\u5355",name:"order"},{default:e(()=>[t(I,{ref_key:"subOrderRef",ref:_},null,512)]),_:1})]),_:1},8,["modelValue"])]),_:1})])}}});export{ee as default};
|