2 lines
4.5 KiB
JavaScript
2 lines
4.5 KiB
JavaScript
|
import{W as O,X as P,x as R,y as T,O as x,Q as L,w as k,T as V}from"./element-plus.8c800afc.js";import{u as q}from"./usePaging.6a6670f9.js";import"./index.2398c167.js";import{d as G,e as N,f as S}from"./opurchaseclass.ade5f034.js";import{u as I}from"./vue-router.886c5f5a.js";import{_ as M}from"./subOrder.vue_vue_type_script_setup_true_name_subOrder_lang.cb09bc5a.js";import{_ as U}from"./goodsOffer.vue_vue_type_script_setup_true_name_subOrder_lang.db38c332.js";import{d as E,r as n,o as $,c as j,U as e,L as o,u,j as Q,R as s,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.ef95d8c0.js";import"./axios.77245e3c.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./lodash.be6e4bb5.js";import"./pinia.a969beab.js";import"./css-color-function.6061d63f.js";import"./color.1580a89c.js";import"./clone.4ed29f58.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.b29ee5e2.js";import"./vue-clipboard3.15c43b43.js";import"./clipboard.4a3580c9.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.7b224fce.js";import"./useDictOptions.080d297e.js";import"./detail.vue_vue_type_script_setup_true_name_brandEdit_lang.a6d8a90d.js";import"./index.vue_vue_type_script_setup_true_lang.ab7008c1.js";import"./index.d0a14c5a.js";import"./cashierinfo.5ce5d45a.js";import"./cashierclass.f59c0b15.js";const W=E({name:"opurchaseclassDetail"}),Se=E({...W,setup(X){const d=I(),l=n({}),_=n("detail"),c=n(new Map([["detail",!0],["order",!1],["offer",!1],["notPushedGoods",!1]]));(async()=>{const r=await N({id:d.query.id});l.value=r})();const f=n(null),b=n(null),h=r=>{var i,a;c.value.get(r)||(r=="order"&&((i=f.value)==null||i.getLists()),r=="offer"&&((a=b.value)==null||a.getLists()),c.value.set(r,!0))},{pager:C,getLists:D,resetParams:H,resetPage:J}=q({fetchFun:G,params:{is_push:0,id:d.query.id}}),w=async()=>{await S({id:d.query.id}),D()};return D(),(r,i)=>{const a=O,v=P,t=x,g=L,m=R,F=k,B=T,y=V;return $(),j("div",null,[e(y,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[e(B,{modelValue:u(_),"onUpdate:modelValue":i[0]||(i[0]=A=>Q(_)?_.value=A:null),class:"demo-tabs",onTabChange:h},{default:o(()=>[e(m,{label:"\u6982\u51B5",name:"detail"},{default:o(()=>[e(v,{class:"margin-top",column:4,border:""},{default:o(()=>[e(a,{span:4,label:"\u5355\u636E\u7F16\u53F7"},{default:o(()=>[s(p(u(l).number),1)]),_:1}),e(a,{span:2,label:"\u5355\u636E\u91D1\u989D"},{default:o(()=>[s(p(u(l).total),1)]),_:1}),e(a,{span:2,label:"\u62B5\u6263\u91D1\u989D"},{default:o(()=>[s(p(u(l).deduction_price),1)]),_:1}),e(a,{span:2,label:"\u5B9E\u9645\u91D1\u989D"},{default:o(()=>[s(p(u(l).actual),1)]),_:1}),e(a,{span:2,label:"\u5B9E\u6536\u91D1\u989D"},{default:o(()=>[s(p(u(l).money),1)]),_:1}),e(a,{label:"\u6240\u5C5E\u5546\u6237"},{default:o(()=>[s(p(u(l).merchant_name),1)]),_:1})]),_:1}),e(g,{data:u(l).goods_info,border:"",style:{width:"100%","margin-top":"20px"}},{default:o(()=>[e(t,{prop:"id",label:"ID",width:"120"}),e(t,{prop:"goods_name",label:"\u5546\u54C1\u540D\u79F0"}),e(t,{prop:"price",label:"\u5355\u4EF7(\u5143)"}),e(t,{prop:"unit_name",label:"\u5355\u4F4D"}),e(t,{prop:"nums",label:"\u6570\u91CF"}),e(t,{prop:"total",label:"\u5408\u8BA1(\u5143)"}),e(t,{prop:"nums_count",label:"\u5DF2\u91C7\u7EB3\u6570\u91CF"})]),_:1},8,["data"])]),_:1}),e(m,{label:"\u5B50\u8BA2\u5355",name:"order"},{default:o(()=>[e(M,{ref_key:"subOrderRef",ref:f},null,512)]),_:1}),e(m,{label:"\u62A5\u4EF7\u5217\u8868",name:"offer"},{default:o(()=>[e(U,{ref_key:"goodsOfferRef",ref:b},null,512)]),_:1}),e(m,{label:"\u672A\u63A8\u9001\u5546\u54C1",name:"notPushedGoods"},{default:o(()=>[e(F,{type:"primary",onClick:w},{default:o(()=>[s(" \
|