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

2 lines
5.2 KiB
JavaScript

import{T as $,J as j,K,D as O,C as q,w as z,F as A,L as J,M as Q,b as Z,N as G,O as H}from"./element-plus.78e68aed.js";import{_ as W}from"./index.vue_vue_type_script_setup_true_lang.3c4454b7.js";import{u as X}from"./usePaging.6a6670f9.js";import{u as Y}from"./useDictOptions.914e77c9.js";import{d as ee}from"./store_branch_product.2f10f284.js";import{d as B,s as oe,r as d,Z as te,o as n,c as E,U as e,L as a,u as o,T as le,a9 as ae,K as _,R as f,M as se,a as F,S as re,j as ue,Q as ne}from"./@vue.18505fe0.js";import"./lodash.60201f64.js";import{a as pe}from"./system_store.b39bc431.js";import"./index.230f36ed.js";import{_ as ie}from"./edit.vue_vue_type_script_setup_true_name_storeBranchProductEdit_lang.7c51fe23.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.8ae0c638.js";import"./axios.2b8d80bd.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.b82a2ce7.js";import"./color.b905eb26.js";import"./clone.e1fb2883.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.495afef3.js";import"./vue-clipboard3.cb649e18.js";import"./clipboard.4592e390.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./index.4b6d7f0d.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";const me={class:"mt-4"},de={class:"flex mt-4 justify-end"},ce=B({name:"storeBranchProductLists"}),eo=B({...ce,setup(_e){const V=oe(),b=d(!1),r=te({store_id:"",store_name:"",bar_code:""}),D=d([]),y=i=>{D.value=i.map(({id:l})=>l)},{dictData:k}=Y(""),{pager:u,getLists:c,resetParams:x,resetPage:w}=X({fetchFun:ee,params:r});c();const p=d(!1),v=d([]),S=(i="")=>{p.value=!0,pe({name:i,page_size:50}).then(l=>{v.value=l.lists,setTimeout(()=>{p.value=!1},300)}).catch(l=>{setTimeout(()=>{p.value=!1},300)})};return(i,l)=>{const L=j,T=K,m=O,h=q,C=z,P=A,g=J,s=Q,N=Z,R=$,U=G,I=W,M=H;return n(),E("div",null,[e(g,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[e(P,{class:"mb-[-16px]",model:o(r),inline:""},{default:a(()=>[e(m,{label:"\u95E8\u5E97",prop:"store_id"},{default:a(()=>[e(T,{modelValue:o(r).store_id,"onUpdate:modelValue":l[0]||(l[0]=t=>o(r).store_id=t),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u95E8\u5E97\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":S,loading:o(p),style:{width:"240px"},onChange:o(w)},{default:a(()=>[(n(!0),E(le,null,ae(o(v),t=>(n(),_(L,{key:t.id,label:t.name,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading","onChange"])]),_:1}),e(m,{label:"\u5546\u54C1\u540D\u79F0",prop:"store_name"},{default:a(()=>[e(h,{class:"w-[280px]",modelValue:o(r).store_name,"onUpdate:modelValue":l[1]||(l[1]=t=>o(r).store_name=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u54C1\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(m,{label:"\u5546\u54C1\u6761\u7801",prop:"bar_code"},{default:a(()=>[e(h,{class:"w-[280px]",modelValue:o(r).bar_code,"onUpdate:modelValue":l[2]||(l[2]=t=>o(r).bar_code=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u54C1\u6761\u7801"},null,8,["modelValue"])]),_:1}),e(m,null,{default:a(()=>[e(C,{type:"primary",onClick:o(w)},{default:a(()=>[f("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(C,{onClick:o(x)},{default:a(()=>[f("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),se((n(),_(g,{class:"!border-none",shadow:"never"},{default:a(()=>[F("div",me,[e(U,{data:o(u).lists,onSelectionChange:y},{default:a(()=>[e(s,{label:"ID",prop:"id","show-overflow-tooltip":""}),e(s,{label:"\u95E8\u5E97",prop:"system_store_name","show-overflow-tooltip":""}),e(s,{label:"\u5206\u7C7B",prop:"cate_name","show-overflow-tooltip":""}),e(s,{label:"\u5546\u54C1\u540D\u79F0",prop:"store_name","show-overflow-tooltip":""}),e(s,{label:"\u5546\u54C1\u56FE\u7247",prop:"image","show-overflow-tooltip":""},{default:a(({row:t})=>[e(N,{class:"w-[40px] h-[40px]",src:t.image},null,8,["src"])]),_:1}),e(s,{label:"\u4EF7\u683C",prop:"price","show-overflow-tooltip":""}),e(s,{label:"\u5546\u54C1\u6761\u7801",prop:"bar_code","show-overflow-tooltip":""}),e(s,{label:"\u9500\u91CF",prop:"sales","show-overflow-tooltip":""}),e(s,{label:"\u5E93\u5B58",prop:"stock","show-overflow-tooltip":""}),e(s,{label:"\u5355\u4F4D",prop:"unit_name","show-overflow-tooltip":""}),e(s,{label:"\u72B6\u6001",prop:"status","show-overflow-tooltip":""},{default:a(({row:t})=>[e(R,{type:t.status===1?"success":"danger"},{default:a(()=>[f(re(t.status===1?"\u4E0A\u67B6":"\u4E0B\u67B6"),1)]),_:2},1032,["type"])]),_:1})]),_:1},8,["data"])]),F("div",de,[e(I,{modelValue:o(u),"onUpdate:modelValue":l[3]||(l[3]=t=>ue(u)?u.value=t:null),onChange:o(c)},null,8,["modelValue","onChange"])])]),_:1})),[[M,o(u).loading]]),o(b)?(n(),_(ie,{key:0,ref_key:"editRef",ref:V,"dict-data":o(k),onSuccess:o(c),onClose:l[4]||(l[4]=t=>b.value=!1)},null,8,["dict-data","onSuccess"])):ne("",!0)])}}});export{eo as default};