2024-08-25 14:00:20 +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.4a7d92a3.js";import{_ as z}from"./index.vue_vue_type_script_setup_true_lang.5d4e738c.js";import{f as G,b as H}from"./index.e2348f6b.js";import{u as J}from"./usePaging.6a6670f9.js";import{u as W}from"./useDictOptions.c2e674dc.js";import{d as X,e as Y}from"./inventory_transfer.3ccc87e6.js";import"./lodash.9dc701ad.js";import{_ as ee}from"./edit.vue_vue_type_script_setup_true_name_inventoryTransferEdit_lang.b6d0b213.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.7347fedc.js";import"./axios.4607972f.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.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"./index.vue_vue_type_script_setup_true_name_systemStoreLists_lang.aff31086.js";import"./warehouse.6dae06d3.js";import"./index.vue_vue_type_script_setup_true_name_systemStoreLists_lang.df52c060.js";import"./store_product.8be38f0f.js";import"./store_branch_product.d04677bc.js";import"./warehouse_product_storege.4e59062d.js";import"./index.vue_vue_type_script_setup_true_name_systemStoreLists_lang.a130c88e.js";import"./system_store.f26016bb.js";import"./index.08cec107.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",
|