From 1009de28481475eab1222657585343979b3e2163 Mon Sep 17 00:00:00 2001 From: yangjun <1173114630@qq.com> Date: Wed, 16 Apr 2025 09:22:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=AE=A2=E6=88=B7=E6=93=8D?= =?UTF-8?q?=E4=BD=9C=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../NuBizCustomerInfoList.vue | 48 +++++++++++- .../components/CheckNuListForm.vue | 67 ++++++++++++++++ .../components/CheckNuListModal.vue | 77 +++++++++++++++++++ 3 files changed, 191 insertions(+), 1 deletion(-) create mode 100644 src/views/biz/nuBizCustomerInfo/components/CheckNuListForm.vue create mode 100644 src/views/biz/nuBizCustomerInfo/components/CheckNuListModal.vue diff --git a/src/views/biz/nuBizCustomerInfo/NuBizCustomerInfoList.vue b/src/views/biz/nuBizCustomerInfo/NuBizCustomerInfoList.vue index a4386e9..60eb892 100644 --- a/src/views/biz/nuBizCustomerInfo/NuBizCustomerInfoList.vue +++ b/src/views/biz/nuBizCustomerInfo/NuBizCustomerInfoList.vue @@ -29,7 +29,15 @@ - + + @@ -69,6 +89,7 @@ + @@ -78,6 +99,7 @@ import { list, deleteOne, batchDelete, getImportUrl, getExportUrl } from './NuBizCustomerInfo.api'; import { downloadFile } from '/@/utils/common/renderUtils'; import NuBizCustomerInfoModal from './components/NuBizCustomerInfoModal.vue' + import CheckNuListModal from './components/CheckNuListModal.vue' import { useUserStore } from '/@/store/modules/user'; import { getFileAccessHttpUrl } from '/@/utils/common/compUtils'; import { defHttp } from '/@/utils/http/axios'; @@ -88,6 +110,7 @@ const queryParam = reactive({}); const toggleSearchStatus = ref(false); const registerModal = ref(); + const checkNuListModal = ref(); const userStore = useUserStore(); const dataList = ref([]); const current = ref(1); @@ -105,6 +128,29 @@ }); +//选择入住单元 + function handleCheckNu(record){ + checkNuListModal.value.disableSubmit = false; + checkNuListModal.value.edit(record); + } + //退住 + function handleTuizhu(record){ + defHttp.post({ url: "/nuBizCustomerInfo/nuBizCustomerInfo/editTuizhu", params: { id: record.id } }).then((data) => { + reload(); + }); + } + //外出 + function handleWaichu(record){ + defHttp.post({ url: "/nuBizCustomerInfo/nuBizCustomerInfo/edit", params: { id: record.id,currentStatus:'2' } }).then((data) => { + reload(); + }); + } + //返回 + function handleFanhui(record){ + defHttp.post({ url: "/nuBizCustomerInfo/nuBizCustomerInfo/edit", params: { id: record.id,currentStatus:'1' } }).then((data) => { + reload(); + }); + } //当没有员工头像时,默认展示企业logo function handleHeadPath(headPath){ diff --git a/src/views/biz/nuBizCustomerInfo/components/CheckNuListForm.vue b/src/views/biz/nuBizCustomerInfo/components/CheckNuListForm.vue new file mode 100644 index 0000000..a890d59 --- /dev/null +++ b/src/views/biz/nuBizCustomerInfo/components/CheckNuListForm.vue @@ -0,0 +1,67 @@ + + + + + diff --git a/src/views/biz/nuBizCustomerInfo/components/CheckNuListModal.vue b/src/views/biz/nuBizCustomerInfo/components/CheckNuListModal.vue new file mode 100644 index 0000000..ee435e1 --- /dev/null +++ b/src/views/biz/nuBizCustomerInfo/components/CheckNuListModal.vue @@ -0,0 +1,77 @@ + + + + + +