2024-06-29 18:29:07 +08:00
|
|
|
import{J as Q,K as Z,D as G,C as H,w as W,F as X,L as Y,M as ee,b as oe,t as te,N as ae,O as le}from"./element-plus.5a7ba693.js";import{_ as se}from"./index.vue_vue_type_script_setup_true_lang.bd623527.js";import{d as U,s as ne,r as _,Z as re,ap as ue,o as u,c as g,U as e,L as l,u as t,T as x,a9 as k,K as f,aa as D,R as E,M as S,a as L,j as ie,Q as pe,n as me}from"./@vue.18505fe0.js";import{u as de}from"./usePaging.6a6670f9.js";import{u as ce}from"./useDictOptions.861789c2.js";import{b as _e,d as fe}from"./store_branch_product.4cb2afca.js";import"./lodash.60201f64.js";import{a as ve}from"./system_store.ef314547.js";import"./index.0f3999b9.js";import{_ as he}from"./edit.vue_vue_type_script_setup_true_name_storeBranchProductEdit_lang.1e01259c.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"./picker.8e65e14b.js";import"./index.20e08dec.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";import"./index.34ce7228.js";import"./index.46f20ae4.js";import"./vuedraggable.d1fd737a.js";import"./vue.feef8fd6.js";import"./sortablejs.c8f4cbb7.js";import"./store_product_unit.228d7434.js";const be={class:"mt-4"},we={class:"flex mt-4 justify-end"},Ce=U({name:"storeBranchProductLists"}),fo=U({...Ce,setup(ge){const v=ne(),h=_(!1),r=re({store_id:"",store_name:"",bar_code:"",status:"",exchange:0}),K=_([]),P=s=>{K.value=s.map(({id:a})=>a)},{dictData:T}=ce(""),{pager:i,getLists:b,resetParams:N,resetPage:p}=de({fetchFun:fe,params:r}),R=async s=>{var a,m;h.value=!0,await me(),(a=v.value)==null||a.open("edit"),(m=v.value)==null||m.setFormData(s)};b();const c=_(!1),B=_([]),$=(s="")=>{c.value=!0,ve({name:s,page_size:50}).then(a=>{B.value=a.lists,setTimeout(()=>{c.value=!1},300)}).catch(a=>{setTimeout(()=>{c.value=!1},300)})},I=s=>{_e({id:s.id,store_name:s.store_name,image:s.image,price:s.price,unit:s.unit,status:s.status})};return(s,a)=>{const m=Q,F=Z,d=G,V=H,w=W,M=X,y=Y,n=ee,j=oe,z=te,A=ae,O=se,q=ue("prems"),J=le;return u(),g("div",null,[e(y,{class:"!border-none mb-4",shadow:"never"},{default:l(()=>[e(M,{class:"mb-[-16px]",model:t(r),inline:""},{default:l(()=>[e(d,{label:"\u95E8\u5E97",prop:"store_id"},{default:l(()=>[e(F,{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":$,loading:t(c),style:{width:"240px"},onChange:t(p)},{default:l(()=>[(u(!0),g(x,null,k(t(B),o=>(u(),f(m,{key:o.id,label:o.name,value:o.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading","onChange"])]),_:1}),e(d,{label:"\u5546\u54C1\u540D\u79F0",prop:"store_name"},{default:l(()=>[e(V,{class:"w-[280px]",modelValue:t(r).store_name,"onUpdate:modelValue":a[1]||(a[1]=o=>t(r).store_name=o),onKeydown:D(t(p),["enter"]),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u54C1\u540D\u79F0"},null,8,["modelValue","onKeydown"])]),_:1}),e(d,{label:"\u5546\u54C1\u6761\u7801",prop:"bar_code"},{default:l(()=>[e(V,{class:"w-[280px]",modelValue:t(r).bar_code,"onUpdate:modelValue":a[2]||(a[2]=o=>t(r).bar_code=o),onKeydown:D(t(p),["enter"]),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u54C1\u6761\u7801"},null,8,["modelValue","onKeydown"])]),_:1}),e(d,{la
|