2 lines
4.6 KiB
JavaScript
2 lines
4.6 KiB
JavaScript
import{C as I,D as N,w as S,F as $,K as U,G as j,H as K,I as q}from"./element-plus.8e273e86.js";import{_ as G}from"./index.vue_vue_type_script_setup_true_lang.d6032bc4.js";import{b as H}from"./index.4eb92b1c.js";import{u as M}from"./usePaging.f8c888e4.js";import{u as Q}from"./useDictOptions.cc192734.js";import{d as Z}from"./inventory_transfer.f6718857.js";import"./lodash.4e6d2a38.js";import{_ as z}from"./warehousing.vue_vue_type_script_setup_true_name_storeProductEdit_lang.750fc2ea.js";import{d as h,s as J,r as C,Z as O,ap as W,o as p,c as X,U as o,L as r,u as t,R as d,M as b,K as c,a as F,j as Y,Q as oo,n as eo}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.63ba074e.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.cf0d972e.js";import"./index.vue_vue_type_script_setup_true_name_systemStoreLists_lang.1c4ad7f9.js";import"./store_product.67945300.js";import"./store_branch_product.15081d2c.js";import"./warehouse_product_storege.4ecd1622.js";import"./warehouse.133a325d.js";import"./system_store.aa0e1610.js";const to={class:"mt-4"},ao={class:"flex mt-4 justify-end"},ro=h({name:"inventoryTransferLists"}),oe=h({...ro,setup(lo){const f=J(),m=C(!1),s=O({store_name:""}),E=C([]),g=n=>{E.value=n.map(({id:e})=>e)},{dictData:y}=Q(""),{pager:l,getLists:u,resetParams:B,resetPage:k}=M({fetchFun:Z,params:s}),D=async()=>{var n;m.value=!0,await eo(),(n=f.value)==null||n.open("add")};return u(),(n,e)=>{const V=I,w=N,_=S,x=$,v=U,T=H,a=j,A=K,L=G,P=W("perms"),R=q;return p(),X("div",null,[o(v,{class:"!border-none mb-4",shadow:"never"},{default:r(()=>[o(x,{class:"mb-[-16px]",model:t(s),inline:""},{default:r(()=>[o(w,{label:"\u5546\u54C1",prop:"store_name"},{default:r(()=>[o(V,{class:"w-[280px]",modelValue:t(s).store_name,"onUpdate:modelValue":e[0]||(e[0]=i=>t(s).store_name=i),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u54C1"},null,8,["modelValue"])]),_:1}),o(w,null,{default:r(()=>[o(_,{type:"primary",onClick:t(k)},{default:r(()=>e[3]||(e[3]=[d("\u67E5\u8BE2")])),_:1},8,["onClick"]),o(_,{onClick:t(B)},{default:r(()=>e[4]||(e[4]=[d("\u91CD\u7F6E")])),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),b((p(),c(v,{class:"!border-none",shadow:"never"},{default:r(()=>[b((p(),c(_,{type:"primary",onClick:D},{icon:r(()=>[o(T,{name:"el-icon-Plus"})]),default:r(()=>[e[5]||(e[5]=d(" \u65B0\u589E "))]),_:1})),[[P,["inventory_transfer/add"]]]),F("div",to,[o(A,{data:t(l).lists,onSelectionChange:g},{default:r(()=>[o(a,{label:"id",prop:"id","show-overflow-tooltip":""}),o(a,{label:"\u5546\u54C1",prop:"store_name","show-overflow-tooltip":""}),o(a,{label:"\u6570\u91CF",prop:"nums","show-overflow-tooltip":""}),o(a,{label:"\u8F6C\u51FA\u65B9",prop:"one_name","show-overflow-tooltip":""}),o(a,{label:"\u8F6C\u51FA\u524D\u6570\u91CF",prop:"one_before_nums","show-overflow-tooltip":""}),o(a,{label:"\u8F6C\u51FA\u540E\u6570\u91CF",prop:"one_after_nums","show-overflow-tooltip":""}),o(a,{label:"\u8F6C\u5165\u65B9",prop:"two_name","show-overflow-tooltip":""}),o(a,{label:"\u8F6C\u5165\u524D\u6570\u91CF",prop:"two_before_nums","show-overflow-tooltip":""}),o(a,{label:"\u8F6C\u5165\u540E\u6570\u91CF",prop:"two_after_nums","show-overflow-tooltip":""}),o(a,{label:"\u7C7B\u578B",prop:"type_name","show-overflow-tooltip":""}),o(a,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"create_time","show-overflow-tooltip":""})]),_:1},8,["data"])]),F("div",ao,[o(L,{modelValue:t(l),"onUpdate:modelValue":e[1]||(e[1]=i=>Y(l)?l.value=i:null),onChange:t(u)},null,8,["modelValue","onChange"])])]),_:1})),[[R,t(l).loading]]),t(m)?(p(),c(z,{key:0,ref_key:"editRef",ref:f,"dict-data":t(y),onSuccess:t(u),onClose:e[2]||(e[2]=i=>m.value=!1)},null,8,["dict-data","onSuccess"])):oo("",!0)])}}});export{oe as default};
|