moreShopAdmin/dist/admin/assets/index.f63cb6c7.js

2 lines
5.4 KiB
JavaScript
Raw Normal View History

2024-08-25 21:38:52 +08:00
import{C as U,D as j,w as M,F as q,L as K,M as O,N as Q,O as Z}from"./element-plus.a63a26dd.js";import{_ as z}from"./index.vue_vue_type_script_setup_true_lang.ecb80feb.js";import{f as G,b as H}from"./index.cde98ffa.js";import{u as J}from"./usePaging.6a6670f9.js";import{u as W}from"./useDictOptions.5cfa01eb.js";import{d as X,e as Y}from"./inventory_transfer.6e80dcf5.js";import"./lodash.2473fc51.js";import{_ as ee}from"./edit.vue_vue_type_script_setup_true_name_inventoryTransferEdit_lang.aecd9a28.js";import{d as B,s as oe,r as k,Z as te,ap as ae,o as s,c as le,U as e,L as o,u as t,R as u,M as d,K as p,a as E,j as ne,Q as re,n as g}from"./@vue.18505fe0.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.4884cfc2.js";import"./axios.932d3f8a.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.9f6a56f3.js";import"./color.d1bc3784.js";import"./clone.83700f2e.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.fcc9be76.js";import"./vue-clipboard3.9e751565.js";import"./clipboard.dda64e67.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./index.vue_vue_type_script_setup_true_name_systemStoreLists_lang.7fa43b40.js";import"./warehouse.c404c695.js";import"./index.vue_vue_type_script_setup_true_name_systemStoreLists_lang.cf6ad159.js";import"./store_product.e62586d9.js";import"./store_branch_product.26fcf8e6.js";import"./warehouse_product_storege.5b79ec79.js";import"./index.vue_vue_type_script_setup_true_name_systemStoreLists_lang.095dcf75.js";import"./system_store.f3614cdf.js";import"./index.c4e27aeb.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";const se={class:"mt-4"},ie={class:"flex mt-4 justify-end"},ue=B({name:"inventoryTransferLists"}),ao=B({...ue,setup(pe){const c=oe(),_=k(!1),f=te({store_name:""}),F=k([]),D=n=>{F.value=n.map(({id:a})=>a)},{dictData:V}=W(""),{pager:m,getLists:v,resetParams:x,resetPage:T}=J({fetchFun:Y,params:f}),$=async()=>{var n;_.value=!0,await g(),(n=c.value)==null||n.open("add")},A=async n=>{var a,C;_.value=!0,await g(),(a=c.value)==null||a.open("edit"),(C=c.value)==null||C.setFormData(n)},b=async n=>{await G.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await X({id:n}),v()};return v(),(n,a)=>{const C=U,h=j,i=M,L=q,y=K,N=H,l=O,P=Q,R=z,w=ae("perms"),I=Z;return s(),le("div",null,[e(y,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[e(L,{class:"mb-[-16px]",model:t(f),inline:""},{default:o(()=>[e(h,{label:"\u5546\u54C1",prop:"store_name"},{default:o(()=>[e(C,{class:"w-[280px]",modelValue:t(f).store_name,"onUpdate:modelValue":a[0]||(a[0]=r=>t(f).store_name=r),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u54C1"},null,8,["modelValue"])]),_:1}),e(h,null,{default:o(()=>[e(i,{type:"primary",onClick:t(T)},{default:o(()=>[u("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(i,{onClick:t(x)},{default:o(()=>[u("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),d((s(),p(y,{class:"!border-none",shadow:"never"},{default:o(()=>[d((s(),p(i,{type:"primary",onClick:$},{icon:o(()=>[e(N,{name:"el-icon-Plus"})]),default:o(()=>[u(" \u65B0\u589E ")]),_:1})),[[w,["inventory_transfer/add"]]]),d((s(),p(i,{disabled:!t(F).length,onClick:a[1]||(a[1]=r=>b(t(F)))},{default:o(()=>[u(" \u5220\u9664 ")]),_:1},8,["disabled"])),[[w,["inventory_transfer/delete"]]]),E("div",se,[e(P,{data:t(m).lists,onSelectionChange:D},{default:o(()=>[e(l,{type:"selection",width:"55"}),e(l,{label:"id",prop:"id","show-overflow-tooltip":""}),e(l,{label:"\u5546\u54C1",prop:"store_name","show-overflow-tooltip":""}),e(l,{label:"\u6570\u91CF",prop:"nums","show-overflow-tooltip":""}),e(l,{label:"\u8F6C\u51FA\u65B9",