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

2 lines
9.7 KiB
JavaScript
Raw Normal View History

2025-01-16 10:38:51 +08:00
import{a3 as me,Q as ce,N as _e,O as fe,D as be,C as ve,w as Ee,F as we,K as he,G as Ce,b as ge,t as ye,H as Fe,I as ke}from"./element-plus.8e273e86.js";import{_ as Be}from"./index.vue_vue_type_script_setup_true_lang.d6032bc4.js";import{_ as Ve}from"./index.vue_vue_type_script_setup_true_lang.ca6e332b.js";import{d as O,s as z,r as d,Z as xe,i as De,ap as A,o as r,c as g,U as o,L as a,u as l,T as S,a9 as R,K as m,aa as I,R as i,M as y,j as N,a as h,a0 as U,S as $,Q as M,n as j}from"./@vue.76ce7aa3.js";import{u as Se}from"./usePaging.f8c888e4.js";import{u as Re}from"./useDictOptions.6e4e92d3.js";import{a as G,f as Ue,c as $e}from"./store_branch_product.e0e5c3ba.js";import"./lodash.41b9567d.js";import{a as Pe}from"./system_store.e7560da6.js";import{f as Le}from"./index.41916feb.js";import{_ as Ke}from"./edit.vue_vue_type_script_setup_true_name_storeBranchProductEdit_lang.6b653164.js";import{_ as Te}from"./editStock.vue_vue_type_script_setup_true_name_storeBranchProductEdit_lang.5065daec.js";import{_ as ze}from"./details.vue_vue_type_script_setup_true_name_storeProductDETAILS_lang.966682f9.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.d70ecc7a.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.efeaa6dd.js";import"./index.71e7899c.js";import"./index.2e211671.js";import"./vuedraggable.1d6c5910.js";import"./vue.6c4d4a7c.js";import"./sortablejs.a0474a26.js";import"./store_product_unit.69393f65.js";const Ae={class:"mt-4"},Ie={class:"flex mt-4 justify-end"},Ne=O({name:"storeBranchProductLists"}),Nt=O({...Ne,setup(Me){const F=z(),k=z(),B=d(!1),V=d(!1),Q=d(null),u=xe({store_id:"",store_name:"",bar_code:"",exchange:0,status:null,order_by:"",field:"stock"}),q=d([]),H=s=>{q.value=s.map(({id:e})=>e)},{dictData:Z}=Re(""),{pager:c,getLists:_,resetParams:J,resetPage:f}=Se({fetchFun:G,params:u}),W=async s=>{var e,p;B.value=!0,await j(),(e=F.value)==null||e.open("edit"),(p=F.value)==null||p.setFormData(s)},X=async s=>{var e,p;V.value=!0,await j(),(e=k.value)==null||e.open("edit"),(p=k.value)==null||p.setFormData(s)},Y=async s=>{await Le.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await Ue({id:s}),_()};De(()=>{_()});const C=d(!1),P=d([]),ee=(s="")=>{C.value=!0,Pe({name:s,page_size:50}).then(e=>{P.value=e.lists,setTimeout(()=>{C.value=!1},300)}).catch(e=>{setTimeout(()=>{C.value=!1},300)})},te=s=>{$e({id:s.id,store_name:s.store_name,image:s.image,price:s.price,unit:s.unit,status:s.status})},x=d("0"),oe=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),_()};return(s,e)=>{const p=_e,D=fe,b=be,L=ve,v=Ee,le=Ve,ae=we,K=he,E=me,ue=ce,n=Ce,se=ge,ne=ye,re=Fe,ie=Be,T=A("prems"),pe=A("perms"),de=ke;return r(),g("div",null,[o(K,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[o(ae,{class:"mb-[-16px]",model:l(u),inline:""},{default:a(()=>[o(b,{label:"\u95E8\u5E97",prop:"store_id"},{default:a(()=>[o(D,{modelValue:l(u).store_id,"onUpdate:modelValue":e[0]||(e[0]=t=>l(u).store_id=t),filterable:"",remote:"","reserve-keyword":"",placeholder:"\u8F93\u5165\u95E8\u5E97\u540D\u