diff --git a/src/components/inventory/apply/AddApply.vue b/src/components/inventory/apply/AddApply.vue index c41554e..dc5554c 100644 --- a/src/components/inventory/apply/AddApply.vue +++ b/src/components/inventory/apply/AddApply.vue @@ -4,7 +4,18 @@
- + + + @@ -39,7 +50,7 @@ multiple @change="addLine(item)" :teleported="false" - style="width: 100px;" + style="width: 200px;" collapse-tags popper-class="table-select">
@@ -255,15 +266,24 @@ const save = () => { } -const getUserInfo = () => { +const init = () => { isShow.value = true + getManagerUserList() + getUserInfo() +} +const getUserInfo = () => { post("manager/user/verify", null).then((res: any) => { formData.value.useUserId = res.id; - formData.value.name = res.name; - formData.value.username = res.username; }) } -defineExpose({getUserInfo}) +const managerUserList: any = ref([]) +const getManagerUserList = () => { + post("manager/user/list", {}).then((res: any) => { + managerUserList.value = res + }) +} + +defineExpose({init})