moreShopAdmin/build/admin/assets/index.33c69978.js

2 lines
5.6 KiB
JavaScript

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.0e5577f4.js";import{u as J}from"./usePaging.f8c888e4.js";import{u as W}from"./useDictOptions.1cd81cc1.js";import{d as X,e as Y}from"./inventory_transfer.e9415180.js";import"./lodash.4e6d2a38.js";import{_ as oo}from"./edit.vue_vue_type_script_setup_true_name_inventoryTransferEdit_lang.819d8814.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.ccac75f6.js";import"./warehouse.501c66b8.js";import"./index.vue_vue_type_script_setup_true_name_systemStoreLists_lang.8dee722c.js";import"./store_product.95e574d3.js";import"./store_branch_product.6d5b4431.js";import"./warehouse_product_storege.1636c94e.js";import"./index.vue_vue_type_script_setup_true_name_systemStoreLists_lang.d43e61d8.js";import"./system_store.2fa4ef1a.js";import"./index.395bb96e.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:"store_name","show-overflow-tooltip":""}),e(l,{label:"\u6570\u91CF",prop:"nums","show-overflow-tooltip":""}),e(l,{label:"\u8F6C\u51FA\u65B9",prop:"one_name","show-overflow-tooltip":""}),e(l,{label:"\u8F6C\u51FA\u524D\u6570\u91CF",prop:"one_before_nums","show-overflow-tooltip":""}),e(l,{label:"\u8F6C\u51FA\u540E\u6570\u91CF",prop:"one_after_nums","show-overflow-tooltip":""}),e(l,{label:"\u8F6C\u5165\u65B9",prop:"two_name","show-overflow-tooltip":""}),e(l,{label:"\u8F6C\u5165\u524D\u6570\u91CF",prop:"two_before_nums","show-overflow-tooltip":""}),e(l,{label:"\u8F6C\u5165\u540E\u6570\u91CF",prop:"two_after_nums","show-overflow-tooltip":""}),e(l,{label:"\u7C7B\u578B",prop:"type_name","show-overflow-tooltip":""}),e(l,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"create_time","show-overflow-tooltip":""}),e(l,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:t(({row:r})=>[d((i(),p(s,{type:"primary",link:"",onClick:S=>A(r)},{default:t(()=>o[8]||(o[8]=[u(" \u7F16\u8F91 ")])),_:2},1032,["onClick"])),[[w,["inventory_transfer/edit"]]]),d((i(),p(s,{type:"danger",link:"",onClick:S=>b(r.id)},{default:t(()=>o[9]||(o[9]=[u(" \u5220\u9664 ")])),_:2},1032,["onClick"])),[[w,["inventory_transfer/delete"]]])]),_:1})]),_:1},8,["data"])]),g("div",so,[e(R,{modelValue:a(m),"onUpdate:modelValue":o[2]||(o[2]=r=>no(m)?m.value=r:null),onChange:a(v)},null,8,["modelValue","onChange"])])]),_:1})),[[I,a(m).loading]]),a(_)?(i(),p(oo,{key:0,ref_key:"editRef",ref:f,"dict-data":a(V),onSuccess:a(v),onClose:o[3]||(o[3]=r=>_.value=!1)},null,8,["dict-data","onSuccess"])):ro("",!0)])}}});export{ie as default};