2 lines
4.6 KiB
JavaScript
2 lines
4.6 KiB
JavaScript
|
import{m as B,s as q,r as E,aT as U,b2 as j,p as r,q as W,t as o,v as t,u as a,a2 as i,L as d,y as p,x as g,i as X,A as Y,n as h,aW as z,aX as G,ae as H,aY as J,b5 as K,b6 as M,b7 as O,b8 as Q}from"./.pnpm.1b0299fb.js";import{_ as Z}from"./index.vue_vue_type_script_setup_true_lang.b077f234.js";import{f as ee,b as oe}from"./index.689cfa31.js";import{u as te}from"./usePaging.00aa976d.js";import{u as ae}from"./useDictOptions.e9843f63.js";import{d as le,e as ne}from"./inventory_transfer.cafe3b80.js";import"./lodash.c3b66c05.js";import{_ as se}from"./edit.vue_vue_type_script_setup_true_name_inventoryTransferEdit_lang.dbf5c0fd.js";import"./@vueuse.72d44d91.js";import"./@vue.9d708d7c.js";import"./index.vue_vue_type_script_setup_true_name_systemStoreLists_lang.cccc9009.js";import"./warehouse.c65c5953.js";import"./index.vue_vue_type_script_setup_true_name_systemStoreLists_lang.cac2da5b.js";import"./store_product.90b19113.js";import"./store_branch_product.063beab6.js";import"./warehouse_product_storege.b9f73c92.js";import"./index.vue_vue_type_script_setup_true_name_systemStoreLists_lang.7ac2f365.js";import"./system_store.e6c50bcf.js";import"./index.6c48d0ba.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.abac7546.js";const re={class:"mt-4"},ue={class:"flex mt-4 justify-end"},ie=B({name:"inventoryTransferLists"}),Ae=B({...ie,setup(pe){const f=q(),_=E(!1),c=U({store_name:""}),b=E([]),D=n=>{b.value=n.map(({id:e})=>e)},{dictData:x}=ae(""),{pager:m,getLists:v,resetParams:V,resetPage:T}=te({fetchFun:ne,params:c}),A=async()=>{var n;_.value=!0,await h(),(n=f.value)==null||n.open("add")},$=async n=>{var e,C;_.value=!0,await h(),(e=f.value)==null||e.open("edit"),(C=f.value)==null||C.setFormData(n)},F=async n=>{await ee.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await le({id:n}),v()};return v(),(n,e)=>{const C=z,y=G,u=H,L=J,k=K,P=oe,l=M,I=O,N=Z,w=j("perms"),R=Q;return r(),W("div",null,[o(k,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[o(L,{class:"mb-[-16px]",model:a(c),inline:""},{default:t(()=>[o(y,{label:"\u5546\u54C1",prop:"store_name"},{default:t(()=>[o(C,{class:"w-[280px]",modelValue:a(c).store_name,"onUpdate:modelValue":e[0]||(e[0]=s=>a(c).store_name=s),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u54C1"},null,8,["modelValue"])]),_:1}),o(y,null,{default:t(()=>[o(u,{type:"primary",onClick:a(T)},{default:t(()=>e[4]||(e[4]=[i("\u67E5\u8BE2")])),_:1},8,["onClick"]),o(u,{onClick:a(V)},{default:t(()=>e[5]||(e[5]=[i("\u91CD\u7F6E")])),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),d((r(),p(k,{class:"!border-none",shadow:"never"},{default:t(()=>[d((r(),p(u,{type:"primary",onClick:A},{icon:t(()=>[o(P,{name:"el-icon-Plus"})]),default:t(()=>[e[6]||(e[6]=i(" \u65B0\u589E "))]),_:1})),[[w,["inventory_transfer/add"]]]),d((r(),p(u,{disabled:!a(b).length,onClick:e[1]||(e[1]=s=>F(a(b)))},{default:t(()=>e[7]||(e[7]=[i(" \u5220\u9664 ")])),_:1},8,["disabled"])),[[w,["inventory_transfer/delete"]]]),g("div",re,[o(I,{data:a(m).lists,onSelectionChange:D},{default:t(()=>[o(l,{type:"selection",width:"55"}),o(l,{label:"id",prop:"id","show-overflow-tooltip":""}),o(l,{label:"\u5546\u54C1",prop:"store_name","show-overflow-tooltip":""}),o(l,{label:"\u6570\u91CF",prop:"nums","show-overflow-tooltip":""}),o(l,{label:"\u8F6C\u51FA\u65B9",prop:"one_name","show-overflow-tooltip":""}),o(l,{label:"\u8F6C\u51FA\u524D\u6570\u91CF",prop:"one_before_nums","show-overflow-tooltip":""}),o(l,{label:"\u8F6C\u51FA\u540E\u6570\u91CF",prop:"one_after_nums","show-overflow-tooltip":""}),o(l,{label:"\u8F6C\u5165\u65B9",prop:"two_name","show-overflow-tooltip":""}),o(l,{label:"\u8F6C\u5165\u524D\u6570\u91CF",prop:"two_before_nums","show-overflow-tooltip":""}),o(l,{label:"\u8F6C\u5165\u540E\u6570\u91CF",prop:"two_after_nums","show-overflow-tooltip":""}),o(l,{label:"\u7C7B\u578B",prop:"type_name","show-overflow-tooltip":""}),o(l,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"create_time","show-overflow-tooltip":""}),o(l,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:t(({row:s})=>[d((r(),p(u,{type:"primary",link:"",onClick:S=>$(s)},{def
|