moreShopAdmin/dist/admin/assets/index.5bbb0703.js

2 lines
8.5 KiB
JavaScript
Raw Normal View History

2024-08-19 18:04:37 +08:00
import{U as le,J as ae,K as ue,D as re,C as se,w as ie,F as ne,L as pe,M as de,b as me,N as ce,O as _e}from"./element-plus.4a7d92a3.js";import{_ as fe}from"./index.vue_vue_type_script_setup_true_lang.5d4e738c.js";import{_ as he}from"./index.vue_vue_type_script_setup_true_lang.6f977673.js";import{u as we}from"./usePaging.6a6670f9.js";import{u as ve}from"./useDictOptions.4115bf51.js";import{d as U,e as Ee,f as be}from"./warehouse_product.87df0193.js";import{d as N,s as Fe,r as d,Z as Ce,i as ge,af as De,ap as ke,o as i,c as D,U as e,L as a,u as t,a as b,T as M,a9 as P,K as _,j as S,R as f,M as F,S as ye,Q as Y,n as Ve}from"./@vue.18505fe0.js";import"./lodash.9dc701ad.js";import{f as xe}from"./index.4382d480.js";import"./warehousing.vue_vue_type_script_setup_true_name_storeProductEdit_lang.46635647.js";import{a as Be}from"./system_store.c32cb4b1.js";import{h as A}from"./moment.40bc58bf.js";import{a as Le}from"./supplier.90c79cbf.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.7347fedc.js";import"./axios.4607972f.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./index.189422b9.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.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.0d2736b7.js";import"./vue-clipboard3.7d5a7a5d.js";import"./clipboard.860a1cea.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_name_systemStoreLists_lang.1b05c7e1.js";import"./store_product.7f7c259a.js";import"./store_branch_product.512c6062.js";import"./warehouse_product_storege.670b0136.js";import"./warehouse.3d41f593.js";const Te={class:"flex items-center mr-4"},Ue={class:"mt-4"},Me={style:{color:"red"}},Pe={class:"flex mt-4 justify-end"},Se=N({name:"warehouseProductLists"}),To=N({...Se,setup(Ye){const k=Fe(),$=d(!1),u=Ce({warehouse_id:"",product_id:"",financial_pm:1,store_id:"",bar_code:"",start_time:"",end_time:"",supplier_id:""}),z=d([]),I=s=>{z.value=s.map(({id:l})=>l)};ve("warehouse_produc_pm");const{pager:m,getLists:h,resetParams:R,resetPage:y}=we({fetchFun:U,params:u}),W=async s=>{var l,w;$.value=!0,await Ve(),(l=k.value)==null||l.open("edit"),(w=k.value)==null||w.setFormData(s)},j=async s=>{await Ee({id:s}),h()},K=async s=>{await xe.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await be({id:s}),h()},n=d([]),O=()=>{n.value[0]&&n.value[1]?(u.start_time=A(n.value[0]).format("YYYY-MM-DD")+" 00:00:00",u.end_time=A(n.value[1]).format("YYYY-MM-DD")+" 23:59:59"):(u.start_time="",u.end_time=""),h()},v=d(!1),V=d([]),q=(s="")=>{v.value=!0,Be({name:s,page_size:50}).then(l=>{V.value=l.lists,setTimeout(()=>{v.value=!1},300)}).catch(l=>{setTimeout(()=>{v.value=!1},300)})},E=d(!1),x=d([]),J=(s="")=>{E.value=!0,Le({}).then(l=>{x.value=l.lists,setTimeout(()=>{E.value=!1},300)}).catch(l=>{setTimeout(()=>{E.value=!1},300)})};return ge(()=>{h()}),(s,l)=>{const w=ae,B=ue,p=re,C=se,Q=le,c=ie,Z=he,G=ne,L=pe,H=De("router-link"),r=de,X=me,ee=ce,oe=fe,g=ke("perms"),te=_e;return i(),D("div",null,[e(L,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[e(G,{class:"mb-[-16px]",model:t(u),inline:""},{default:a(()=>[e(p,{label:"\u95E8\u5E97\u540D\u79F0",prop:"store_id"},{default:a(()=>[b("div",Te,[e(B,{modelValue:t(u).store_id,"onUpdate:modelValue":l[0]||(l[0]=o=>t(u).store_id=o),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u95E8\u5E97\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":q,loading:t(v),style:{width:"240px"},onChange:t(y)},{default:a(()=>[(i(!0),D(M,null,P(t(V),o=>(i(),_(