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 @@ + + + + + +