2024-08-14 22:04:26 +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.a63a26dd.js";import{_ as W}from"./index.vue_vue_type_script_setup_true_lang.ecb80feb.js";import{f as X,b as Y}from"./index.92d8c5bb.js";import{u as ee}from"./usePaging.6a6670f9.js";import{u as oe}from"./useDictOptions.3cac3739.js";import{d as te,e as le}from"./inventory_transfer.89fa8893.js";import"./lodash.2473fc51.js";import{_ as ae}from"./edit.vue_vue_type_script_setup_true_name_inventoryTransferEdit_lang.4d1813e3.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.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.00c371b1.js";import"./warehouse.0fb5e6df.js";import"./index.vue_vue_type_script_setup_true_name_systemStoreLists_lang.5b5e293a.js";import"./store_product.8bd42dba.js";import"./store_branch_product.df35f6d8.js";import"./warehouse_product_storege.3d014b40.js";import"./index.vue_vue_type_script_setup_true_name_systemStoreLists_lang.7c721c19.js";import"./system_store.2e10935c.js";import"./index.575aa0c6.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"])
|