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.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.af2b1692.js";import{u as J}from"./usePaging.6a6670f9.js";import{u as W}from"./useDictOptions.ceaaf089.js";import{d as X,e as Y}from"./inventory_transfer.b4050e47.js";import"./lodash.2473fc51.js";import{_ as ee}from"./edit.vue_vue_type_script_setup_true_name_inventoryTransferEdit_lang.8593f4b8.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.f7230b30.js";import"./warehouse.6c9e9264.js";import"./index.vue_vue_type_script_setup_true_name_systemStoreLists_lang.88ff5ec8.js";import"./store_product.be1b28fc.js";import"./store_branch_product.01737b3b.js";import"./warehouse_product_storege.11c6bdc0.js";import"./index.vue_vue_type_script_setup_true_name_systemStoreLists_lang.bab3c8c6.js";import"./system_store.7ab9d72e.js";import"./index.dfacf054.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};
|