Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
zh-baseversion-project
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
王浩
zh-baseversion-project
Commits
a267a551
Commit
a267a551
authored
May 20, 2024
by
耿迪迪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
检查记录
parent
acada1cf
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
1406 additions
and
0 deletions
+1406
-0
TInsRecInforController.java
...ng/web/controller/supervision/TInsRecInforController.java
+103
-0
TInsRecInfor.java
.../src/main/java/com/zehong/system/domain/TInsRecInfor.java
+261
-0
TInsRecInforMapper.java
...ain/java/com/zehong/system/mapper/TInsRecInforMapper.java
+61
-0
ITInsRecInforService.java
.../java/com/zehong/system/service/ITInsRecInforService.java
+61
-0
TInsRecInforServiceImpl.java
...m/zehong/system/service/impl/TInsRecInforServiceImpl.java
+97
-0
TInsRecInforMapper.xml
...m/src/main/resources/mapper/system/TInsRecInforMapper.xml
+111
-0
record.js
zh-baseversion-web/src/api/supervision/record.js
+53
-0
DetailInfo.vue
...eb/src/views/supervision/record/components/DetailInfo.vue
+145
-0
index.vue
zh-baseversion-web/src/views/supervision/record/index.vue
+514
-0
No files found.
zh-baseversion-admin/src/main/java/com/zehong/web/controller/supervision/TInsRecInforController.java
0 → 100644
View file @
a267a551
package
com
.
zehong
.
web
.
controller
.
supervision
;
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.TInsRecInfor
;
import
com.zehong.system.service.ITInsRecInforService
;
import
com.zehong.common.utils.poi.ExcelUtil
;
import
com.zehong.common.core.page.TableDataInfo
;
/**
* 监督检查-检查记录Controller
*
* @author zehong
* @date 2024-05-20
*/
@RestController
@RequestMapping
(
"/supervision/record"
)
public
class
TInsRecInforController
extends
BaseController
{
@Autowired
private
ITInsRecInforService
tInsRecInforService
;
/**
* 查询监督检查-检查记录列表
*/
@PreAuthorize
(
"@ss.hasPermi('supervision:record:list')"
)
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
TInsRecInfor
tInsRecInfor
)
{
startPage
();
List
<
TInsRecInfor
>
list
=
tInsRecInforService
.
selectTInsRecInforList
(
tInsRecInfor
);
return
getDataTable
(
list
);
}
/**
* 导出监督检查-检查记录列表
*/
@PreAuthorize
(
"@ss.hasPermi('supervision:record:export')"
)
@Log
(
title
=
"监督检查-检查记录"
,
businessType
=
BusinessType
.
EXPORT
)
@GetMapping
(
"/export"
)
public
AjaxResult
export
(
TInsRecInfor
tInsRecInfor
)
{
List
<
TInsRecInfor
>
list
=
tInsRecInforService
.
selectTInsRecInforList
(
tInsRecInfor
);
ExcelUtil
<
TInsRecInfor
>
util
=
new
ExcelUtil
<
TInsRecInfor
>(
TInsRecInfor
.
class
);
return
util
.
exportExcel
(
list
,
"监督检查-检查记录数据"
);
}
/**
* 获取监督检查-检查记录详细信息
*/
@PreAuthorize
(
"@ss.hasPermi('supervision:record:query')"
)
@GetMapping
(
value
=
"/{fInsRecInforId}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"fInsRecInforId"
)
Long
fInsRecInforId
)
{
return
AjaxResult
.
success
(
tInsRecInforService
.
selectTInsRecInforById
(
fInsRecInforId
));
}
/**
* 新增监督检查-检查记录
*/
@PreAuthorize
(
"@ss.hasPermi('supervision:record:add')"
)
@Log
(
title
=
"监督检查-检查记录"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
public
AjaxResult
add
(
@RequestBody
TInsRecInfor
tInsRecInfor
)
{
return
toAjax
(
tInsRecInforService
.
insertTInsRecInfor
(
tInsRecInfor
));
}
/**
* 修改监督检查-检查记录
*/
@PreAuthorize
(
"@ss.hasPermi('supervision:record:edit')"
)
@Log
(
title
=
"监督检查-检查记录"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
public
AjaxResult
edit
(
@RequestBody
TInsRecInfor
tInsRecInfor
)
{
return
toAjax
(
tInsRecInforService
.
updateTInsRecInfor
(
tInsRecInfor
));
}
/**
* 删除监督检查-检查记录
*/
@PreAuthorize
(
"@ss.hasPermi('supervision:record:remove')"
)
@Log
(
title
=
"监督检查-检查记录"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/{fInsRecInforIds}"
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
fInsRecInforIds
)
{
return
toAjax
(
tInsRecInforService
.
deleteTInsRecInforByIds
(
fInsRecInforIds
));
}
}
zh-baseversion-system/src/main/java/com/zehong/system/domain/TInsRecInfor.java
0 → 100644
View file @
a267a551
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_ins_rec_infor
*
* @author zehong
* @date 2024-05-20
*/
public
class
TInsRecInfor
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/** id */
private
Long
fInsRecInforId
;
/** 检查记录编码,实施检查的燃
气主管部门对应 6 位行政区
划编码+4 位年份+6 位顺序
号 */
@Excel
(
name
=
"检查记录编码"
)
private
String
fCheckCode
;
/** 关联的检查任务编码 */
@Excel
(
name
=
"关联的检查任务编码"
)
private
String
fCheckTaskCode
;
/** 县级行政区ID */
@Excel
(
name
=
"县级行政区ID"
)
private
String
fRegionCode
;
/** 检查对象分类,按分类代码表23 分类填写
23-0100 :气代煤
23-0200-0201:传统电代煤
23-0200-0202:石墨烯
23-0200-0203:聚能
23-0200-0204:空气源热泵
23-0200-0205:地源热泵
23-9900-0301:集中供热
23-9900-0302:光伏+
23-9900-0303:光热+
23-9900-0304:醇基燃料
23-9900-0305:生物质 */
@Excel
(
name
=
"检查对象分类"
,
dictType
=
"t_type_code"
)
private
String
fObjectType
;
/** 对象编码 */
@Excel
(
name
=
"对象编码"
)
private
String
fObjectCode
;
/** 检查人员id */
@Excel
(
name
=
"检查人员id"
)
private
String
fCheckUserId
;
/** 检查人员姓名 */
@Excel
(
name
=
"检查人员姓名"
)
private
String
fCheckManName
;
/** 检查人员联系电话 */
@Excel
(
name
=
"检查人员联系电话"
)
private
String
fCheckManPhone
;
/** 检查时间 yyyy-MM-dd hh:mm:ss */
@Excel
(
name
=
"检查时间"
)
private
String
fCheckTime
;
/** 隐患数量,0-无隐患 */
@Excel
(
name
=
"隐患数量"
)
private
String
fHazardsNum
;
/** 是否需执法(1是,0否) */
@Excel
(
name
=
"是否需执法"
,
readConverterExp
=
"1=是,0=否"
)
private
String
fDoscNeedExecute
;
/** 检查单等照片 */
@Excel
(
name
=
"检查单等照片"
)
private
String
fAnnex
;
/** 最后修改时间 yyyy-MM-dd hh:mm:ss */
@Excel
(
name
=
"最后修改时间"
)
private
String
fLastUpdateTime
;
/** 描述 */
@Excel
(
name
=
"描述"
)
private
String
fRemark
;
public
void
setfInsRecInforId
(
Long
fInsRecInforId
)
{
this
.
fInsRecInforId
=
fInsRecInforId
;
}
public
Long
getfInsRecInforId
()
{
return
fInsRecInforId
;
}
public
void
setfCheckCode
(
String
fCheckCode
)
{
this
.
fCheckCode
=
fCheckCode
;
}
public
String
getfCheckCode
()
{
return
fCheckCode
;
}
public
void
setfCheckTaskCode
(
String
fCheckTaskCode
)
{
this
.
fCheckTaskCode
=
fCheckTaskCode
;
}
public
String
getfCheckTaskCode
()
{
return
fCheckTaskCode
;
}
public
void
setfRegionCode
(
String
fRegionCode
)
{
this
.
fRegionCode
=
fRegionCode
;
}
public
String
getfRegionCode
()
{
return
fRegionCode
;
}
public
void
setfObjectType
(
String
fObjectType
)
{
this
.
fObjectType
=
fObjectType
;
}
public
String
getfObjectType
()
{
return
fObjectType
;
}
public
void
setfObjectCode
(
String
fObjectCode
)
{
this
.
fObjectCode
=
fObjectCode
;
}
public
String
getfObjectCode
()
{
return
fObjectCode
;
}
public
void
setfCheckUserId
(
String
fCheckUserId
)
{
this
.
fCheckUserId
=
fCheckUserId
;
}
public
String
getfCheckUserId
()
{
return
fCheckUserId
;
}
public
void
setfCheckManName
(
String
fCheckManName
)
{
this
.
fCheckManName
=
fCheckManName
;
}
public
String
getfCheckManName
()
{
return
fCheckManName
;
}
public
void
setfCheckManPhone
(
String
fCheckManPhone
)
{
this
.
fCheckManPhone
=
fCheckManPhone
;
}
public
String
getfCheckManPhone
()
{
return
fCheckManPhone
;
}
public
void
setfCheckTime
(
String
fCheckTime
)
{
this
.
fCheckTime
=
fCheckTime
;
}
public
String
getfCheckTime
()
{
return
fCheckTime
;
}
public
void
setfHazardsNum
(
String
fHazardsNum
)
{
this
.
fHazardsNum
=
fHazardsNum
;
}
public
String
getfHazardsNum
()
{
return
fHazardsNum
;
}
public
void
setfDoscNeedExecute
(
String
fDoscNeedExecute
)
{
this
.
fDoscNeedExecute
=
fDoscNeedExecute
;
}
public
String
getfDoscNeedExecute
()
{
return
fDoscNeedExecute
;
}
public
void
setfAnnex
(
String
fAnnex
)
{
this
.
fAnnex
=
fAnnex
;
}
public
String
getfAnnex
()
{
return
fAnnex
;
}
public
void
setfLastUpdateTime
(
String
fLastUpdateTime
)
{
this
.
fLastUpdateTime
=
fLastUpdateTime
;
}
public
String
getfLastUpdateTime
()
{
return
fLastUpdateTime
;
}
public
void
setfRemark
(
String
fRemark
)
{
this
.
fRemark
=
fRemark
;
}
public
String
getfRemark
()
{
return
fRemark
;
}
@Override
public
String
toString
()
{
return
new
ToStringBuilder
(
this
,
ToStringStyle
.
MULTI_LINE_STYLE
)
.
append
(
"fInsRecInforId"
,
getfInsRecInforId
())
.
append
(
"fCheckCode"
,
getfCheckCode
())
.
append
(
"fCheckTaskCode"
,
getfCheckTaskCode
())
.
append
(
"fRegionCode"
,
getfRegionCode
())
.
append
(
"fObjectType"
,
getfObjectType
())
.
append
(
"fObjectCode"
,
getfObjectCode
())
.
append
(
"fCheckUserId"
,
getfCheckUserId
())
.
append
(
"fCheckManName"
,
getfCheckManName
())
.
append
(
"fCheckManPhone"
,
getfCheckManPhone
())
.
append
(
"fCheckTime"
,
getfCheckTime
())
.
append
(
"fHazardsNum"
,
getfHazardsNum
())
.
append
(
"fDoscNeedExecute"
,
getfDoscNeedExecute
())
.
append
(
"fAnnex"
,
getfAnnex
())
.
append
(
"fLastUpdateTime"
,
getfLastUpdateTime
())
.
append
(
"fRemark"
,
getfRemark
())
.
toString
();
}
}
zh-baseversion-system/src/main/java/com/zehong/system/mapper/TInsRecInforMapper.java
0 → 100644
View file @
a267a551
package
com
.
zehong
.
system
.
mapper
;
import
java.util.List
;
import
com.zehong.system.domain.TInsRecInfor
;
/**
* 监督检查-检查记录Mapper接口
*
* @author zehong
* @date 2024-05-20
*/
public
interface
TInsRecInforMapper
{
/**
* 查询监督检查-检查记录
*
* @param fInsRecInforId 监督检查-检查记录ID
* @return 监督检查-检查记录
*/
public
TInsRecInfor
selectTInsRecInforById
(
Long
fInsRecInforId
);
/**
* 查询监督检查-检查记录列表
*
* @param tInsRecInfor 监督检查-检查记录
* @return 监督检查-检查记录集合
*/
public
List
<
TInsRecInfor
>
selectTInsRecInforList
(
TInsRecInfor
tInsRecInfor
);
/**
* 新增监督检查-检查记录
*
* @param tInsRecInfor 监督检查-检查记录
* @return 结果
*/
public
int
insertTInsRecInfor
(
TInsRecInfor
tInsRecInfor
);
/**
* 修改监督检查-检查记录
*
* @param tInsRecInfor 监督检查-检查记录
* @return 结果
*/
public
int
updateTInsRecInfor
(
TInsRecInfor
tInsRecInfor
);
/**
* 删除监督检查-检查记录
*
* @param fInsRecInforId 监督检查-检查记录ID
* @return 结果
*/
public
int
deleteTInsRecInforById
(
Long
fInsRecInforId
);
/**
* 批量删除监督检查-检查记录
*
* @param fInsRecInforIds 需要删除的数据ID
* @return 结果
*/
public
int
deleteTInsRecInforByIds
(
Long
[]
fInsRecInforIds
);
}
zh-baseversion-system/src/main/java/com/zehong/system/service/ITInsRecInforService.java
0 → 100644
View file @
a267a551
package
com
.
zehong
.
system
.
service
;
import
java.util.List
;
import
com.zehong.system.domain.TInsRecInfor
;
/**
* 监督检查-检查记录Service接口
*
* @author zehong
* @date 2024-05-20
*/
public
interface
ITInsRecInforService
{
/**
* 查询监督检查-检查记录
*
* @param fInsRecInforId 监督检查-检查记录ID
* @return 监督检查-检查记录
*/
public
TInsRecInfor
selectTInsRecInforById
(
Long
fInsRecInforId
);
/**
* 查询监督检查-检查记录列表
*
* @param tInsRecInfor 监督检查-检查记录
* @return 监督检查-检查记录集合
*/
public
List
<
TInsRecInfor
>
selectTInsRecInforList
(
TInsRecInfor
tInsRecInfor
);
/**
* 新增监督检查-检查记录
*
* @param tInsRecInfor 监督检查-检查记录
* @return 结果
*/
public
int
insertTInsRecInfor
(
TInsRecInfor
tInsRecInfor
);
/**
* 修改监督检查-检查记录
*
* @param tInsRecInfor 监督检查-检查记录
* @return 结果
*/
public
int
updateTInsRecInfor
(
TInsRecInfor
tInsRecInfor
);
/**
* 批量删除监督检查-检查记录
*
* @param fInsRecInforIds 需要删除的监督检查-检查记录ID
* @return 结果
*/
public
int
deleteTInsRecInforByIds
(
Long
[]
fInsRecInforIds
);
/**
* 删除监督检查-检查记录信息
*
* @param fInsRecInforId 监督检查-检查记录ID
* @return 结果
*/
public
int
deleteTInsRecInforById
(
Long
fInsRecInforId
);
}
zh-baseversion-system/src/main/java/com/zehong/system/service/impl/TInsRecInforServiceImpl.java
0 → 100644
View file @
a267a551
package
com
.
zehong
.
system
.
service
.
impl
;
import
java.text.SimpleDateFormat
;
import
java.util.Date
;
import
java.util.List
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
com.zehong.system.mapper.TInsRecInforMapper
;
import
com.zehong.system.domain.TInsRecInfor
;
import
com.zehong.system.service.ITInsRecInforService
;
/**
* 监督检查-检查记录Service业务层处理
*
* @author zehong
* @date 2024-05-20
*/
@Service
public
class
TInsRecInforServiceImpl
implements
ITInsRecInforService
{
@Autowired
private
TInsRecInforMapper
tInsRecInforMapper
;
/**
* 查询监督检查-检查记录
*
* @param fInsRecInforId 监督检查-检查记录ID
* @return 监督检查-检查记录
*/
@Override
public
TInsRecInfor
selectTInsRecInforById
(
Long
fInsRecInforId
)
{
return
tInsRecInforMapper
.
selectTInsRecInforById
(
fInsRecInforId
);
}
/**
* 查询监督检查-检查记录列表
*
* @param tInsRecInfor 监督检查-检查记录
* @return 监督检查-检查记录
*/
@Override
public
List
<
TInsRecInfor
>
selectTInsRecInforList
(
TInsRecInfor
tInsRecInfor
)
{
return
tInsRecInforMapper
.
selectTInsRecInforList
(
tInsRecInfor
);
}
/**
* 新增监督检查-检查记录
*
* @param tInsRecInfor 监督检查-检查记录
* @return 结果
*/
@Override
public
int
insertTInsRecInfor
(
TInsRecInfor
tInsRecInfor
)
{
tInsRecInfor
.
setfLastUpdateTime
(
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
).
format
(
new
Date
()));
return
tInsRecInforMapper
.
insertTInsRecInfor
(
tInsRecInfor
);
}
/**
* 修改监督检查-检查记录
*
* @param tInsRecInfor 监督检查-检查记录
* @return 结果
*/
@Override
public
int
updateTInsRecInfor
(
TInsRecInfor
tInsRecInfor
)
{
tInsRecInfor
.
setfLastUpdateTime
(
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
).
format
(
new
Date
()));
return
tInsRecInforMapper
.
updateTInsRecInfor
(
tInsRecInfor
);
}
/**
* 批量删除监督检查-检查记录
*
* @param fInsRecInforIds 需要删除的监督检查-检查记录ID
* @return 结果
*/
@Override
public
int
deleteTInsRecInforByIds
(
Long
[]
fInsRecInforIds
)
{
return
tInsRecInforMapper
.
deleteTInsRecInforByIds
(
fInsRecInforIds
);
}
/**
* 删除监督检查-检查记录信息
*
* @param fInsRecInforId 监督检查-检查记录ID
* @return 结果
*/
@Override
public
int
deleteTInsRecInforById
(
Long
fInsRecInforId
)
{
return
tInsRecInforMapper
.
deleteTInsRecInforById
(
fInsRecInforId
);
}
}
zh-baseversion-system/src/main/resources/mapper/system/TInsRecInforMapper.xml
0 → 100644
View file @
a267a551
<?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.TInsRecInforMapper"
>
<resultMap
type=
"TInsRecInfor"
id=
"TInsRecInforResult"
>
<result
property=
"fInsRecInforId"
column=
"f_ins_rec_infor_id"
/>
<result
property=
"fCheckCode"
column=
"f_check_code"
/>
<result
property=
"fCheckTaskCode"
column=
"f_check_task_code"
/>
<result
property=
"fRegionCode"
column=
"f_region_code"
/>
<result
property=
"fObjectType"
column=
"f_object_type"
/>
<result
property=
"fObjectCode"
column=
"f_object_code"
/>
<result
property=
"fCheckUserId"
column=
"f_check_user_id"
/>
<result
property=
"fCheckManName"
column=
"f_check_man_name"
/>
<result
property=
"fCheckManPhone"
column=
"f_check_man_phone"
/>
<result
property=
"fCheckTime"
column=
"f_check_time"
/>
<result
property=
"fHazardsNum"
column=
"f_hazards_num"
/>
<result
property=
"fDoscNeedExecute"
column=
"f_dosc_need_execute"
/>
<result
property=
"fAnnex"
column=
"f_annex"
/>
<result
property=
"fLastUpdateTime"
column=
"f_last_update_time"
/>
<result
property=
"fRemark"
column=
"f_remark"
/>
</resultMap>
<sql
id=
"selectTInsRecInforVo"
>
select f_ins_rec_infor_id, f_check_code, f_check_task_code, f_region_code, f_object_type, f_object_code, f_check_user_id, f_check_man_name, f_check_man_phone, f_check_time, f_hazards_num, f_dosc_need_execute, f_annex, f_last_update_time, f_remark from t_ins_rec_infor
</sql>
<select
id=
"selectTInsRecInforList"
parameterType=
"TInsRecInfor"
resultMap=
"TInsRecInforResult"
>
<include
refid=
"selectTInsRecInforVo"
/>
<where>
<if
test=
"fCheckCode != null and fCheckCode != ''"
>
and f_check_code = #{fCheckCode}
</if>
<if
test=
"fObjectType != null and fObjectType != ''"
>
and f_object_type = #{fObjectType}
</if>
<if
test=
"fCheckManName != null and fCheckManName != ''"
>
and f_check_man_name like concat('%', #{fCheckManName}, '%')
</if>
<if
test=
"fCheckManPhone != null and fCheckManPhone != ''"
>
and f_check_man_phone like concat('%', #{fCheckManPhone}, '%')
</if>
</where>
</select>
<select
id=
"selectTInsRecInforById"
parameterType=
"Long"
resultMap=
"TInsRecInforResult"
>
<include
refid=
"selectTInsRecInforVo"
/>
where f_ins_rec_infor_id = #{fInsRecInforId}
</select>
<insert
id=
"insertTInsRecInfor"
parameterType=
"TInsRecInfor"
useGeneratedKeys=
"true"
keyProperty=
"fInsRecInforId"
>
insert into t_ins_rec_infor
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"fCheckCode != null and fCheckCode != ''"
>
f_check_code,
</if>
<if
test=
"fCheckTaskCode != null and fCheckTaskCode != ''"
>
f_check_task_code,
</if>
<if
test=
"fRegionCode != null and fRegionCode != ''"
>
f_region_code,
</if>
<if
test=
"fObjectType != null and fObjectType != ''"
>
f_object_type,
</if>
<if
test=
"fObjectCode != null and fObjectCode != ''"
>
f_object_code,
</if>
<if
test=
"fCheckUserId != null and fCheckUserId != ''"
>
f_check_user_id,
</if>
<if
test=
"fCheckManName != null and fCheckManName != ''"
>
f_check_man_name,
</if>
<if
test=
"fCheckManPhone != null"
>
f_check_man_phone,
</if>
<if
test=
"fCheckTime != null and fCheckTime != ''"
>
f_check_time,
</if>
<if
test=
"fHazardsNum != null"
>
f_hazards_num,
</if>
<if
test=
"fDoscNeedExecute != null"
>
f_dosc_need_execute,
</if>
<if
test=
"fAnnex != null"
>
f_annex,
</if>
<if
test=
"fLastUpdateTime != null"
>
f_last_update_time,
</if>
<if
test=
"fRemark != null"
>
f_remark,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"fCheckCode != null and fCheckCode != ''"
>
#{fCheckCode},
</if>
<if
test=
"fCheckTaskCode != null and fCheckTaskCode != ''"
>
#{fCheckTaskCode},
</if>
<if
test=
"fRegionCode != null and fRegionCode != ''"
>
#{fRegionCode},
</if>
<if
test=
"fObjectType != null and fObjectType != ''"
>
#{fObjectType},
</if>
<if
test=
"fObjectCode != null and fObjectCode != ''"
>
#{fObjectCode},
</if>
<if
test=
"fCheckUserId != null and fCheckUserId != ''"
>
#{fCheckUserId},
</if>
<if
test=
"fCheckManName != null and fCheckManName != ''"
>
#{fCheckManName},
</if>
<if
test=
"fCheckManPhone != null"
>
#{fCheckManPhone},
</if>
<if
test=
"fCheckTime != null and fCheckTime != ''"
>
#{fCheckTime},
</if>
<if
test=
"fHazardsNum != null"
>
#{fHazardsNum},
</if>
<if
test=
"fDoscNeedExecute != null"
>
#{fDoscNeedExecute},
</if>
<if
test=
"fAnnex != null"
>
#{fAnnex},
</if>
<if
test=
"fLastUpdateTime != null"
>
#{fLastUpdateTime},
</if>
<if
test=
"fRemark != null"
>
#{fRemark},
</if>
</trim>
</insert>
<update
id=
"updateTInsRecInfor"
parameterType=
"TInsRecInfor"
>
update t_ins_rec_infor
<trim
prefix=
"SET"
suffixOverrides=
","
>
<if
test=
"fCheckCode != null and fCheckCode != ''"
>
f_check_code = #{fCheckCode},
</if>
<if
test=
"fCheckTaskCode != null and fCheckTaskCode != ''"
>
f_check_task_code = #{fCheckTaskCode},
</if>
<if
test=
"fRegionCode != null and fRegionCode != ''"
>
f_region_code = #{fRegionCode},
</if>
<if
test=
"fObjectType != null and fObjectType != ''"
>
f_object_type = #{fObjectType},
</if>
<if
test=
"fObjectCode != null and fObjectCode != ''"
>
f_object_code = #{fObjectCode},
</if>
<if
test=
"fCheckUserId != null and fCheckUserId != ''"
>
f_check_user_id = #{fCheckUserId},
</if>
<if
test=
"fCheckManName != null and fCheckManName != ''"
>
f_check_man_name = #{fCheckManName},
</if>
<if
test=
"fCheckManPhone != null"
>
f_check_man_phone = #{fCheckManPhone},
</if>
<if
test=
"fCheckTime != null and fCheckTime != ''"
>
f_check_time = #{fCheckTime},
</if>
<if
test=
"fHazardsNum != null"
>
f_hazards_num = #{fHazardsNum},
</if>
<if
test=
"fDoscNeedExecute != null"
>
f_dosc_need_execute = #{fDoscNeedExecute},
</if>
<if
test=
"fAnnex != null"
>
f_annex = #{fAnnex},
</if>
<if
test=
"fLastUpdateTime != null"
>
f_last_update_time = #{fLastUpdateTime},
</if>
<if
test=
"fRemark != null"
>
f_remark = #{fRemark},
</if>
</trim>
where f_ins_rec_infor_id = #{fInsRecInforId}
</update>
<delete
id=
"deleteTInsRecInforById"
parameterType=
"Long"
>
delete from t_ins_rec_infor where f_ins_rec_infor_id = #{fInsRecInforId}
</delete>
<delete
id=
"deleteTInsRecInforByIds"
parameterType=
"String"
>
delete from t_ins_rec_infor where f_ins_rec_infor_id in
<foreach
item=
"fInsRecInforId"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
#{fInsRecInforId}
</foreach>
</delete>
</mapper>
\ No newline at end of file
zh-baseversion-web/src/api/supervision/record.js
0 → 100644
View file @
a267a551
import
request
from
'@/utils/request'
// 查询监督检查-检查记录列表
export
function
listInfor
(
query
)
{
return
request
({
url
:
'/supervision/record/list'
,
method
:
'get'
,
params
:
query
})
}
// 查询监督检查-检查记录详细
export
function
getInfor
(
fInsRecInforId
)
{
return
request
({
url
:
'/supervision/record/'
+
fInsRecInforId
,
method
:
'get'
})
}
// 新增监督检查-检查记录
export
function
addInfor
(
data
)
{
return
request
({
url
:
'/supervision/record'
,
method
:
'post'
,
data
:
data
})
}
// 修改监督检查-检查记录
export
function
updateInfor
(
data
)
{
return
request
({
url
:
'/supervision/record'
,
method
:
'put'
,
data
:
data
})
}
// 删除监督检查-检查记录
export
function
delInfor
(
fInsRecInforId
)
{
return
request
({
url
:
'/supervision/record/'
+
fInsRecInforId
,
method
:
'delete'
})
}
// 导出监督检查-检查记录
export
function
exportInfor
(
query
)
{
return
request
({
url
:
'/supervision/record/export'
,
method
:
'get'
,
params
:
query
})
}
zh-baseversion-web/src/views/supervision/record/components/DetailInfo.vue
0 → 100644
View file @
a267a551
<
template
>
<el-dialog
title=
"详情"
:visible
.
sync=
"detailOpen"
width=
"1000px"
append-to-body
destroy-on-close
:close-on-click-modal=
"false"
>
<el-form
label-width=
"130px"
>
<el-row
class=
"el-row-table"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"检查记录编码"
>
<span
v-if=
"detailInfo.fCheckCode"
>
{{
detailInfo
.
fCheckCode
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"任务编码"
>
<span
v-if=
"detailInfo.fCheckTaskCode"
>
{{
detailInfo
.
fCheckTaskCode
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"县级行政区ID"
>
<span
v-if=
"detailInfo.fRegionCode"
>
{{
detailInfo
.
fRegionCode
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"检查对象分类"
>
<span
v-if=
"detailInfo.fObjectType"
>
{{
detailInfo
.
fObjectType
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"对象编码"
>
<span
v-if=
"detailInfo.fObjectCode"
>
{{
detailInfo
.
fObjectCode
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"检查人员id"
>
<span
v-if=
"detailInfo.fCheckUserId"
>
{{
detailInfo
.
fCheckUserId
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"检查人员姓名"
>
<span
v-if=
"detailInfo.fCheckManName"
>
{{
detailInfo
.
fCheckManName
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item>
<span
v-if=
"detailInfo.fCheckManPhone"
>
{{
detailInfo
.
fCheckManPhone
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"检查时间"
>
<span
v-if=
"detailInfo.fCheckTime"
>
{{
detailInfo
.
fCheckTime
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"隐患数量"
>
<span
v-if=
"detailInfo.fHazardsNum"
>
{{
detailInfo
.
fHazardsNum
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"是否需执法"
>
<span
v-if=
"detailInfo.fDoscNeedExecute"
>
{{
detailInfo
.
fDoscNeedExecute
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"描述"
>
<span
v-if=
"detailInfo.fRemark"
>
{{
detailInfo
.
fRemark
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"修改时间"
>
<span
v-if=
"detailInfo.fLastUpdateTime"
>
{{
detailInfo
.
fLastUpdateTime
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"24"
>
<el-form-item
label=
"检查单等照片"
>
<el-image
:src=
"detailInfo.fAnnex"
:preview-src-list=
"[detailInfo.fAnnex]"
v-if=
"detailInfo.fAnnex != '' && detailInfo.fAnnex != null"
:z-index=
5000
style=
"width: 200px;height: 200px;"
></el-image>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
</el-row>
</el-form>
</el-dialog>
</
template
>
<
script
>
import
{
getInfor
}
from
"@/api/supervision/record"
;
export
default
{
name
:
"detail-info"
,
data
(){
return
{
detailInfo
:
{
fDeleteFlag
:
0
},
detailOpen
:
false
}
},
methods
:{
getDetailInfo
(
id
){
getInfor
(
id
).
then
(
res
=>
{
if
(
res
.
code
==
200
&&
res
.
data
){
this
.
detailInfo
=
res
.
data
;
this
.
detailOpen
=
true
;
}
})
}
}
}
</
script
>
<
style
scoped
>
</
style
>
zh-baseversion-web/src/views/supervision/record/index.vue
0 → 100644
View file @
a267a551
<
template
>
<div
class=
"app-container"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
:inline=
"true"
v-show=
"showSearch"
label-width=
"130px"
>
<el-form-item
label=
"检查记录编码"
prop=
"fCheckCode"
>
<el-input
v-model=
"queryParams.fCheckCode"
placeholder=
"请输入检查记录编码"
clearable
size=
"small"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"检查对象分类"
prop=
"fObjectType"
>
<el-select
v-model=
"queryParams.fObjectType"
placeholder=
"请选择检查对象分类"
clearable
size=
"small"
>
<el-option
v-for=
"dict in fObjectTypeOptions"
:key=
"dict.dictValue"
:label=
"dict.dictLabel"
:value=
"dict.dictValue"
/>
</el-select>
</el-form-item>
<el-form-item
label=
"检查人员姓名"
prop=
"fCheckManName"
>
<el-input
v-model=
"queryParams.fCheckManName"
placeholder=
"请输入检查人员姓名"
clearable
size=
"small"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"检查人员联系电话"
prop=
"fCheckManPhone"
>
<el-input
v-model=
"queryParams.fCheckManPhone"
placeholder=
"请输入检查人员联系电话"
clearable
size=
"small"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</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=
"['supervision:record: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=
"['supervision:record: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=
"['supervision:record: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=
"['supervision:record:export']"
>
导出
</el-button>
</el-col>
<right-toolbar
:showSearch
.
sync=
"showSearch"
@
queryTable=
"getList"
></right-toolbar>
</el-row>
<el-table
v-loading=
"loading"
:data=
"inforList"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
/>
<el-table-column
label=
"检查记录编码"
align=
"center"
prop=
"fCheckCode"
/>
<el-table-column
label=
"任务编码"
align=
"center"
prop=
"fCheckTaskCode"
/>
<el-table-column
label=
"县级行政区ID"
align=
"center"
prop=
"fRegionCode"
/>
<el-table-column
label=
"检查对象分类"
align=
"center"
prop=
"fObjectType"
:formatter=
"fObjectTypeFormat"
/>
<el-table-column
label=
"对象编码"
align=
"center"
prop=
"fObjectCode"
/>
<el-table-column
label=
"检查人员姓名"
align=
"center"
prop=
"fCheckManName"
/>
<el-table-column
label=
"检查人员联系电话"
align=
"center"
prop=
"fCheckManPhone"
>
<template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.fCheckManPhone"
>
{{
scope
.
row
.
fCheckManPhone
}}
</span>
<span
v-else
>
-
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"检查时间"
align=
"center"
prop=
"fCheckTime"
/>
<el-table-column
label=
"隐患数量"
align=
"center"
prop=
"fHazardsNum"
>
<
template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.fHazardsNum"
>
{{
scope
.
row
.
fHazardsNum
}}
</span>
<span
v-else
>
-
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"是否需执法"
align=
"center"
prop=
"fDoscNeedExecute"
>
<
template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.fDoscNeedExecute == '1'"
>
是
</span>
<span
v-else-if=
"scope.row.fDoscNeedExecute == '0'"
>
否
</span>
<span
v-else
>
-
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
width=
"150"
>
<
template
slot-scope=
"scope"
>
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-document"
@
click=
"handleDetail(scope.row)"
v-hasPermi=
"['supervision:record:query']"
>
详情
</el-button>
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-edit"
@
click=
"handleUpdate(scope.row)"
v-hasPermi=
"['supervision:record:edit']"
>
修改
</el-button>
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-delete"
@
click=
"handleDelete(scope.row)"
v-hasPermi=
"['supervision:record: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=
"900px"
append-to-body
destroy-on-close
:close-on-click-modal=
"false"
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"130px"
>
<el-row
class=
"el-row-table"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"检查记录编码"
prop=
"fCheckCode"
>
<el-input
v-model=
"form.fCheckCode"
placeholder=
"请输入检查记录编码"
/>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"任务编码"
prop=
"fCheckTaskCode"
>
<el-select
v-model=
"form.fCheckTaskCode"
placeholder=
"请选择任务编码"
style=
"width: 100%"
>
<el-option
v-for=
"task in taskData"
:key=
"task.fInsTaskInforId"
:label=
"task.fUniqueCode"
:value=
"task.fUniqueCode"
/>
</el-select>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"县级行政区ID"
prop=
"fRegionCode"
>
<el-input
v-model=
"form.fRegionCode"
placeholder=
"请输入县级行政区ID"
/>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"检查对象分类"
prop=
"fObjectType"
>
<el-select
v-model=
"form.fObjectType"
placeholder=
"请选择检查对象分类"
style=
"width: 100%"
>
<el-option
v-for=
"dict in fObjectTypeOptions"
:key=
"dict.dictValue"
:label=
"dict.dictLabel"
:value=
"dict.dictValue"
></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"对象编码"
prop=
"fObjectCode"
>
<el-input
v-model=
"form.fObjectCode"
placeholder=
"请输入对象编码"
/>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"检查人员id"
prop=
"fCheckUserId"
>
<el-input
v-model=
"form.fCheckUserId"
placeholder=
"请输入检查人员id"
/>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"检查人员姓名"
prop=
"fCheckManName"
>
<el-input
v-model=
"form.fCheckManName"
placeholder=
"请输入检查人员姓名"
/>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
:rules=
"{pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/,message: '手机号格式有误!',trigger: 'blur'}"
label=
"检查人员联系电话"
prop=
"fCheckManPhone"
>
<el-input
v-model=
"form.fCheckManPhone"
placeholder=
"请输入检查人员联系电话"
/>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"检查时间"
prop=
"fCheckTime"
>
<el-date-picker
style=
"width: 100%"
v-model=
"form.fCheckTime"
type=
"date"
value-format=
"yyyy-MM-dd"
placeholder=
"选择检查时间"
>
</el-date-picker>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"隐患数量"
prop=
"fHazardsNum"
>
<el-input
v-model=
"form.fHazardsNum"
type=
"number"
placeholder=
"请输入隐患数量"
/>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"是否需执法"
prop=
"fDoscNeedExecute"
>
<el-select
v-model=
"form.fDoscNeedExecute"
placeholder=
"请选择是否需执法"
style=
"width: 100%"
>
<el-option
label=
"否"
value=
"0"
/>
<el-option
label=
"是"
value=
"1"
/>
</el-select>
</el-form-item>
</el-col>
<el-col
:span=
"24"
>
<el-form-item
label=
"检查单等照片"
>
<imageUpload
v-model=
"form.fAnnex"
/>
</el-form-item>
</el-col>
<el-col
:span=
"24"
>
<el-form-item
label=
"描述"
prop=
"fRemark"
>
<el-input
type=
"textarea"
v-model=
"form.fRemark"
placeholder=
"请输入描述"
/>
</el-form-item>
</el-col>
</el-row>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
type=
"primary"
@
click=
"submitForm"
>
确 定
</el-button>
<el-button
@
click=
"cancel"
>
取 消
</el-button>
</div>
</el-dialog>
<!-- 详情 -->
<DetailInfo
ref=
"detail"
/>
</div>
</template>
<
script
>
import
{
listInfor
,
getInfor
,
delInfor
,
addInfor
,
updateInfor
,
exportInfor
}
from
"@/api/supervision/record"
;
import
ImageUpload
from
'@/components/ImageUpload'
;
import
{
taskList
}
from
"@/api/supervision/task"
;
import
DetailInfo
from
"./components/DetailInfo"
;
export
default
{
name
:
"Infor"
,
components
:
{
ImageUpload
,
DetailInfo
},
data
()
{
return
{
// 遮罩层
loading
:
true
,
// 导出遮罩层
exportLoading
:
false
,
// 选中数组
ids
:
[],
// 非单个禁用
single
:
true
,
// 非多个禁用
multiple
:
true
,
// 显示搜索条件
showSearch
:
true
,
// 总条数
total
:
0
,
// 检查记录表格数据
inforList
:
[],
// 弹出层标题
title
:
""
,
// 是否显示弹出层
open
:
false
,
// 检查对象分类
fObjectTypeOptions
:
[],
// 查询参数
queryParams
:
{
pageNum
:
1
,
pageSize
:
10
,
fCheckCode
:
null
,
fObjectType
:
null
,
fCheckManName
:
null
,
fCheckManPhone
:
null
,
},
// 表单参数
form
:
{},
// 表单校验
rules
:
{
fCheckCode
:
[
{
required
:
true
,
message
:
"检查记录编码"
,
trigger
:
"blur"
}
],
fCheckTaskCode
:
[
{
required
:
true
,
message
:
"关联的检查任务编码不能为空"
,
trigger
:
"blur"
}
],
fRegionCode
:
[
{
required
:
true
,
message
:
"县级行政区ID不能为空"
,
trigger
:
"blur"
}
],
fObjectType
:
[
{
required
:
true
,
message
:
"检查对象分类"
,
trigger
:
"change"
}
],
fObjectCode
:
[
{
required
:
true
,
message
:
"对象编码不能为空"
,
trigger
:
"blur"
}
],
fCheckUserId
:
[
{
required
:
true
,
message
:
"检查人员id不能为空"
,
trigger
:
"blur"
}
],
fCheckManName
:
[
{
required
:
true
,
message
:
"检查人员姓名不能为空"
,
trigger
:
"blur"
}
],
fCheckTime
:
[
{
required
:
true
,
message
:
"检查时间不能为空"
,
trigger
:
"blur"
}
],
},
taskData
:
[],
fCheckCodes
:
[],
};
},
created
()
{
this
.
getList
();
this
.
getDicts
(
"t_type_code"
).
then
(
response
=>
{
this
.
fObjectTypeOptions
=
response
.
data
;
});
},
methods
:
{
/** 查询检查记录列表 */
getList
()
{
this
.
loading
=
true
;
listInfor
(
this
.
queryParams
).
then
(
response
=>
{
this
.
inforList
=
response
.
rows
;
this
.
total
=
response
.
total
;
this
.
loading
=
false
;
});
},
// 检查对象分类
fObjectTypeFormat
(
row
,
column
)
{
return
this
.
selectDictLabel
(
this
.
fObjectTypeOptions
,
row
.
fObjectType
);
},
// 取消按钮
cancel
()
{
this
.
open
=
false
;
this
.
reset
();
},
// 表单重置
reset
()
{
this
.
form
=
{
fInsRecInforId
:
null
,
fCheckCode
:
null
,
fCheckTaskCode
:
null
,
fRegionCode
:
null
,
fObjectType
:
null
,
fObjectCode
:
null
,
fCheckUserId
:
null
,
fCheckManName
:
null
,
fCheckManPhone
:
null
,
fCheckTime
:
null
,
fHazardsNum
:
null
,
fDoscNeedExecute
:
null
,
fAnnex
:
null
,
fLastUpdateTime
:
null
,
fRemark
:
null
};
this
.
resetForm
(
"form"
);
},
/** 搜索按钮操作 */
handleQuery
()
{
this
.
queryParams
.
pageNum
=
1
;
this
.
getList
();
},
/** 重置按钮操作 */
resetQuery
()
{
this
.
resetForm
(
"queryForm"
);
this
.
handleQuery
();
},
// 多选框选中数据
handleSelectionChange
(
selection
)
{
this
.
ids
=
selection
.
map
(
item
=>
item
.
fInsRecInforId
);
this
.
fCheckCodes
=
selection
.
map
(
item
=>
item
.
fCheckCode
);
this
.
single
=
selection
.
length
!==
1
this
.
multiple
=
!
selection
.
length
},
/** 新增按钮操作 */
handleAdd
()
{
this
.
reset
();
this
.
getTaskList
();
this
.
open
=
true
;
this
.
title
=
"添加检查记录"
;
},
/** 修改按钮操作 */
handleUpdate
(
row
)
{
this
.
reset
();
const
fInsRecInforId
=
row
.
fInsRecInforId
||
this
.
ids
getInfor
(
fInsRecInforId
).
then
(
response
=>
{
this
.
form
=
response
.
data
;
this
.
getTaskList
();
this
.
open
=
true
;
this
.
title
=
"修改检查记录"
;
});
},
/** 提交按钮 */
submitForm
()
{
this
.
$refs
[
"form"
].
validate
(
valid
=>
{
if
(
valid
)
{
if
(
this
.
form
.
fInsRecInforId
!=
null
)
{
updateInfor
(
this
.
form
).
then
(
response
=>
{
this
.
msgSuccess
(
"修改成功"
);
this
.
open
=
false
;
this
.
getList
();
});
}
else
{
addInfor
(
this
.
form
).
then
(
response
=>
{
this
.
msgSuccess
(
"新增成功"
);
this
.
open
=
false
;
this
.
getList
();
});
}
}
});
},
/** 删除按钮操作 */
handleDelete
(
row
)
{
const
fInsRecInforIds
=
row
.
fInsRecInforId
||
this
.
ids
;
const
fCheckCodes
=
row
.
fCheckCode
||
this
.
fCheckCodes
;
this
.
$confirm
(
'是否确认删除检查记录编码为"'
+
fCheckCodes
+
'"的数据项?'
,
"警告"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
()
{
return
delInfor
(
fInsRecInforIds
);
}).
then
(()
=>
{
this
.
getList
();
this
.
msgSuccess
(
"删除成功"
);
}).
catch
(()
=>
{});
},
/** 导出按钮操作 */
handleExport
()
{
const
queryParams
=
this
.
queryParams
;
this
.
$confirm
(
'是否确认导出所有检查记录数据项?'
,
"警告"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(()
=>
{
this
.
exportLoading
=
true
;
return
exportInfor
(
queryParams
);
}).
then
(
response
=>
{
this
.
download
(
response
.
msg
);
this
.
exportLoading
=
false
;
}).
catch
(()
=>
{});
},
//任务列表
getTaskList
(){
taskList
().
then
(
res
=>
{
if
(
res
.
code
==
200
&&
res
.
data
){
this
.
taskData
=
res
.
data
;
}
})
},
//详情
handleDetail
(
row
){
this
.
$refs
.
detail
.
getDetailInfo
(
row
.
fInsRecInforId
);
},
}
};
</
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