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
097b1553
Commit
097b1553
authored
May 22, 2024
by
耿迪迪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调查结果
parent
e5cab16a
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
1088 additions
and
4 deletions
+1088
-4
TInsSpotRecInforController.java
...eb/controller/supervision/TInsSpotRecInforController.java
+103
-0
TInsSpotRecInfor.java
.../main/java/com/zehong/system/domain/TInsSpotRecInfor.java
+142
-0
TInsSpotRecInforMapper.java
...java/com/zehong/system/mapper/TInsSpotRecInforMapper.java
+61
-0
ITInsSpotRecInforService.java
...a/com/zehong/system/service/ITInsSpotRecInforService.java
+61
-0
TInsSpotRecInforServiceImpl.java
...hong/system/service/impl/TInsSpotRecInforServiceImpl.java
+96
-0
TInsHazRefMapper.xml
...tem/src/main/resources/mapper/system/TInsHazRefMapper.xml
+1
-0
TInsRecInforMapper.xml
...m/src/main/resources/mapper/system/TInsRecInforMapper.xml
+1
-0
TInsSpotHazardRefMapper.xml
.../main/resources/mapper/system/TInsSpotHazardRefMapper.xml
+1
-0
TInsSpotRecInforMapper.xml
...c/main/resources/mapper/system/TInsSpotRecInforMapper.xml
+78
-0
TInsSurListInforMapper.xml
...c/main/resources/mapper/system/TInsSurListInforMapper.xml
+1
-0
findings.js
zh-baseversion-web/src/api/supervision/findings.js
+53
-0
DetailInfo.vue
.../src/views/supervision/findings/components/DetailInfo.vue
+76
-0
index.vue
zh-baseversion-web/src/views/supervision/findings/index.vue
+410
-0
index.vue
...version-web/src/views/supervision/rectification/index.vue
+4
-4
No files found.
zh-baseversion-admin/src/main/java/com/zehong/web/controller/supervision/TInsSpotRecInforController.java
0 → 100644
View file @
097b1553
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.TInsSpotRecInfor
;
import
com.zehong.system.service.ITInsSpotRecInforService
;
import
com.zehong.common.utils.poi.ExcelUtil
;
import
com.zehong.common.core.page.TableDataInfo
;
/**
* 监督检查-调查结果Controller
*
* @author zehong
* @date 2024-05-22
*/
@RestController
@RequestMapping
(
"/supervision/findings"
)
public
class
TInsSpotRecInforController
extends
BaseController
{
@Autowired
private
ITInsSpotRecInforService
tInsSpotRecInforService
;
/**
* 查询监督检查-调查结果列表
*/
@PreAuthorize
(
"@ss.hasPermi('supervision:findings:list')"
)
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
TInsSpotRecInfor
tInsSpotRecInfor
)
{
startPage
();
List
<
TInsSpotRecInfor
>
list
=
tInsSpotRecInforService
.
selectTInsSpotRecInforList
(
tInsSpotRecInfor
);
return
getDataTable
(
list
);
}
/**
* 导出监督检查-调查结果列表
*/
@PreAuthorize
(
"@ss.hasPermi('supervision:findings:export')"
)
@Log
(
title
=
"监督检查-调查结果"
,
businessType
=
BusinessType
.
EXPORT
)
@GetMapping
(
"/export"
)
public
AjaxResult
export
(
TInsSpotRecInfor
tInsSpotRecInfor
)
{
List
<
TInsSpotRecInfor
>
list
=
tInsSpotRecInforService
.
selectTInsSpotRecInforList
(
tInsSpotRecInfor
);
ExcelUtil
<
TInsSpotRecInfor
>
util
=
new
ExcelUtil
<
TInsSpotRecInfor
>(
TInsSpotRecInfor
.
class
);
return
util
.
exportExcel
(
list
,
"监督检查-调查结果数据"
);
}
/**
* 获取监督检查-调查结果详细信息
*/
@PreAuthorize
(
"@ss.hasPermi('supervision:findings:query')"
)
@GetMapping
(
value
=
"/{fInsSpotRecInforId}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"fInsSpotRecInforId"
)
Long
fInsSpotRecInforId
)
{
return
AjaxResult
.
success
(
tInsSpotRecInforService
.
selectTInsSpotRecInforById
(
fInsSpotRecInforId
));
}
/**
* 新增监督检查-调查结果
*/
@PreAuthorize
(
"@ss.hasPermi('supervision:findings:add')"
)
@Log
(
title
=
"监督检查-调查结果"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
public
AjaxResult
add
(
@RequestBody
TInsSpotRecInfor
tInsSpotRecInfor
)
{
return
toAjax
(
tInsSpotRecInforService
.
insertTInsSpotRecInfor
(
tInsSpotRecInfor
));
}
/**
* 修改监督检查-调查结果
*/
@PreAuthorize
(
"@ss.hasPermi('supervision:findings:edit')"
)
@Log
(
title
=
"监督检查-调查结果"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
public
AjaxResult
edit
(
@RequestBody
TInsSpotRecInfor
tInsSpotRecInfor
)
{
return
toAjax
(
tInsSpotRecInforService
.
updateTInsSpotRecInfor
(
tInsSpotRecInfor
));
}
/**
* 删除监督检查-调查结果
*/
@PreAuthorize
(
"@ss.hasPermi('supervision:findings:remove')"
)
@Log
(
title
=
"监督检查-调查结果"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/{fInsSpotRecInforIds}"
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
fInsSpotRecInforIds
)
{
return
toAjax
(
tInsSpotRecInforService
.
deleteTInsSpotRecInforByIds
(
fInsSpotRecInforIds
));
}
}
zh-baseversion-system/src/main/java/com/zehong/system/domain/TInsSpotRecInfor.java
0 → 100644
View file @
097b1553
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_ins_spot_rec_infor
*
* @author zehong
* @date 2024-05-22
*/
public
class
TInsSpotRecInfor
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/** id */
private
Long
fInsSpotRecInforId
;
/** 检查记录编码,实施检查的燃气主管部门对应 6 位行
政区划编码+4 位年份+6 位 */
@Excel
(
name
=
"检查记录编码"
)
private
String
fCheckCode
;
/** 调研项目名称 */
@Excel
(
name
=
"调研项目名称"
)
private
String
fName
;
/** 调研内容 */
@Excel
(
name
=
"调研内容"
)
private
String
fContent
;
/** 调研方法
1-现场检查、
2-现场检测、
3-现场检查并测试、
4-现场检查和查阅记录、
5-查阅检测报告、
6- 查阅检定记录、
7-查阅记录、
8-其他 */
@Excel
(
name
=
"调研方法"
,
dictType
=
"t_survey_method"
)
private
String
fMethod
;
/** 调研结果 */
@Excel
(
name
=
"调研结果"
)
private
String
fResult
;
/** 更新时间 yyyy-MM-dd hh:mm:ss */
@JsonFormat
(
pattern
=
"yyyy-MM-dd hh:mm:ss"
)
@Excel
(
name
=
"更新时间"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd hh:mm:ss"
)
private
Date
fUpdateTime
;
public
void
setfInsSpotRecInforId
(
Long
fInsSpotRecInforId
)
{
this
.
fInsSpotRecInforId
=
fInsSpotRecInforId
;
}
public
Long
getfInsSpotRecInforId
()
{
return
fInsSpotRecInforId
;
}
public
void
setfCheckCode
(
String
fCheckCode
)
{
this
.
fCheckCode
=
fCheckCode
;
}
public
String
getfCheckCode
()
{
return
fCheckCode
;
}
public
void
setfName
(
String
fName
)
{
this
.
fName
=
fName
;
}
public
String
getfName
()
{
return
fName
;
}
public
void
setfContent
(
String
fContent
)
{
this
.
fContent
=
fContent
;
}
public
String
getfContent
()
{
return
fContent
;
}
public
void
setfMethod
(
String
fMethod
)
{
this
.
fMethod
=
fMethod
;
}
public
String
getfMethod
()
{
return
fMethod
;
}
public
void
setfResult
(
String
fResult
)
{
this
.
fResult
=
fResult
;
}
public
String
getfResult
()
{
return
fResult
;
}
public
void
setfUpdateTime
(
Date
fUpdateTime
)
{
this
.
fUpdateTime
=
fUpdateTime
;
}
public
Date
getfUpdateTime
()
{
return
fUpdateTime
;
}
@Override
public
String
toString
()
{
return
new
ToStringBuilder
(
this
,
ToStringStyle
.
MULTI_LINE_STYLE
)
.
append
(
"fInsSpotRecInforId"
,
getfInsSpotRecInforId
())
.
append
(
"fCheckCode"
,
getfCheckCode
())
.
append
(
"fName"
,
getfName
())
.
append
(
"fContent"
,
getfContent
())
.
append
(
"fMethod"
,
getfMethod
())
.
append
(
"fResult"
,
getfResult
())
.
append
(
"fUpdateTime"
,
getfUpdateTime
())
.
toString
();
}
}
zh-baseversion-system/src/main/java/com/zehong/system/mapper/TInsSpotRecInforMapper.java
0 → 100644
View file @
097b1553
package
com
.
zehong
.
system
.
mapper
;
import
java.util.List
;
import
com.zehong.system.domain.TInsSpotRecInfor
;
/**
* 监督检查-调查结果Mapper接口
*
* @author zehong
* @date 2024-05-22
*/
public
interface
TInsSpotRecInforMapper
{
/**
* 查询监督检查-调查结果
*
* @param fInsSpotRecInforId 监督检查-调查结果ID
* @return 监督检查-调查结果
*/
public
TInsSpotRecInfor
selectTInsSpotRecInforById
(
Long
fInsSpotRecInforId
);
/**
* 查询监督检查-调查结果列表
*
* @param tInsSpotRecInfor 监督检查-调查结果
* @return 监督检查-调查结果集合
*/
public
List
<
TInsSpotRecInfor
>
selectTInsSpotRecInforList
(
TInsSpotRecInfor
tInsSpotRecInfor
);
/**
* 新增监督检查-调查结果
*
* @param tInsSpotRecInfor 监督检查-调查结果
* @return 结果
*/
public
int
insertTInsSpotRecInfor
(
TInsSpotRecInfor
tInsSpotRecInfor
);
/**
* 修改监督检查-调查结果
*
* @param tInsSpotRecInfor 监督检查-调查结果
* @return 结果
*/
public
int
updateTInsSpotRecInfor
(
TInsSpotRecInfor
tInsSpotRecInfor
);
/**
* 删除监督检查-调查结果
*
* @param fInsSpotRecInforId 监督检查-调查结果ID
* @return 结果
*/
public
int
deleteTInsSpotRecInforById
(
Long
fInsSpotRecInforId
);
/**
* 批量删除监督检查-调查结果
*
* @param fInsSpotRecInforIds 需要删除的数据ID
* @return 结果
*/
public
int
deleteTInsSpotRecInforByIds
(
Long
[]
fInsSpotRecInforIds
);
}
zh-baseversion-system/src/main/java/com/zehong/system/service/ITInsSpotRecInforService.java
0 → 100644
View file @
097b1553
package
com
.
zehong
.
system
.
service
;
import
java.util.List
;
import
com.zehong.system.domain.TInsSpotRecInfor
;
/**
* 监督检查-调查结果Service接口
*
* @author zehong
* @date 2024-05-22
*/
public
interface
ITInsSpotRecInforService
{
/**
* 查询监督检查-调查结果
*
* @param fInsSpotRecInforId 监督检查-调查结果ID
* @return 监督检查-调查结果
*/
public
TInsSpotRecInfor
selectTInsSpotRecInforById
(
Long
fInsSpotRecInforId
);
/**
* 查询监督检查-调查结果列表
*
* @param tInsSpotRecInfor 监督检查-调查结果
* @return 监督检查-调查结果集合
*/
public
List
<
TInsSpotRecInfor
>
selectTInsSpotRecInforList
(
TInsSpotRecInfor
tInsSpotRecInfor
);
/**
* 新增监督检查-调查结果
*
* @param tInsSpotRecInfor 监督检查-调查结果
* @return 结果
*/
public
int
insertTInsSpotRecInfor
(
TInsSpotRecInfor
tInsSpotRecInfor
);
/**
* 修改监督检查-调查结果
*
* @param tInsSpotRecInfor 监督检查-调查结果
* @return 结果
*/
public
int
updateTInsSpotRecInfor
(
TInsSpotRecInfor
tInsSpotRecInfor
);
/**
* 批量删除监督检查-调查结果
*
* @param fInsSpotRecInforIds 需要删除的监督检查-调查结果ID
* @return 结果
*/
public
int
deleteTInsSpotRecInforByIds
(
Long
[]
fInsSpotRecInforIds
);
/**
* 删除监督检查-调查结果信息
*
* @param fInsSpotRecInforId 监督检查-调查结果ID
* @return 结果
*/
public
int
deleteTInsSpotRecInforById
(
Long
fInsSpotRecInforId
);
}
zh-baseversion-system/src/main/java/com/zehong/system/service/impl/TInsSpotRecInforServiceImpl.java
0 → 100644
View file @
097b1553
package
com
.
zehong
.
system
.
service
.
impl
;
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.TInsSpotRecInforMapper
;
import
com.zehong.system.domain.TInsSpotRecInfor
;
import
com.zehong.system.service.ITInsSpotRecInforService
;
/**
* 监督检查-调查结果Service业务层处理
*
* @author zehong
* @date 2024-05-22
*/
@Service
public
class
TInsSpotRecInforServiceImpl
implements
ITInsSpotRecInforService
{
@Autowired
private
TInsSpotRecInforMapper
tInsSpotRecInforMapper
;
/**
* 查询监督检查-调查结果
*
* @param fInsSpotRecInforId 监督检查-调查结果ID
* @return 监督检查-调查结果
*/
@Override
public
TInsSpotRecInfor
selectTInsSpotRecInforById
(
Long
fInsSpotRecInforId
)
{
return
tInsSpotRecInforMapper
.
selectTInsSpotRecInforById
(
fInsSpotRecInforId
);
}
/**
* 查询监督检查-调查结果列表
*
* @param tInsSpotRecInfor 监督检查-调查结果
* @return 监督检查-调查结果
*/
@Override
public
List
<
TInsSpotRecInfor
>
selectTInsSpotRecInforList
(
TInsSpotRecInfor
tInsSpotRecInfor
)
{
return
tInsSpotRecInforMapper
.
selectTInsSpotRecInforList
(
tInsSpotRecInfor
);
}
/**
* 新增监督检查-调查结果
*
* @param tInsSpotRecInfor 监督检查-调查结果
* @return 结果
*/
@Override
public
int
insertTInsSpotRecInfor
(
TInsSpotRecInfor
tInsSpotRecInfor
)
{
tInsSpotRecInfor
.
setfUpdateTime
(
new
Date
());
return
tInsSpotRecInforMapper
.
insertTInsSpotRecInfor
(
tInsSpotRecInfor
);
}
/**
* 修改监督检查-调查结果
*
* @param tInsSpotRecInfor 监督检查-调查结果
* @return 结果
*/
@Override
public
int
updateTInsSpotRecInfor
(
TInsSpotRecInfor
tInsSpotRecInfor
)
{
tInsSpotRecInfor
.
setfUpdateTime
(
new
Date
());
return
tInsSpotRecInforMapper
.
updateTInsSpotRecInfor
(
tInsSpotRecInfor
);
}
/**
* 批量删除监督检查-调查结果
*
* @param fInsSpotRecInforIds 需要删除的监督检查-调查结果ID
* @return 结果
*/
@Override
public
int
deleteTInsSpotRecInforByIds
(
Long
[]
fInsSpotRecInforIds
)
{
return
tInsSpotRecInforMapper
.
deleteTInsSpotRecInforByIds
(
fInsSpotRecInforIds
);
}
/**
* 删除监督检查-调查结果信息
*
* @param fInsSpotRecInforId 监督检查-调查结果ID
* @return 结果
*/
@Override
public
int
deleteTInsSpotRecInforById
(
Long
fInsSpotRecInforId
)
{
return
tInsSpotRecInforMapper
.
deleteTInsSpotRecInforById
(
fInsSpotRecInforId
);
}
}
zh-baseversion-system/src/main/resources/mapper/system/TInsHazRefMapper.xml
View file @
097b1553
...
...
@@ -45,6 +45,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"fIsEnforcement != null and fIsEnforcement != ''"
>
and f_is_enforcement = #{fIsEnforcement}
</if>
<if
test=
"fEnforcementType != null and fEnforcementType != ''"
>
and f_enforcement_type = #{fEnforcementType}
</if>
</where>
ORDER BY f_last_time DESC
</select>
<select
id=
"selectTInsHazRefById"
parameterType=
"Long"
resultMap=
"TInsHazRefResult"
>
...
...
zh-baseversion-system/src/main/resources/mapper/system/TInsRecInforMapper.xml
View file @
097b1553
...
...
@@ -34,6 +34,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<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>
ORDER BY f_last_update_time DESC
</select>
<select
id=
"selectTInsRecInforById"
parameterType=
"Long"
resultMap=
"TInsRecInforResult"
>
...
...
zh-baseversion-system/src/main/resources/mapper/system/TInsSpotHazardRefMapper.xml
View file @
097b1553
...
...
@@ -32,6 +32,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"fObjType != null and fObjType != ''"
>
and f_obj_type = #{fObjType}
</if>
<if
test=
"fIsEnforcement != null and fIsEnforcement != ''"
>
and f_is_enforcement = #{fIsEnforcement}
</if>
</where>
ORDER BY f_last_time DESC
</select>
<select
id=
"selectTInsSpotHazardRefById"
parameterType=
"Long"
resultMap=
"TInsSpotHazardRefResult"
>
...
...
zh-baseversion-system/src/main/resources/mapper/system/TInsSpotRecInforMapper.xml
0 → 100644
View file @
097b1553
<?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.TInsSpotRecInforMapper"
>
<resultMap
type=
"TInsSpotRecInfor"
id=
"TInsSpotRecInforResult"
>
<result
property=
"fInsSpotRecInforId"
column=
"f_ins_spot_rec_infor_id"
/>
<result
property=
"fCheckCode"
column=
"f_check_code"
/>
<result
property=
"fName"
column=
"f_name"
/>
<result
property=
"fContent"
column=
"f_content"
/>
<result
property=
"fMethod"
column=
"f_method"
/>
<result
property=
"fResult"
column=
"f_result"
/>
<result
property=
"fUpdateTime"
column=
"f_update_time"
/>
</resultMap>
<sql
id=
"selectTInsSpotRecInforVo"
>
select f_ins_spot_rec_infor_id, f_check_code, f_name, f_content, f_method, f_result, f_update_time from t_ins_spot_rec_infor
</sql>
<select
id=
"selectTInsSpotRecInforList"
parameterType=
"TInsSpotRecInfor"
resultMap=
"TInsSpotRecInforResult"
>
<include
refid=
"selectTInsSpotRecInforVo"
/>
<where>
<if
test=
"fCheckCode != null and fCheckCode != ''"
>
and f_check_code like concat('%', #{fCheckCode}, '%')
</if>
<if
test=
"fName != null and fName != ''"
>
and f_name like concat('%', #{fName}, '%')
</if>
<if
test=
"fMethod != null and fMethod != ''"
>
and f_method = #{fMethod}
</if>
</where>
</select>
<select
id=
"selectTInsSpotRecInforById"
parameterType=
"Long"
resultMap=
"TInsSpotRecInforResult"
>
<include
refid=
"selectTInsSpotRecInforVo"
/>
where f_ins_spot_rec_infor_id = #{fInsSpotRecInforId}
</select>
<insert
id=
"insertTInsSpotRecInfor"
parameterType=
"TInsSpotRecInfor"
useGeneratedKeys=
"true"
keyProperty=
"fInsSpotRecInforId"
>
insert into t_ins_spot_rec_infor
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"fCheckCode != null and fCheckCode != ''"
>
f_check_code,
</if>
<if
test=
"fName != null and fName != ''"
>
f_name,
</if>
<if
test=
"fContent != null"
>
f_content,
</if>
<if
test=
"fMethod != null and fMethod != ''"
>
f_method,
</if>
<if
test=
"fResult != null"
>
f_result,
</if>
<if
test=
"fUpdateTime != null"
>
f_update_time,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"fCheckCode != null and fCheckCode != ''"
>
#{fCheckCode},
</if>
<if
test=
"fName != null and fName != ''"
>
#{fName},
</if>
<if
test=
"fContent != null"
>
#{fContent},
</if>
<if
test=
"fMethod != null and fMethod != ''"
>
#{fMethod},
</if>
<if
test=
"fResult != null"
>
#{fResult},
</if>
<if
test=
"fUpdateTime != null"
>
#{fUpdateTime},
</if>
</trim>
</insert>
<update
id=
"updateTInsSpotRecInfor"
parameterType=
"TInsSpotRecInfor"
>
update t_ins_spot_rec_infor
<trim
prefix=
"SET"
suffixOverrides=
","
>
<if
test=
"fCheckCode != null and fCheckCode != ''"
>
f_check_code = #{fCheckCode},
</if>
<if
test=
"fName != null and fName != ''"
>
f_name = #{fName},
</if>
<if
test=
"fContent != null"
>
f_content = #{fContent},
</if>
<if
test=
"fMethod != null and fMethod != ''"
>
f_method = #{fMethod},
</if>
<if
test=
"fResult != null"
>
f_result = #{fResult},
</if>
<if
test=
"fUpdateTime != null"
>
f_update_time = #{fUpdateTime},
</if>
</trim>
where f_ins_spot_rec_infor_id = #{fInsSpotRecInforId}
</update>
<delete
id=
"deleteTInsSpotRecInforById"
parameterType=
"Long"
>
delete from t_ins_spot_rec_infor where f_ins_spot_rec_infor_id = #{fInsSpotRecInforId}
</delete>
<delete
id=
"deleteTInsSpotRecInforByIds"
parameterType=
"String"
>
delete from t_ins_spot_rec_infor where f_ins_spot_rec_infor_id in
<foreach
item=
"fInsSpotRecInforId"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
#{fInsSpotRecInforId}
</foreach>
</delete>
</mapper>
\ No newline at end of file
zh-baseversion-system/src/main/resources/mapper/system/TInsSurListInforMapper.xml
View file @
097b1553
...
...
@@ -25,6 +25,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"fTypeCode != null and fTypeCode != ''"
>
and f_type_code = #{fTypeCode}
</if>
<if
test=
"fResType != null "
>
and f_res_type = #{fResType}
</if>
</where>
ORDER BY f_last_update_time DESC
</select>
<select
id=
"selectTInsSurListInforById"
parameterType=
"Long"
resultMap=
"TInsSurListInforResult"
>
...
...
zh-baseversion-web/src/api/supervision/findings.js
0 → 100644
View file @
097b1553
import
request
from
'@/utils/request'
// 查询监督检查-调查结果列表
export
function
listInfor
(
query
)
{
return
request
({
url
:
'/supervision/findings/list'
,
method
:
'get'
,
params
:
query
})
}
// 查询监督检查-调查结果详细
export
function
getInfor
(
fInsSpotRecInforId
)
{
return
request
({
url
:
'/supervision/findings/'
+
fInsSpotRecInforId
,
method
:
'get'
})
}
// 新增监督检查-调查结果
export
function
addInfor
(
data
)
{
return
request
({
url
:
'/supervision/findings'
,
method
:
'post'
,
data
:
data
})
}
// 修改监督检查-调查结果
export
function
updateInfor
(
data
)
{
return
request
({
url
:
'/supervision/findings'
,
method
:
'put'
,
data
:
data
})
}
// 删除监督检查-调查结果
export
function
delInfor
(
fInsSpotRecInforId
)
{
return
request
({
url
:
'/supervision/findings/'
+
fInsSpotRecInforId
,
method
:
'delete'
})
}
// 导出监督检查-调查结果
export
function
exportInfor
(
query
)
{
return
request
({
url
:
'/supervision/findings/export'
,
method
:
'get'
,
params
:
query
})
}
zh-baseversion-web/src/views/supervision/findings/components/DetailInfo.vue
0 → 100644
View file @
097b1553
<
template
>
<el-dialog
title=
"详情"
:visible
.
sync=
"detailOpen"
width=
"900px"
append-to-body
destroy-on-close
:close-on-click-modal=
"false"
>
<el-form
label-width=
"120px"
>
<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.fName"
>
{{
detailInfo
.
fName
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"调研方法"
>
<span
v-if=
"detailInfo.fMethod"
>
{{
detailInfo
.
fMethod
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"调研内容"
>
<span
v-if=
"detailInfo.fContent"
>
{{
detailInfo
.
fContent
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"调研结果"
>
<span
v-if=
"detailInfo.fResult"
>
{{
detailInfo
.
fResult
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
</el-row>
</el-form>
</el-dialog>
</
template
>
<
script
>
import
{
getInfor
}
from
"@/api/supervision/findings"
;
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/findings/index.vue
0 → 100644
View file @
097b1553
<
template
>
<div
class=
"app-container"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
:inline=
"true"
v-show=
"showSearch"
label-width=
"100px"
>
<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=
"fName"
>
<el-input
v-model=
"queryParams.fName"
placeholder=
"请输入调研项目名称"
clearable
size=
"small"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"调研方法"
prop=
"fMethod"
>
<el-select
v-model=
"queryParams.fMethod"
placeholder=
"请选择调研方法"
clearable
size=
"small"
>
<el-option
v-for=
"dict in fMethodOptions"
:key=
"dict.dictValue"
:label=
"dict.dictLabel"
:value=
"dict.dictValue"
/>
</el-select>
</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:findings: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:findings: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:findings: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:findings: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=
"fName"
/>
<el-table-column
label=
"调研内容"
align=
"center"
prop=
"fContent"
:show-overflow-tooltip=
"true"
>
<template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.fContent"
>
{{
scope
.
row
.
fContent
}}
</span>
<span
v-else
>
-
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"调研方法"
align=
"center"
prop=
"fMethod"
:formatter=
"fMethodFormat"
/>
<el-table-column
label=
"调研结果"
align=
"center"
prop=
"fResult"
:show-overflow-tooltip=
"true"
>
<
template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.fResult"
>
{{
scope
.
row
.
fResult
}}
</span>
<span
v-else
>
-
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"更新时间"
align=
"center"
prop=
"fUpdateTime"
width=
"150"
>
<
template
slot-scope=
"scope"
>
<span>
{{
parseTime
(
scope
.
row
.
fUpdateTime
,
'{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
=
"handleDetail(scope.row)"
v
-
hasPermi
=
"['supervision:findings:query']"
>
详情
<
/el-button
>
<
el
-
button
size
=
"mini"
type
=
"text"
icon
=
"el-icon-edit"
@
click
=
"handleUpdate(scope.row)"
v
-
hasPermi
=
"['supervision:findings:edit']"
>
修改
<
/el-button
>
<
el
-
button
size
=
"mini"
type
=
"text"
icon
=
"el-icon-delete"
@
click
=
"handleDelete(scope.row)"
v
-
hasPermi
=
"['supervision:findings: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
=
"120px"
>
<
el
-
row
class
=
"el-row-table"
>
<
el
-
col
:
span
=
"12"
>
<
el
-
form
-
item
label
=
"检查记录编码"
prop
=
"fCheckCode"
>
<
el
-
select
v
-
model
=
"form.fCheckCode"
placeholder
=
"请选择检查记录编码"
style
=
"width: 100%"
>
<
el
-
option
v
-
for
=
"record in records"
:
key
=
"record.fInsRecInforId"
:
label
=
"record.fCheckTaskCode"
:
value
=
"record.fCheckTaskCode"
><
/el-option
>
<
/el-select
>
<
/el-form-item
>
<
/el-col
>
<
el
-
col
:
span
=
"12"
>
<
el
-
form
-
item
label
=
"调研项目名称"
prop
=
"fName"
>
<
el
-
input
v
-
model
=
"form.fName"
placeholder
=
"请输入调研项目名称"
/>
<
/el-form-item
>
<
/el-col
>
<
el
-
col
:
span
=
"12"
>
<
el
-
form
-
item
label
=
"调研方法"
prop
=
"fMethod"
>
<
el
-
select
v
-
model
=
"form.fMethod"
placeholder
=
"请选择调研方法"
style
=
"width: 100%"
>
<
el
-
option
v
-
for
=
"dict in fMethodOptions"
:
key
=
"dict.dictValue"
:
label
=
"dict.dictLabel"
:
value
=
"dict.dictValue"
><
/el-option
>
<
/el-select
>
<
/el-form-item
>
<
/el-col
>
<
el
-
col
:
span
=
"24"
>
<
el
-
form
-
item
label
=
"调研内容"
>
<!--
<
editor
v
-
model
=
"form.fContent"
:
min
-
height
=
"192"
/>-->
<
el
-
input
type
=
"textarea"
v
-
model
=
"form.fContent"
placeholder
=
"请输入调研内容"
/>
<
/el-form-item
>
<
/el-col
>
<
el
-
col
:
span
=
"24"
>
<
el
-
form
-
item
label
=
"调研结果"
prop
=
"fResult"
>
<
el
-
input
type
=
"textarea"
v
-
model
=
"form.fResult"
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/findings"
;
import
Editor
from
'@/components/Editor'
;
import
{
recordList
}
from
"@/api/supervision/record"
;
import
DetailInfo
from
"./components/DetailInfo"
;
export
default
{
name
:
"Infor"
,
components
:
{
Editor
,
DetailInfo
}
,
data
()
{
return
{
// 遮罩层
loading
:
true
,
// 导出遮罩层
exportLoading
:
false
,
// 选中数组
ids
:
[],
fNames
:
[],
// 非单个禁用
single
:
true
,
// 非多个禁用
multiple
:
true
,
// 显示搜索条件
showSearch
:
true
,
// 总条数
total
:
0
,
// 调查结果表格数据
inforList
:
[],
// 弹出层标题
title
:
""
,
// 是否显示弹出层
open
:
false
,
// 调研方法
fMethodOptions
:
[],
// 查询参数
queryParams
:
{
pageNum
:
1
,
pageSize
:
10
,
fCheckCode
:
null
,
fName
:
null
,
fMethod
:
null
,
}
,
// 表单参数
form
:
{
}
,
// 表单校验
rules
:
{
fCheckCode
:
[
{
required
:
true
,
message
:
"检查记录编码"
,
trigger
:
"blur"
}
],
fName
:
[
{
required
:
true
,
message
:
"调研项目名称不能为空"
,
trigger
:
"blur"
}
],
fMethod
:
[
{
required
:
true
,
message
:
"调研方法"
,
trigger
:
"change"
}
],
}
,
records
:
[]
}
;
}
,
created
()
{
this
.
getList
();
this
.
getDicts
(
"t_survey_method"
).
then
(
response
=>
{
this
.
fMethodOptions
=
response
.
data
;
}
);
}
,
methods
:
{
/** 查询调查结果列表 */
getList
()
{
this
.
loading
=
true
;
listInfor
(
this
.
queryParams
).
then
(
response
=>
{
this
.
inforList
=
response
.
rows
;
this
.
total
=
response
.
total
;
this
.
loading
=
false
;
}
);
}
,
// 调研方法
fMethodFormat
(
row
,
column
)
{
return
this
.
selectDictLabel
(
this
.
fMethodOptions
,
row
.
fMethod
);
}
,
// 取消按钮
cancel
()
{
this
.
open
=
false
;
this
.
reset
();
}
,
// 表单重置
reset
()
{
this
.
form
=
{
fInsSpotRecInforId
:
null
,
fCheckCode
:
null
,
fName
:
null
,
fContent
:
null
,
fMethod
:
null
,
fResult
:
null
,
fUpdateTime
:
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
.
fInsSpotRecInforId
);
this
.
fNames
=
selection
.
map
(
item
=>
item
.
fName
);
this
.
single
=
selection
.
length
!==
1
this
.
multiple
=
!
selection
.
length
}
,
/** 新增按钮操作 */
handleAdd
()
{
this
.
reset
();
this
.
getRecordList
();
this
.
open
=
true
;
this
.
title
=
"添加调查结果"
;
}
,
/** 修改按钮操作 */
handleUpdate
(
row
)
{
this
.
reset
();
const
fInsSpotRecInforId
=
row
.
fInsSpotRecInforId
||
this
.
ids
getInfor
(
fInsSpotRecInforId
).
then
(
response
=>
{
this
.
form
=
response
.
data
;
this
.
getRecordList
();
this
.
open
=
true
;
this
.
title
=
"修改调查结果"
;
}
);
}
,
/** 提交按钮 */
submitForm
()
{
this
.
$refs
[
"form"
].
validate
(
valid
=>
{
if
(
valid
)
{
if
(
this
.
form
.
fInsSpotRecInforId
!=
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
fInsSpotRecInforIds
=
row
.
fInsSpotRecInforId
||
this
.
ids
;
const
fNames
=
row
.
fName
||
this
.
fNames
;
this
.
$confirm
(
'是否确认删除调查结果名称为"'
+
fNames
+
'"的数据项?'
,
"警告"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}
).
then
(
function
()
{
return
delInfor
(
fInsSpotRecInforIds
);
}
).
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
(()
=>
{
}
);
}
,
getRecordList
(){
recordList
().
then
(
res
=>
{
if
(
res
.
code
==
200
&&
res
.
data
){
this
.
records
=
res
.
data
;
}
}
)
}
,
//详情
handleDetail
(
row
){
this
.
$refs
.
detail
.
getDetailInfo
(
row
.
fInsSpotRecInforId
);
}
,
}
}
;
<
/script
>
zh-baseversion-web/src/views/supervision/rectification/index.vue
View file @
097b1553
...
...
@@ -216,10 +216,10 @@
style=
"width: 100%"
>
<el-option
v-for=
"
dict
in records"
:key=
"
dict
.fInsRecInforId"
:label=
"
dict
.fCheckTaskCode"
:value=
"
dict
.fCheckTaskCode"
v-for=
"
record
in records"
:key=
"
record
.fInsRecInforId"
:label=
"
record
.fCheckTaskCode"
:value=
"
record
.fCheckTaskCode"
></el-option>
</el-select>
</el-form-item>
...
...
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