2 lines
5.4 KiB
JavaScript
2 lines
5.4 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.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.ea66144a.js";import{u as J}from"./usePaging.6a6670f9.js";import{u as W}from"./useDictOptions.359e8a2b.js";import{d as X,e as Y}from"./inventory_transfer.9d65d242.js";import"./lodash.9dc701ad.js";import{_ as ee}from"./edit.vue_vue_type_script_setup_true_name_inventoryTransferEdit_lang.7f17f579.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.0fcadc52.js";import"./warehouse.7515df94.js";import"./index.vue_vue_type_script_setup_true_name_systemStoreLists_lang.7b1a1627.js";import"./store_product.c39d9d12.js";import"./store_branch_product.1b722a71.js";import"./warehouse_product_storege.cceab742.js";import"./index.vue_vue_type_script_setup_true_name_systemStoreLists_lang.fc6c8022.js";import"./system_store.0c2f50d1.js";import"./index.912c44f1.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",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:o(({row:r})=>[d((s(),p(i,{type:"primary",link:"",onClick:S=>A(r)},{default:o(()=>[u(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[w,["inventory_transfer/edit"]]]),d((s(),p(i,{type:"danger",link:"",onClick:S=>b(r.id)},{default:o(()=>[u(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[w,["inventory_transfer/delete"]]])]),_:1})]),_:1},8,["data"])]),E("div",ie,[e(R,{modelValue:t(m),"onUpdate:modelValue":a[2]||(a[2]=r=>ne(m)?m.value=r:null),onChange:t(v)},null,8,["modelValue","onChange"])])]),_:1})),[[I,t(m).loading]]),t(_)?(s(),p(ee,{key:0,ref_key:"editRef",ref:c,"dict-data":t(V),onSuccess:t(v),onClose:a[3]||(a[3]=r=>_.value=!1)},null,8,["dict-data","onSuccess"])):re("",!0)])}}});export{ao as default};
|