moreShopAdmin/dist/admin/assets/index.b3d67074.js

2 lines
12 KiB
JavaScript
Raw Normal View History

2025-01-11 14:56:33 +08:00
import{V as fe,x as ce,y as be,k as M,C as ve,D as Ee,N as Fe,O as we,w as ke,F as Ce,K as he,G as ye,b as Be,H as De,I as ge}from"./element-plus.8e273e86.js";import{_ as Ve}from"./index.vue_vue_type_script_setup_true_lang.d6032bc4.js";import{_ as Ae}from"./index.vue_vue_type_script_setup_true_lang.0e18aa85.js";import{u as xe}from"./usePaging.f8c888e4.js";import{f as $e}from"./index.3f6de77c.js";import{d as j,r as i,s as Te,Z as Oe,i as Se,af as Ue,ap as Pe,o as m,c as Y,U as l,L as u,u as t,j as B,a as F,T as Re,a9 as Le,K as v,R as p,M as D,S as g,Q as O,n as Me}from"./@vue.76ce7aa3.js";import"./lodash.4e6d2a38.js";import{h as N}from"./moment.40bc58bf.js";import{s as z,t as Ye,p as Ne,u as ze,v as Ie}from"./beforehand_order.ecc7c19a.js";import{a as je}from"./system_store.7dbd9177.js";import{_ as qe}from"./drawer.vue_vue_type_script_setup_true_lang.475169f5.js";import{_ as I}from"./edit.vue_vue_type_script_setup_true_name_beforehandOrderEdit_lang.e2b8fec6.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.9ffef7f8.js";import"./@element-plus.73235148.js";import"./dayjs.0112e2c7.js";import"./@babel.80d29b7b.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./index.42678949.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.cf0d972e.js";import"./axios.cffda5ac.js";import"./jspdf.6c61b9d3.js";import"./fflate.0418c72f.js";import"./vue-router.10bd5b90.js";import"./pinia.f3529286.js";import"./css-color-function.bb8c34b2.js";import"./color.fbd63fe8.js";import"./clone.31a3aa2c.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.b502f541.js";import"./vue-clipboard3.e775fc74.js";import"./clipboard.6417898a.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.8d65305c.js";import"./picker.9b124a3a.js";import"./index.9ed36b18.js";import"./index.0980f693.js";import"./vuedraggable.c04c7c0c.js";import"./vue.3299ef77.js";import"./sortablejs.c62bcaf8.js";import"./admin.03e20a95.js";const Ke={class:"flex items-center mr-4"},Ge={class:"mt-4"},He={class:"flex mt-4 justify-end"},Qe=j({name:"warehouseOrderLists"}),Ql=j({...Qe,setup(Ze){const k=i(!1),V=Te(),C=i(!1),d=i([]),S=i(null);i([]);const h=i("all"),q=r=>{h.value=="all"?a.order_type="":a.order_type=h.value,_()},y=i("all"),K=r=>{y.value=="all"?a.warehouse_type="":a.warehouse_type=y.value,_()},G=r=>{var e;C.value=!0,(e=S.value)==null||e.open(r.id)},a=Oe({order_id:"",product_name:"",financial_pm:1,store_id:"",start_time:"",end_time:"",supplier_id:"",order_sn:"",order_ck:"",order_rk:"",order_type:"",warehouse_type:"",mark:""}),H=i([]),Q=r=>{H.value=r.map(({id:e})=>e)},Z=async r=>{var e,c;k.value=!0,await Me(),(e=V.value)==null||e.open("edit"),(c=V.value)==null||c.setFormData(r)},{pager:w,getLists:U,resetParams:J,resetPage:Je}=xe({fetchFun:z,params:a}),W=async r=>{await $e.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await Ye({id:r}),_()},E=i([]),X=()=>{E.value[0]&&E.value[1]?(a.start_time=N(E.value[0]).format("YYYY-MM-DD")+" 00:00:00",a.end_time=N(E.value[1]).format("YYYY-MM-DD")+" 23:59:59"):(a.start_time="",a.end_time=""),_()},ee=r=>{Ne({id:r,type:2}).then(e=>{window.open(e.url,"_blank"),M.success("\u5BFC\u51FA\u6210\u529F")})},le=r=>{ze({id:r}).then(e=>{window.open(e.url,"_blank"),M.success("\u5BFC\u51FA\u6210\u529F")})},A=i(!1),P=i([]),oe=(r="")=>{A.value=!0,je({name:r,page_size:50}).then(e=>{P.value=e.lists,setTimeout(()=>{A.value=!1},300)}).catch(e=>{setTimeout(()=>{A.value=!1},300)})},te=()=>{Ie(a).then(r=>{d.value=r})},_=()=>{U(),te()},ae=()=>{a.order_id="",a.product_name="",a.financial_pm=1,a.store_id="",a.start_time="",a.end_time="",a.supplier_id="",a.order_sn="",a.order_ck="",a.order_rk="",a.order_type="",a.warehouse_type="",a.mark="",J()};return Se(()=>{_()}),(r,e)=>{const c=ve,b=Ee,ue=fe,re=Fe,ne=we,f=ke,se=Ae,de=Ce,R=he,T=Ue("rout