moreShopAdmin/dist/admin/assets/index.1b86f7cd.js

2 lines
9.1 KiB
JavaScript
Raw Normal View History

2024-08-15 21:33:10 +08:00
import{a2 as ue,H as se,J as ne,K as re,D as ie,C as pe,w as de,F as me,L as ce,M as _e,b as fe,t as he,N as be,O as ve}from"./element-plus.a63a26dd.js";import{_ as we}from"./index.vue_vue_type_script_setup_true_lang.ecb80feb.js";import{_ as Ee}from"./index.vue_vue_type_script_setup_true_lang.4bc6f0db.js";import{d as z,s as ge,r as b,Z as Ce,i as Fe,ap as K,o as r,c as C,U as o,L as l,u as t,T as D,a9 as S,K as v,aa as R,R as i,M as U,j as T,a as _,a0 as F,S as y,Q as ye,n as Be}from"./@vue.18505fe0.js";import{u as Ve}from"./usePaging.6a6670f9.js";import{u as ke}from"./useDictOptions.52006ef3.js";import{a as $,e as xe,c as De}from"./store_branch_product.93a34a07.js";import"./lodash.2473fc51.js";import{a as Se}from"./system_store.c016e074.js";import{f as Ue}from"./index.82a85bee.js";import{_ as Le}from"./edit.vue_vue_type_script_setup_true_name_storeBranchProductEdit_lang.e7fd0cee.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.0b0584cf.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"./picker.41865053.js";import"./index.8694d302.js";import"./index.daee0919.js";import"./vuedraggable.ac9cc40f.js";import"./vue.7b0b04ca.js";import"./sortablejs.82ef1d94.js";import"./store_product_unit.c9a9df35.js";const Pe={class:"mt-4"},Ae={class:"flex mt-4 justify-end"},Ke=z({name:"storeBranchProductLists"}),Uo=z({...Ke,setup(Re){const B=ge(),V=b(!1),u=Ce({store_id:"",store_name:"",bar_code:"",exchange:0,status:null,order_by:"",field:"stock"}),N=b([]),I=s=>{N.value=s.map(({id:a})=>a)},{dictData:M}=ke(""),{pager:p,getLists:f,resetParams:j,resetPage:d}=Ve({fetchFun:$,params:u}),O=async s=>{var a,m;V.value=!0,await Be(),(a=B.value)==null||a.open("edit"),(m=B.value)==null||m.setFormData(s)},q=async s=>{await Ue.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await xe({id:s}),f()};Fe(()=>{f()});const w=b(!1),L=b([]),G=(s="")=>{w.value=!0,Se({name:s,page_size:50}).then(a=>{L.value=a.lists,setTimeout(()=>{w.value=!1},300)}).catch(a=>{setTimeout(()=>{w.value=!1},300)})},H=s=>{De({id:s.id,store_name:s.store_name,image:s.image,price:s.price,unit:s.unit,status:s.status})},k=b("0"),J=s=>{s==0?(u.status=null,u.stock=null):s==1?(u.status=1,u.stock=null):s==2?(u.status=0,u.stock=null):s==3?(u.status=null,u.stock=10):s==4&&(u.status=null,u.stock=0),f()};return(s,a)=>{const m=ne,x=re,c=ie,P=pe,E=de,Q=Ee,Z=me,A=ce,h=ue,W=se,n=_e,X=fe,Y=he,ee=be,oe=we,te=K("prems"),le=K("perms"),ae=ve;return r(),C("div",null,[o(A,{class:"!border-none mb-4",shadow:"never"},{default:l(()=>[o(Z,{class:"mb-[-16px]",model:t(u),inline:""},{default:l(()=>[o(c,{label:"\u95E8\u5E97",prop:"store_id"},{default:l(()=>[o(x,{modelValue:t(u).store_id,"onUpdate:modelValue":a[0]||(a[0]=e=>t(u).store_id=e),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u95E8\u5E97\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":G,loading:t(w),style:{width:"240px"},onChange:t(d)},{default:l(()=>[(r(!0),C(D,null,S(t(L),e=>(r(),v(m,{key:e.id,label:e.name,value:e.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading","onChange"])]),_:1}),o(c,{label:"\u5546\u54C1\u540D\u79F0",prop:"store_name"},{default:l(()=>[o(P,{class:"w-[280px]",modelValue:t(u).store_name,"onUpdate:modelValue":a[1]||(a[