2024-08-18 11:55:35 +08:00
|
|
|
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.4e463299.js";import{u as ee}from"./usePaging.6a6670f9.js";import{u as oe}from"./useDictOptions.2608869e.js";import{d as te,e as le}from"./inventory_transfer.8276f8d4.js";import"./lodash.9dc701ad.js";import{_ as ae}from"./edit.vue_vue_type_script_setup_true_name_inventoryTransferEdit_lang.85820b31.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.490ad75a.js";import"./warehouse.f7698d62.js";import"./index.vue_vue_type_script_setup_true_name_systemStoreLists_lang.d4197bfa.js";import"./store_product.f6a993ce.js";import"./store_branch_product.ea8351bc.js";import"./warehouse_product_storege.4fb48b7a.js";import"./index.vue_vue_type_script_setup_true_name_systemStoreLists_lang.95b3ef41.js";import"./system_store.89791c2c.js";import"./index.db9416bc.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"])
|