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

2 lines
7.2 KiB
JavaScript
Raw Normal View History

2024-07-19 17:44:41 +08:00
import{a2 as Z,H as W,J as X,K as Y,D as ee,C as oe,w as te,F as le,L as ae,M as ue,b as se,t as ne,N as re,O as ie}from"./element-plus.7b9d0c0d.js";import{_ as pe}from"./index.vue_vue_type_script_setup_true_lang.8b9de773.js";import{d as U,s as me,r as d,Z as de,ap as ce,o as i,c as y,U as e,L as l,u as t,T as _e,a9 as fe,K as w,aa as D,R as r,M as x,j as S,a as L,Q as he,n as ve}from"./@vue.18505fe0.js";import{u as we}from"./usePaging.6a6670f9.js";import{u as be}from"./useDictOptions.1e75c240.js";import{b as Ee,d as Ce}from"./store_branch_product.75ce2dd1.js";import"./lodash.9dc701ad.js";import{a as ge}from"./system_store.5adf4f9f.js";import"./index.887947f5.js";import{_ as Fe}from"./edit.vue_vue_type_script_setup_true_name_storeBranchProductEdit_lang.c8e57514.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"./picker.013e8025.js";import"./index.eff6b85b.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";import"./index.186ff5bf.js";import"./index.9741e8de.js";import"./vuedraggable.1648e3a8.js";import"./vue.393dceb0.js";import"./sortablejs.382fadba.js";import"./store_product_unit.007a344d.js";const Be={class:"mt-4"},Ve={class:"flex mt-4 justify-end"},ke=U({name:"storeBranchProductLists"}),Co=U({...ke,setup(ye){const b=me(),E=d(!1),s=de({store_id:"",store_name:"",bar_code:"",exchange:0,status:null,stock:null}),P=d([]),K=u=>{P.value=u.map(({id:a})=>a)},{dictData:R}=be(""),{pager:p,getLists:c,resetParams:T,resetPage:_}=we({fetchFun:Ce,params:s}),A=async u=>{var a,h;E.value=!0,await ve(),(a=b.value)==null||a.open("edit"),(h=b.value)==null||h.setFormData(u)};c();const f=d(!1),B=d([]),N=(u="")=>{f.value=!0,ge({name:u,page_size:50}).then(a=>{B.value=a.lists,setTimeout(()=>{f.value=!1},300)}).catch(a=>{setTimeout(()=>{f.value=!1},300)})},$=u=>{Ee({id:u.id,store_name:u.store_name,image:u.image,price:u.price,unit:u.unit,status:u.status})},C=d("0"),I=u=>{u==0?(s.status=null,s.stock=null):u==1?(s.status=1,s.stock=null):u==2?(s.status=0,s.stock=null):u==3?(s.status=null,s.stock=10):u==4&&(s.status=null,s.stock=0),c()};return(u,a)=>{const h=X,M=Y,v=ee,V=oe,g=te,j=le,k=ae,m=Z,z=W,n=ue,O=se,q=ne,G=re,H=pe,J=ce("prems"),Q=ie;return i(),y("div",null,[e(k,{class:"!border-none mb-4",shadow:"never"},{default:l(()=>[e(j,{class:"mb-[-16px]",model:t(s),inline:""},{default:l(()=>[e(v,{label:"\u95E8\u5E97",prop:"store_id"},{default:l(()=>[e(M,{modelValue:t(s).store_id,"onUpdate:modelValue":a[0]||(a[0]=o=>t(s).store_id=o),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u95E8\u5E97\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":N,loading:t(f),style:{width:"240px"},onChange:t(_)},{default:l(()=>[(i(!0),y(_e,null,fe(t(B),o=>(i(),w(h,{key:o.id,label:o.name,value:o.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading","onChange"])]),_:1}),e(v,{label:"\u5546\u54C1\u540D\u79F0",prop:"store_name"},{default:l(()=>[e(V,{class:"w-[280px]",modelValue:t(s).store_name,"onUpdate:modelValue":a[1]||(a[1]=o=>t(s).store_name=o),onKeydown:D(t(_),["enter"]),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u54C1\u540D\u79F0"},null,8,["modelValue","onKeydown"])]),_:1}),e(v,{label:"\u5546\u54C1\u6761\u7801",prop:"bar_code"},{default:l(()=>[e(V,{class:"w-[280px]"