Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
Z
zhengyuan-danger-chemistry-manage
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
耿迪迪
zhengyuan-danger-chemistry-manage
Commits
33c8afe7
Commit
33c8afe7
authored
Feb 15, 2023
by
耿迪迪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
变更申请审核-人工智能分析视频问题 gengdidi
parent
004f180a
Show whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
2234 additions
and
1 deletion
+2234
-1
TChangeApplyApprovalController.java
...ller/deviceManagement/TChangeApplyApprovalController.java
+103
-0
TChangeApplyApproverController.java
...ller/deviceManagement/TChangeApplyApproverController.java
+124
-0
TChangeApplyApproval.java
...n/java/com/zehong/system/domain/TChangeApplyApproval.java
+153
-0
TChangeApplyApprover.java
...n/java/com/zehong/system/domain/TChangeApplyApprover.java
+104
-0
TChangeApplyApprovalMapper.java
.../com/zehong/system/mapper/TChangeApplyApprovalMapper.java
+61
-0
TChangeApplyApproverMapper.java
.../com/zehong/system/mapper/TChangeApplyApproverMapper.java
+69
-0
ITChangeApplyApprovalService.java
...m/zehong/system/service/ITChangeApplyApprovalService.java
+61
-0
ITChangeApplyApproverService.java
...m/zehong/system/service/ITChangeApplyApproverService.java
+68
-0
TChangeApplyApprovalServiceImpl.java
.../system/service/impl/TChangeApplyApprovalServiceImpl.java
+93
-0
TChangeApplyApproverServiceImpl.java
.../system/service/impl/TChangeApplyApproverServiceImpl.java
+115
-0
TChangeApplyApprovalMapper.xml
...in/resources/mapper/system/TChangeApplyApprovalMapper.xml
+96
-0
TChangeApplyApproverMapper.xml
...in/resources/mapper/system/TChangeApplyApproverMapper.xml
+82
-0
changeApplyApproval.js
...anage-web/src/api/deviceManagement/changeApplyApproval.js
+53
-0
changeApplyApprover.js
...anage-web/src/api/deviceManagement/changeApplyApprover.js
+63
-0
SplitVideoView.vue
danger-manage-web/src/components/Video/SplitVideoView.vue
+11
-1
ApplyTable.vue
...eManagement/changeApplyApproval/components/ApplyTable.vue
+293
-0
UploadMaterials.vue
...gement/changeApplyApproval/components/UploadMaterials.vue
+101
-0
index.vue
.../src/views/deviceManagement/changeApplyApproval/index.vue
+584
-0
No files found.
danger-manage-admin/src/main/java/com/zehong/web/controller/deviceManagement/TChangeApplyApprovalController.java
0 → 100644
View file @
33c8afe7
package
com
.
zehong
.
web
.
controller
.
deviceManagement
;
import
java.util.List
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.PutMapping
;
import
org.springframework.web.bind.annotation.DeleteMapping
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
com.zehong.common.annotation.Log
;
import
com.zehong.common.core.controller.BaseController
;
import
com.zehong.common.core.domain.AjaxResult
;
import
com.zehong.common.enums.BusinessType
;
import
com.zehong.system.domain.TChangeApplyApproval
;
import
com.zehong.system.service.ITChangeApplyApprovalService
;
import
com.zehong.common.utils.poi.ExcelUtil
;
import
com.zehong.common.core.page.TableDataInfo
;
/**
* 变更申请审批验收Controller
*
* @author zehong
* @date 2023-02-14
*/
@RestController
@RequestMapping
(
"/changeApply/approval"
)
public
class
TChangeApplyApprovalController
extends
BaseController
{
@Autowired
private
ITChangeApplyApprovalService
tChangeApplyApprovalService
;
/**
* 查询变更申请审批验收列表
*/
//@PreAuthorize("@ss.hasPermi('system:approval:list')")
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
TChangeApplyApproval
tChangeApplyApproval
)
{
startPage
();
List
<
TChangeApplyApproval
>
list
=
tChangeApplyApprovalService
.
selectTChangeApplyApprovalList
(
tChangeApplyApproval
);
return
getDataTable
(
list
);
}
/**
* 导出变更申请审批验收列表
*/
//@PreAuthorize("@ss.hasPermi('system:approval:export')")
@Log
(
title
=
"变更申请审批验收"
,
businessType
=
BusinessType
.
EXPORT
)
@GetMapping
(
"/export"
)
public
AjaxResult
export
(
TChangeApplyApproval
tChangeApplyApproval
)
{
List
<
TChangeApplyApproval
>
list
=
tChangeApplyApprovalService
.
selectTChangeApplyApprovalList
(
tChangeApplyApproval
);
ExcelUtil
<
TChangeApplyApproval
>
util
=
new
ExcelUtil
<
TChangeApplyApproval
>(
TChangeApplyApproval
.
class
);
return
util
.
exportExcel
(
list
,
"变更申请审批验收数据"
);
}
/**
* 获取变更申请审批验收详细信息
*/
//@PreAuthorize("@ss.hasPermi('system:approval:query')")
@GetMapping
(
value
=
"/{changeApplyId}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"changeApplyId"
)
Long
changeApplyId
)
{
return
AjaxResult
.
success
(
tChangeApplyApprovalService
.
selectTChangeApplyApprovalById
(
changeApplyId
));
}
/**
* 新增变更申请审批验收
*/
//@PreAuthorize("@ss.hasPermi('system:approval:add')")
@Log
(
title
=
"变更申请审批验收"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
public
AjaxResult
add
(
@RequestBody
TChangeApplyApproval
tChangeApplyApproval
)
{
return
toAjax
(
tChangeApplyApprovalService
.
insertTChangeApplyApproval
(
tChangeApplyApproval
));
}
/**
* 修改变更申请审批验收
*/
//@PreAuthorize("@ss.hasPermi('system:approval:edit')")
@Log
(
title
=
"变更申请审批验收"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
public
AjaxResult
edit
(
@RequestBody
TChangeApplyApproval
tChangeApplyApproval
)
{
return
toAjax
(
tChangeApplyApprovalService
.
updateTChangeApplyApproval
(
tChangeApplyApproval
));
}
/**
* 删除变更申请审批验收
*/
//@PreAuthorize("@ss.hasPermi('system:approval:remove')")
@Log
(
title
=
"变更申请审批验收"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/{changeApplyIds}"
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
changeApplyIds
)
{
return
toAjax
(
tChangeApplyApprovalService
.
deleteTChangeApplyApprovalByIds
(
changeApplyIds
));
}
}
danger-manage-admin/src/main/java/com/zehong/web/controller/deviceManagement/TChangeApplyApproverController.java
0 → 100644
View file @
33c8afe7
package
com
.
zehong
.
web
.
controller
.
deviceManagement
;
import
java.util.List
;
import
com.zehong.common.core.domain.entity.SysUser
;
import
com.zehong.system.service.ISysUserService
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.PutMapping
;
import
org.springframework.web.bind.annotation.DeleteMapping
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
com.zehong.common.annotation.Log
;
import
com.zehong.common.core.controller.BaseController
;
import
com.zehong.common.core.domain.AjaxResult
;
import
com.zehong.common.enums.BusinessType
;
import
com.zehong.system.domain.TChangeApplyApprover
;
import
com.zehong.system.service.ITChangeApplyApproverService
;
import
com.zehong.common.utils.poi.ExcelUtil
;
import
com.zehong.common.core.page.TableDataInfo
;
/**
* 变更申请审批人Controller
*
* @author zehong
* @date 2023-02-14
*/
@RestController
@RequestMapping
(
"/changeApply/approver"
)
public
class
TChangeApplyApproverController
extends
BaseController
{
@Autowired
private
ITChangeApplyApproverService
tChangeApplyApproverService
;
@Autowired
private
ISysUserService
userService
;
/**
* 查询变更申请审批人列表
*/
//@PreAuthorize("@ss.hasPermi('system:approver:list')")
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
TChangeApplyApprover
tChangeApplyApprover
)
{
startPage
();
List
<
TChangeApplyApprover
>
list
=
tChangeApplyApproverService
.
selectTChangeApplyApproverList
(
tChangeApplyApprover
);
for
(
TChangeApplyApprover
applyApprover
:
list
){
SysUser
user
=
userService
.
selectUserById
(
applyApprover
.
getApprovalPerson
());
applyApprover
.
setApprovalPersonName
(
user
.
getNickName
());
}
return
getDataTable
(
list
);
}
/**
* 导出变更申请审批人列表
*/
//@PreAuthorize("@ss.hasPermi('system:approver:export')")
@Log
(
title
=
"变更申请审批人"
,
businessType
=
BusinessType
.
EXPORT
)
@GetMapping
(
"/export"
)
public
AjaxResult
export
(
TChangeApplyApprover
tChangeApplyApprover
)
{
List
<
TChangeApplyApprover
>
list
=
tChangeApplyApproverService
.
selectTChangeApplyApproverList
(
tChangeApplyApprover
);
ExcelUtil
<
TChangeApplyApprover
>
util
=
new
ExcelUtil
<
TChangeApplyApprover
>(
TChangeApplyApprover
.
class
);
return
util
.
exportExcel
(
list
,
"变更申请审批人数据"
);
}
/**
* 获取变更申请审批人详细信息
*/
//@PreAuthorize("@ss.hasPermi('system:approver:query')")
@GetMapping
(
value
=
"/{changeApplyApproverId}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"changeApplyApproverId"
)
Long
changeApplyApproverId
)
{
return
AjaxResult
.
success
(
tChangeApplyApproverService
.
selectTChangeApplyApproverById
(
changeApplyApproverId
));
}
/**
* 新增变更申请审批人
*/
//@PreAuthorize("@ss.hasPermi('system:approver:add')")
@Log
(
title
=
"变更申请审批人"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
public
AjaxResult
add
(
@RequestBody
TChangeApplyApprover
tChangeApplyApprover
)
{
return
toAjax
(
tChangeApplyApproverService
.
insertTChangeApplyApprover
(
tChangeApplyApprover
));
}
/**
* 修改变更申请审批人
*/
//@PreAuthorize("@ss.hasPermi('system:approver:edit')")
@Log
(
title
=
"变更申请审批人"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
public
AjaxResult
edit
(
@RequestBody
TChangeApplyApprover
tChangeApplyApprover
)
{
return
toAjax
(
tChangeApplyApproverService
.
updateTChangeApplyApprover
(
tChangeApplyApprover
));
}
/**
* 删除变更申请审批人
*/
//@PreAuthorize("@ss.hasPermi('system:approver:remove')")
@Log
(
title
=
"变更申请审批人"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/{changeApplyApproverIds}"
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
changeApplyApproverIds
)
{
return
toAjax
(
tChangeApplyApproverService
.
deleteTChangeApplyApproverByIds
(
changeApplyApproverIds
));
}
/**
* 批量新增审核人
* @param tChangeApplyApproverList 审核人
* @return
*/
@PostMapping
(
"/batchAdd"
)
public
AjaxResult
batchAdd
(
@RequestBody
List
<
TChangeApplyApprover
>
tChangeApplyApproverList
)
{
return
toAjax
(
tChangeApplyApproverService
.
batchInsertTChangeApplyApprover
(
tChangeApplyApproverList
));
}
}
danger-manage-system/src/main/java/com/zehong/system/domain/TChangeApplyApproval.java
0 → 100644
View file @
33c8afe7
package
com
.
zehong
.
system
.
domain
;
import
java.util.Date
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
import
org.apache.commons.lang3.builder.ToStringStyle
;
import
com.zehong.common.annotation.Excel
;
import
com.zehong.common.core.domain.BaseEntity
;
/**
* 变更申请审批验收对象 t_change_apply_approval
*
* @author zehong
* @date 2023-02-14
*/
public
class
TChangeApplyApproval
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/** 变更申请id */
private
Long
changeApplyId
;
/** 变更单位 */
@Excel
(
name
=
"变更单位"
)
private
String
changeUnit
;
/** 变更项目名称 */
@Excel
(
name
=
"变更项目名称"
)
private
String
changeProjectName
;
/** 申请表数据 */
@Excel
(
name
=
"申请表数据"
)
private
String
tableData
;
/** 录入人 */
@Excel
(
name
=
"录入人"
)
private
Long
enterPerson
;
/** 录入时间 */
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
@Excel
(
name
=
"录入时间"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd HH:mm:ss"
)
private
Date
enterTime
;
/** 培训资料 */
@Excel
(
name
=
"培训资料"
)
private
String
trainMaterial
;
/** 审批状态:0.待录入审批人 1.待审批 2.待上传培训资料 3.已完成 */
@Excel
(
name
=
"审批状态:0.待录入审批人 1.待审批 2.待上传培训资料 3.已完成"
)
private
String
changeApplyStatus
;
/** 是否删除(0正常,1删除) */
@Excel
(
name
=
"是否删除(0正常,1删除)"
)
private
String
isDel
;
public
void
setChangeApplyId
(
Long
changeApplyId
)
{
this
.
changeApplyId
=
changeApplyId
;
}
public
Long
getChangeApplyId
()
{
return
changeApplyId
;
}
public
void
setChangeUnit
(
String
changeUnit
)
{
this
.
changeUnit
=
changeUnit
;
}
public
String
getChangeUnit
()
{
return
changeUnit
;
}
public
void
setChangeProjectName
(
String
changeProjectName
)
{
this
.
changeProjectName
=
changeProjectName
;
}
public
String
getChangeProjectName
()
{
return
changeProjectName
;
}
public
void
setTableData
(
String
tableData
)
{
this
.
tableData
=
tableData
;
}
public
String
getTableData
()
{
return
tableData
;
}
public
void
setEnterPerson
(
Long
enterPerson
)
{
this
.
enterPerson
=
enterPerson
;
}
public
Long
getEnterPerson
()
{
return
enterPerson
;
}
public
void
setEnterTime
(
Date
enterTime
)
{
this
.
enterTime
=
enterTime
;
}
public
Date
getEnterTime
()
{
return
enterTime
;
}
public
void
setTrainMaterial
(
String
trainMaterial
)
{
this
.
trainMaterial
=
trainMaterial
;
}
public
String
getTrainMaterial
()
{
return
trainMaterial
;
}
public
void
setChangeApplyStatus
(
String
changeApplyStatus
)
{
this
.
changeApplyStatus
=
changeApplyStatus
;
}
public
String
getChangeApplyStatus
()
{
return
changeApplyStatus
;
}
public
void
setIsDel
(
String
isDel
)
{
this
.
isDel
=
isDel
;
}
public
String
getIsDel
()
{
return
isDel
;
}
@Override
public
String
toString
()
{
return
new
ToStringBuilder
(
this
,
ToStringStyle
.
MULTI_LINE_STYLE
)
.
append
(
"changeApplyId"
,
getChangeApplyId
())
.
append
(
"changeUnit"
,
getChangeUnit
())
.
append
(
"changeProjectName"
,
getChangeProjectName
())
.
append
(
"tableData"
,
getTableData
())
.
append
(
"enterPerson"
,
getEnterPerson
())
.
append
(
"enterTime"
,
getEnterTime
())
.
append
(
"trainMaterial"
,
getTrainMaterial
())
.
append
(
"changeApplyStatus"
,
getChangeApplyStatus
())
.
append
(
"isDel"
,
getIsDel
())
.
append
(
"remark"
,
getRemark
())
.
toString
();
}
}
danger-manage-system/src/main/java/com/zehong/system/domain/TChangeApplyApprover.java
0 → 100644
View file @
33c8afe7
package
com
.
zehong
.
system
.
domain
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
import
org.apache.commons.lang3.builder.ToStringStyle
;
import
com.zehong.common.annotation.Excel
;
import
com.zehong.common.core.domain.BaseEntity
;
/**
* 变更申请审批人对象 t_change_apply_approver
*
* @author zehong
* @date 2023-02-14
*/
public
class
TChangeApplyApprover
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/** 申请审批人id */
private
Long
changeApplyApproverId
;
/** 变更申请id */
@Excel
(
name
=
"变更申请id"
)
private
Long
changeApplyId
;
/** 审批人id */
@Excel
(
name
=
"审批人id"
)
private
Long
approvalPerson
;
/** 审批人签名 */
@Excel
(
name
=
"审批人签名"
)
private
String
approvalSign
;
/** 是否删除(0正常,1删除) */
@Excel
(
name
=
"是否删除(0正常,1删除)"
)
private
String
isDel
;
private
String
approvalPersonName
;
public
void
setChangeApplyApproverId
(
Long
changeApplyApproverId
)
{
this
.
changeApplyApproverId
=
changeApplyApproverId
;
}
public
Long
getChangeApplyApproverId
()
{
return
changeApplyApproverId
;
}
public
void
setChangeApplyId
(
Long
changeApplyId
)
{
this
.
changeApplyId
=
changeApplyId
;
}
public
Long
getChangeApplyId
()
{
return
changeApplyId
;
}
public
void
setApprovalPerson
(
Long
approvalPerson
)
{
this
.
approvalPerson
=
approvalPerson
;
}
public
Long
getApprovalPerson
()
{
return
approvalPerson
;
}
public
void
setApprovalSign
(
String
approvalSign
)
{
this
.
approvalSign
=
approvalSign
;
}
public
String
getApprovalSign
()
{
return
approvalSign
;
}
public
void
setIsDel
(
String
isDel
)
{
this
.
isDel
=
isDel
;
}
public
String
getIsDel
()
{
return
isDel
;
}
public
String
getApprovalPersonName
()
{
return
approvalPersonName
;
}
public
void
setApprovalPersonName
(
String
approvalPersonName
)
{
this
.
approvalPersonName
=
approvalPersonName
;
}
@Override
public
String
toString
()
{
return
new
ToStringBuilder
(
this
,
ToStringStyle
.
MULTI_LINE_STYLE
)
.
append
(
"changeApplyApproverId"
,
getChangeApplyApproverId
())
.
append
(
"changeApplyId"
,
getChangeApplyId
())
.
append
(
"approvalPerson"
,
getApprovalPerson
())
.
append
(
"approvalSign"
,
getApprovalSign
())
.
append
(
"isDel"
,
getIsDel
())
.
append
(
"remark"
,
getRemark
())
.
toString
();
}
}
danger-manage-system/src/main/java/com/zehong/system/mapper/TChangeApplyApprovalMapper.java
0 → 100644
View file @
33c8afe7
package
com
.
zehong
.
system
.
mapper
;
import
java.util.List
;
import
com.zehong.system.domain.TChangeApplyApproval
;
/**
* 变更申请审批验收Mapper接口
*
* @author zehong
* @date 2023-02-14
*/
public
interface
TChangeApplyApprovalMapper
{
/**
* 查询变更申请审批验收
*
* @param changeApplyId 变更申请审批验收ID
* @return 变更申请审批验收
*/
public
TChangeApplyApproval
selectTChangeApplyApprovalById
(
Long
changeApplyId
);
/**
* 查询变更申请审批验收列表
*
* @param tChangeApplyApproval 变更申请审批验收
* @return 变更申请审批验收集合
*/
public
List
<
TChangeApplyApproval
>
selectTChangeApplyApprovalList
(
TChangeApplyApproval
tChangeApplyApproval
);
/**
* 新增变更申请审批验收
*
* @param tChangeApplyApproval 变更申请审批验收
* @return 结果
*/
public
int
insertTChangeApplyApproval
(
TChangeApplyApproval
tChangeApplyApproval
);
/**
* 修改变更申请审批验收
*
* @param tChangeApplyApproval 变更申请审批验收
* @return 结果
*/
public
int
updateTChangeApplyApproval
(
TChangeApplyApproval
tChangeApplyApproval
);
/**
* 删除变更申请审批验收
*
* @param changeApplyId 变更申请审批验收ID
* @return 结果
*/
public
int
deleteTChangeApplyApprovalById
(
Long
changeApplyId
);
/**
* 批量删除变更申请审批验收
*
* @param changeApplyIds 需要删除的数据ID
* @return 结果
*/
public
int
deleteTChangeApplyApprovalByIds
(
Long
[]
changeApplyIds
);
}
danger-manage-system/src/main/java/com/zehong/system/mapper/TChangeApplyApproverMapper.java
0 → 100644
View file @
33c8afe7
package
com
.
zehong
.
system
.
mapper
;
import
com.zehong.system.domain.TChangeApplyApprover
;
import
java.util.List
;
/**
* 变更申请审批人Mapper接口
*
* @author zehong
* @date 2023-02-14
*/
public
interface
TChangeApplyApproverMapper
{
/**
* 查询变更申请审批人
*
* @param changeApplyApproverId 变更申请审批人ID
* @return 变更申请审批人
*/
public
TChangeApplyApprover
selectTChangeApplyApproverById
(
Long
changeApplyApproverId
);
/**
* 查询变更申请审批人列表
*
* @param tChangeApplyApprover 变更申请审批人
* @return 变更申请审批人集合
*/
public
List
<
TChangeApplyApprover
>
selectTChangeApplyApproverList
(
TChangeApplyApprover
tChangeApplyApprover
);
/**
* 新增变更申请审批人
*
* @param tChangeApplyApprover 变更申请审批人
* @return 结果
*/
public
int
insertTChangeApplyApprover
(
TChangeApplyApprover
tChangeApplyApprover
);
/**
* 修改变更申请审批人
*
* @param tChangeApplyApprover 变更申请审批人
* @return 结果
*/
public
int
updateTChangeApplyApprover
(
TChangeApplyApprover
tChangeApplyApprover
);
/**
* 删除变更申请审批人
*
* @param changeApplyApproverId 变更申请审批人ID
* @return 结果
*/
public
int
deleteTChangeApplyApproverById
(
Long
changeApplyApproverId
);
/**
* 批量删除变更申请审批人
*
* @param changeApplyApproverIds 需要删除的数据ID
* @return 结果
*/
public
int
deleteTChangeApplyApproverByIds
(
Long
[]
changeApplyApproverIds
);
/**
* 批量新增审批人
* @param changeApplyApproverList 审批人
* @return
*/
int
batchInsertTChangeApplyApprover
(
List
<
TChangeApplyApprover
>
changeApplyApproverList
);
}
danger-manage-system/src/main/java/com/zehong/system/service/ITChangeApplyApprovalService.java
0 → 100644
View file @
33c8afe7
package
com
.
zehong
.
system
.
service
;
import
java.util.List
;
import
com.zehong.system.domain.TChangeApplyApproval
;
/**
* 变更申请审批验收Service接口
*
* @author zehong
* @date 2023-02-14
*/
public
interface
ITChangeApplyApprovalService
{
/**
* 查询变更申请审批验收
*
* @param changeApplyId 变更申请审批验收ID
* @return 变更申请审批验收
*/
public
TChangeApplyApproval
selectTChangeApplyApprovalById
(
Long
changeApplyId
);
/**
* 查询变更申请审批验收列表
*
* @param tChangeApplyApproval 变更申请审批验收
* @return 变更申请审批验收集合
*/
public
List
<
TChangeApplyApproval
>
selectTChangeApplyApprovalList
(
TChangeApplyApproval
tChangeApplyApproval
);
/**
* 新增变更申请审批验收
*
* @param tChangeApplyApproval 变更申请审批验收
* @return 结果
*/
public
int
insertTChangeApplyApproval
(
TChangeApplyApproval
tChangeApplyApproval
);
/**
* 修改变更申请审批验收
*
* @param tChangeApplyApproval 变更申请审批验收
* @return 结果
*/
public
int
updateTChangeApplyApproval
(
TChangeApplyApproval
tChangeApplyApproval
);
/**
* 批量删除变更申请审批验收
*
* @param changeApplyIds 需要删除的变更申请审批验收ID
* @return 结果
*/
public
int
deleteTChangeApplyApprovalByIds
(
Long
[]
changeApplyIds
);
/**
* 删除变更申请审批验收信息
*
* @param changeApplyId 变更申请审批验收ID
* @return 结果
*/
public
int
deleteTChangeApplyApprovalById
(
Long
changeApplyId
);
}
danger-manage-system/src/main/java/com/zehong/system/service/ITChangeApplyApproverService.java
0 → 100644
View file @
33c8afe7
package
com
.
zehong
.
system
.
service
;
import
java.util.List
;
import
com.zehong.system.domain.TChangeApplyApprover
;
/**
* 变更申请审批人Service接口
*
* @author zehong
* @date 2023-02-14
*/
public
interface
ITChangeApplyApproverService
{
/**
* 查询变更申请审批人
*
* @param changeApplyApproverId 变更申请审批人ID
* @return 变更申请审批人
*/
public
TChangeApplyApprover
selectTChangeApplyApproverById
(
Long
changeApplyApproverId
);
/**
* 查询变更申请审批人列表
*
* @param tChangeApplyApprover 变更申请审批人
* @return 变更申请审批人集合
*/
public
List
<
TChangeApplyApprover
>
selectTChangeApplyApproverList
(
TChangeApplyApprover
tChangeApplyApprover
);
/**
* 新增变更申请审批人
*
* @param tChangeApplyApprover 变更申请审批人
* @return 结果
*/
public
int
insertTChangeApplyApprover
(
TChangeApplyApprover
tChangeApplyApprover
);
/**
* 修改变更申请审批人
*
* @param tChangeApplyApprover 变更申请审批人
* @return 结果
*/
public
int
updateTChangeApplyApprover
(
TChangeApplyApprover
tChangeApplyApprover
);
/**
* 批量删除变更申请审批人
*
* @param changeApplyApproverIds 需要删除的变更申请审批人ID
* @return 结果
*/
public
int
deleteTChangeApplyApproverByIds
(
Long
[]
changeApplyApproverIds
);
/**
* 删除变更申请审批人信息
*
* @param changeApplyApproverId 变更申请审批人ID
* @return 结果
*/
public
int
deleteTChangeApplyApproverById
(
Long
changeApplyApproverId
);
/**
* 批量新增审批人
* @param changeApplyApproverList 审批人
* @return
*/
int
batchInsertTChangeApplyApprover
(
List
<
TChangeApplyApprover
>
changeApplyApproverList
);
}
danger-manage-system/src/main/java/com/zehong/system/service/impl/TChangeApplyApprovalServiceImpl.java
0 → 100644
View file @
33c8afe7
package
com
.
zehong
.
system
.
service
.
impl
;
import
java.util.List
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
com.zehong.system.mapper.TChangeApplyApprovalMapper
;
import
com.zehong.system.domain.TChangeApplyApproval
;
import
com.zehong.system.service.ITChangeApplyApprovalService
;
/**
* 变更申请审批验收Service业务层处理
*
* @author zehong
* @date 2023-02-14
*/
@Service
public
class
TChangeApplyApprovalServiceImpl
implements
ITChangeApplyApprovalService
{
@Autowired
private
TChangeApplyApprovalMapper
tChangeApplyApprovalMapper
;
/**
* 查询变更申请审批验收
*
* @param changeApplyId 变更申请审批验收ID
* @return 变更申请审批验收
*/
@Override
public
TChangeApplyApproval
selectTChangeApplyApprovalById
(
Long
changeApplyId
)
{
return
tChangeApplyApprovalMapper
.
selectTChangeApplyApprovalById
(
changeApplyId
);
}
/**
* 查询变更申请审批验收列表
*
* @param tChangeApplyApproval 变更申请审批验收
* @return 变更申请审批验收
*/
@Override
public
List
<
TChangeApplyApproval
>
selectTChangeApplyApprovalList
(
TChangeApplyApproval
tChangeApplyApproval
)
{
return
tChangeApplyApprovalMapper
.
selectTChangeApplyApprovalList
(
tChangeApplyApproval
);
}
/**
* 新增变更申请审批验收
*
* @param tChangeApplyApproval 变更申请审批验收
* @return 结果
*/
@Override
public
int
insertTChangeApplyApproval
(
TChangeApplyApproval
tChangeApplyApproval
)
{
return
tChangeApplyApprovalMapper
.
insertTChangeApplyApproval
(
tChangeApplyApproval
);
}
/**
* 修改变更申请审批验收
*
* @param tChangeApplyApproval 变更申请审批验收
* @return 结果
*/
@Override
public
int
updateTChangeApplyApproval
(
TChangeApplyApproval
tChangeApplyApproval
)
{
return
tChangeApplyApprovalMapper
.
updateTChangeApplyApproval
(
tChangeApplyApproval
);
}
/**
* 批量删除变更申请审批验收
*
* @param changeApplyIds 需要删除的变更申请审批验收ID
* @return 结果
*/
@Override
public
int
deleteTChangeApplyApprovalByIds
(
Long
[]
changeApplyIds
)
{
return
tChangeApplyApprovalMapper
.
deleteTChangeApplyApprovalByIds
(
changeApplyIds
);
}
/**
* 删除变更申请审批验收信息
*
* @param changeApplyId 变更申请审批验收ID
* @return 结果
*/
@Override
public
int
deleteTChangeApplyApprovalById
(
Long
changeApplyId
)
{
return
tChangeApplyApprovalMapper
.
deleteTChangeApplyApprovalById
(
changeApplyId
);
}
}
danger-manage-system/src/main/java/com/zehong/system/service/impl/TChangeApplyApproverServiceImpl.java
0 → 100644
View file @
33c8afe7
package
com
.
zehong
.
system
.
service
.
impl
;
import
java.util.List
;
import
com.zehong.system.domain.TChangeApplyApproval
;
import
com.zehong.system.mapper.TChangeApplyApprovalMapper
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
com.zehong.system.mapper.TChangeApplyApproverMapper
;
import
com.zehong.system.domain.TChangeApplyApprover
;
import
com.zehong.system.service.ITChangeApplyApproverService
;
import
org.springframework.transaction.annotation.Transactional
;
/**
* 变更申请审批人Service业务层处理
*
* @author zehong
* @date 2023-02-14
*/
@Service
public
class
TChangeApplyApproverServiceImpl
implements
ITChangeApplyApproverService
{
@Autowired
private
TChangeApplyApproverMapper
tChangeApplyApproverMapper
;
@Autowired
private
TChangeApplyApprovalMapper
tChangeApplyApprovalMapper
;
/**
* 查询变更申请审批人
*
* @param changeApplyApproverId 变更申请审批人ID
* @return 变更申请审批人
*/
@Override
public
TChangeApplyApprover
selectTChangeApplyApproverById
(
Long
changeApplyApproverId
)
{
return
tChangeApplyApproverMapper
.
selectTChangeApplyApproverById
(
changeApplyApproverId
);
}
/**
* 查询变更申请审批人列表
*
* @param tChangeApplyApprover 变更申请审批人
* @return 变更申请审批人
*/
@Override
public
List
<
TChangeApplyApprover
>
selectTChangeApplyApproverList
(
TChangeApplyApprover
tChangeApplyApprover
)
{
return
tChangeApplyApproverMapper
.
selectTChangeApplyApproverList
(
tChangeApplyApprover
);
}
/**
* 新增变更申请审批人
*
* @param tChangeApplyApprover 变更申请审批人
* @return 结果
*/
@Override
public
int
insertTChangeApplyApprover
(
TChangeApplyApprover
tChangeApplyApprover
)
{
return
tChangeApplyApproverMapper
.
insertTChangeApplyApprover
(
tChangeApplyApprover
);
}
/**
* 修改变更申请审批人
*
* @param tChangeApplyApprover 变更申请审批人
* @return 结果
*/
@Override
public
int
updateTChangeApplyApprover
(
TChangeApplyApprover
tChangeApplyApprover
)
{
return
tChangeApplyApproverMapper
.
updateTChangeApplyApprover
(
tChangeApplyApprover
);
}
/**
* 批量删除变更申请审批人
*
* @param changeApplyApproverIds 需要删除的变更申请审批人ID
* @return 结果
*/
@Override
public
int
deleteTChangeApplyApproverByIds
(
Long
[]
changeApplyApproverIds
)
{
return
tChangeApplyApproverMapper
.
deleteTChangeApplyApproverByIds
(
changeApplyApproverIds
);
}
/**
* 删除变更申请审批人信息
*
* @param changeApplyApproverId 变更申请审批人ID
* @return 结果
*/
@Override
public
int
deleteTChangeApplyApproverById
(
Long
changeApplyApproverId
)
{
return
tChangeApplyApproverMapper
.
deleteTChangeApplyApproverById
(
changeApplyApproverId
);
}
/**
* 批量新增审批人
* @param changeApplyApproverList 审批人
* @return
*/
@Override
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
int
batchInsertTChangeApplyApprover
(
List
<
TChangeApplyApprover
>
changeApplyApproverList
){
TChangeApplyApproval
applyApproval
=
new
TChangeApplyApproval
();
applyApproval
.
setChangeApplyId
(
changeApplyApproverList
.
get
(
0
).
getChangeApplyId
());
applyApproval
.
setChangeApplyStatus
(
"1"
);
tChangeApplyApprovalMapper
.
updateTChangeApplyApproval
(
applyApproval
);
return
tChangeApplyApproverMapper
.
batchInsertTChangeApplyApprover
(
changeApplyApproverList
);
}
}
danger-manage-system/src/main/resources/mapper/system/TChangeApplyApprovalMapper.xml
0 → 100644
View file @
33c8afe7
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.zehong.system.mapper.TChangeApplyApprovalMapper"
>
<resultMap
type=
"TChangeApplyApproval"
id=
"TChangeApplyApprovalResult"
>
<result
property=
"changeApplyId"
column=
"change_apply_id"
/>
<result
property=
"changeUnit"
column=
"change_unit"
/>
<result
property=
"changeProjectName"
column=
"change_project_name"
/>
<result
property=
"tableData"
column=
"table_data"
/>
<result
property=
"enterPerson"
column=
"enter_person"
/>
<result
property=
"enterTime"
column=
"enter_time"
/>
<result
property=
"trainMaterial"
column=
"train_material"
/>
<result
property=
"changeApplyStatus"
column=
"change_apply_status"
/>
<result
property=
"isDel"
column=
"is_del"
/>
<result
property=
"remark"
column=
"remark"
/>
</resultMap>
<sql
id=
"selectTChangeApplyApprovalVo"
>
select change_apply_id, change_unit, change_project_name, table_data, enter_person, enter_time, train_material, change_apply_status, is_del, remark from t_change_apply_approval
</sql>
<select
id=
"selectTChangeApplyApprovalList"
parameterType=
"TChangeApplyApproval"
resultMap=
"TChangeApplyApprovalResult"
>
<include
refid=
"selectTChangeApplyApprovalVo"
/>
<where>
<if
test=
"changeUnit != null and changeUnit != ''"
>
and change_unit = #{changeUnit}
</if>
<if
test=
"changeProjectName != null and changeProjectName != ''"
>
and change_project_name like concat('%', #{changeProjectName}, '%')
</if>
<if
test=
"tableData != null and tableData != ''"
>
and table_data = #{tableData}
</if>
<if
test=
"enterPerson != null "
>
and enter_person = #{enterPerson}
</if>
<if
test=
"enterTime != null "
>
and enter_time = #{enterTime}
</if>
<if
test=
"trainMaterial != null and trainMaterial != ''"
>
and train_material = #{trainMaterial}
</if>
<if
test=
"changeApplyStatus != null and changeApplyStatus != ''"
>
and change_apply_status = #{changeApplyStatus}
</if>
<if
test=
"isDel != null and isDel != ''"
>
and is_del = #{isDel}
</if>
</where>
ORDER BY enter_time DESC
</select>
<select
id=
"selectTChangeApplyApprovalById"
parameterType=
"Long"
resultMap=
"TChangeApplyApprovalResult"
>
<include
refid=
"selectTChangeApplyApprovalVo"
/>
where change_apply_id = #{changeApplyId}
</select>
<insert
id=
"insertTChangeApplyApproval"
parameterType=
"TChangeApplyApproval"
useGeneratedKeys=
"true"
keyProperty=
"changeApplyId"
>
insert into t_change_apply_approval
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"changeUnit != null"
>
change_unit,
</if>
<if
test=
"changeProjectName != null"
>
change_project_name,
</if>
<if
test=
"tableData != null"
>
table_data,
</if>
<if
test=
"enterPerson != null"
>
enter_person,
</if>
<if
test=
"enterTime != null"
>
enter_time,
</if>
<if
test=
"trainMaterial != null"
>
train_material,
</if>
<if
test=
"changeApplyStatus != null"
>
change_apply_status,
</if>
<if
test=
"isDel != null"
>
is_del,
</if>
<if
test=
"remark != null"
>
remark,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"changeUnit != null"
>
#{changeUnit},
</if>
<if
test=
"changeProjectName != null"
>
#{changeProjectName},
</if>
<if
test=
"tableData != null"
>
#{tableData},
</if>
<if
test=
"enterPerson != null"
>
#{enterPerson},
</if>
<if
test=
"enterTime != null"
>
#{enterTime},
</if>
<if
test=
"trainMaterial != null"
>
#{trainMaterial},
</if>
<if
test=
"changeApplyStatus != null"
>
#{changeApplyStatus},
</if>
<if
test=
"isDel != null"
>
#{isDel},
</if>
<if
test=
"remark != null"
>
#{remark},
</if>
</trim>
</insert>
<update
id=
"updateTChangeApplyApproval"
parameterType=
"TChangeApplyApproval"
>
update t_change_apply_approval
<trim
prefix=
"SET"
suffixOverrides=
","
>
<if
test=
"changeUnit != null"
>
change_unit = #{changeUnit},
</if>
<if
test=
"changeProjectName != null"
>
change_project_name = #{changeProjectName},
</if>
<if
test=
"tableData != null"
>
table_data = #{tableData},
</if>
<if
test=
"enterPerson != null"
>
enter_person = #{enterPerson},
</if>
<if
test=
"enterTime != null"
>
enter_time = #{enterTime},
</if>
<if
test=
"trainMaterial != null"
>
train_material = #{trainMaterial},
</if>
<if
test=
"changeApplyStatus != null"
>
change_apply_status = #{changeApplyStatus},
</if>
<if
test=
"isDel != null"
>
is_del = #{isDel},
</if>
<if
test=
"remark != null"
>
remark = #{remark},
</if>
</trim>
where change_apply_id = #{changeApplyId}
</update>
<delete
id=
"deleteTChangeApplyApprovalById"
parameterType=
"Long"
>
delete from t_change_apply_approval where change_apply_id = #{changeApplyId}
</delete>
<delete
id=
"deleteTChangeApplyApprovalByIds"
parameterType=
"String"
>
delete from t_change_apply_approval where change_apply_id in
<foreach
item=
"changeApplyId"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
#{changeApplyId}
</foreach>
</delete>
</mapper>
\ No newline at end of file
danger-manage-system/src/main/resources/mapper/system/TChangeApplyApproverMapper.xml
0 → 100644
View file @
33c8afe7
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.zehong.system.mapper.TChangeApplyApproverMapper"
>
<resultMap
type=
"TChangeApplyApprover"
id=
"TChangeApplyApproverResult"
>
<result
property=
"changeApplyApproverId"
column=
"change_apply_approver_id"
/>
<result
property=
"changeApplyId"
column=
"change_apply_id"
/>
<result
property=
"approvalPerson"
column=
"approval_person"
/>
<result
property=
"approvalSign"
column=
"approval_sign"
/>
<result
property=
"isDel"
column=
"is_del"
/>
<result
property=
"remark"
column=
"remark"
/>
</resultMap>
<sql
id=
"selectTChangeApplyApproverVo"
>
select change_apply_approver_id, change_apply_id, approval_person, approval_sign, is_del, remark from t_change_apply_approver
</sql>
<select
id=
"selectTChangeApplyApproverList"
parameterType=
"TChangeApplyApprover"
resultMap=
"TChangeApplyApproverResult"
>
<include
refid=
"selectTChangeApplyApproverVo"
/>
<where>
<if
test=
"changeApplyId != null "
>
and change_apply_id = #{changeApplyId}
</if>
<if
test=
"approvalPerson != null "
>
and approval_person = #{approvalPerson}
</if>
<if
test=
"approvalSign != null and approvalSign != ''"
>
and approval_sign = #{approvalSign}
</if>
<if
test=
"isDel != null and isDel != ''"
>
and is_del = #{isDel}
</if>
</where>
</select>
<select
id=
"selectTChangeApplyApproverById"
parameterType=
"Long"
resultMap=
"TChangeApplyApproverResult"
>
<include
refid=
"selectTChangeApplyApproverVo"
/>
where change_apply_approver_id = #{changeApplyApproverId}
</select>
<insert
id=
"insertTChangeApplyApprover"
parameterType=
"TChangeApplyApprover"
useGeneratedKeys=
"true"
keyProperty=
"changeApplyApproverId"
>
insert into t_change_apply_approver
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"changeApplyId != null"
>
change_apply_id,
</if>
<if
test=
"approvalPerson != null"
>
approval_person,
</if>
<if
test=
"approvalSign != null"
>
approval_sign,
</if>
<if
test=
"isDel != null"
>
is_del,
</if>
<if
test=
"remark != null"
>
remark,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"changeApplyId != null"
>
#{changeApplyId},
</if>
<if
test=
"approvalPerson != null"
>
#{approvalPerson},
</if>
<if
test=
"approvalSign != null"
>
#{approvalSign},
</if>
<if
test=
"isDel != null"
>
#{isDel},
</if>
<if
test=
"remark != null"
>
#{remark},
</if>
</trim>
</insert>
<update
id=
"updateTChangeApplyApprover"
parameterType=
"TChangeApplyApprover"
>
update t_change_apply_approver
<trim
prefix=
"SET"
suffixOverrides=
","
>
<if
test=
"changeApplyId != null"
>
change_apply_id = #{changeApplyId},
</if>
<if
test=
"approvalPerson != null"
>
approval_person = #{approvalPerson},
</if>
<if
test=
"approvalSign != null"
>
approval_sign = #{approvalSign},
</if>
<if
test=
"isDel != null"
>
is_del = #{isDel},
</if>
<if
test=
"remark != null"
>
remark = #{remark},
</if>
</trim>
where change_apply_approver_id = #{changeApplyApproverId}
</update>
<delete
id=
"deleteTChangeApplyApproverById"
parameterType=
"Long"
>
delete from t_change_apply_approver where change_apply_approver_id = #{changeApplyApproverId}
</delete>
<delete
id=
"deleteTChangeApplyApproverByIds"
parameterType=
"String"
>
delete from t_change_apply_approver where change_apply_approver_id in
<foreach
item=
"changeApplyApproverId"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
#{changeApplyApproverId}
</foreach>
</delete>
<insert
id=
"batchInsertTChangeApplyApprover"
>
insert into t_change_apply_approver(change_apply_id,approval_person) VALUES
<foreach
item=
"item"
index=
"index"
collection=
"list"
separator=
","
>
(#{item.changeApplyId},#{item.approvalPerson})
</foreach>
</insert>
</mapper>
\ No newline at end of file
danger-manage-web/src/api/deviceManagement/changeApplyApproval.js
0 → 100644
View file @
33c8afe7
import
request
from
'@/utils/request'
// 查询变更申请审批验收列表
export
function
listApproval
(
query
)
{
return
request
({
url
:
'/changeApply/approval/list'
,
method
:
'get'
,
params
:
query
})
}
// 查询变更申请审批验收详细
export
function
getApproval
(
changeApplyId
)
{
return
request
({
url
:
'/changeApply/approval/'
+
changeApplyId
,
method
:
'get'
})
}
// 新增变更申请审批验收
export
function
addApproval
(
data
)
{
return
request
({
url
:
'/changeApply/approval'
,
method
:
'post'
,
data
:
data
})
}
// 修改变更申请审批验收
export
function
updateApproval
(
data
)
{
return
request
({
url
:
'/changeApply/approval'
,
method
:
'put'
,
data
:
data
})
}
// 删除变更申请审批验收
export
function
delApproval
(
changeApplyId
)
{
return
request
({
url
:
'/changeApply/approval/'
+
changeApplyId
,
method
:
'delete'
})
}
// 导出变更申请审批验收
export
function
exportApproval
(
query
)
{
return
request
({
url
:
'/changeApply/approval/export'
,
method
:
'get'
,
params
:
query
})
}
danger-manage-web/src/api/deviceManagement/changeApplyApprover.js
0 → 100644
View file @
33c8afe7
import
request
from
'@/utils/request'
// 查询变更申请审批人列表
export
function
listApprover
(
query
)
{
return
request
({
url
:
'/changeApply/approver/list'
,
method
:
'get'
,
params
:
query
})
}
// 查询变更申请审批人详细
export
function
getApprover
(
changeApplyApproverId
)
{
return
request
({
url
:
'/changeApply/approver/'
+
changeApplyApproverId
,
method
:
'get'
})
}
// 新增变更申请审批人
export
function
addApprover
(
data
)
{
return
request
({
url
:
'/changeApply/approver'
,
method
:
'post'
,
data
:
data
})
}
// 修改变更申请审批人
export
function
updateApprover
(
data
)
{
return
request
({
url
:
'/changeApply/approver'
,
method
:
'put'
,
data
:
data
})
}
// 删除变更申请审批人
export
function
delApprover
(
changeApplyApproverId
)
{
return
request
({
url
:
'/changeApply/approver/'
+
changeApplyApproverId
,
method
:
'delete'
})
}
// 导出变更申请审批人
export
function
exportApprover
(
query
)
{
return
request
({
url
:
'/changeApply/approver/export'
,
method
:
'get'
,
params
:
query
})
}
// 新增变更申请审批人
export
function
batchAddApprover
(
data
)
{
return
request
({
url
:
'/changeApply/approver/batchAdd'
,
method
:
'post'
,
data
:
data
})
}
danger-manage-web/src/components/Video/SplitVideoView.vue
View file @
33c8afe7
...
...
@@ -21,7 +21,6 @@
:playId=
"'play'+num"
:isChoice=
"showVideoNum == num"
:ref=
"'play'+num"
:key=
"Math.random()"
>
</PlayVideo>
...
...
@@ -48,6 +47,17 @@
mounted
(){
this
.
spiltNum
=
4
;
},
watch
:
{
spiltNum
(
newVal
,
oldVal
)
{
this
.
$nextTick
(()
=>
{
/*现在数据已经渲染完毕*/
for
(
var
i
=
1
;
i
<=
this
.
spiltNum
;
i
++
)
{
const
playId
=
"play"
+
i
;
this
.
$refs
[
playId
][
0
].
fit
();
}
});
},
},
computed
:{
countWidth
(){
return
(
this
.
$refs
.
playVideo
.
offsetWidth
-
2
)
/
Math
.
sqrt
(
this
.
spiltNum
)
+
'px'
;
...
...
danger-manage-web/src/views/deviceManagement/changeApplyApproval/components/ApplyTable.vue
0 → 100644
View file @
33c8afe7
<
template
>
<div
class=
"applyTable"
>
<div
class=
"title"
><h3>
石家庄柏坡正元化肥有限公司
</h3></div>
<div
class=
"title"
><h3>
变更申请审批/验收表
</h3></div>
<table>
<tr>
<td
colspan=
"2"
>
变更单位
</td>
<td
colspan=
"2"
><input
v-model=
"applyData.changeUnit"
:disabled=
"readOnly"
class=
"editInput"
/></td>
<td>
变更项目名称
</td>
<td
colspan=
"2"
><input
v-model=
"applyData.changeProjectName"
:disabled=
"readOnly"
class=
"editInput"
/></td>
</tr>
<tr>
<td
colspan=
"2"
>
变更类型
</td>
<td
colspan=
"5"
>
<input
v-model=
"applyData.changeType.technology"
:disabled=
"readOnly"
type=
"checkbox"
/>
工艺、技术、设计变更;
<input
v-model=
"applyData.changeType.deviceMaterial"
:disabled=
"readOnly"
type=
"checkbox"
/>
设备设施材料变更;
<input
v-model=
"applyData.changeType.person"
:disabled=
"readOnly"
type=
"checkbox"
/>
人员变更;
<input
v-model=
"applyData.changeType.manager"
:disabled=
"readOnly"
type=
"checkbox"
/>
管理变更;
<input
v-model=
"applyData.changeType.other"
:disabled=
"readOnly"
type=
"checkbox"
/>
其他变更(
<input
v-model=
"applyData.changeType.otherDetail"
:disabled=
"readOnly"
class=
"editInput"
style=
"width: 50px;height: 20px"
/>
)
</td>
</tr>
<tr>
<td
colspan=
"2"
>
申请部门
</td>
<td><input
v-model=
"applyData.applyDept"
:disabled=
"readOnly"
class=
"editInput"
/></td>
<td>
申请人
</td>
<td><input
v-model=
"applyData.apply"
:disabled=
"readOnly"
class=
"editInput"
/></td>
<td>
申请日期
</td>
<td><input
v-model=
"applyData.applyDate"
:disabled=
"readOnly"
class=
"editInput"
/></td>
</tr>
<tr>
<td
rowspan=
"5"
>
变更申请
</td>
<td
style=
"height: 150px"
>
变更原因
</td>
<td><textarea
v-model=
"applyData.approval.changeReason"
:disabled=
"readOnly"
style=
"height: 99%"
/></td>
<td>
变更依据和内容
</td>
<td
colspan=
"3"
><textarea
v-model=
"applyData.approval.changeContent"
:disabled=
"readOnly"
style=
"height: 99%"
/></td>
</tr>
<tr>
<td>
危险有害因素
</td>
<td>
触发事件
</td>
<td>
后果
</td>
<td>
风险等级
</td>
<td>
预防和控制措施
</td>
<td>
是否需要变更操作规程
</td>
</tr>
<tr>
<td
style=
"height: 100px"
><textarea
v-model=
"applyData.approval.dangerous"
:disabled=
"readOnly"
style=
"height: 99%"
/></td>
<td><textarea
v-model=
"applyData.approval.event"
:disabled=
"readOnly"
style=
"height: 99%"
/></td>
<td><textarea
v-model=
"applyData.approval.result"
:disabled=
"readOnly"
style=
"height: 99%"
/></td>
<td><textarea
v-model=
"applyData.approval.dangerousLevel"
:disabled=
"readOnly"
style=
"height: 99%"
/></td>
<td><textarea
v-model=
"applyData.approval.measure"
:disabled=
"readOnly"
style=
"height: 99%"
/></td>
<td><textarea
v-model=
"applyData.approval.operator"
:disabled=
"readOnly"
style=
"height: 99%"
/></td>
</tr>
<tr>
<td>
风险分析人
</td>
<td
colspan=
"5"
>
<div
style=
"display: flex;flex-direction: row"
><span
style=
"width: 50px"
>
签字:
</span><input
v-model=
"applyData.approval.analyse.sign"
:disabled=
"readOnly"
class=
"editInput"
/></div>
<div
style=
"float: right;margin-right: 20px"
><input
v-model=
"applyData.approval.analyse.year"
:disabled=
"readOnly"
class=
"editInput"
style=
"width: 50px"
/>
年
<input
v-model=
"applyData.approval.analyse.month"
:disabled=
"readOnly"
class=
"editInput"
style=
"width: 30px"
/>
月
<input
v-model=
"applyData.approval.analyse.day"
:disabled=
"readOnly"
class=
"editInput"
style=
"width: 30px"
/>
日
</div>
</td>
</tr>
<tr>
<td>
申请部门负责人意见
</td>
<td
colspan=
"5"
>
<div
style=
"display: flex;flex-direction: row"
><span
style=
"width: 50px"
>
签字:
</span><input
v-model=
"applyData.approval.applyDeptSuggstion.sign"
:disabled=
"readOnly"
class=
"editInput"
/></div>
<div
style=
"float: right;margin-right: 20px"
><input
v-model=
"applyData.approval.applyDeptSuggstion.year"
:disabled=
"readOnly"
class=
"editInput"
style=
"width: 50px"
/>
年
<input
v-model=
"applyData.approval.applyDeptSuggstion.month"
:disabled=
"readOnly"
class=
"editInput"
style=
"width: 30px"
/>
月
<input
v-model=
"applyData.approval.applyDeptSuggstion.day"
:disabled=
"readOnly"
class=
"editInput"
style=
"width: 30px"
/>
日
</div>
</td>
</tr>
<tr>
<td
rowspan=
"2"
>
变更审批
</td>
<td>
主管部门意见
</td>
<td
colspan=
"5"
>
<div
style=
"display: flex;flex-direction: row;"
>
<div
style=
"display: flex;flex-direction: row"
><span
style=
"width: 50px"
>
设备:
</span><input
v-model=
"applyData.approver.masterSuggstion.device"
:disabled=
"readOnly"
class=
"editInput"
/></div>
<div
style=
"display: flex;flex-direction: row"
><span
style=
"width: 50px"
>
生产:
</span><input
v-model=
"applyData.approver.masterSuggstion.produce"
:disabled=
"readOnly"
class=
"editInput"
/></div>
<div
style=
"display: flex;flex-direction: row"
><span
style=
"width: 50px"
>
安全:
</span><input
v-model=
"applyData.approver.masterSuggstion.safe"
:disabled=
"readOnly"
class=
"editInput"
/></div>
</div>
<div
style=
"float: right;margin-right: 20px"
><input
v-model=
"applyData.approver.masterSuggstion.year"
:disabled=
"readOnly"
class=
"editInput"
style=
"width: 50px"
/>
年
<input
v-model=
"applyData.approver.masterSuggstion.month"
:disabled=
"readOnly"
class=
"editInput"
style=
"width: 30px"
/>
月
<input
v-model=
"applyData.approver.masterSuggstion.day"
:disabled=
"readOnly"
class=
"editInput"
style=
"width: 30px"
/>
日
</div>
</td>
</tr>
<tr>
<td>
公司分管领导意见
</td>
<td
colspan=
"3"
><input
v-model=
"applyData.approver.cantonalLeaders.suggstion"
:disabled=
"readOnly"
class=
"editInput"
/></td>
<td
colspan=
"2"
>
<div
style=
"display: flex;flex-direction: row"
>
<span
style=
"width: 50px"
>
签字:
</span>
<input
v-model=
"applyData.approver.cantonalLeaders.sign"
:disabled=
"readOnly"
class=
"editInput"
/>
</div>
<div
style=
"float: right;margin-right: 20px"
><input
v-model=
"applyData.approver.cantonalLeaders.year"
:disabled=
"readOnly"
class=
"editInput"
style=
"width: 50px"
/>
年
<input
v-model=
"applyData.approver.cantonalLeaders.month"
:disabled=
"readOnly"
class=
"editInput"
style=
"width: 30px"
/>
月
<input
v-model=
"applyData.approver.cantonalLeaders.day"
:disabled=
"readOnly"
class=
"editInput"
style=
"width: 30px"
/>
日
</div>
</td>
</tr>
<tr>
<td
rowspan=
"2"
>
变更实施
</td>
<td>
实施部门
</td>
<td
colspan=
"2"
><input
v-model=
"applyData.changeMeasure.measureDept"
:disabled=
"readOnly"
class=
"editInput"
/></td>
<td>
实施责任人
</td>
<td
colspan=
"2"
><input
v-model=
"applyData.changeMeasure.measureResponsible"
:disabled=
"readOnly"
class=
"editInput"
/></td>
</tr>
<tr>
<td>
实施结果
</td>
<td
colspan=
"2"
><input
v-model=
"applyData.changeMeasure.measureResult"
:disabled=
"readOnly"
class=
"editInput"
/></td>
<td>
实施时间
</td>
<td
colspan=
"2"
><input
v-model=
"applyData.changeMeasure.year"
:disabled=
"readOnly"
class=
"editInput"
style=
"width: 50px"
/>
年
<input
v-model=
"applyData.changeMeasure.month"
:disabled=
"readOnly"
class=
"editInput"
style=
"width: 30px"
/>
月
<input
v-model=
"applyData.changeMeasure.day"
:disabled=
"readOnly"
class=
"editInput"
style=
"width: 30px"
/>
日
</td>
</tr>
<tr>
<td
rowspan=
"3"
>
变更验收
</td>
<td>
验收部门
</td>
<td><input
v-model=
"applyData.changeCheck.checkDept"
:disabled=
"readOnly"
class=
"editInput"
/></td>
<td>
组织人
</td>
<td><input
v-model=
"applyData.changeCheck.organizer"
:disabled=
"readOnly"
class=
"editInput"
/></td>
<td>
验收日期
</td>
<td><input
v-model=
"applyData.changeCheck.year"
:disabled=
"readOnly"
class=
"editInput"
style=
"width: 40px"
/>
年
<input
v-model=
"applyData.changeCheck.month"
:disabled=
"readOnly"
class=
"editInput"
style=
"width: 20px"
/>
月
<input
v-model=
"applyData.changeCheck.day"
:disabled=
"readOnly"
class=
"editInput"
style=
"width: 20px"
/>
日
</td>
</tr>
<tr>
<td>
验收结论
</td>
<td
colspan=
"5"
><input
v-model=
"applyData.changeCheck.checkResult"
:disabled=
"readOnly"
class=
"editInput"
/></td>
</tr>
<tr>
<td>
验收人员签名
</td>
<td
colspan=
"5"
><input
v-model=
"applyData.changeCheck.checkPersonSign"
:disabled=
"readOnly"
class=
"editInput"
/></td>
</tr>
</table>
</div>
</
template
>
<
script
>
export
default
{
name
:
"apply-table"
,
props
:{
applyData
:{
type
:
Object
,
default
:
()
=>
{
return
{
changeUnit
:
""
,
changeProjectName
:
""
,
changeType
:{
technology
:
false
,
deviceMaterial
:
false
,
person
:
false
,
manager
:
false
,
other
:
false
,
otherDetail
:
""
},
applyDept
:
""
,
apply
:
""
,
applyDate
:
""
,
approval
:{
changeReason
:
""
,
changeContent
:
""
,
dangerous
:
""
,
event
:
""
,
result
:
""
,
dangerousLevel
:
""
,
measure
:
""
,
operator
:
""
,
analyse
:
{
sign
:
""
,
year
:
""
,
month
:
""
,
day
:
""
},
applyDeptSuggstion
:
{
sign
:
""
,
year
:
""
,
month
:
""
,
day
:
""
}
},
approver
:
{
masterSuggstion
:
{
device
:
""
,
produce
:
""
,
safe
:
""
,
year
:
""
,
month
:
""
,
day
:
""
},
cantonalLeaders
:
{
suggstion
:
""
,
sign
:
""
,
year
:
""
,
month
:
""
,
day
:
""
}
},
changeMeasure
:
{
measureDept
:
""
,
measureResponsible
:
""
,
measureResult
:
""
,
year
:
""
,
month
:
""
,
day
:
""
},
changeCheck
:
{
checkDept
:
""
,
organizer
:
""
,
year
:
""
,
month
:
""
,
day
:
""
,
checkResult
:
""
,
checkPersonSign
:
""
}
};
}
},
readOnly
:{
type
:
Boolean
,
default
:
false
}
},
}
</
script
>
<
style
scoped
lang=
"scss"
>
table
{
border-collapse
:
collapse
;
table-layout
:
fixed
;
text-align
:
center
;
width
:
100%
;
}
table
td
,
table
th
{
border
:
1px
solid
;
height
:
30px
;
}
.editInput
{
border
:
none
;
width
:
100%
;
height
:
100%
;
text-align
:
center
;
}
.editInput
:focus
{
outline
:
none
;
}
.editLine
{
border-bottom
:
1px
solid
;
border-top
:
none
;
border-left
:
none
;
border-right
:
none
;
text-align
:
center
;
}
.editLine
:focus
{
outline
:
none
;
}
textarea
{
height
:
100%
;
width
:
100%
;
border
:
none
;
resize
:none
;
}
textarea
:focus
{
outline
:
none
;
}
.title
{
text-align
:
center
;
}
.applyTable
{
height
:
400px
;
overflow-y
:
scroll
;
}
.
applyTable
:
:-
webkit-scrollbar
{
width
:
4px
;
}
.
applyTable
:
:-
webkit-scrollbar-thumb
{
border-radius
:
10px
;
box-shadow
:
inset
0
0
5px
rgba
(
0
,
0
,
0
,
0
.2
);
background
:
rgba
(
0
,
0
,
0
,
0
.2
);
}
.
applyTable
:
:-
webkit-scrollbar-track
{
box-shadow
:
inset
0
0
5px
rgba
(
0
,
0
,
0
,
0
.2
);
border-radius
:
0
;
background
:
rgba
(
0
,
0
,
0
,
0
.1
);
}
</
style
>
danger-manage-web/src/views/deviceManagement/changeApplyApproval/components/UploadMaterials.vue
0 → 100644
View file @
33c8afe7
<
template
>
<el-upload
class=
"upload-demo"
:action=
"uploadFileUrl"
:before-upload=
"handleBeforeUpload"
:on-preview=
"handlePreview"
:on-remove=
"handleRemove"
:fileType=
"fileType"
:limit=
"1"
:on-exceed=
"handleExceed"
:on-success=
"handleUploadSuccess"
:show-file-list=
"false"
:headers=
"headers"
:file-list=
"fileList"
>
<el-button
size=
"small"
type=
"text"
icon=
"el-icon-upload"
>
上传培训资料
</el-button>
<!--
<div
slot=
"tip"
class=
"el-upload__tip"
>
只能上传jpg/png文件,且不超过500kb
</div>
-->
</el-upload>
</
template
>
<
script
>
import
{
getToken
}
from
"@/utils/auth"
;
import
{
updateApproval
}
from
"@/api/deviceManagement/changeApplyApproval"
;
export
default
{
name
:
"upload-materials"
,
props
:{
changeApplyId
:{
type
:
Number
,
},
},
data
()
{
return
{
uploadFileUrl
:
process
.
env
.
VUE_APP_BASE_API
+
"/common/upload"
,
// 上传的图片服务器地址
headers
:
{
Authorization
:
"Bearer "
+
getToken
(),
},
fileList
:
[],
fileType
:
[
"doc"
,
"xls"
,
"ppt"
,
"txt"
,
"pdf"
]
};
},
methods
:
{
// 上传前校检格式和大小
handleBeforeUpload
(
file
)
{
// 校检文件类型
if
(
this
.
fileType
)
{
let
fileExtension
=
""
;
if
(
file
.
name
.
lastIndexOf
(
"."
)
>
-
1
)
{
fileExtension
=
file
.
name
.
slice
(
file
.
name
.
lastIndexOf
(
"."
)
+
1
);
}
const
isTypeOk
=
this
.
fileType
.
some
((
type
)
=>
{
if
(
file
.
type
.
indexOf
(
type
)
>
-
1
)
return
true
;
if
(
fileExtension
&&
fileExtension
.
indexOf
(
type
)
>
-
1
)
return
true
;
return
false
;
});
if
(
!
isTypeOk
)
{
this
.
$message
.
error
(
`文件格式不正确, 请上传
${
this
.
fileType
.
join
(
"/"
)}
格式文件!`
);
return
false
;
}
}
// 校检文件大小
if
(
this
.
fileSize
)
{
const
isLt
=
file
.
size
/
1024
/
1024
<
this
.
fileSize
;
if
(
!
isLt
)
{
this
.
$message
.
error
(
`上传文件大小不能超过
${
this
.
fileSize
}
MB!`
);
return
false
;
}
}
return
true
;
},
handleRemove
(
file
,
fileList
)
{
console
.
log
(
file
,
fileList
);
},
handlePreview
(
file
)
{
console
.
log
(
file
);
},
handleExceed
(
files
,
fileList
)
{
this
.
$message
.
warning
(
`当前限制选择 1 个文件,本次选择了
${
files
.
length
}
个文件,共选择了
${
files
.
length
+
fileList
.
length
}
个文件`
);
},
// 上传成功回调
handleUploadSuccess
(
res
,
file
)
{
updateApproval
({
changeApplyId
:
this
.
changeApplyId
,
trainMaterial
:
res
.
url
,
changeApplyStatus
:
"3"
}).
then
(
res
=>
{
if
(
res
.
code
==
200
){
this
.
$message
.
success
(
"上传成功"
);
this
.
$emit
(
'getList'
);
}
else
{
this
.
$message
.
error
(
"上传失败"
)
}
})
},
}
}
</
script
>
<
style
scoped
lang=
"scss"
>
.upload-demo
{
display
:
inline
;
margin
:
10px
;
}
</
style
>
danger-manage-web/src/views/deviceManagement/changeApplyApproval/index.vue
0 → 100644
View file @
33c8afe7
<
template
>
<div
class=
"app-container"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
:inline=
"true"
v-show=
"showSearch"
label-width=
"68px"
>
<el-form-item
label=
"审批状态"
prop=
"changeApplyStatus"
>
<el-select
v-model=
"queryParams.changeApplyStatus"
placeholder=
"请选择审批状态"
clearable
size=
"small"
>
<el-option
v-for=
"dict in changeApplyStatus"
:key =
"dict.dictValue"
:label =
"dict.dictLabel"
:value =
"dict.dictValue"
/>
</el-select>
</el-form-item>
<el-form-item
label=
"录入时间"
prop=
"enterTime"
>
<el-date-picker
clearable
size=
"small"
v-model=
"queryParams.enterTime"
type=
"date"
value-format=
"yyyy-MM-dd"
placeholder=
"选择录入时间"
>
</el-date-picker>
</el-form-item>
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-search"
size=
"mini"
@
click=
"handleQuery"
>
搜索
</el-button>
<el-button
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"resetQuery"
>
重置
</el-button>
</el-form-item>
</el-form>
<el-row
:gutter=
"10"
class=
"mb8"
>
<el-col
:span=
"1.5"
>
<el-button
type=
"primary"
plain
icon=
"el-icon-plus"
size=
"mini"
@
click=
"handleAdd"
v-hasPermi=
"['system:approval:add']"
>
新增
</el-button>
</el-col>
<!--
<el-col
:span=
"1.5"
>
<el-button
type=
"success"
plain
icon=
"el-icon-edit"
size=
"mini"
:disabled=
"single"
@
click=
"handleUpdate"
v-hasPermi=
"['system:approval:edit']"
>
修改
</el-button>
</el-col>
<el-col
:span=
"1.5"
>
<el-button
type=
"danger"
plain
icon=
"el-icon-delete"
size=
"mini"
:disabled=
"multiple"
@
click=
"handleDelete"
v-hasPermi=
"['system:approval:remove']"
>
删除
</el-button>
</el-col>
<el-col
:span=
"1.5"
>
<el-button
type=
"warning"
plain
icon=
"el-icon-download"
size=
"mini"
:loading=
"exportLoading"
@
click=
"handleExport"
v-hasPermi=
"['system:approval:export']"
>
导出
</el-button>
</el-col>
-->
<right-toolbar
:showSearch
.
sync=
"showSearch"
@
queryTable=
"getList"
></right-toolbar>
</el-row>
<el-table
v-loading=
"loading"
:data=
"approvalList"
>
<!--
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
/>
-->
<el-table-column
label=
"变更单位"
align=
"center"
prop=
"changeUnit"
/>
<el-table-column
label=
"变更项目名称"
align=
"center"
prop=
"changeProjectName"
/>
<el-table-column
label=
"审批状态"
align=
"center"
prop=
"changeApplyStatus"
:formatter=
"applyStatusFormate"
/>
<el-table-column
label=
"录入时间"
align=
"center"
prop=
"enterTime"
width=
"180"
>
<template
slot-scope=
"scope"
>
<span>
{{
parseTime
(
scope
.
row
.
enterTime
,
'{y
}
-{m
}
-{d
}
{h
}
:{i
}
:{s
}
'
)
}}
<
/span
>
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"操作"
align
=
"center"
class
-
name
=
"small-padding fixed-width"
>
<
template
slot
-
scope
=
"scope"
>
<
el
-
button
size
=
"mini"
type
=
"text"
icon
=
"el-icon-document"
@
click
=
"applyApprovalDetail(scope.row)"
>
详情
<
/el-button
>
<
el
-
button
size
=
"mini"
type
=
"text"
icon
=
"el-icon-edit"
@
click
=
"handleUpdate(scope.row)"
v
-
if
=
"scope.row.changeApplyStatus == '0'"
v
-
hasPermi
=
"['system:approval:edit']"
>
修改
<
/el-button
>
<
el
-
button
size
=
"mini"
type
=
"text"
icon
=
"el-icon-edit"
v
-
if
=
"scope.row.changeApplyStatus == '0'"
@
click
=
"enterApprover(scope.row)"
>
录入审批人
<
/el-button
>
<
UploadMaterials
v
-
if
=
"scope.row.changeApplyStatus == '2'"
@
getList
=
"getList"
:
changeApplyId
=
"scope.row.changeApplyId"
/>
<
el
-
button
size
=
"mini"
type
=
"text"
icon
=
"el-icon-delete"
@
click
=
"handleDelete(scope.row)"
v
-
hasPermi
=
"['system:approval:remove']"
>
删除
<
/el-button
>
<
/template
>
<
/el-table-column
>
<
/el-table
>
<
pagination
v
-
show
=
"total>0"
:
total
=
"total"
:
page
.
sync
=
"queryParams.pageNum"
:
limit
.
sync
=
"queryParams.pageSize"
@
pagination
=
"getList"
/>
<!--
添加或修改变更申请审批验收对话框
-->
<
el
-
dialog
:
title
=
"title"
:
visible
.
sync
=
"open"
width
=
"1000px"
append
-
to
-
body
:
close
-
on
-
click
-
modal
=
"false"
>
<
ApplyTable
:
applyData
=
"tableData"
:
readOnly
=
"readOnly"
/>
<
div
slot
=
"footer"
class
=
"dialog-footer"
>
<
el
-
button
type
=
"primary"
@
click
=
"submitForm"
>
确
定
<
/el-button
>
<
el
-
button
@
click
=
"cancel"
>
取
消
<
/el-button
>
<
/div
>
<
/el-dialog
>
<!--
申请详情
-->
<
el
-
dialog
title
=
"详情"
:
visible
.
sync
=
"detailOpen"
width
=
"1000px"
append
-
to
-
body
:
close
-
on
-
click
-
modal
=
"false"
>
<
ApplyTable
:
applyData
=
"tableData"
:
readOnly
=
"readOnly"
/>
<
el
-
row
style
=
"margin-top: 20px"
>
<
el
-
col
:
span
=
"12"
>
<
div
><
span
style
=
"font-size: 15px;font-weight: bold"
>
录入人
:
<
/span><span style="margin-left: 30px">{{this.form.enterPerson
}}
</
span
><
/div
>
<
/el-col
>
<
el
-
col
:
span
=
"12"
>
<
div
><
span
style
=
"font-size: 15px;font-weight: bold"
>
录入时间
:
<
/span><span style="margin-left: 30px">{{this.form.enterTime
}}
</
span
><
/div
>
<
/el-col
>
<
/el-row
>
<
div
style
=
"margin-top: 20px"
v
-
if
=
"approverList.length>0"
>
<
span
style
=
"font-weight: bold;font-size: 16px;"
>
审批人和签名
<
/span
>
<
el
-
table
v
-
loading
=
"loading"
:
data
=
"approverList"
style
=
"margin-top: 10px"
>
<
el
-
table
-
column
label
=
"审批人"
align
=
"center"
prop
=
"approvalPersonName"
/>
<
el
-
table
-
column
label
=
"签名"
align
=
"center"
prop
=
"approvalSign"
>
<
template
slot
-
scope
=
"scope"
>
<
el
-
image
v
-
if
=
"scope.row.approvalSign != null"
style
=
"height: 30px;width: 30px"
size
=
"small"
:
preview
-
src
-
list
=
"[scope.row.approvalSign]"
:
src
=
"scope.row.approvalSign"
><
/el-image
>
<
span
v
-
else
>-<
/span
>
<
/template
>
<
/el-table-column
>
<
/el-table
>
<
/div
>
<
div
slot
=
"footer"
class
=
"dialog-footer"
>
<
el
-
button
@
click
=
"detailOpen = false"
>
取
消
<
/el-button
>
<
/div
>
<
/el-dialog
>
<!--
选择审核人员
-->
<
el
-
dialog
title
=
"录入审批人"
:
visible
.
sync
=
"enterOpen"
width
=
"1000px"
append
-
to
-
body
:
close
-
on
-
click
-
modal
=
"false"
>
<
ChangePapel
ref
=
"changePaple"
:
jsonSelectNameList
=
"jsonSelectNameList"
@
getPeopleList
=
"getPeopleList"
/>
<
div
slot
=
"footer"
class
=
"dialog-footer"
>
<
el
-
button
type
=
"primary"
@
click
=
"submitApprover"
>
确
定
<
/el-button
>
<
el
-
button
@
click
=
"enterOpen = false"
>
取
消
<
/el-button
>
<
/div
>
<
/el-dialog
>
<
/div
>
<
/template
>
<
script
>
import
{
listApproval
,
getApproval
,
delApproval
,
addApproval
,
updateApproval
,
exportApproval
}
from
"@/api/deviceManagement/changeApplyApproval"
;
import
ApplyTable
from
"./components/ApplyTable"
;
import
ChangePapel
from
"@/components/PeopleChange"
;
import
UploadMaterials
from
"./components/UploadMaterials"
;
import
{
batchAddApprover
,
listApprover
}
from
"@/api/deviceManagement/changeApplyApprover"
;
import
{
getUser
}
from
"@/api/system/user"
export
default
{
name
:
"Approval"
,
components
:
{
ApplyTable
,
ChangePapel
,
UploadMaterials
}
,
data
()
{
return
{
// 遮罩层
loading
:
true
,
// 导出遮罩层
exportLoading
:
false
,
// 选中数组
ids
:
[],
// 非单个禁用
single
:
true
,
// 非多个禁用
multiple
:
true
,
// 显示搜索条件
showSearch
:
true
,
// 总条数
total
:
0
,
// 变更申请审批验收表格数据
approvalList
:
[],
// 弹出层标题
title
:
""
,
// 是否显示弹出层
open
:
false
,
// 查询参数
queryParams
:
{
pageNum
:
1
,
pageSize
:
10
,
changeUnit
:
null
,
changeProjectName
:
null
,
tableData
:
null
,
enterPerson
:
null
,
enterTime
:
null
,
changeApplyStatus
:
null
,
isDel
:
null
,
}
,
// 表单参数
form
:
{
}
,
// 表单校验
rules
:
{
}
,
changeApplyStatus
:[],
tableData
:{
changeUnit
:
""
,
changeProjectName
:
""
,
changeType
:{
technology
:
false
,
deviceMaterial
:
false
,
person
:
false
,
manager
:
false
,
other
:
false
,
otherDetail
:
""
}
,
applyDept
:
""
,
apply
:
""
,
applyDate
:
""
,
approval
:{
changeReason
:
""
,
changeContent
:
""
,
dangerous
:
""
,
event
:
""
,
result
:
""
,
dangerousLevel
:
""
,
measure
:
""
,
operator
:
""
,
analyse
:
{
sign
:
""
,
year
:
""
,
month
:
""
,
day
:
""
}
,
applyDeptSuggstion
:
{
sign
:
""
,
year
:
""
,
month
:
""
,
day
:
""
}
}
,
approver
:
{
masterSuggstion
:
{
device
:
""
,
produce
:
""
,
safe
:
""
,
year
:
""
,
month
:
""
,
day
:
""
}
,
cantonalLeaders
:
{
suggstion
:
""
,
sign
:
""
,
year
:
""
,
month
:
""
,
day
:
""
}
}
,
changeMeasure
:
{
measureDept
:
""
,
measureResponsible
:
""
,
measureResult
:
""
,
year
:
""
,
month
:
""
,
day
:
""
}
,
changeCheck
:
{
checkDept
:
""
,
organizer
:
""
,
year
:
""
,
month
:
""
,
day
:
""
,
checkResult
:
""
,
checkPersonSign
:
""
}
}
,
readOnly
:
false
,
enterOpen
:
false
,
// 参考人员
jsonSelectNameList
:
null
,
peopleList
:
[],
changeApplyId
:
""
,
detailOpen
:
false
,
approverList
:
[]
}
;
}
,
created
()
{
this
.
getList
();
this
.
getDicts
(
"t_change_apply_status"
).
then
(
response
=>
{
this
.
changeApplyStatus
=
response
.
data
;
}
)
}
,
methods
:
{
/** 查询变更申请审批验收列表 */
getList
()
{
this
.
loading
=
true
;
listApproval
(
this
.
queryParams
).
then
(
response
=>
{
this
.
approvalList
=
response
.
rows
;
this
.
total
=
response
.
total
;
this
.
loading
=
false
;
}
);
}
,
// 取消按钮
cancel
()
{
this
.
open
=
false
;
this
.
reset
();
}
,
// 表单重置
reset
()
{
this
.
form
=
{
changeApplyId
:
null
,
changeUnit
:
null
,
changeProjectName
:
null
,
tableData
:
null
,
enterPerson
:
null
,
enterTime
:
null
,
changeApplyStatus
:
"0"
,
isDel
:
null
,
remark
:
null
}
;
this
.
resetForm
(
"form"
);
}
,
resetTableData
(){
this
.
tableData
=
{
changeUnit
:
""
,
changeProjectName
:
""
,
changeType
:{
technology
:
false
,
deviceMaterial
:
false
,
person
:
false
,
manager
:
false
,
other
:
false
,
otherDetail
:
""
}
,
applyDept
:
""
,
apply
:
""
,
applyDate
:
""
,
approval
:{
changeReason
:
""
,
changeContent
:
""
,
dangerous
:
""
,
event
:
""
,
result
:
""
,
dangerousLevel
:
""
,
measure
:
""
,
operator
:
""
,
analyse
:
{
sign
:
""
,
year
:
""
,
month
:
""
,
day
:
""
}
,
applyDeptSuggstion
:
{
sign
:
""
,
year
:
""
,
month
:
""
,
day
:
""
}
}
,
approver
:
{
masterSuggstion
:
{
device
:
""
,
produce
:
""
,
safe
:
""
,
year
:
""
,
month
:
""
,
day
:
""
}
,
cantonalLeaders
:
{
suggstion
:
""
,
sign
:
""
,
year
:
""
,
month
:
""
,
day
:
""
}
}
,
changeMeasure
:
{
measureDept
:
""
,
measureResponsible
:
""
,
measureResult
:
""
,
year
:
""
,
month
:
""
,
day
:
""
}
,
changeCheck
:
{
checkDept
:
""
,
organizer
:
""
,
year
:
""
,
month
:
""
,
day
:
""
,
checkResult
:
""
,
checkPersonSign
:
""
}
}
}
,
/** 搜索按钮操作 */
handleQuery
()
{
this
.
queryParams
.
pageNum
=
1
;
this
.
getList
();
}
,
/** 重置按钮操作 */
resetQuery
()
{
this
.
resetForm
(
"queryForm"
);
this
.
handleQuery
();
}
,
// 多选框选中数据
handleSelectionChange
(
selection
)
{
this
.
ids
=
selection
.
map
(
item
=>
item
.
changeApplyId
)
this
.
single
=
selection
.
length
!==
1
this
.
multiple
=
!
selection
.
length
}
,
/** 新增按钮操作 */
handleAdd
()
{
this
.
reset
();
this
.
open
=
true
;
this
.
readOnly
=
false
;
this
.
resetTableData
();
this
.
title
=
"添加变更申请审批验收"
;
}
,
/** 修改按钮操作 */
handleUpdate
(
row
)
{
this
.
reset
();
this
.
readOnly
=
false
;
const
changeApplyId
=
row
.
changeApplyId
||
this
.
ids
getApproval
(
changeApplyId
).
then
(
response
=>
{
this
.
form
=
response
.
data
;
this
.
tableData
=
JSON
.
parse
(
response
.
data
.
tableData
);
this
.
open
=
true
;
this
.
title
=
"修改变更申请审批验收"
;
}
);
}
,
/** 提交按钮 */
submitForm
()
{
this
.
form
.
changeUnit
=
this
.
tableData
.
changeUnit
;
this
.
form
.
changeProjectName
=
this
.
tableData
.
changeProjectName
;
this
.
form
.
tableData
=
JSON
.
stringify
(
this
.
tableData
);
this
.
form
.
enterPerson
=
this
.
$store
.
state
.
user
.
userId
;
if
(
this
.
form
.
changeApplyId
!=
null
)
{
updateApproval
(
this
.
form
).
then
(
response
=>
{
this
.
msgSuccess
(
"修改成功"
);
this
.
open
=
false
;
this
.
getList
();
}
);
}
else
{
addApproval
(
this
.
form
).
then
(
response
=>
{
this
.
msgSuccess
(
"新增成功"
);
this
.
open
=
false
;
this
.
getList
();
}
);
}
}
,
/** 删除按钮操作 */
handleDelete
(
row
)
{
const
changeApplyIds
=
row
.
changeApplyId
||
this
.
ids
;
this
.
$confirm
(
'是否确认删除变更申请审批验收项目名称为"'
+
row
.
changeProjectName
+
'"的数据项?'
,
"警告"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}
).
then
(
function
()
{
return
delApproval
(
changeApplyIds
);
}
).
then
(()
=>
{
this
.
getList
();
this
.
msgSuccess
(
"删除成功"
);
}
).
catch
(()
=>
{
}
);
}
,
/** 导出按钮操作 */
handleExport
()
{
const
queryParams
=
this
.
queryParams
;
this
.
$confirm
(
'是否确认导出所有变更申请审批验收数据项?'
,
"警告"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}
).
then
(()
=>
{
this
.
exportLoading
=
true
;
return
exportApproval
(
queryParams
);
}
).
then
(
response
=>
{
this
.
download
(
response
.
msg
);
this
.
exportLoading
=
false
;
}
).
catch
(()
=>
{
}
);
}
,
//审核状态
applyStatusFormate
(
row
){
return
this
.
selectDictLabel
(
this
.
changeApplyStatus
,
row
.
changeApplyStatus
);
}
,
//录入审核人
enterApprover
(
row
){
this
.
enterOpen
=
true
;
this
.
$nextTick
(()
=>
{
this
.
$refs
.
changePaple
.
changeNameList
(
this
.
jsonSelectNameList
);
}
)
this
.
changeApplyId
=
row
.
changeApplyId
;
}
,
//提交审核人
submitApprover
(){
let
data
=
[];
for
(
let
i
=
0
;
i
<
this
.
peopleList
.
length
;
i
++
){
const
approver
=
{
}
;
approver
.
changeApplyId
=
this
.
changeApplyId
;
approver
.
approvalPerson
=
this
.
peopleList
[
i
].
peoPleId
;
data
.
push
(
approver
);
}
batchAddApprover
(
data
).
then
(
res
=>
{
if
(
res
.
code
==
200
){
this
.
enterOpen
=
false
;
this
.
getList
();
}
}
)
}
,
// 获取参考人员的list
getPeopleList
(
list
)
{
this
.
peopleList
=
JSON
.
parse
(
list
);
}
,
//详情
applyApprovalDetail
(
row
){
getApproval
(
row
.
changeApplyId
).
then
(
res
=>
{
if
(
res
.
code
==
200
){
this
.
form
=
res
.
data
;
this
.
tableData
=
JSON
.
parse
(
res
.
data
.
tableData
);
this
.
getNickName
(
this
.
form
.
enterPerson
);
this
.
getApprovers
(
row
.
changeApplyId
);
}
}
)
}
,
//获取申请人
getNickName
(
person
){
getUser
(
person
).
then
(
res
=>
{
if
(
res
.
code
==
200
){
this
.
form
.
enterPerson
=
res
.
data
.
nickName
;
this
.
readOnly
=
true
;
this
.
detailOpen
=
true
;
}
}
)
}
,
//获取审核人
getApprovers
(
changeApplyId
){
listApprover
({
changeApplyId
:
changeApplyId
,
pageNum
:
1
,
pageSize
:
9999
}
).
then
(
res
=>
{
if
(
res
.
code
==
200
){
this
.
approverList
=
res
.
rows
}
}
)
}
}
}
;
<
/script
>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment