ERP-admin/build/admin/assets/detail.a1e4bffc.js

2 lines
5.6 KiB
JavaScript

import{W as L,X as O,x as T,y as x,O as $,Q as w,T as V}from"./element-plus.681b9893.js";import{u as G}from"./usePaging.6a6670f9.js";import{s as q,v as N}from"./index.6e50aa23.js";import{u as I}from"./vue-router.101084e3.js";import{_ as U}from"./subOrder.vue_vue_type_script_setup_true_name_subOrder_lang.7381bade.js";import{_ as j}from"./goodsOffer.vue_vue_type_script_setup_true_name_subOrder_lang.03226cf5.js";import{_ as Q}from"./noPush.vue_vue_type_script_setup_true_name_subOrder_lang.a79fcea6.js";import{_ as W}from"./putStorage.vue_vue_type_script_setup_true_name_subOrder_lang.d3ce7884.js";import{_ as X}from"./outStorage.vue_vue_type_script_setup_true_name_subOrder_lang.417d8697.js";import{d as R,r as i,Z,o as b,c as g,U as t,L as e,u as r,j as z,R as m,S as n}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.e1bb01b2.js";import"./detail.vue_vue_type_script_setup_true_name_brandEdit_lang.bb83988c.js";import"./index.vue_vue_type_script_setup_true_lang.2914ee54.js";import"./index.bba2f543.js";import"./cashierinfo.92ebbfee.js";import"./cashierclass.c7b57416.js";import"./index.vue_vue_type_script_setup_true_name_brandEdit_lang.1ba20f26.js";const H={key:1},J=R({name:"opurchaseclassDetail"}),fe=R({...J,setup(K){const D=I(),s=i({}),_=i("detail");(async()=>{const u=await q({id:D.query.id});s.value=u})();const E=i(null),h=i(null),v=i(null),B=i(null),F=i(null),C=u=>{var l,a,f,o,d;u=="order"&&((l=E.value)==null||l.getLists()),u=="offer"&&((a=h.value)==null||a.getLists()),u=="notPushedGoods"&&((f=v.value)==null||f.getLists()),u=="putStorage"&&((o=B.value)==null||o.getLists()),u=="outStorage"&&((d=F.value)==null||d.getLists())},y=Z({id:D.query.id}),{pager:P,getLists:k,resetParams:Y,resetPage:tt}=G({fetchFun:N,params:y});return k(),(u,l)=>{const a=L,f=O,o=$,d=w,p=T,A=x,S=V;return b(),g("div",null,[t(S,{class:"!border-none mb-4",shadow:"never"},{default:e(()=>[t(A,{modelValue:r(_),"onUpdate:modelValue":l[1]||(l[1]=c=>z(_)?_.value=c:null),class:"demo-tabs",onTabChange:C},{default:e(()=>[t(p,{label:"\u6982\u51B5",name:"detail"},{default:e(()=>[t(f,{class:"margin-top",column:4,border:""},{default:e(()=>[t(a,{span:4,label:"\u5355\u636E\u7F16\u53F7"},{default:e(()=>[m(n(r(s).number),1)]),_:1}),t(a,{span:2,label:"\u5355\u636E\u91D1\u989D"},{default:e(()=>[m(n(r(s).total),1)]),_:1}),t(a,{span:2,label:"\u62B5\u6263\u91D1\u989D"},{default:e(()=>[m(n(r(s).deduction_price),1)]),_:1}),t(a,{span:2,label:"\u5B9E\u9645\u91D1\u989D"},{default:e(()=>[m(n(r(s).actual),1)]),_:1}),t(a,{span:2,label:"\u5B9E\u6536\u91D1\u989D"},{default:e(()=>[m(n(r(s).money),1)]),_:1}),t(a,{label:"\u6240\u5C5E\u5546\u6237"},{default:e(()=>[m(n(r(s).merchant_name),1)]),_:1})]),_:1}),t(d,{data:r(P).lists,border:"",style:{width:"100%","margin-top":"20px"}},{default:e(()=>[t(o,{prop:"id",label:"ID",width:"120"}),t(o,{prop:"goods_name",label:"\u5546\u54C1\u540D\u79F0"}),t(o,{prop:"price",label:"\u5355\u4EF7(\u5143)"}),t(o,{prop:"unit_name",label:"\u5355\u4F4D"}),t(o,{prop:"nums",label:"\u6570\u91CF"}),t(o,{prop:"total",label:"\u5408\u8BA1(\u5143)"}),t(o,{prop:"nums_count",label:"\u5DF2\u91C7\u7EB3\u6570\u91CF"}),t(o,{prop:"is_push",label:"\u63A8\u9001\u72B6\u6001"},{default:e(({row:c})=>[c.is_push==0?(b(),g("span",{key:0,style:{color:"#e6a23c",cursor:"pointer"},onClick:l[0]||(l[0]=et=>{_.value="notPushedGoods",C("notPushedGoods")})},"\u672A\u63A8\u9001")):(b(),g("span",H,"\u5DF2\u63A8\u9001"))]),_:1})]),_:1},8,["data"])]),_:1}),t(p,{label:"\u5546\u6237\u8BA2\u5355",name:"order"},{default:e(()=>[t(U,{ref_key:"subOrderRef",ref:E},null,512)]),_:1}),t(p,{label:"\u62A5\u4EF7\u5217\u8868",name:"offer"},{default:e(()=>[t(j,{ref_key:"goodsOfferRef",ref:h},null,512)]),_:1}),t(p,{label:"\u672A\u63A8\u9001\u5546\u54C1",name:"notPushedGoods"},{default:e(()=>[t(Q,{ref_key:"noPushRef",ref:v},null,512)]),_:1}),t(p,{label:"\u5165\u5E93\u8BB0\u5F55",name:"putStorage"},{default:e(()=>[t(W,{ref_key:"putStorageRef",ref:B},null,512)]),_:1}),t(p,{label:"\u51FA\u5E93\u8BB0\u5F55",name:"outStorage"},{default:e(()=>[t(X,{ref_key:"outStorageRef",ref:F},null,512)]),_:1})]),_:1},8,["modelValue"])]),_:1})])}}});export{fe as default};