moreShopAdmin/dist/admin/assets/index.3b2d438c.js

2 lines
12 KiB
JavaScript
Raw Normal View History

2025-01-16 14:25:38 +08:00
import{V as Fe,x as ke,y as we,k as N,C as ye,D as Ce,N as he,O as De,w as Be,F as Ve,K as ge,G as Ae,b as $e,H as xe,I as Se}from"./element-plus.8e273e86.js";import{_ as Te}from"./index.vue_vue_type_script_setup_true_lang.d6032bc4.js";import{_ as Ue}from"./index.vue_vue_type_script_setup_true_lang.f8366c38.js";import{u as Oe}from"./usePaging.f8c888e4.js";import{f as Re}from"./index.da348ba1.js";import{d as H,r as i,s as z,Z as Pe,i as Le,af as Me,ap as Ye,o as m,c as I,U as l,L as u,u as t,j as w,a as F,T as Ne,a9 as ze,K as c,R as p,M as g,S as A,Q as T,n as q}from"./@vue.76ce7aa3.js";import"./lodash.41b9567d.js";import{h as j}from"./moment.40bc58bf.js";import{u as K,v as Ie,q as qe,w as je,x as Ke}from"./beforehand_order.ebe2b52e.js";import{a as Ge}from"./system_store.4b403c4a.js";import{_ as He}from"./drawer.vue_vue_type_script_setup_true_lang.d92c5d28.js";import{_ as G}from"./edit.vue_vue_type_script_setup_true_name_beforehandOrderEdit_lang.92291659.js";import{_ as Qe}from"./copyPop.vue_vue_type_script_setup_true_name_warehouseOrderEdit_lang.33348186.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.0b11b102.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.cf0d972e.js";import"./axios.b4cbdbc9.js";import"./jspdf.75308076.js";import"./fflate.0418c72f.js";import"./vue-router.10bd5b90.js";import"./pinia.f3529286.js";import"./css-color-function.f23177ae.js";import"./color.a6ad6672.js";import"./clone.954ba32c.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.23cf67d9.js";import"./index.df45d676.js";import"./index.42983fae.js";import"./vuedraggable.1d6c5910.js";import"./vue.6c4d4a7c.js";import"./sortablejs.a0474a26.js";import"./admin.d4616c5e.js";const Ze={class:"flex items-center mr-4"},Je={class:"mt-4"},We={class:"flex mt-4 justify-end"},Xe=H({name:"warehouseOrderLists"}),eo=H({...Xe,setup(el){const y=i(!1),$=z(),O=z(),C=i(!1),d=i([]),R=i(null);i([]);const h=i(!1),D=i("all"),Q=r=>{D.value=="all"?a.order_type="":a.order_type=D.value,_()},B=i("all"),Z=r=>{B.value=="all"?a.warehouse_type="":a.warehouse_type=B.value,_()},J=async r=>{var e;h.value=!0,await q(),(e=O.value)==null||e.open(r.id)},W=r=>{var e;C.value=!0,(e=R.value)==null||e.open(r.id)},a=Pe({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:""}),X=i([]),ee=r=>{X.value=r.map(({id:e})=>e)},le=async r=>{var e,b;y.value=!0,await q(),(e=$.value)==null||e.open("edit"),(b=$.value)==null||b.setFormData(r)},{pager:k,getLists:P,resetParams:oe,resetPage:ll}=Oe({fetchFun:K,params:a}),te=async r=>{await Re.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await Ie({id:r}),_()},E=i([]),ae=()=>{E.value[0]&&E.value[1]?(a.start_time=j(E.value[0]).format("YYYY-MM-DD")+" 00:00:00",a.end_time=j(E.value[1]).format("YYYY-MM-DD")+" 23:59:59"):(a.start_time="",a.end_time=""),_()},ue=r=>{qe({id:r,type:2}).then(e=>{window.open(e.url,"_blank"),N.success("\u5BFC\u51FA\u6210\u529F")})},re=r=>{je({id:r}).then(e=>{window.open(e.url,"_blank"),N.success("\u5BFC\u51FA\u6210\u529F")})},x=i(!1),L=i([]),ne=(r="")=>{x.value=!0,Ge({name:r,page_size:50}).then(e=>{L.value=e.lists,setTimeout(()=>{x.value=!1},300)}).catch(e=>{setTimeout(()=>{x.value=!1},300)})},se=()=>{Ke(a).then(r=>{d.value=r})},_=()=>{P(),se()},de=()=>{a.order_id="",a.product_name="",a.financial_pm=1,a.store_id="",a.start_time="",a.end_time="",a.supplier_id="