2 lines
4.5 KiB
JavaScript
2 lines
4.5 KiB
JavaScript
import{W as L,X as O,x as T,y as w,O as x,Q as G,T as V}from"./element-plus.d8e0827b.js";import{u as $}from"./usePaging.6a6670f9.js";import"./index.3078ee97.js";import{d as q,e as N}from"./opurchaseclass.b8e9ee61.js";import{u as I}from"./vue-router.101084e3.js";import{_ as M}from"./subOrder.vue_vue_type_script_setup_true_name_subOrder_lang.6f6f0eea.js";import{_ as S}from"./goodsOffer.vue_vue_type_script_setup_true_name_subOrder_lang.3df86cfe.js";import{_ as U}from"./noPush.vue_vue_type_script_setup_true_name_subOrder_lang.865dffd8.js";import{d as P,r as n,Z as j,o as c,c as b,U as e,L as t,u as s,j as Q,R as i,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"./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.26f94334.js";import"./detail.vue_vue_type_script_setup_true_name_brandEdit_lang.45b7ee9b.js";import"./index.vue_vue_type_script_setup_true_lang.2914ee54.js";import"./index.ea9543a9.js";import"./cashierinfo.4f9e52b4.js";import"./cashierclass.2ccb3cd3.js";const W={key:1},X=P({name:"opurchaseclassDetail"}),Qe=P({...X,setup(Z){const D=I(),r=n({}),m=n("detail"),g=n(new Map([["detail",!0],["order",!1],["offer",!1],["notPushedGoods",!1]]));(async()=>{const a=await q({id:D.query.id});r.value=a})();const h=n(null),E=n(null),v=n(null),C=a=>{var l,o,d;g.value.get(a)||(g.value.set(a,!0),a=="order"&&((l=h.value)==null||l.getLists()),a=="offer"&&((o=E.value)==null||o.getLists()),a=="notPushedGoods"&&((d=v.value)==null||d.getLists()))},F=j({id:D.query.id}),{pager:y,getLists:B,resetParams:H,resetPage:J}=$({fetchFun:N,params:F});return B(),(a,l)=>{const o=L,d=O,u=x,A=G,_=T,R=w,k=V;return c(),b("div",null,[e(k,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[e(R,{modelValue:s(m),"onUpdate:modelValue":l[1]||(l[1]=f=>Q(m)?m.value=f:null),class:"demo-tabs",onTabChange:C},{default:t(()=>[e(_,{label:"\u6982\u51B5",name:"detail"},{default:t(()=>[e(d,{class:"margin-top",column:4,border:""},{default:t(()=>[e(o,{span:4,label:"\u5355\u636E\u7F16\u53F7"},{default:t(()=>[i(p(s(r).number),1)]),_:1}),e(o,{span:2,label:"\u5355\u636E\u91D1\u989D"},{default:t(()=>[i(p(s(r).total),1)]),_:1}),e(o,{span:2,label:"\u62B5\u6263\u91D1\u989D"},{default:t(()=>[i(p(s(r).deduction_price),1)]),_:1}),e(o,{span:2,label:"\u5B9E\u9645\u91D1\u989D"},{default:t(()=>[i(p(s(r).actual),1)]),_:1}),e(o,{span:2,label:"\u5B9E\u6536\u91D1\u989D"},{default:t(()=>[i(p(s(r).money),1)]),_:1}),e(o,{label:"\u6240\u5C5E\u5546\u6237"},{default:t(()=>[i(p(s(r).merchant_name),1)]),_:1})]),_:1}),e(A,{data:s(y).lists,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"}),e(u,{prop:"is_push",label:"\u63A8\u9001\u72B6\u6001"},{default:t(({row:f})=>[f.is_push==0?(c(),b("span",{key:0,style:{color:"#e6a23c",cursor:"pointer"},onClick:l[0]||(l[0]=K=>{m.value="notPushedGoods",C("notPushedGoods")})},"\u672A\u63A8\u9001")):(c(),b("span",W,"\u5DF2\u63A8\u9001"))]),_:1})]),_:1},8,["data"])]),_:1}),e(_,{label:"\u5546\u6237\u8BA2\u5355",name:"order"},{default:t(()=>[e(M,{ref_key:"subOrderRef",ref:h},null,512)]),_:1}),e(_,{label:"\u62A5\u4EF7\u5217\u8868",name:"offer"},{default:t(()=>[e(S,{ref_key:"goodsOfferRef",ref:E},null,512)]),_:1}),e(_,{label:"\u672A\u63A8\u9001\u5546\u54C1",name:"notPushedGoods"},{default:t(()=>[e(U,{ref_key:"noPushRef",ref:v},null,512)]),_:1})]),_:1},8,["modelValue"])]),_:1})])}}});export{Qe as default};
|