moreShopAdmin/dist/admin/assets/index.221c183b.js

2 lines
8.3 KiB
JavaScript
Raw Normal View History

2024-08-14 17:28:26 +08:00
import{U as oe,J as te,K as ae,D as le,C as ue,w as re,F as se,L as ne,M as ie,b as pe,N as de,O as me}from"./element-plus.4a7d92a3.js";import{_ as ce}from"./index.vue_vue_type_script_setup_true_lang.5d4e738c.js";import{f as _e,b as fe}from"./index.cb6439ac.js";import{_ as he}from"./index.vue_vue_type_script_setup_true_lang.e90b1001.js";import{u as we}from"./usePaging.6a6670f9.js";import{u as ve}from"./useDictOptions.26a6ab01.js";import{a as L,_ as be,b as Ee,c as Fe}from"./edit.vue_vue_type_script_setup_true_name_warehouseProductEdit_lang.143eb69e.js";import{d as Y,s as Ce,r as v,Z as ge,i as De,ap as ke,o as n,c as T,U as e,L as l,u as t,a as g,T as ye,a9 as Ve,K as i,j as $,R as m,M as h,S as xe,Q as y,n as M}from"./@vue.18505fe0.js";import"./lodash.9dc701ad.js";import{a as Be}from"./system_store.f6bfaa18.js";import{h as U}from"./moment.40bc58bf.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"./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.1ffeb9ae.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";import"./index.vue_vue_type_script_setup_true_name_systemStoreLists_lang.5d894292.js";import"./store_product.b280756e.js";import"./store_branch_product.364cf925.js";import"./warehouse_product_storege.8548ef41.js";import"./index.vue_vue_type_script_setup_true_name_systemStoreLists_lang.f5c2be47.js";import"./warehouse.0f2d639e.js";const Pe={class:"flex items-center mr-4"},Se={class:"mt-4"},Le={style:{color:"red"}},Te={class:"flex mt-4 justify-end"},$e=Y({name:"warehouseProductLists"}),Bo=Y({...$e,setup(Me){const b=Ce(),E=v(!1),r=ge({warehouse_id:"",product_id:"",financial_pm:1,store_id:"",bar_code:"",start_time:"",end_time:""}),D=v([]),A=s=>{D.value=s.map(({id:a})=>a)},{dictData:N}=ve("warehouse_produc_pm"),{pager:c,getLists:_,resetParams:R,resetPage:V}=we({fetchFun:L,params:r}),z=async()=>{var s;E.value=!0,await M(),(s=b.value)==null||s.open("add")},I=async s=>{var a,C;E.value=!0,await M(),(a=b.value)==null||a.open("edit"),(C=b.value)==null||C.setFormData(s)},W=async s=>{await Ee({id:s}),_()},x=async s=>{await _e.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await Fe({id:s}),_()},p=v([]),j=()=>{p.value[0]&&p.value[1]?(r.start_time=U(p.value[0]).format("YYYY-MM-DD")+" 00:00:00",r.end_time=U(p.value[1]).format("YYYY-MM-DD")+" 23:59:59"):(r.start_time="",r.end_time=""),_()},F=v(!1),B=v([]),K=(s="")=>{F.value=!0,Be({name:s,page_size:50}).then(a=>{B.value=a.lists,setTimeout(()=>{F.value=!1},300)}).catch(a=>{setTimeout(()=>{F.value=!1},300)})};return De(()=>{_()}),(s,a)=>{const C=te,O=ae,f=le,k=ue,q=oe,d=re,J=he,Q=se,P=ne,Z=fe,u=ie,G=pe,H=de,X=ce,w=ke("perms"),ee=me;return n(),T("div",null,[e(P,{class:"!border-none mb-4",shadow:"never"},{default:l(()=>[e(Q,{class:"mb-[-16px]",model:t(r),inline:""},{default:l(()=>[e(f,{label:"\u95E8\u5E97\u540D\u79F0",prop:"store_id"},{default:l(()=>[g("div",Pe,[e(O,{modelValue:t(r).store_id,"onUpdate:modelValue":a[0]||(a[0]=o=>t(r).store_id=o),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u95E8\u5E97\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":K,loading:t(F),style:{width:"240px"},onChange:t(V)},{default:l(()=>[(n(!0),T(ye,null,Ve(t(B),o=>(n(),i(C,{key:o.id,label:o.name,value:o.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue",