diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysLoginController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysLoginController.java index d959a17e..ba090149 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysLoginController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysLoginController.java @@ -56,7 +56,7 @@ public class SysLoginController * * @return 用户信息 */ - @GetMapping("getInfo") + @GetMapping("/getInfo") public AjaxResult getInfo() { SysUser user = SecurityUtils.getLoginUser().getUser(); @@ -76,7 +76,7 @@ public class SysLoginController * * @return 路由信息 */ - @GetMapping("getRouters") + @GetMapping("/getRouters") public AjaxResult getRouters() { Long userId = SecurityUtils.getUserId(); diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/enums/PublicStateEnum.java b/ruoyi-common/src/main/java/com/ruoyi/common/enums/PublicStateEnum.java index b10c90ad..7efde897 100644 --- a/ruoyi-common/src/main/java/com/ruoyi/common/enums/PublicStateEnum.java +++ b/ruoyi-common/src/main/java/com/ruoyi/common/enums/PublicStateEnum.java @@ -10,6 +10,11 @@ public enum PublicStateEnum { OK("0", "正常"), DISABLE("1", "停用"), DELETED("2", "删除"), + USERTYPE_JFJL("21", "甲方经理"), + /**********************************项目验收***************************************/ + PROJECT_CHECK_TYPE_JPYS("1", "举牌验收"), + PROJECT_CHECK_POSITION_TYPE("1", "默认工序部位类型"), + /**********************************项目验收***************************************/ COMZGS("1","子公司状态标识"); private final String code; diff --git a/ruoyi-ui/src/api/project/projectDeptWroks.js b/ruoyi-ui/src/api/project/projectDeptWroks.js index ba0ca4aa..b935b72e 100644 --- a/ruoyi-ui/src/api/project/projectDeptWroks.js +++ b/ruoyi-ui/src/api/project/projectDeptWroks.js @@ -17,14 +17,6 @@ export function deptWroksViewData(query) { }) } -export function unitList(query) { - return request({ - url: '/project/projectDeptWroks/unitList', - method: 'get', - params: query - }) -} - // 查询在岗人员详细 export function getProjectDeptWroks(id) { return request({ diff --git a/ruoyi-ui/src/api/publics.js b/ruoyi-ui/src/api/publics.js index bb0b6fac..93b80eab 100644 --- a/ruoyi-ui/src/api/publics.js +++ b/ruoyi-ui/src/api/publics.js @@ -37,11 +37,29 @@ const getUserList = (data) => { }) } +const queryUnitList = (query) => { + return request({ + url: '/publics/queryUnitList', + method: 'get', + params: query + }) +} + +const selectProjectUnitUser = (query) => { + return request({ + url: '/publics/selectProjectUnitUser', + method: 'get', + params: query + }) +} + export default{ getMyDeptList, getDeptTree, getZgsDeptList, getMyProjectList, - getUserList + getUserList, + queryUnitList, + selectProjectUnitUser, } diff --git a/ruoyi-ui/src/views/project/projectChecking/index.vue b/ruoyi-ui/src/views/project/projectChecking/index.vue index a33b3b74..87793d32 100644 --- a/ruoyi-ui/src/views/project/projectChecking/index.vue +++ b/ruoyi-ui/src/views/project/projectChecking/index.vue @@ -1,40 +1,59 @@ - - + + - + - - - - + + + + + + + - + - - - - - - - - - - - - - - - - - - - - - - - - 搜索 + 搜索 重置 - + 修改 + >修改 删除 + >删除 导出 + >导出 - + - - - - - - + + + - + + + + + + + + + {{ scope.row.qualityUserName }} + {{ scope.row.qualityUser }} + + + + + {{ scope.row.superviseUserName }} + {{ scope.row.superviseUser }} + + + + + {{ parseTime(scope.row.checkingDate, "{y}-{m}-{d} {h}:{i}") }} - - - - - + - - - - - - - - - - {{ parseTime(scope.row.checkingDate, '{y}-{m}-{d}') }} - - - - + - - + + + 下载附件 修改 + >修改 删除 + >删除 - + - + - - + + - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - + type="datetime" + placeholder="选择日期时间" + default-time="10:00:00" + > - - - - - - - + + {{ dict.label }} @@ -317,17 +369,29 @@ 取 消 + diff --git a/ruoyi-ui/src/views/project/projectChecking/projectCheckingDrawer.vue b/ruoyi-ui/src/views/project/projectChecking/projectCheckingDrawer.vue new file mode 100644 index 00000000..2d52216d --- /dev/null +++ b/ruoyi-ui/src/views/project/projectChecking/projectCheckingDrawer.vue @@ -0,0 +1,583 @@ + + + + + {{ title + " 【举牌验收管理】" }} + + + + + + + 新增 + + + 修改 + + + 删除 + + + + + + + + + + + + + + + + {{ scope.row.qualityUserName }} + {{ scope.row.qualityUser }} + + + + + {{ scope.row.superviseUserName }} + {{ scope.row.superviseUser }} + + + + + {{ parseTime(scope.row.checkingDate, "{y}-{m}-{d} {h}:{i}") }} + + + + + + + + + + 下载附件 + 修改 + 删除 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{ dict.label }} + + + + + + + + + + + diff --git a/ruoyi-ui/src/views/project/projectDeptWroks/projectDeptWroksDrawer.vue b/ruoyi-ui/src/views/project/projectDeptWroks/projectDeptWroksDrawer.vue index 67ff20e8..6b4c1d11 100644 --- a/ruoyi-ui/src/views/project/projectDeptWroks/projectDeptWroksDrawer.vue +++ b/ruoyi-ui/src/views/project/projectDeptWroks/projectDeptWroksDrawer.vue @@ -58,7 +58,6 @@ diff --git a/ruoyi-ui/src/views/project/surProjectAttendance/attendanceDrawer.vue b/ruoyi-ui/src/views/project/surProjectAttendance/attendanceDrawer.vue index 9cd86092..eeb86a88 100644 --- a/ruoyi-ui/src/views/project/surProjectAttendance/attendanceDrawer.vue +++ b/ruoyi-ui/src/views/project/surProjectAttendance/attendanceDrawer.vue @@ -148,22 +148,24 @@ export default { this.project = project; this.title = project.projectName; this.isOpen = true; - unitList({ - projectId: project.id, - unitType: 2, - }).then((d1) => { - this.nodes = d1.rows; - if (this.nodes.length > 0) { - this.activeName = this.nodes[0].unitId + ""; - this.isUnit = true; - this.loadData(); - } else { - this.$message.error( - "当前项目未分配总包单位,未登记在册人员,今日出勤数据不能维护!" - ); - this.isUnit = false; - } - }); + this.$api.publics + .queryUnitList({ + projectId: project.id, + unitType: 2, + }) + .then((d1) => { + this.nodes = d1.rows; + if (this.nodes.length > 0) { + this.activeName = this.nodes[0].unitId + ""; + this.isUnit = true; + this.loadData(); + } else { + this.$message.error( + "当前项目未分配总包单位,未登记在册人员,今日出勤数据不能维护!" + ); + this.isUnit = false; + } + }); }, loadData() { deptWroksViewData({ diff --git a/ruoyi-ui/src/views/project/surProjectInsurance/index.vue b/ruoyi-ui/src/views/project/surProjectInsurance/index.vue index 1afc013c..650fc051 100644 --- a/ruoyi-ui/src/views/project/surProjectInsurance/index.vue +++ b/ruoyi-ui/src/views/project/surProjectInsurance/index.vue @@ -348,7 +348,7 @@ export default { { max: 20, message: "请输入", trigger: "blur" }, ], insuranceNumber: [ - { required: true, message: "请输入保险单编号", trigger: "blur" }, + { required: false, message: "请输入保险单编号", trigger: "blur" }, ], insuranceFile: [{ required: true, message: "请上传保险合同", trigger: "blur" }], }, diff --git a/ruoyi-ui/src/views/project/surProjectInsurance/insuranceDrawer.vue b/ruoyi-ui/src/views/project/surProjectInsurance/insuranceDrawer.vue index 259ab84d..139aef99 100644 --- a/ruoyi-ui/src/views/project/surProjectInsurance/insuranceDrawer.vue +++ b/ruoyi-ui/src/views/project/surProjectInsurance/insuranceDrawer.vue @@ -157,7 +157,6 @@