moreShopAdmin/build/admin/assets/index2.fa11a4b8.js

2 lines
9.3 KiB
JavaScript
Raw Normal View History

2025-01-11 16:20:06 +08:00
import{a3 as se,Q as ne,N as re,O as ie,D as pe,C as de,w as me,F as ce,K as _e,G as fe,b as be,t as ve,H as we,I as Ee}from"./element-plus.8e273e86.js";import{_ as he}from"./index.vue_vue_type_script_setup_true_lang.d6032bc4.js";import{_ as ge}from"./index.vue_vue_type_script_setup_true_lang.f2965c43.js";import{d as z,s as Ce,r as _,Z as Fe,i as ye,ap as $,o as r,c as C,U as e,L as a,u as l,T as V,a9 as x,K as v,aa as A,R as i,M as D,j as K,a as w,a0 as S,S as U,Q as Be,n as ke}from"./@vue.76ce7aa3.js";import{u as Ve}from"./usePaging.f8c888e4.js";import{u as xe}from"./useDictOptions.b9f2df24.js";import{a as T,f as De,c as Se}from"./store_branch_product.a2c0745c.js";import"./lodash.41b9567d.js";import{a as Ue}from"./system_store.f7225c0f.js";import{f as Pe}from"./index.2ebab4f0.js";import{_ as Re}from"./edit.vue_vue_type_script_setup_true_name_storeBranchProductEdit_lang.a4ead656.js";import{_ as Le}from"./details.vue_vue_type_script_setup_true_name_storeProductDETAILS_lang.2e216464.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.9ffef7f8.js";import"./@element-plus.73235148.js";import"./dayjs.0112e2c7.js";import"./@babel.80d29b7b.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./index.07f7e4f1.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.cf0d972e.js";import"./axios.b4cbdbc9.js";import"./jspdf.75308076.js";import"./fflate.0418c72f.js";import"./vue-router.10bd5b90.js";import"./pinia.f3529286.js";import"./css-color-function.f23177ae.js";import"./color.a6ad6672.js";import"./clone.954ba32c.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.b502f541.js";import"./vue-clipboard3.e775fc74.js";import"./clipboard.6417898a.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.8d65305c.js";import"./picker.d763fe91.js";import"./index.6e701351.js";import"./index.8ed8eb09.js";import"./vuedraggable.1d6c5910.js";import"./vue.6c4d4a7c.js";import"./sortablejs.a0474a26.js";import"./store_product_unit.7a18daaf.js";const $e={class:"mt-4"},Ae={class:"flex mt-4 justify-end"},Ke=z({name:"storeBranchProductLists"}),Ko=z({...Ke,setup(Te){const F=Ce(),y=_(!1),I=_(null),u=Fe({store_id:"",store_name:"",bar_code:"",exchange:0,status:null,order_by:"",field:"stock",low_stock:1}),N=_([]),M=s=>{N.value=s.map(({id:t})=>t)},{dictData:j}=xe(""),{pager:p,getLists:f,resetParams:G,resetPage:d}=Ve({fetchFun:T,params:u}),O=async s=>{var t,m;y.value=!0,await ke(),(t=F.value)==null||t.open("edit"),(m=F.value)==null||m.setFormData(s)},Q=async s=>{await Pe.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await De({id:s}),f()};ye(()=>{f()});const E=_(!1),P=_([]),q=(s="")=>{E.value=!0,Ue({name:s,page_size:50}).then(t=>{P.value=t.lists,setTimeout(()=>{E.value=!1},300)}).catch(t=>{setTimeout(()=>{E.value=!1},300)})},H=s=>{Se({id:s.id,store_name:s.store_name,image:s.image,price:s.price,unit:s.unit,status:s.status})},B=_("0"),Z=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,t)=>{const m=re,k=ie,c=pe,R=de,h=me,J=ge,W=ce,L=_e,b=se,X=ne,n=fe,Y=be,ee=ve,oe=we,te=he,le=$("prems"),ae=$("perms"),ue=Ee;return r(),C("div",null,[e(L,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[e(W,{class:"mb-[-16px]",model:l(u),inline:""},{default:a(()=>[e(c,{label:"\u95E8\u5E97",prop:"store_id"},{default:a(()=>[e(k,{modelValue:l(u).store_id,"onUpdate:modelValue":t[0]||(t[0]=o=>l(u).store_id=o),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u95E8\u5E97\u540D\u79F0\u641C\u7D22","remote-show-suffix":"","remote-method":q,loading:l(E),style:{width:"240px"},onChange:l(d)},{default:a(()=>[(r(!0),C(V,null,x(l(P),o=>(r(),v(m,{key:o.id,label:o.name,value:o.id},null,8,["label","value"]))),1