+
确定
取消
@@ -69,6 +69,7 @@ export default {
isOpen: false,
project: null,
title: "",
+ isUnit: true,
nodes: [],
form: {
oldServicePersonnel: 0,
@@ -95,6 +96,9 @@ export default {
this.isOpen = false;
},
show(project) {
+ this.form.servicePersonnel = 0;
+ this.form.supervisorPersonnel = 0;
+ this.form.contractorPersonnel = 0;
this.project = project;
this.title = project.projectName;
this.isOpen = true;
@@ -103,9 +107,13 @@ export default {
unitType: 2,
}).then((d) => {
this.nodes = d.rows;
- if (this.nodes.length > 0) {
+ if (d.rows.length > 0) {
this.activeName = this.nodes[0].unitId + "";
+ this.isUnit = true;
this.loadData();
+ } else {
+ this.$message.error("当前项目未分配总包单位,不能维护在册人员");
+ this.isUnit = false;
}
});
},
diff --git a/ruoyi-ui/src/views/project/surProject/index.vue b/ruoyi-ui/src/views/project/surProject/index.vue
index aa534759..9d303726 100644
--- a/ruoyi-ui/src/views/project/surProject/index.vue
+++ b/ruoyi-ui/src/views/project/surProject/index.vue
@@ -400,6 +400,12 @@
v-hasPermi="['work:emergencyDrill:list']"
>项目应急演练
+
项目保险管理
+
@@ -770,6 +777,7 @@ import emergencyDrillDrawer from "../../work/emergencyDrill/emergencyDrillDrawer
import surProjectSpecialDrawer from "../surProjectSpecial/surProjectSpecialDrawer.vue";
import attendanceDrawer from "../surProjectAttendance/attendanceDrawer.vue";
import projectDeptWroksDrawer from "../projectDeptWroks/projectDeptWroksDrawer.vue";
+import insuranceDrawer from "../surProjectInsurance/insuranceDrawer.vue";
export default {
name: "SurProject",
@@ -784,6 +792,7 @@ export default {
emergencyDrillDrawer,
surProjectSpecialDrawer,
projectDeptWroksDrawer,
+ insuranceDrawer,
},
dicts: [
"sys_check_state",
@@ -1017,6 +1026,9 @@ export default {
case "handleProjectAttendance":
this.$refs.attDrawer.show(row);
break;
+ case "handleProjectInsurance":
+ this.$refs.insurance.show(row);
+ break;
default:
break;
}
diff --git a/ruoyi-ui/src/views/project/surProjectAttendance/attendanceDrawer.vue b/ruoyi-ui/src/views/project/surProjectAttendance/attendanceDrawer.vue
index b0a11820..9cd86092 100644
--- a/ruoyi-ui/src/views/project/surProjectAttendance/attendanceDrawer.vue
+++ b/ruoyi-ui/src/views/project/surProjectAttendance/attendanceDrawer.vue
@@ -33,7 +33,7 @@
>