moreShopAdmin/build/admin/assets/index.038c4d3b.js

2 lines
9.0 KiB
JavaScript
Raw Normal View History

2024-10-16 11:33:54 +08:00
import{a2 as se,H as ne,J as re,K as ie,D as pe,C as de,w as me,F as ce,L as _e,M as fe,b as he,t as be,N as ve,O as Ee}from"./element-plus.4a7d92a3.js";import{_ as we}from"./index.vue_vue_type_script_setup_true_lang.5d4e738c.js";import{_ as ge}from"./index.vue_vue_type_script_setup_true_lang.5cb4e944.js";import{d as A,s as Ce,r as _,Z as Fe,i as ye,ap as $,o as r,c as C,U as o,L as l,u as t,T as V,a9 as x,K as b,aa as K,R as i,M as D,j as T,a as v,a0 as S,S as U,Q as Be,n as ke}from"./@vue.18505fe0.js";import{u as Ve}from"./usePaging.6a6670f9.js";import{u as xe}from"./useDictOptions.54830d37.js";import{a as z,e as De,c as Se}from"./store_branch_product.cd76e8cc.js";import"./lodash.9dc701ad.js";import{a as Ue}from"./system_store.8e8ab28d.js";import{f as Le}from"./index.86cdc1b4.js";import{_ as Pe}from"./edit.vue_vue_type_script_setup_true_name_storeBranchProductEdit_lang.fcf780ce.js";import{_ as Re}from"./details.vue_vue_type_script_setup_true_name_storeProductDETAILS_lang.1e7440ee.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"./index.c829a5ae.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.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.561c0212.js";import"./index.0e3bfde6.js";import"./index.016da78b.js";import"./vuedraggable.1648e3a8.js";import"./vue.393dceb0.js";import"./sortablejs.382fadba.js";import"./store_product_unit.dc35972d.js";const $e={class:"mt-4"},Ke={class:"flex mt-4 justify-end"},Te=A({name:"storeBranchProductLists"}),Ro=A({...Te,setup(ze){const F=Ce(),y=_(!1),N=_(null),u=Fe({store_id:"",store_name:"",bar_code:"",exchange:0,status:null,order_by:"",field:"stock"}),I=_([]),M=s=>{I.value=s.map(({id:a})=>a)},{dictData:j}=xe(""),{pager:p,getLists:f,resetParams:O,resetPage:d}=Ve({fetchFun:z,params:u}),q=async s=>{var a,m;y.value=!0,await ke(),(a=F.value)==null||a.open("edit"),(m=F.value)==null||m.setFormData(s)},G=async s=>{await Le.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await De({id:s}),f()};ye(()=>{f()});const E=_(!1),L=_([]),H=(s="")=>{E.value=!0,Ue({name:s,page_size:50}).then(a=>{L.value=a.lists,setTimeout(()=>{E.value=!1},300)}).catch(a=>{setTimeout(()=>{E.value=!1},300)})},J=s=>{Se({id:s.id,store_name:s.store_name,image:s.image,price:s.price,unit:s.unit,status:s.status})},B=_("0"),Q=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=re,k=ie,c=pe,P=de,w=me,Z=ge,W=ce,R=_e,h=se,X=ne,n=fe,Y=he,ee=be,oe=ve,te=we,le=$("prems"),ae=$("perms"),ue=Ee;return r(),C("div",null,[o(R,{class:"!border-none mb-4",shadow:"never"},{default:l(()=>[o(W,{class:"mb-[-16px]",model:t(u),inline:""},{default:l(()=>[o(c,{label:"\u95E8\u5E97",prop:"store_id"},{default:l(()=>[o(k,{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":H,loading:t(E),style:{width:"240px"},onChange:t(d)},{default:l(()=>[(r(!0),C(V,null,x(t(L),e=>(r(),b(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",p