diff --git a/src/components/inventory/check/Add.vue b/src/components/inventory/check/Add.vue index 403c3d3..0fb8d23 100644 --- a/src/components/inventory/check/Add.vue +++ b/src/components/inventory/check/Add.vue @@ -2,9 +2,23 @@
- - - + + + + + + + +
@@ -302,7 +316,7 @@ let addRow = (goodsId: number) => { }) } let save = () => { - post("inventory/check/save", {list: list.value, remark: form.value.remark}).then((res: any) => { + post("inventory/check/save", {list: list.value, remark: form.value.remark,checkUserId: form.value.checkUserId}).then((res: any) => { ElMessage.success('保存成功') exit() }) @@ -318,8 +332,24 @@ let exit = () => { const isShow = ref(false) const init = () => { isShow.value = true + getManagerUserList() + getUserInfo() } defineExpose({init}) + + +const managerUserList: any = ref([]) +const getManagerUserList = () => { + post("manager/user/list", {}).then((res: any) => { + managerUserList.value = res + }) +} +const getUserInfo = () => { + post("manager/user/verify", null).then((res: any) => { + form.value.useUserId = res.id; + }) +} +