moreShopAdmin/build/admin/assets/index.f07ae256.js

2 lines
8.3 KiB
JavaScript
Raw Normal View History

2024-08-20 19:51:01 +08:00
import{U as te,J as le,K as ae,D as ue,C as re,w as se,F as ie,L as ne,M as pe,b as de,N as me,O as ce}from"./element-plus.a63a26dd.js";import{_ as _e}from"./index.vue_vue_type_script_setup_true_lang.ecb80feb.js";import{_ as fe}from"./index.vue_vue_type_script_setup_true_lang.b83fac3c.js";import{u as he}from"./usePaging.6a6670f9.js";import{u as we}from"./useDictOptions.2bd5fc35.js";import{c as U,e as ve,f as be}from"./warehouse_product.e0c4d560.js";import{d as N,s as Ee,r as d,Z as Fe,i as Ce,ap as ge,o as i,c as D,U as e,L as a,u as t,a as E,T as M,a9 as P,K as c,j as S,R as w,M as F,S as De,Q as Y,n as ke}from"./@vue.18505fe0.js";import"./lodash.2473fc51.js";import{f as ye}from"./index.30c5ea5f.js";import"./warehousing.vue_vue_type_script_setup_true_name_storeProductEdit_lang.6c3d35b5.js";import{a as Ve}from"./system_store.7ee6138f.js";import{h as A}from"./moment.40bc58bf.js";import{a as xe}from"./supplier.21d92776.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.4884cfc2.js";import"./axios.932d3f8a.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./index.b2bf8985.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.9f6a56f3.js";import"./color.d1bc3784.js";import"./clone.83700f2e.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.fcc9be76.js";import"./vue-clipboard3.9e751565.js";import"./clipboard.dda64e67.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.b91aed03.js";import"./store_product.450808ed.js";import"./store_branch_product.96c1666a.js";import"./warehouse_product_storege.ceafa3dd.js";import"./warehouse_order.027f31c0.js";import"./warehouse.2b491d86.js";const Be={class:"flex items-center mr-4"},Le={class:"mt-4"},Te={style:{color:"red"}},Ue={class:"flex mt-4 justify-end"},Me=N({name:"warehouseProductLists"}),Lo=N({...Me,setup(Pe){const k=Ee(),$=d(!1),u=Fe({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)};we("warehouse_produc_pm");const{pager:m,getLists:_,resetParams:R,resetPage:y}=he({fetchFun:U,params:u}),W=async s=>{var l,f;$.value=!0,await ke(),(l=k.value)==null||l.open("edit"),(f=k.value)==null||f.setFormData(s)},j=async s=>{await ve({id:s}),_()},K=async s=>{await ye.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await be({id:s}),_()},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=""),_()},v=d(!1),V=d([]),q=(s="")=>{v.value=!0,Ve({name:s,page_size:50}).then(l=>{V.value=l.lists,setTimeout(()=>{v.value=!1},300)}).catch(l=>{setTimeout(()=>{v.value=!1},300)})},b=d(!1),x=d([]),J=(s="")=>{b.value=!0,xe({}).then(l=>{x.value=l.lists,setTimeout(()=>{b.value=!1},300)}).catch(l=>{setTimeout(()=>{b.value=!1},300)})};return Ce(()=>{_()}),(s,l)=>{const f=le,B=ae,p=ue,C=re,Q=te,h=se,Z=fe,G=ie,L=ne,r=pe,H=de,X=me,ee=_e,g=ge("perms"),oe=ce;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(()=>[E("div",Be,[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=