2 lines
5.8 KiB
JavaScript
2 lines
5.8 KiB
JavaScript
import{C as K,D as M,J as O,K as q,w as J,F as Q,L as Z,M as z,N as G,O as H}from"./element-plus.4a7d92a3.js";import{_ as W}from"./index.vue_vue_type_script_setup_true_lang.5d4e738c.js";import{f as X,b as Y}from"./index.1ac19d28.js";import{u as ee}from"./usePaging.6a6670f9.js";import{u as oe}from"./useDictOptions.1d4f0c9a.js";import{d as te,e as le}from"./inventory_transfer.33ed611c.js";import"./lodash.9dc701ad.js";import{_ as ae}from"./edit.vue_vue_type_script_setup_true_name_inventoryTransferEdit_lang.b4791699.js";import{d as D,s as ne,r as k,Z as re,ap as ie,o as i,c as se,U as e,L as o,u as t,R as p,M as c,K as m,a as B,j as ue,Q as pe,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.b7a470cf.js";import"./warehouse.4fbf4f05.js";import"./index.vue_vue_type_script_setup_true_name_systemStoreLists_lang.a195fceb.js";import"./store_product.1c48a3ea.js";import"./store_branch_product.16d0f6f8.js";import"./warehouse_product_storege.414f6bf4.js";import"./index.vue_vue_type_script_setup_true_name_systemStoreLists_lang.4e174d90.js";import"./system_store.490121ea.js";import"./index.d55dd93b.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";const me={class:"mt-4"},de={class:"flex mt-4 justify-end"},ce=D({name:"inventoryTransferLists"}),io=D({...ce,setup(_e){const _=ne(),f=k(!1),s=re({product_id:"",type:""}),b=k([]),V=r=>{b.value=r.map(({id:l})=>l)},{dictData:x}=oe(""),{pager:d,getLists:v,resetParams:T,resetPage:$}=ee({fetchFun:le,params:s}),A=async()=>{var r;f.value=!0,await g(),(r=_.value)==null||r.open("add")},L=async r=>{var l,C;f.value=!0,await g(),(l=_.value)==null||l.open("edit"),(C=_.value)==null||C.setFormData(r)},y=async r=>{await X.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await te({id:r}),v()};return v(),(r,l)=>{const C=K,F=M,h=O,N=q,u=J,P=Q,E=Z,R=Y,a=z,S=G,I=W,w=ie("perms"),U=H;return i(),se("div",null,[e(E,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[e(P,{class:"mb-[-16px]",model:t(s),inline:""},{default:o(()=>[e(F,{label:"\u5546\u54C1",prop:"product_id"},{default:o(()=>[e(C,{class:"w-[280px]",modelValue:t(s).product_id,"onUpdate:modelValue":l[0]||(l[0]=n=>t(s).product_id=n),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u54C1"},null,8,["modelValue"])]),_:1}),e(F,{label:"\u7C7B\u578B",prop:"type"},{default:o(()=>[e(N,{class:"w-[280px]",modelValue:t(s).type,"onUpdate:modelValue":l[1]||(l[1]=n=>t(s).type=n),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u7C7B\u578B"},{default:o(()=>[e(h,{label:"\u5546\u6237",value:"1"}),e(h,{label:"\u4ED3\u5E93",value:"2"})]),_:1},8,["modelValue"])]),_:1}),e(F,null,{default:o(()=>[e(u,{type:"primary",onClick:t($)},{default:o(()=>[p("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(u,{onClick:t(T)},{default:o(()=>[p("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),c((i(),m(E,{class:"!border-none",shadow:"never"},{default:o(()=>[c((i(),m(u,{type:"primary",onClick:A},{icon:o(()=>[e(R,{name:"el-icon-Plus"})]),default:o(()=>[p(" \u65B0\u589E ")]),_:1})),[[w,["inventory_transfer/add"]]]),c((i(),m(u,{disabled:!t(b).length,onClick:l[2]||(l[2]=n=>y(t(b)))},{default:o(()=>[p(" \u5220\u9664 ")]),_:1},8,["disabled"])),[[w,["inventory_transfer/delete"]]]),B("div",me,[e(S,{data:t(d).lists,onSelectionChange:V},{default:o(()=>[e(a,{type:"selection",width:"55"}),e(a,{label:"id",prop:"id","show-overflow-tooltip":""}),e(a,{label:"\u5546\u54C1",prop:"store_name","show-overflow-tooltip":""}),e(a,{label:"\u6570\u91CF",prop:"nums","show-overflow-tooltip":""}),e(a,{label:"\u8F6C\u51FA\u65B9",prop:"one_name","show-overflow-tooltip":""}),e(a,{label:"\u8F6C\u51FA\u524D\u6570\u91CF",prop:"one_before_nums","show-overflow-tooltip":""}),e(a,{label:"\u8F6C\u51FA\u540E\u6570\u91CF",prop:"one_after_nums","show-overflow-tooltip":""}),e(a,{label:"\u8F6C\u5165\u65B9",prop:"two_name","show-overflow-tooltip":""}),e(a,{label:"\u8F6C\u5165\u524D\u6570\u91CF",prop:"two_before_nums","show-overflow-tooltip":""}),e(a,{label:"\u8F6C\u5165\u540E\u6570\u91CF",prop:"two_after_nums","show-overflow-tooltip":""}),e(a,{label:"\u7C7B\u578B",prop:"type_name","show-overflow-tooltip":""}),e(a,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"create_time","show-overflow-tooltip":""}),e(a,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:o(({row:n})=>[c((i(),m(u,{type:"primary",link:"",onClick:j=>L(n)},{default:o(()=>[p(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[w,["inventory_transfer/edit"]]]),c((i(),m(u,{type:"danger",link:"",onClick:j=>y(n.id)},{default:o(()=>[p(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[w,["inventory_transfer/delete"]]])]),_:1})]),_:1},8,["data"])]),B("div",de,[e(I,{modelValue:t(d),"onUpdate:modelValue":l[3]||(l[3]=n=>ue(d)?d.value=n:null),onChange:t(v)},null,8,["modelValue","onChange"])])]),_:1})),[[U,t(d).loading]]),t(f)?(i(),m(ae,{key:0,ref_key:"editRef",ref:_,"dict-data":t(x),onSuccess:t(v),onClose:l[4]||(l[4]=n=>f.value=!1)},null,8,["dict-data","onSuccess"])):pe("",!0)])}}});export{io as default};
|