moreShopAdmin/build/admin/assets/index.5590f5c4.js

2 lines
5.6 KiB
JavaScript
Raw Normal View History

2024-11-14 15:18:16 +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.91c68cc0.js";import{_ as z}from"./index.vue_vue_type_script_setup_true_lang.863ae816.js";import{f as G,b as H}from"./index.8ef6d2b1.js";import{u as J}from"./usePaging.f8c888e4.js";import{u as W}from"./useDictOptions.9157b0c8.js";import{d as X,e as Y}from"./inventory_transfer.a19863ae.js";import"./lodash.4e6d2a38.js";import{_ as oo}from"./edit.vue_vue_type_script_setup_true_name_inventoryTransferEdit_lang.90bc2b0e.js";import{d as B,s as eo,r as E,Z as to,ap as ao,o as i,c as lo,U as e,L as t,u as a,R as u,M as d,K as p,a as g,j as no,Q as ro,n as h}from"./@vue.76ce7aa3.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"./axios.cffda5ac.js";import"./jspdf.6c61b9d3.js";import"./fflate.0418c72f.js";import"./vue-router.10bd5b90.js";import"./pinia.f3529286.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.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"./index.vue_vue_type_script_setup_true_name_systemStoreLists_lang.36c17fd0.js";import"./warehouse.28a4eb74.js";import"./index.vue_vue_type_script_setup_true_name_systemStoreLists_lang.73833be7.js";import"./store_product.45835fd0.js";import"./store_branch_product.c7ce31ec.js";import"./warehouse_product_storege.ea6b42a2.js";import"./index.vue_vue_type_script_setup_true_name_systemStoreLists_lang.f552bb58.js";import"./system_store.21c77d4d.js";import"./index.0afc6829.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.cf0d972e.js";const io={class:"mt-4"},so={class:"flex mt-4 justify-end"},uo=B({name:"inventoryTransferLists"}),ie=B({...uo,setup(po){const f=eo(),_=E(!1),c=to({store_name:""}),F=E([]),D=n=>{F.value=n.map(({id:o})=>o)},{dictData:V}=W(""),{pager:m,getLists:v,resetParams:x,resetPage:T}=J({fetchFun:Y,params:c}),$=async()=>{var n;_.value=!0,await h(),(n=f.value)==null||n.open("add")},A=async n=>{var o,C;_.value=!0,await h(),(o=f.value)==null||o.open("edit"),(C=f.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,o)=>{const C=U,y=j,s=M,L=q,k=K,N=H,l=O,P=Q,R=z,w=ao("perms"),I=Z;return i(),lo("div",null,[e(k,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[e(L,{class:"mb-[-16px]",model:a(c),inline:""},{default:t(()=>[e(y,{label:"\u5546\u54C1",prop:"store_name"},{default:t(()=>[e(C,{class:"w-[280px]",modelValue:a(c).store_name,"onUpdate:modelValue":o[0]||(o[0]=r=>a(c).store_name=r),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u54C1"},null,8,["modelValue"])]),_:1}),e(y,null,{default:t(()=>[e(s,{type:"primary",onClick:a(T)},{default:t(()=>o[4]||(o[4]=[u("\u67E5\u8BE2")])),_:1},8,["onClick"]),e(s,{onClick:a(x)},{default:t(()=>o[5]||(o[5]=[u("\u91CD\u7F6E")])),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),d((i(),p(k,{class:"!border-none",shadow:"never"},{default:t(()=>[d((i(),p(s,{type:"primary",onClick:$},{icon:t(()=>[e(N,{name:"el-icon-Plus"})]),default:t(()=>[o[6]||(o[6]=u(" \u65B0\u589E "))]),_:1})),[[w,["inventory_transfer/add"]]]),d((i(),p(s,{disabled:!a(F).length,onClick:o[1]||(o[1]=r=>b(a(F)))},{default:t(()=>o[7]||(o[7]=[u(" \u5220\u9664 ")])),_:1},8,["disabled"])),[[w,["inventory_transfer/delete"]]]),g("div",io,[e(P,{data:a(m).lists,onSelectionChange:D},{default:t(()=>[e(l,{type:"selection",width:"55"}),e(l,{label:"id",prop:"id","show-overflow-tooltip":""}),e(l,{label:"\u5546\u54C1",prop:"st