moreShopAdmin/dist/admin/assets/index.94a372b6.js

2 lines
7.7 KiB
JavaScript
Raw Normal View History

2024-12-20 14:46:50 +08:00
import{U as te,C as ae,D as le,G as re,H as se,w as ue,F as ne,M as ie,I as pe,J as me,K as de}from"./element-plus.7e54903f.js";import{_ as _e}from"./index.vue_vue_type_script_setup_true_lang.7f121250.js";import{_ as ce}from"./index.vue_vue_type_script_setup_true_lang.c97c8144.js";import{u as fe}from"./usePaging.f8c888e4.js";import{u as ve}from"./useDictOptions.99e549ee.js";import{i as S,j as we}from"./warehouse_order.5d6a0da7.js";import"./lodash.905d29aa.js";import{f as he}from"./index.aacc8c66.js";import{_ as Ee}from"./edit.vue_vue_type_script_setup_true_name_warehouseOrderEdit_lang.908d1a7a.js";import{_ as Fe}from"./details.vue_vue_type_script_setup_true_name_storeOrderDETAILS_lang.36f09a77.js";import{h as T}from"./moment.40bc58bf.js";import{a as Ce}from"./supplier.5d501db3.js";import{d as I,s as U,r as p,Z as De,i as be,af as ge,ap as ke,o as i,c as $,U as o,L as l,u as t,T as ye,a9 as Ve,K as d,j as L,R as w,M as E,a as M,Q as Y,n as R}from"./@vue.76ce7aa3.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.bd8f165a.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.cf0d972e.js";import"./axios.74873e41.js";import"./jspdf.9e946b0e.js";import"./fflate.0418c72f.js";import"./vue-router.10bd5b90.js";import"./pinia.f3529286.js";import"./css-color-function.5dec0992.js";import"./color.f3e3a53f.js";import"./clone.8eedf8fa.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"./index.vue_vue_type_script_setup_true_name_systemStoreLists_lang.e1e0a87d.js";import"./store_product.024dce8e.js";import"./store_branch_product.6d446e5e.js";import"./warehouse_product_storege.51c3132f.js";import"./warehouse_product.954f005e.js";import"./editProduct.vue_vue_type_script_setup_true_name_warehouseOrderEdit_lang.791a1ccd.js";const Be={class:"mt-4"},xe={class:"flex mt-4 justify-end"},Se=I({name:"warehouseOrderLists"}),So=I({...Se,setup(Te){const F=U(),C=U(),D=p(!1),b=p(!1),r=De({id:"",warehouse_id:"",product_name:"",financial_pm:1,store_id:"",start_time:"",end_time:"",code:"",supplier_id:""}),P=p([]),N=u=>{P.value=u.map(({id:e})=>e)},{dictData:k}=ve(""),{pager:_,getLists:c,resetParams:O,resetPage:y}=fe({fetchFun:S,params:r}),j=async u=>{var e,n;D.value=!0,await R(),(e=F.value)==null||e.open("edit"),(n=F.value)==null||n.setFormData(u)},z=async u=>{await he.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await we({id:u}),c()},A=async u=>{var e,n;b.value=!0,await R(),(e=C.value)==null||e.open(),(n=C.value)==null||n.getDetail(u)},m=p([]),K=()=>{m.value[0]&&m.value[1]?(r.start_time=T(m.value[0]).format("YYYY-MM-DD")+" 00:00:00",r.end_time=T(m.value[1]).format("YYYY-MM-DD")+" 23:59:59"):(r.start_time="",r.end_time=""),c()};p(!1),p([]);const h=p(!1),V=p([]),W=(u="")=>{h.value=!0,Ce({mer_name:u}).then(e=>{V.value=e.lists,setTimeout(()=>{h.value=!1},300)}).catch(e=>{setTimeout(()=>{h.value=!1},300)})};return be(()=>{c()}),(u,e)=>{const n=ae,f=le,q=re,G=se,H=te,v=ue,J=ce,Q=ne,B=ie,Z=ge("router-link"),s=pe,X=me,ee=_e,g=ke("perms"),oe=de;return i(),$("div",null,[o(B,{class:"!border-none mb-4",shadow:"never"},{default:l(()=>[o(Q,{class:"mb-[-16px]",model:t(r),inline:""},{default:l(()=>[o(f,{label:"ID",prop:"id"},{default:l(()=>[o(n,{class:"w-[280px]",modelValue:t(r).id,"onUpdate:modelValue":e[0]||(e[0]=a=>t(r).id=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165id"},null,8,["modelValue"])]),_:1}),o(f,{label:"\u5355\u53F7",prop:"code"},{default:l(()=>[o(n,{class:"w-[280px]",modelValue:t(r).code,"onUpdate:modelV