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
e353ab3a
Commit
e353ab3a
authored
Jul 22, 2024
by
耿迪迪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
安检记录
parent
f41cd490
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
1579 additions
and
0 deletions
+1579
-0
TLpgSafeCheckRecordController.java
...ntroller/lpgRegulation/TLpgSafeCheckRecordController.java
+97
-0
TLpgSafeCheckRecord.java
...in/java/com/zehong/system/domain/TLpgSafeCheckRecord.java
+378
-0
TLpgSafeCheckRecordMapper.java
...a/com/zehong/system/mapper/TLpgSafeCheckRecordMapper.java
+61
-0
ITLpgSafeCheckRecordService.java
...om/zehong/system/service/ITLpgSafeCheckRecordService.java
+61
-0
TLpgSafeCheckRecordServiceImpl.java
...g/system/service/impl/TLpgSafeCheckRecordServiceImpl.java
+96
-0
TLpgSafeCheckRecordMapper.xml
...ain/resources/mapper/system/TLpgSafeCheckRecordMapper.xml
+183
-0
check.js
zh-baseversion-web/src/api/lpgRegulation/check.js
+53
-0
DetailInfo.vue
...b/src/views/lpgRegulation/check/components/DetailInfo.vue
+192
-0
index.vue
zh-baseversion-web/src/views/lpgRegulation/check/index.vue
+458
-0
No files found.
zh-baseversion-admin/src/main/java/com/zehong/web/controller/lpgRegulation/TLpgSafeCheckRecordController.java
0 → 100644
View file @
e353ab3a
package
com
.
zehong
.
web
.
controller
.
lpgRegulation
;
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.TLpgSafeCheckRecord
;
import
com.zehong.system.service.ITLpgSafeCheckRecordService
;
import
com.zehong.common.utils.poi.ExcelUtil
;
import
com.zehong.common.core.page.TableDataInfo
;
/**
* 液化石油安检记录Controller
*
* @author zehong
* @date 2024-07-22
*/
@RestController
@RequestMapping
(
"/lpg/check"
)
public
class
TLpgSafeCheckRecordController
extends
BaseController
{
@Autowired
private
ITLpgSafeCheckRecordService
tLpgSafeCheckRecordService
;
/**
* 查询液化石油安检记录列表
*/
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
TLpgSafeCheckRecord
tLpgSafeCheckRecord
)
{
startPage
();
List
<
TLpgSafeCheckRecord
>
list
=
tLpgSafeCheckRecordService
.
selectTLpgSafeCheckRecordList
(
tLpgSafeCheckRecord
);
return
getDataTable
(
list
);
}
/**
* 导出液化石油安检记录列表
*/
@Log
(
title
=
"液化石油安检记录"
,
businessType
=
BusinessType
.
EXPORT
)
@GetMapping
(
"/export"
)
public
AjaxResult
export
(
TLpgSafeCheckRecord
tLpgSafeCheckRecord
)
{
List
<
TLpgSafeCheckRecord
>
list
=
tLpgSafeCheckRecordService
.
selectTLpgSafeCheckRecordList
(
tLpgSafeCheckRecord
);
ExcelUtil
<
TLpgSafeCheckRecord
>
util
=
new
ExcelUtil
<
TLpgSafeCheckRecord
>(
TLpgSafeCheckRecord
.
class
);
return
util
.
exportExcel
(
list
,
"液化石油安检记录数据"
);
}
/**
* 获取液化石油安检记录详细信息
*/
@GetMapping
(
value
=
"/{safeCheckId}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"safeCheckId"
)
Long
safeCheckId
)
{
return
AjaxResult
.
success
(
tLpgSafeCheckRecordService
.
selectTLpgSafeCheckRecordById
(
safeCheckId
));
}
/**
* 新增液化石油安检记录
*/
@Log
(
title
=
"液化石油安检记录"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
public
AjaxResult
add
(
@RequestBody
TLpgSafeCheckRecord
tLpgSafeCheckRecord
)
{
return
toAjax
(
tLpgSafeCheckRecordService
.
insertTLpgSafeCheckRecord
(
tLpgSafeCheckRecord
));
}
/**
* 修改液化石油安检记录
*/
@Log
(
title
=
"液化石油安检记录"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
public
AjaxResult
edit
(
@RequestBody
TLpgSafeCheckRecord
tLpgSafeCheckRecord
)
{
return
toAjax
(
tLpgSafeCheckRecordService
.
updateTLpgSafeCheckRecord
(
tLpgSafeCheckRecord
));
}
/**
* 删除液化石油安检记录
*/
@Log
(
title
=
"液化石油安检记录"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/{safeCheckIds}"
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
safeCheckIds
)
{
return
toAjax
(
tLpgSafeCheckRecordService
.
deleteTLpgSafeCheckRecordByIds
(
safeCheckIds
));
}
}
zh-baseversion-system/src/main/java/com/zehong/system/domain/TLpgSafeCheckRecord.java
0 → 100644
View file @
e353ab3a
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_lpg_safe_check_record
*
* @author zehong
* @date 2024-07-22
*/
public
class
TLpgSafeCheckRecord
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/** 安检主键 */
private
Long
safeCheckId
;
/** 储配站 */
@Excel
(
name
=
"储配站"
)
private
Long
stationName
;
/** 用户名 */
@Excel
(
name
=
"用户名"
)
private
String
gasUser
;
/** 0.居民 1.非居民 */
@Excel
(
name
=
"用户类型"
,
readConverterExp
=
"0=居民,1=非居民"
)
private
String
gasUserType
;
/** 联系电话 */
@Excel
(
name
=
"联系电话"
)
private
String
telNum
;
/** 用户地址 */
@Excel
(
name
=
"用户地址"
)
private
String
gasUserAddress
;
/** 安检时间 */
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
@Excel
(
name
=
"安检时间"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd HH:mm:ss"
)
private
Date
safeCheckDate
;
/** 安检人 */
@Excel
(
name
=
"安检人"
)
private
String
safeCheckPerson
;
/** 气瓶数量 */
@Excel
(
name
=
"气瓶数量"
)
private
Integer
bottleNum
;
/** 入户状态:0.正常入户 1.拒绝安检 */
@Excel
(
name
=
"入户状态"
,
readConverterExp
=
"0=正常入户,1=拒绝安检"
)
private
String
checkInStatus
;
/** 燃气灶具检查情况:0.合格 1.无3C认证 2.无熄火保护装置 */
@Excel
(
name
=
"燃气灶具检查情况"
,
readConverterExp
=
"0=合格,1=无3C认证,2=无熄火保护装置"
)
private
String
stoveCheckStatus
;
/** 燃气灶具检查情况 */
@Excel
(
name
=
"燃气灶具检查情况照片"
)
private
String
stoveCheckPic
;
/** 连接软管检查情况:0.合格 1.普通橡胶软管 2.三通连接软管 3.长度超过两米且未使用硬质钢管链接 4.穿越墙体、门窗顶棚和地面 */
@Excel
(
name
=
"连接软管检查情况"
,
readConverterExp
=
"0=合格,1=普通橡胶软管,2=三通连接软管,3=长度超过两米且未使用硬质钢管链接,4=穿越墙体、门窗顶棚和地面"
)
private
String
hoseCheckStatus
;
/** 连接软管检查情况 */
@Excel
(
name
=
"连接软管检查情况照片"
)
private
String
hoseCheckPic
;
/** 减压阀检查情况:0.合格 1.可调节 2.五自闭功能 */
@Excel
(
name
=
"减压阀检查情况"
,
readConverterExp
=
"0=合格,1=可调节,2=五自闭功能"
)
private
String
valveCheckStatus
;
/** 减压阀检查情况 */
@Excel
(
name
=
"减压阀检查情况照片"
)
private
String
valveCheckPic
;
/** 液化气钢瓶检查情况:0.合格 1.部分有码且可追溯 2.有码但不可追溯 3.钢瓶无码 */
@Excel
(
name
=
"液化气钢瓶检查情况"
,
readConverterExp
=
"0=合格,1=部分有码且可追溯,2=有码但不可追溯,3=钢瓶无码"
)
private
String
bottleCheckStatus
;
/** 液化气钢瓶检查情况 */
@Excel
(
name
=
"液化气钢瓶检查情况照片"
)
private
String
bottleCheckPic
;
/** 报警器加电磁切断阀检查情况:0.合格 1.有但未使用 2.有但未实现联动 3.无 4.非液化气专用报警器 5.安装位置大于0.3米 */
@Excel
(
name
=
"报警器加电磁切断阀检查情况"
,
readConverterExp
=
"0=合格,1=有但未使用,2=有但未实现联动,3=无,4=非液化气专用报警器,5=安装位置大于0.3米"
)
private
String
alarmCheckStatus
;
/** 报警器加电磁切断阀检查情况 */
@Excel
(
name
=
"报警器加电磁切断阀检查情况照片"
)
private
String
alarmCheckPic
;
/** 用气场所检查情况:0.合格 1.高层建筑(裙房) 2.地下(半地下)室 3.车库或半地下车库 4.通风不良的场所 5.50公斤钢瓶超过两只或15公斤钢瓶超过七只未设置独立的气瓶间 */
@Excel
(
name
=
"用气场所检查情况"
,
readConverterExp
=
"0=合格,1=高层建筑(裙房),2=地下(半地下)室,3=车库或半地下车库,4=通风不良的场所 5.50公斤钢瓶超过两只或15公斤钢瓶超过七只未设置独立的气瓶间"
)
private
String
placeCheckStatus
;
/** 用气场所检查情况 */
@Excel
(
name
=
"用气场所检查情况照片"
)
private
String
placeCheckPic
;
/** 安检人员签名 */
@Excel
(
name
=
"安检人员签名"
)
private
String
checkPersonSign
;
/** 用户签字 */
@Excel
(
name
=
"用户签字"
)
private
String
gasUserSign
;
/** 删除状态:0.否 1.是 */
//@Excel(name = "删除状态:0.否 1.是")
private
String
isDel
;
public
void
setSafeCheckId
(
Long
safeCheckId
)
{
this
.
safeCheckId
=
safeCheckId
;
}
public
Long
getSafeCheckId
()
{
return
safeCheckId
;
}
public
void
setStationName
(
Long
stationName
)
{
this
.
stationName
=
stationName
;
}
public
Long
getStationName
()
{
return
stationName
;
}
public
void
setGasUser
(
String
gasUser
)
{
this
.
gasUser
=
gasUser
;
}
public
String
getGasUser
()
{
return
gasUser
;
}
public
void
setGasUserType
(
String
gasUserType
)
{
this
.
gasUserType
=
gasUserType
;
}
public
String
getGasUserType
()
{
return
gasUserType
;
}
public
void
setTelNum
(
String
telNum
)
{
this
.
telNum
=
telNum
;
}
public
String
getTelNum
()
{
return
telNum
;
}
public
String
getGasUserAddress
()
{
return
gasUserAddress
;
}
public
void
setGasUserAddress
(
String
gasUserAddress
)
{
this
.
gasUserAddress
=
gasUserAddress
;
}
public
void
setSafeCheckDate
(
Date
safeCheckDate
)
{
this
.
safeCheckDate
=
safeCheckDate
;
}
public
Date
getSafeCheckDate
()
{
return
safeCheckDate
;
}
public
void
setSafeCheckPerson
(
String
safeCheckPerson
)
{
this
.
safeCheckPerson
=
safeCheckPerson
;
}
public
String
getSafeCheckPerson
()
{
return
safeCheckPerson
;
}
public
void
setBottleNum
(
Integer
bottleNum
)
{
this
.
bottleNum
=
bottleNum
;
}
public
Integer
getBottleNum
()
{
return
bottleNum
;
}
public
void
setCheckInStatus
(
String
checkInStatus
)
{
this
.
checkInStatus
=
checkInStatus
;
}
public
String
getCheckInStatus
()
{
return
checkInStatus
;
}
public
void
setStoveCheckStatus
(
String
stoveCheckStatus
)
{
this
.
stoveCheckStatus
=
stoveCheckStatus
;
}
public
String
getStoveCheckStatus
()
{
return
stoveCheckStatus
;
}
public
void
setStoveCheckPic
(
String
stoveCheckPic
)
{
this
.
stoveCheckPic
=
stoveCheckPic
;
}
public
String
getStoveCheckPic
()
{
return
stoveCheckPic
;
}
public
void
setHoseCheckStatus
(
String
hoseCheckStatus
)
{
this
.
hoseCheckStatus
=
hoseCheckStatus
;
}
public
String
getHoseCheckStatus
()
{
return
hoseCheckStatus
;
}
public
void
setHoseCheckPic
(
String
hoseCheckPic
)
{
this
.
hoseCheckPic
=
hoseCheckPic
;
}
public
String
getHoseCheckPic
()
{
return
hoseCheckPic
;
}
public
void
setValveCheckStatus
(
String
valveCheckStatus
)
{
this
.
valveCheckStatus
=
valveCheckStatus
;
}
public
String
getValveCheckStatus
()
{
return
valveCheckStatus
;
}
public
void
setValveCheckPic
(
String
valveCheckPic
)
{
this
.
valveCheckPic
=
valveCheckPic
;
}
public
String
getValveCheckPic
()
{
return
valveCheckPic
;
}
public
void
setBottleCheckStatus
(
String
bottleCheckStatus
)
{
this
.
bottleCheckStatus
=
bottleCheckStatus
;
}
public
String
getBottleCheckStatus
()
{
return
bottleCheckStatus
;
}
public
void
setBottleCheckPic
(
String
bottleCheckPic
)
{
this
.
bottleCheckPic
=
bottleCheckPic
;
}
public
String
getBottleCheckPic
()
{
return
bottleCheckPic
;
}
public
void
setAlarmCheckStatus
(
String
alarmCheckStatus
)
{
this
.
alarmCheckStatus
=
alarmCheckStatus
;
}
public
String
getAlarmCheckStatus
()
{
return
alarmCheckStatus
;
}
public
void
setAlarmCheckPic
(
String
alarmCheckPic
)
{
this
.
alarmCheckPic
=
alarmCheckPic
;
}
public
String
getAlarmCheckPic
()
{
return
alarmCheckPic
;
}
public
void
setPlaceCheckStatus
(
String
placeCheckStatus
)
{
this
.
placeCheckStatus
=
placeCheckStatus
;
}
public
String
getPlaceCheckStatus
()
{
return
placeCheckStatus
;
}
public
void
setPlaceCheckPic
(
String
placeCheckPic
)
{
this
.
placeCheckPic
=
placeCheckPic
;
}
public
String
getPlaceCheckPic
()
{
return
placeCheckPic
;
}
public
void
setCheckPersonSign
(
String
checkPersonSign
)
{
this
.
checkPersonSign
=
checkPersonSign
;
}
public
String
getCheckPersonSign
()
{
return
checkPersonSign
;
}
public
void
setGasUserSign
(
String
gasUserSign
)
{
this
.
gasUserSign
=
gasUserSign
;
}
public
String
getGasUserSign
()
{
return
gasUserSign
;
}
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
(
"safeCheckId"
,
getSafeCheckId
())
.
append
(
"stationName"
,
getStationName
())
.
append
(
"gasUser"
,
getGasUser
())
.
append
(
"gasUserType"
,
getGasUserType
())
.
append
(
"telNum"
,
getTelNum
())
.
append
(
"safeCheckDate"
,
getSafeCheckDate
())
.
append
(
"safeCheckPerson"
,
getSafeCheckPerson
())
.
append
(
"bottleNum"
,
getBottleNum
())
.
append
(
"checkInStatus"
,
getCheckInStatus
())
.
append
(
"stoveCheckStatus"
,
getStoveCheckStatus
())
.
append
(
"stoveCheckPic"
,
getStoveCheckPic
())
.
append
(
"hoseCheckStatus"
,
getHoseCheckStatus
())
.
append
(
"hoseCheckPic"
,
getHoseCheckPic
())
.
append
(
"valveCheckStatus"
,
getValveCheckStatus
())
.
append
(
"valveCheckPic"
,
getValveCheckPic
())
.
append
(
"bottleCheckStatus"
,
getBottleCheckStatus
())
.
append
(
"bottleCheckPic"
,
getBottleCheckPic
())
.
append
(
"alarmCheckStatus"
,
getAlarmCheckStatus
())
.
append
(
"alarmCheckPic"
,
getAlarmCheckPic
())
.
append
(
"placeCheckStatus"
,
getPlaceCheckStatus
())
.
append
(
"placeCheckPic"
,
getPlaceCheckPic
())
.
append
(
"checkPersonSign"
,
getCheckPersonSign
())
.
append
(
"gasUserSign"
,
getGasUserSign
())
.
append
(
"createTime"
,
getCreateTime
())
.
append
(
"updateTime"
,
getUpdateTime
())
.
append
(
"isDel"
,
getIsDel
())
.
append
(
"remark"
,
getRemark
())
.
toString
();
}
}
zh-baseversion-system/src/main/java/com/zehong/system/mapper/TLpgSafeCheckRecordMapper.java
0 → 100644
View file @
e353ab3a
package
com
.
zehong
.
system
.
mapper
;
import
java.util.List
;
import
com.zehong.system.domain.TLpgSafeCheckRecord
;
/**
* 液化石油安检记录Mapper接口
*
* @author zehong
* @date 2024-07-22
*/
public
interface
TLpgSafeCheckRecordMapper
{
/**
* 查询液化石油安检记录
*
* @param safeCheckId 液化石油安检记录ID
* @return 液化石油安检记录
*/
public
TLpgSafeCheckRecord
selectTLpgSafeCheckRecordById
(
Long
safeCheckId
);
/**
* 查询液化石油安检记录列表
*
* @param tLpgSafeCheckRecord 液化石油安检记录
* @return 液化石油安检记录集合
*/
public
List
<
TLpgSafeCheckRecord
>
selectTLpgSafeCheckRecordList
(
TLpgSafeCheckRecord
tLpgSafeCheckRecord
);
/**
* 新增液化石油安检记录
*
* @param tLpgSafeCheckRecord 液化石油安检记录
* @return 结果
*/
public
int
insertTLpgSafeCheckRecord
(
TLpgSafeCheckRecord
tLpgSafeCheckRecord
);
/**
* 修改液化石油安检记录
*
* @param tLpgSafeCheckRecord 液化石油安检记录
* @return 结果
*/
public
int
updateTLpgSafeCheckRecord
(
TLpgSafeCheckRecord
tLpgSafeCheckRecord
);
/**
* 删除液化石油安检记录
*
* @param safeCheckId 液化石油安检记录ID
* @return 结果
*/
public
int
deleteTLpgSafeCheckRecordById
(
Long
safeCheckId
);
/**
* 批量删除液化石油安检记录
*
* @param safeCheckIds 需要删除的数据ID
* @return 结果
*/
public
int
deleteTLpgSafeCheckRecordByIds
(
Long
[]
safeCheckIds
);
}
zh-baseversion-system/src/main/java/com/zehong/system/service/ITLpgSafeCheckRecordService.java
0 → 100644
View file @
e353ab3a
package
com
.
zehong
.
system
.
service
;
import
java.util.List
;
import
com.zehong.system.domain.TLpgSafeCheckRecord
;
/**
* 液化石油安检记录Service接口
*
* @author zehong
* @date 2024-07-22
*/
public
interface
ITLpgSafeCheckRecordService
{
/**
* 查询液化石油安检记录
*
* @param safeCheckId 液化石油安检记录ID
* @return 液化石油安检记录
*/
public
TLpgSafeCheckRecord
selectTLpgSafeCheckRecordById
(
Long
safeCheckId
);
/**
* 查询液化石油安检记录列表
*
* @param tLpgSafeCheckRecord 液化石油安检记录
* @return 液化石油安检记录集合
*/
public
List
<
TLpgSafeCheckRecord
>
selectTLpgSafeCheckRecordList
(
TLpgSafeCheckRecord
tLpgSafeCheckRecord
);
/**
* 新增液化石油安检记录
*
* @param tLpgSafeCheckRecord 液化石油安检记录
* @return 结果
*/
public
int
insertTLpgSafeCheckRecord
(
TLpgSafeCheckRecord
tLpgSafeCheckRecord
);
/**
* 修改液化石油安检记录
*
* @param tLpgSafeCheckRecord 液化石油安检记录
* @return 结果
*/
public
int
updateTLpgSafeCheckRecord
(
TLpgSafeCheckRecord
tLpgSafeCheckRecord
);
/**
* 批量删除液化石油安检记录
*
* @param safeCheckIds 需要删除的液化石油安检记录ID
* @return 结果
*/
public
int
deleteTLpgSafeCheckRecordByIds
(
Long
[]
safeCheckIds
);
/**
* 删除液化石油安检记录信息
*
* @param safeCheckId 液化石油安检记录ID
* @return 结果
*/
public
int
deleteTLpgSafeCheckRecordById
(
Long
safeCheckId
);
}
zh-baseversion-system/src/main/java/com/zehong/system/service/impl/TLpgSafeCheckRecordServiceImpl.java
0 → 100644
View file @
e353ab3a
package
com
.
zehong
.
system
.
service
.
impl
;
import
java.util.List
;
import
com.zehong.common.utils.DateUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
com.zehong.system.mapper.TLpgSafeCheckRecordMapper
;
import
com.zehong.system.domain.TLpgSafeCheckRecord
;
import
com.zehong.system.service.ITLpgSafeCheckRecordService
;
/**
* 液化石油安检记录Service业务层处理
*
* @author zehong
* @date 2024-07-22
*/
@Service
public
class
TLpgSafeCheckRecordServiceImpl
implements
ITLpgSafeCheckRecordService
{
@Autowired
private
TLpgSafeCheckRecordMapper
tLpgSafeCheckRecordMapper
;
/**
* 查询液化石油安检记录
*
* @param safeCheckId 液化石油安检记录ID
* @return 液化石油安检记录
*/
@Override
public
TLpgSafeCheckRecord
selectTLpgSafeCheckRecordById
(
Long
safeCheckId
)
{
return
tLpgSafeCheckRecordMapper
.
selectTLpgSafeCheckRecordById
(
safeCheckId
);
}
/**
* 查询液化石油安检记录列表
*
* @param tLpgSafeCheckRecord 液化石油安检记录
* @return 液化石油安检记录
*/
@Override
public
List
<
TLpgSafeCheckRecord
>
selectTLpgSafeCheckRecordList
(
TLpgSafeCheckRecord
tLpgSafeCheckRecord
)
{
return
tLpgSafeCheckRecordMapper
.
selectTLpgSafeCheckRecordList
(
tLpgSafeCheckRecord
);
}
/**
* 新增液化石油安检记录
*
* @param tLpgSafeCheckRecord 液化石油安检记录
* @return 结果
*/
@Override
public
int
insertTLpgSafeCheckRecord
(
TLpgSafeCheckRecord
tLpgSafeCheckRecord
)
{
tLpgSafeCheckRecord
.
setCreateTime
(
DateUtils
.
getNowDate
());
return
tLpgSafeCheckRecordMapper
.
insertTLpgSafeCheckRecord
(
tLpgSafeCheckRecord
);
}
/**
* 修改液化石油安检记录
*
* @param tLpgSafeCheckRecord 液化石油安检记录
* @return 结果
*/
@Override
public
int
updateTLpgSafeCheckRecord
(
TLpgSafeCheckRecord
tLpgSafeCheckRecord
)
{
tLpgSafeCheckRecord
.
setUpdateTime
(
DateUtils
.
getNowDate
());
return
tLpgSafeCheckRecordMapper
.
updateTLpgSafeCheckRecord
(
tLpgSafeCheckRecord
);
}
/**
* 批量删除液化石油安检记录
*
* @param safeCheckIds 需要删除的液化石油安检记录ID
* @return 结果
*/
@Override
public
int
deleteTLpgSafeCheckRecordByIds
(
Long
[]
safeCheckIds
)
{
return
tLpgSafeCheckRecordMapper
.
deleteTLpgSafeCheckRecordByIds
(
safeCheckIds
);
}
/**
* 删除液化石油安检记录信息
*
* @param safeCheckId 液化石油安检记录ID
* @return 结果
*/
@Override
public
int
deleteTLpgSafeCheckRecordById
(
Long
safeCheckId
)
{
return
tLpgSafeCheckRecordMapper
.
deleteTLpgSafeCheckRecordById
(
safeCheckId
);
}
}
zh-baseversion-system/src/main/resources/mapper/system/TLpgSafeCheckRecordMapper.xml
0 → 100644
View file @
e353ab3a
<?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.TLpgSafeCheckRecordMapper"
>
<resultMap
type=
"TLpgSafeCheckRecord"
id=
"TLpgSafeCheckRecordResult"
>
<result
property=
"safeCheckId"
column=
"safe_check_id"
/>
<result
property=
"stationName"
column=
"station_name"
/>
<result
property=
"gasUser"
column=
"gas_user"
/>
<result
property=
"gasUserType"
column=
"gas_user_type"
/>
<result
property=
"gasUserAddress"
column=
"gas_user_address"
/>
<result
property=
"telNum"
column=
"tel_num"
/>
<result
property=
"safeCheckDate"
column=
"safe_check_date"
/>
<result
property=
"safeCheckPerson"
column=
"safe_check_person"
/>
<result
property=
"bottleNum"
column=
"bottle_num"
/>
<result
property=
"checkInStatus"
column=
"check_in_status"
/>
<result
property=
"stoveCheckStatus"
column=
"stove_check_status"
/>
<result
property=
"stoveCheckPic"
column=
"stove_check_pic"
/>
<result
property=
"hoseCheckStatus"
column=
"hose_check_status"
/>
<result
property=
"hoseCheckPic"
column=
"hose_check_pic"
/>
<result
property=
"valveCheckStatus"
column=
"valve_check_status"
/>
<result
property=
"valveCheckPic"
column=
"valve_check_pic"
/>
<result
property=
"bottleCheckStatus"
column=
"bottle_check_status"
/>
<result
property=
"bottleCheckPic"
column=
"bottle_check_pic"
/>
<result
property=
"alarmCheckStatus"
column=
"alarm_check_status"
/>
<result
property=
"alarmCheckPic"
column=
"alarm_check_pic"
/>
<result
property=
"placeCheckStatus"
column=
"place_check_status"
/>
<result
property=
"placeCheckPic"
column=
"place_check_pic"
/>
<result
property=
"checkPersonSign"
column=
"check_person_sign"
/>
<result
property=
"gasUserSign"
column=
"gas_user_sign"
/>
<result
property=
"createTime"
column=
"create_time"
/>
<result
property=
"updateTime"
column=
"update_time"
/>
<result
property=
"isDel"
column=
"is_del"
/>
<result
property=
"remark"
column=
"remark"
/>
</resultMap>
<sql
id=
"selectTLpgSafeCheckRecordVo"
>
select safe_check_id, station_name, gas_user, gas_user_type, gas_user_address, tel_num, safe_check_date, safe_check_person, bottle_num, check_in_status, stove_check_status, stove_check_pic, hose_check_status, hose_check_pic, valve_check_status, valve_check_pic, bottle_check_status, bottle_check_pic, alarm_check_status, alarm_check_pic, place_check_status, place_check_pic, check_person_sign, gas_user_sign, create_time, update_time, is_del, remark from t_lpg_safe_check_record
</sql>
<select
id=
"selectTLpgSafeCheckRecordList"
parameterType=
"TLpgSafeCheckRecord"
resultMap=
"TLpgSafeCheckRecordResult"
>
<include
refid=
"selectTLpgSafeCheckRecordVo"
/>
<where>
<if
test=
"stationName != null "
>
and station_name like concat('%', #{stationName}, '%')
</if>
<if
test=
"gasUser != null and gasUser != ''"
>
and gas_user = #{gasUser}
</if>
<if
test=
"gasUserType != null and gasUserType != ''"
>
and gas_user_type = #{gasUserType}
</if>
<if
test=
"gasUserAddress != null and gasUserAddress != ''"
>
and gas_user_address = #{gasUserAddress}
</if>
<if
test=
"telNum != null and telNum != ''"
>
and tel_num = #{telNum}
</if>
<if
test=
"safeCheckDate != null "
>
and safe_check_date = #{safeCheckDate}
</if>
<if
test=
"safeCheckPerson != null and safeCheckPerson != ''"
>
and safe_check_person = #{safeCheckPerson}
</if>
<if
test=
"bottleNum != null "
>
and bottle_num = #{bottleNum}
</if>
<if
test=
"checkInStatus != null and checkInStatus != ''"
>
and check_in_status = #{checkInStatus}
</if>
<if
test=
"stoveCheckStatus != null and stoveCheckStatus != ''"
>
and stove_check_status = #{stoveCheckStatus}
</if>
<if
test=
"stoveCheckPic != null and stoveCheckPic != ''"
>
and stove_check_pic = #{stoveCheckPic}
</if>
<if
test=
"hoseCheckStatus != null and hoseCheckStatus != ''"
>
and hose_check_status = #{hoseCheckStatus}
</if>
<if
test=
"hoseCheckPic != null and hoseCheckPic != ''"
>
and hose_check_pic = #{hoseCheckPic}
</if>
<if
test=
"valveCheckStatus != null and valveCheckStatus != ''"
>
and valve_check_status = #{valveCheckStatus}
</if>
<if
test=
"valveCheckPic != null and valveCheckPic != ''"
>
and valve_check_pic = #{valveCheckPic}
</if>
<if
test=
"bottleCheckStatus != null and bottleCheckStatus != ''"
>
and bottle_check_status = #{bottleCheckStatus}
</if>
<if
test=
"bottleCheckPic != null and bottleCheckPic != ''"
>
and bottle_check_pic = #{bottleCheckPic}
</if>
<if
test=
"alarmCheckStatus != null and alarmCheckStatus != ''"
>
and alarm_check_status = #{alarmCheckStatus}
</if>
<if
test=
"alarmCheckPic != null and alarmCheckPic != ''"
>
and alarm_check_pic = #{alarmCheckPic}
</if>
<if
test=
"placeCheckStatus != null and placeCheckStatus != ''"
>
and place_check_status = #{placeCheckStatus}
</if>
<if
test=
"placeCheckPic != null and placeCheckPic != ''"
>
and place_check_pic = #{placeCheckPic}
</if>
<if
test=
"checkPersonSign != null and checkPersonSign != ''"
>
and check_person_sign = #{checkPersonSign}
</if>
<if
test=
"gasUserSign != null and gasUserSign != ''"
>
and gas_user_sign = #{gasUserSign}
</if>
<if
test=
"isDel != null and isDel != ''"
>
and is_del = #{isDel}
</if>
</where>
</select>
<select
id=
"selectTLpgSafeCheckRecordById"
parameterType=
"Long"
resultMap=
"TLpgSafeCheckRecordResult"
>
<include
refid=
"selectTLpgSafeCheckRecordVo"
/>
where safe_check_id = #{safeCheckId}
</select>
<insert
id=
"insertTLpgSafeCheckRecord"
parameterType=
"TLpgSafeCheckRecord"
useGeneratedKeys=
"true"
keyProperty=
"safeCheckId"
>
insert into t_lpg_safe_check_record
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"stationName != null"
>
station_name,
</if>
<if
test=
"gasUser != null"
>
gas_user,
</if>
<if
test=
"gasUserType != null"
>
gas_user_type,
</if>
<if
test=
"telNum != null"
>
tel_num,
</if>
<if
test=
"gasUserAddress != null"
>
gas_user_address,
</if>
<if
test=
"safeCheckDate != null"
>
safe_check_date,
</if>
<if
test=
"safeCheckPerson != null"
>
safe_check_person,
</if>
<if
test=
"bottleNum != null"
>
bottle_num,
</if>
<if
test=
"checkInStatus != null"
>
check_in_status,
</if>
<if
test=
"stoveCheckStatus != null"
>
stove_check_status,
</if>
<if
test=
"stoveCheckPic != null"
>
stove_check_pic,
</if>
<if
test=
"hoseCheckStatus != null"
>
hose_check_status,
</if>
<if
test=
"hoseCheckPic != null"
>
hose_check_pic,
</if>
<if
test=
"valveCheckStatus != null"
>
valve_check_status,
</if>
<if
test=
"valveCheckPic != null"
>
valve_check_pic,
</if>
<if
test=
"bottleCheckStatus != null"
>
bottle_check_status,
</if>
<if
test=
"bottleCheckPic != null"
>
bottle_check_pic,
</if>
<if
test=
"alarmCheckStatus != null"
>
alarm_check_status,
</if>
<if
test=
"alarmCheckPic != null"
>
alarm_check_pic,
</if>
<if
test=
"placeCheckStatus != null"
>
place_check_status,
</if>
<if
test=
"placeCheckPic != null"
>
place_check_pic,
</if>
<if
test=
"checkPersonSign != null"
>
check_person_sign,
</if>
<if
test=
"gasUserSign != null"
>
gas_user_sign,
</if>
<if
test=
"createTime != null"
>
create_time,
</if>
<if
test=
"updateTime != null"
>
update_time,
</if>
<if
test=
"isDel != null"
>
is_del,
</if>
<if
test=
"remark != null"
>
remark,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"stationName != null"
>
#{stationName},
</if>
<if
test=
"gasUser != null"
>
#{gasUser},
</if>
<if
test=
"gasUserType != null"
>
#{gasUserType},
</if>
<if
test=
"telNum != null"
>
#{telNum},
</if>
<if
test=
"gasUserAddress != null"
>
#{gasUserAddress},
</if>
<if
test=
"safeCheckDate != null"
>
#{safeCheckDate},
</if>
<if
test=
"safeCheckPerson != null"
>
#{safeCheckPerson},
</if>
<if
test=
"bottleNum != null"
>
#{bottleNum},
</if>
<if
test=
"checkInStatus != null"
>
#{checkInStatus},
</if>
<if
test=
"stoveCheckStatus != null"
>
#{stoveCheckStatus},
</if>
<if
test=
"stoveCheckPic != null"
>
#{stoveCheckPic},
</if>
<if
test=
"hoseCheckStatus != null"
>
#{hoseCheckStatus},
</if>
<if
test=
"hoseCheckPic != null"
>
#{hoseCheckPic},
</if>
<if
test=
"valveCheckStatus != null"
>
#{valveCheckStatus},
</if>
<if
test=
"valveCheckPic != null"
>
#{valveCheckPic},
</if>
<if
test=
"bottleCheckStatus != null"
>
#{bottleCheckStatus},
</if>
<if
test=
"bottleCheckPic != null"
>
#{bottleCheckPic},
</if>
<if
test=
"alarmCheckStatus != null"
>
#{alarmCheckStatus},
</if>
<if
test=
"alarmCheckPic != null"
>
#{alarmCheckPic},
</if>
<if
test=
"placeCheckStatus != null"
>
#{placeCheckStatus},
</if>
<if
test=
"placeCheckPic != null"
>
#{placeCheckPic},
</if>
<if
test=
"checkPersonSign != null"
>
#{checkPersonSign},
</if>
<if
test=
"gasUserSign != null"
>
#{gasUserSign},
</if>
<if
test=
"createTime != null"
>
#{createTime},
</if>
<if
test=
"updateTime != null"
>
#{updateTime},
</if>
<if
test=
"isDel != null"
>
#{isDel},
</if>
<if
test=
"remark != null"
>
#{remark},
</if>
</trim>
</insert>
<update
id=
"updateTLpgSafeCheckRecord"
parameterType=
"TLpgSafeCheckRecord"
>
update t_lpg_safe_check_record
<trim
prefix=
"SET"
suffixOverrides=
","
>
<if
test=
"stationName != null"
>
station_name = #{stationName},
</if>
<if
test=
"gasUser != null"
>
gas_user = #{gasUser},
</if>
<if
test=
"gasUserType != null"
>
gas_user_type = #{gasUserType},
</if>
<if
test=
"telNum != null"
>
tel_num = #{telNum},
</if>
<if
test=
"gasUserAddress != null"
>
gas_user_address = #{gasUserAddress},
</if>
<if
test=
"safeCheckDate != null"
>
safe_check_date = #{safeCheckDate},
</if>
<if
test=
"safeCheckPerson != null"
>
safe_check_person = #{safeCheckPerson},
</if>
<if
test=
"bottleNum != null"
>
bottle_num = #{bottleNum},
</if>
<if
test=
"checkInStatus != null"
>
check_in_status = #{checkInStatus},
</if>
<if
test=
"stoveCheckStatus != null"
>
stove_check_status = #{stoveCheckStatus},
</if>
<if
test=
"stoveCheckPic != null"
>
stove_check_pic = #{stoveCheckPic},
</if>
<if
test=
"hoseCheckStatus != null"
>
hose_check_status = #{hoseCheckStatus},
</if>
<if
test=
"hoseCheckPic != null"
>
hose_check_pic = #{hoseCheckPic},
</if>
<if
test=
"valveCheckStatus != null"
>
valve_check_status = #{valveCheckStatus},
</if>
<if
test=
"valveCheckPic != null"
>
valve_check_pic = #{valveCheckPic},
</if>
<if
test=
"bottleCheckStatus != null"
>
bottle_check_status = #{bottleCheckStatus},
</if>
<if
test=
"bottleCheckPic != null"
>
bottle_check_pic = #{bottleCheckPic},
</if>
<if
test=
"alarmCheckStatus != null"
>
alarm_check_status = #{alarmCheckStatus},
</if>
<if
test=
"alarmCheckPic != null"
>
alarm_check_pic = #{alarmCheckPic},
</if>
<if
test=
"placeCheckStatus != null"
>
place_check_status = #{placeCheckStatus},
</if>
<if
test=
"placeCheckPic != null"
>
place_check_pic = #{placeCheckPic},
</if>
<if
test=
"checkPersonSign != null"
>
check_person_sign = #{checkPersonSign},
</if>
<if
test=
"gasUserSign != null"
>
gas_user_sign = #{gasUserSign},
</if>
<if
test=
"createTime != null"
>
create_time = #{createTime},
</if>
<if
test=
"updateTime != null"
>
update_time = #{updateTime},
</if>
<if
test=
"isDel != null"
>
is_del = #{isDel},
</if>
<if
test=
"remark != null"
>
remark = #{remark},
</if>
</trim>
where safe_check_id = #{safeCheckId}
</update>
<delete
id=
"deleteTLpgSafeCheckRecordById"
parameterType=
"Long"
>
delete from t_lpg_safe_check_record where safe_check_id = #{safeCheckId}
</delete>
<delete
id=
"deleteTLpgSafeCheckRecordByIds"
parameterType=
"String"
>
delete from t_lpg_safe_check_record where safe_check_id in
<foreach
item=
"safeCheckId"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
#{safeCheckId}
</foreach>
</delete>
</mapper>
\ No newline at end of file
zh-baseversion-web/src/api/lpgRegulation/check.js
0 → 100644
View file @
e353ab3a
import
request
from
'@/utils/request'
// 查询液化石油安检记录列表
export
function
listRecord
(
query
)
{
return
request
({
url
:
'/lpg/check/list'
,
method
:
'get'
,
params
:
query
})
}
// 查询液化石油安检记录详细
export
function
getRecord
(
safeCheckId
)
{
return
request
({
url
:
'/lpg/check/'
+
safeCheckId
,
method
:
'get'
})
}
// 新增液化石油安检记录
export
function
addRecord
(
data
)
{
return
request
({
url
:
'/lpg/check'
,
method
:
'post'
,
data
:
data
})
}
// 修改液化石油安检记录
export
function
updateRecord
(
data
)
{
return
request
({
url
:
'/lpg/check'
,
method
:
'put'
,
data
:
data
})
}
// 删除液化石油安检记录
export
function
delRecord
(
safeCheckId
)
{
return
request
({
url
:
'/lpg/check/'
+
safeCheckId
,
method
:
'delete'
})
}
// 导出液化石油安检记录
export
function
exportRecord
(
query
)
{
return
request
({
url
:
'/lpg/check/export'
,
method
:
'get'
,
params
:
query
})
}
zh-baseversion-web/src/views/lpgRegulation/check/components/DetailInfo.vue
0 → 100644
View file @
e353ab3a
<
template
>
<el-dialog
title=
"安检记录详情"
:visible
.
sync=
"detailOpen"
width=
"900px"
append-to-body
>
<el-form
label-width=
"120px"
>
<el-row>
<el-col
:span=
"12"
>
<el-form-item
label=
"储配站"
>
<span>
{{
detailInfo
.
stationName
}}
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"用户名称"
>
<span>
{{
detailInfo
.
gasUser
}}
</span>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"12"
>
<el-form-item
label=
"用户类型"
>
<span
v-if=
"detailInfo.gasUserType == '0'"
>
居民
</span>
<span
v-if=
"detailInfo.gasUserType == '1'"
>
非居民
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"联系方式"
>
<span>
{{
detailInfo
.
telNum
}}
</span>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"12"
>
<el-form-item
label=
"安检时间"
>
<span>
{{
detailInfo
.
safeCheckDate
}}
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"安检人"
>
<span>
{{
detailInfo
.
safeCheckPerson
}}
</span>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"12"
>
<el-form-item
label=
"入户状态"
>
<span
v-if=
"detailInfo.checkInStatus == '0'"
>
正常入户
</span>
<span
v-if=
"detailInfo.checkInStatus == '1'"
>
拒绝安检
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"用户地址"
>
<span>
{{
detailInfo
.
gasUserAddress
}}
</span>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"12"
v-if=
"detailInfo.stoveCheckStatus"
>
<el-form-item
label=
"燃气灶具检查情况"
>
<div
v-if=
"detailInfo.stoveCheckStatus == '0'"
>
合格
</div>
<div
v-if=
"detailInfo.stoveCheckStatus == '1'"
>
无3C认证
</div>
<div
v-if=
"detailInfo.stoveCheckStatus == '2'"
>
无熄火保护装置
</div>
<el-image
v-if=
"detailInfo.stoveCheckPic"
:src=
"detailInfo.stoveCheckPic"
:preview-src-list=
"[detailInfo.stoveCheckPic]"
:z-index=
"9999"
style=
"width: 230px;height: 170px;"
/>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"连接软管检查情况"
v-if=
"detailInfo.hoseCheckStatus"
>
<div
v-if=
"detailInfo.hoseCheckStatus == '0'"
>
合格
</div>
<div
v-if=
"detailInfo.hoseCheckStatus == '1'"
>
普通橡胶软管
</div>
<div
v-if=
"detailInfo.hoseCheckStatus == '2'"
>
三通连接软管
</div>
<div
v-if=
"detailInfo.hoseCheckStatus == '3'"
>
长度超过两米且未使用硬质钢管链接
</div>
<div
v-if=
"detailInfo.hoseCheckStatus == '4'"
>
穿越墙体、门窗顶棚和地面
</div>
<el-image
v-if=
"detailInfo.hoseCheckPic"
:src=
"detailInfo.hoseCheckPic"
:preview-src-list=
"[detailInfo.hoseCheckPic]"
:z-index=
"9999"
style=
"width: 230px;height: 170px;"
/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"12"
v-if=
"detailInfo.valveCheckStatus"
>
<el-form-item
label=
"减压阀检查情况"
>
<div
v-if=
"detailInfo.valveCheckStatus == '0'"
>
合格
</div>
<div
v-if=
"detailInfo.valveCheckStatus == '1'"
>
可调节
</div>
<div
v-if=
"detailInfo.valveCheckStatus == '2'"
>
五自闭功能
</div>
<el-image
v-if=
"detailInfo.valveCheckPic"
:src=
"detailInfo.valveCheckPic"
:preview-src-list=
"[detailInfo.valveCheckPic]"
:z-index=
"9999"
style=
"width: 230px;height: 170px;"
/>
</el-form-item>
</el-col>
<el-col
:span=
"12"
v-if=
"detailInfo.bottleCheckStatus"
>
<el-form-item
label=
"液化气钢瓶检查情况"
>
<div
v-if=
"detailInfo.bottleCheckStatus == '0'"
>
合格
</div>
<div
v-if=
"detailInfo.bottleCheckStatus == '1'"
>
部分有码且可追溯
</div>
<div
v-if=
"detailInfo.bottleCheckStatus == '2'"
>
有码但不可追溯
</div>
<div
v-if=
"detailInfo.bottleCheckStatus == '3'"
>
钢瓶无码
</div>
<el-image
v-if=
"detailInfo.bottleCheckPic"
:src=
"detailInfo.bottleCheckPic"
:preview-src-list=
"[detailInfo.bottleCheckPic]"
:z-index=
"9999"
style=
"width: 230px;height: 170px;"
/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"12"
v-if=
"detailInfo.alarmCheckStatus"
>
<el-form-item
label=
"报警器加电磁切断阀检查情况"
>
<div
v-if=
"detailInfo.alarmCheckStatus == '0'"
>
合格
</div>
<div
v-if=
"detailInfo.alarmCheckStatus == '1'"
>
有但未使用
</div>
<div
v-if=
"detailInfo.alarmCheckStatus == '2'"
>
有但未实现联动
</div>
<div
v-if=
"detailInfo.alarmCheckStatus == '3'"
>
无
</div>
<div
v-if=
"detailInfo.alarmCheckStatus == '4'"
>
非液化气专用报警器
</div>
<div
v-if=
"detailInfo.alarmCheckStatus == '5'"
>
安装位置大于0.3米
</div>
<el-image
v-if=
"detailInfo.alarmCheckPic"
:src=
"detailInfo.alarmCheckPic"
:preview-src-list=
"[detailInfo.alarmCheckPic]"
:z-index=
"9999"
style=
"width: 230px;height: 170px;"
/>
</el-form-item>
</el-col>
<el-col
:span=
"12"
v-if=
"detailInfo.placeCheckStatus"
>
<el-form-item
label=
"液化气钢瓶检查情况"
>
<div
v-if=
"detailInfo.placeCheckStatus == '0'"
>
合格
</div>
<div
v-if=
"detailInfo.placeCheckStatus == '1'"
>
高层建筑(裙房)
</div>
<div
v-if=
"detailInfo.placeCheckStatus == '2'"
>
地下(半地下)室
</div>
<div
v-if=
"detailInfo.placeCheckStatus == '3'"
>
车库或半地下车库
</div>
<div
v-if=
"detailInfo.placeCheckStatus == '4'"
>
通风不良的场所 5.50公斤钢瓶超过两只或15公斤钢瓶超过七只未设置独立的气瓶间
</div>
<el-image
v-if=
"detailInfo.placeCheckPic"
:src=
"detailInfo.placeCheckPic"
:preview-src-list=
"[detailInfo.placeCheckPic]"
:z-index=
"9999"
style=
"width: 230px;height: 170px;"
/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"12"
v-if=
"detailInfo.checkPersonSign"
>
<el-form-item
label=
"安检人员签名"
>
<el-image
v-if=
"detailInfo.checkPersonSign"
:src=
"detailInfo.checkPersonSign"
:preview-src-list=
"[detailInfo.checkPersonSign]"
:z-index=
"9999"
style=
"width: 230px;height: 170px;"
/>
</el-form-item>
</el-col>
<el-col
:span=
"12"
v-if=
"detailInfo.gasUserSign"
>
<el-form-item
label=
"用户签字"
>
<el-image
v-if=
"detailInfo.gasUserSign"
:src=
"detailInfo.gasUserSign"
:preview-src-list=
"[detailInfo.gasUserSign]"
:z-index=
"9999"
style=
"width: 230px;height: 170px;"
/>
</el-form-item>
</el-col>
</el-row>
</el-form>
</el-dialog>
</
template
>
<
script
>
import
{
getRecord
}
from
"@/api/lpgRegulation/check"
;
export
default
{
name
:
"index"
,
data
(){
return
{
detailOpen
:
false
,
detailInfo
:
{}
}
},
methods
:{
getDetailInfo
(
id
){
getRecord
(
id
).
then
(
res
=>
{
if
(
res
.
code
==
200
&&
res
.
data
){
this
.
detailInfo
=
res
.
data
;
this
.
detailOpen
=
true
;
}
})
}
}
}
</
script
>
<
style
scoped
lang=
"scss"
>
.detailInfo
{
height
:
350px
;
overflow-y
:
auto
;
&
:
:-
webkit-scrollbar
{
/* 设置滚动条宽度 */
width
:
4px
;
/* 设置滚动条背景色 */
//background: black;
}
//滚动条轨道
&
:
:-
webkit-scrollbar-track
{
background-color
:transparent
;
-webkit-border-radius
:
2em
;
-moz-border-radius
:
2em
;
border-radius
:
2em
;
}
//滚动条滑块
&
:
:-
webkit-scrollbar-thumb
{
background-color
:
rgb
(
147
,
147
,
153
,
0
.5
);
-webkit-border-radius
:
2em
;
-moz-border-radius
:
2em
;
border-radius
:
2em
;
}
}
</
style
>
zh-baseversion-web/src/views/lpgRegulation/check/index.vue
0 → 100644
View file @
e353ab3a
<
template
>
<div
class=
"app-container"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
:inline=
"true"
v-show=
"showSearch"
label-width=
"68px"
>
<el-form-item
label=
"用户名"
prop=
"gasUser"
>
<el-input
v-model=
"queryParams.gasUser"
placeholder=
"请输入用户名"
clearable
size=
"small"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"用户类型"
prop=
"gasUserType"
>
<el-select
v-model=
"queryParams.gasUserType"
placeholder=
"请选择用户类型"
clearable
size=
"small"
>
<el-option
label=
"居民"
value=
"0"
/>
<el-option
label=
"非居民"
value=
"1"
/>
</el-select>
</el-form-item>
<el-form-item
label=
"安检人"
prop=
"safeCheckPerson"
>
<el-input
v-model=
"queryParams.safeCheckPerson"
placeholder=
"请输入安检人"
clearable
size=
"small"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"入户状态"
prop=
"checkInStatus"
>
<el-select
v-model=
"queryParams.checkInStatus"
placeholder=
"请选择入户状态"
clearable
size=
"small"
>
<el-option
label=
"正常入户"
value=
"0"
/>
<el-option
label=
"拒绝安检"
value=
"1"
/>
</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=
"['system: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=
"['system: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=
"['system: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"
>
导出
</el-button>
</el-col>
<right-toolbar
:showSearch
.
sync=
"showSearch"
@
queryTable=
"getList"
></right-toolbar>
</el-row>
<el-table
v-loading=
"loading"
:data=
"recordList"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
/>
<el-table-column
label=
"储配站"
align=
"center"
prop=
"stationName"
/>
<el-table-column
label=
"用户名"
align=
"center"
prop=
"gasUser"
/>
<el-table-column
label=
"用户类型"
align=
"center"
prop=
"gasUserType"
>
<template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.checkInStatus == '0'"
>
居民
</span>
<span
v-else-if=
"scope.row.checkInStatus == '1'"
>
非居民
</span>
<span
v-else
>
-
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"用户地址"
align=
"center"
prop=
"gasUserAddress"
/>
<el-table-column
label=
"联系电话"
align=
"center"
prop=
"telNum"
/>
<el-table-column
label=
"安检时间"
align=
"center"
prop=
"safeCheckDate"
width=
"180"
>
<
template
slot-scope=
"scope"
>
<span>
{{
parseTime
(
scope
.
row
.
safeCheckDate
,
'{y
}
-{m
}
-{d
}
{h
}
:{i
}
:{s
}
'
)
}}
<
/span
>
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"安检人"
align
=
"center"
prop
=
"safeCheckPerson"
/>
<
el
-
table
-
column
label
=
"入户状态"
align
=
"center"
prop
=
"checkInStatus"
>
<
template
slot
-
scope
=
"scope"
>
<
span
v
-
if
=
"scope.row.checkInStatus == '0'"
>
正常入户
<
/span
>
<
span
v
-
else
-
if
=
"scope.row.checkInStatus == '1'"
>
拒绝安检
<
/span
>
<
span
v
-
else
>-<
/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)"
>
详情
<
/el-button
>
<!--
<
el
-
button
size
=
"mini"
type
=
"text"
icon
=
"el-icon-edit"
@
click
=
"handleUpdate(scope.row)"
v
-
hasPermi
=
"['system:record:edit']"
>
修改
<
/el-button
>
<
el
-
button
size
=
"mini"
type
=
"text"
icon
=
"el-icon-delete"
@
click
=
"handleDelete(scope.row)"
v
-
hasPermi
=
"['system: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
=
"500px"
append
-
to
-
body
>
<
el
-
form
ref
=
"form"
:
model
=
"form"
:
rules
=
"rules"
label
-
width
=
"80px"
>
<
el
-
form
-
item
label
=
"储配站"
prop
=
"stationName"
>
<
el
-
input
v
-
model
=
"form.stationName"
placeholder
=
"请输入储配站"
/>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"用户名"
prop
=
"gasUser"
>
<
el
-
input
v
-
model
=
"form.gasUser"
placeholder
=
"请输入用户名"
/>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"0.居民 1.非居民"
prop
=
"gasUserType"
>
<
el
-
select
v
-
model
=
"form.gasUserType"
placeholder
=
"请选择0.居民 1.非居民"
>
<
el
-
option
label
=
"请选择字典生成"
value
=
""
/>
<
/el-select
>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"联系电话"
prop
=
"telNum"
>
<
el
-
input
v
-
model
=
"form.telNum"
placeholder
=
"请输入联系电话"
/>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"安检时间"
prop
=
"safeCheckDate"
>
<
el
-
date
-
picker
clearable
size
=
"small"
v
-
model
=
"form.safeCheckDate"
type
=
"date"
value
-
format
=
"yyyy-MM-dd"
placeholder
=
"选择安检时间"
>
<
/el-date-picker
>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"安检人"
prop
=
"safeCheckPerson"
>
<
el
-
input
v
-
model
=
"form.safeCheckPerson"
placeholder
=
"请输入安检人"
/>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"气瓶数量"
prop
=
"bottleNum"
>
<
el
-
input
v
-
model
=
"form.bottleNum"
placeholder
=
"请输入气瓶数量"
/>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"入户状态:0.正常入户 1.拒绝安检"
>
<
el
-
radio
-
group
v
-
model
=
"form.checkInStatus"
>
<
el
-
radio
label
=
"1"
>
请选择字典生成
<
/el-radio
>
<
/el-radio-group
>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"燃气灶具检查情况:0.合格 1.无3C认证 2.无熄火保护装置"
>
<
el
-
radio
-
group
v
-
model
=
"form.stoveCheckStatus"
>
<
el
-
radio
label
=
"1"
>
请选择字典生成
<
/el-radio
>
<
/el-radio-group
>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"燃气灶具检查情况"
prop
=
"stoveCheckPic"
>
<
el
-
input
v
-
model
=
"form.stoveCheckPic"
type
=
"textarea"
placeholder
=
"请输入内容"
/>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"连接软管检查情况:0.合格 1.普通橡胶软管 2.三通连接软管 3.长度超过两米且未使用硬质钢管链接 4.穿越墙体、门窗顶棚和地面"
>
<
el
-
radio
-
group
v
-
model
=
"form.hoseCheckStatus"
>
<
el
-
radio
label
=
"1"
>
请选择字典生成
<
/el-radio
>
<
/el-radio-group
>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"连接软管检查情况"
prop
=
"hoseCheckPic"
>
<
el
-
input
v
-
model
=
"form.hoseCheckPic"
type
=
"textarea"
placeholder
=
"请输入内容"
/>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"减压阀检查情况:0.合格 1.可调节 2.五自闭功能"
>
<
el
-
radio
-
group
v
-
model
=
"form.valveCheckStatus"
>
<
el
-
radio
label
=
"1"
>
请选择字典生成
<
/el-radio
>
<
/el-radio-group
>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"减压阀检查情况"
prop
=
"valveCheckPic"
>
<
el
-
input
v
-
model
=
"form.valveCheckPic"
type
=
"textarea"
placeholder
=
"请输入内容"
/>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"液化气钢瓶检查情况:0.合格 1.部分有码且可追溯 2.有码但不可追溯 3.钢瓶无码"
>
<
el
-
radio
-
group
v
-
model
=
"form.bottleCheckStatus"
>
<
el
-
radio
label
=
"1"
>
请选择字典生成
<
/el-radio
>
<
/el-radio-group
>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"液化气钢瓶检查情况"
prop
=
"bottleCheckPic"
>
<
el
-
input
v
-
model
=
"form.bottleCheckPic"
type
=
"textarea"
placeholder
=
"请输入内容"
/>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"报警器加电磁切断阀检查情况:0.合格 1.有但未使用 2.有但未实现联动 3.无 4.非液化气专用报警器 5.安装位置大于0.3米"
>
<
el
-
radio
-
group
v
-
model
=
"form.alarmCheckStatus"
>
<
el
-
radio
label
=
"1"
>
请选择字典生成
<
/el-radio
>
<
/el-radio-group
>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"报警器加电磁切断阀检查情况"
prop
=
"alarmCheckPic"
>
<
el
-
input
v
-
model
=
"form.alarmCheckPic"
type
=
"textarea"
placeholder
=
"请输入内容"
/>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"用气场所检查情况:0.合格 1.高层建筑"
>
<
el
-
radio
-
group
v
-
model
=
"form.placeCheckStatus"
>
<
el
-
radio
label
=
"1"
>
请选择字典生成
<
/el-radio
>
<
/el-radio-group
>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"用气场所检查情况"
prop
=
"placeCheckPic"
>
<
el
-
input
v
-
model
=
"form.placeCheckPic"
type
=
"textarea"
placeholder
=
"请输入内容"
/>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"安检人员签名"
prop
=
"checkPersonSign"
>
<
el
-
input
v
-
model
=
"form.checkPersonSign"
type
=
"textarea"
placeholder
=
"请输入内容"
/>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"用户签字"
prop
=
"gasUserSign"
>
<
el
-
input
v
-
model
=
"form.gasUserSign"
type
=
"textarea"
placeholder
=
"请输入内容"
/>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"删除状态:0.否 1.是"
prop
=
"isDel"
>
<
el
-
input
v
-
model
=
"form.isDel"
placeholder
=
"请输入删除状态:0.否 1.是"
/>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"备注"
prop
=
"remark"
>
<
el
-
input
v
-
model
=
"form.remark"
placeholder
=
"请输入备注"
/>
<
/el-form-item
>
<
/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
{
listRecord
,
getRecord
,
delRecord
,
addRecord
,
updateRecord
,
exportRecord
}
from
"@/api/lpgRegulation/check"
;
import
DetailInfo
from
"./components/DetailInfo"
;
export
default
{
name
:
"Record"
,
components
:
{
DetailInfo
}
,
data
()
{
return
{
// 遮罩层
loading
:
true
,
// 导出遮罩层
exportLoading
:
false
,
// 选中数组
ids
:
[],
// 非单个禁用
single
:
true
,
// 非多个禁用
multiple
:
true
,
// 显示搜索条件
showSearch
:
true
,
// 总条数
total
:
0
,
// 液化石油安检记录表格数据
recordList
:
[],
// 弹出层标题
title
:
""
,
// 是否显示弹出层
open
:
false
,
// 查询参数
queryParams
:
{
pageNum
:
1
,
pageSize
:
10
,
stationName
:
null
,
gasUser
:
null
,
gasUserType
:
null
,
telNum
:
null
,
safeCheckDate
:
null
,
safeCheckPerson
:
null
,
bottleNum
:
null
,
checkInStatus
:
null
,
stoveCheckStatus
:
null
,
stoveCheckPic
:
null
,
hoseCheckStatus
:
null
,
hoseCheckPic
:
null
,
valveCheckStatus
:
null
,
valveCheckPic
:
null
,
bottleCheckStatus
:
null
,
bottleCheckPic
:
null
,
alarmCheckStatus
:
null
,
alarmCheckPic
:
null
,
placeCheckStatus
:
null
,
placeCheckPic
:
null
,
checkPersonSign
:
null
,
gasUserSign
:
null
,
isDel
:
null
,
}
,
// 表单参数
form
:
{
}
,
// 表单校验
rules
:
{
}
}
;
}
,
created
()
{
this
.
getList
();
}
,
methods
:
{
/** 查询液化石油安检记录列表 */
getList
()
{
this
.
loading
=
true
;
listRecord
(
this
.
queryParams
).
then
(
response
=>
{
this
.
recordList
=
response
.
rows
;
this
.
total
=
response
.
total
;
this
.
loading
=
false
;
}
);
}
,
// 取消按钮
cancel
()
{
this
.
open
=
false
;
this
.
reset
();
}
,
// 表单重置
reset
()
{
this
.
form
=
{
safeCheckId
:
null
,
stationName
:
null
,
gasUser
:
null
,
gasUserType
:
null
,
telNum
:
null
,
safeCheckDate
:
null
,
safeCheckPerson
:
null
,
bottleNum
:
null
,
checkInStatus
:
"0"
,
stoveCheckStatus
:
"0"
,
stoveCheckPic
:
null
,
hoseCheckStatus
:
"0"
,
hoseCheckPic
:
null
,
valveCheckStatus
:
"0"
,
valveCheckPic
:
null
,
bottleCheckStatus
:
"0"
,
bottleCheckPic
:
null
,
alarmCheckStatus
:
"0"
,
alarmCheckPic
:
null
,
placeCheckStatus
:
"0"
,
placeCheckPic
:
null
,
checkPersonSign
:
null
,
gasUserSign
:
null
,
createTime
:
null
,
updateTime
:
null
,
isDel
:
null
,
remark
:
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
.
safeCheckId
)
this
.
single
=
selection
.
length
!==
1
this
.
multiple
=
!
selection
.
length
}
,
/** 新增按钮操作 */
handleAdd
()
{
this
.
reset
();
this
.
open
=
true
;
this
.
title
=
"添加液化石油安检记录"
;
}
,
/** 修改按钮操作 */
handleUpdate
(
row
)
{
this
.
reset
();
const
safeCheckId
=
row
.
safeCheckId
||
this
.
ids
getRecord
(
safeCheckId
).
then
(
response
=>
{
this
.
form
=
response
.
data
;
this
.
open
=
true
;
this
.
title
=
"修改液化石油安检记录"
;
}
);
}
,
/** 提交按钮 */
submitForm
()
{
this
.
$refs
[
"form"
].
validate
(
valid
=>
{
if
(
valid
)
{
if
(
this
.
form
.
safeCheckId
!=
null
)
{
updateRecord
(
this
.
form
).
then
(
response
=>
{
this
.
msgSuccess
(
"修改成功"
);
this
.
open
=
false
;
this
.
getList
();
}
);
}
else
{
addRecord
(
this
.
form
).
then
(
response
=>
{
this
.
msgSuccess
(
"新增成功"
);
this
.
open
=
false
;
this
.
getList
();
}
);
}
}
}
);
}
,
/** 删除按钮操作 */
handleDelete
(
row
)
{
const
safeCheckIds
=
row
.
safeCheckId
||
this
.
ids
;
this
.
$confirm
(
'是否确认删除液化石油安检记录编号为"'
+
safeCheckIds
+
'"的数据项?'
,
"警告"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}
).
then
(
function
()
{
return
delRecord
(
safeCheckIds
);
}
).
then
(()
=>
{
this
.
getList
();
this
.
msgSuccess
(
"删除成功"
);
}
).
catch
(()
=>
{
}
);
}
,
/** 导出按钮操作 */
handleExport
()
{
const
queryParams
=
this
.
queryParams
;
this
.
$confirm
(
'是否确认导出所有液化石油安检记录数据项?'
,
"警告"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}
).
then
(()
=>
{
this
.
exportLoading
=
true
;
return
exportRecord
(
queryParams
);
}
).
then
(
response
=>
{
this
.
download
(
response
.
msg
);
this
.
exportLoading
=
false
;
}
).
catch
(()
=>
{
}
);
}
,
//详情
handleDetail
(
row
){
this
.
$refs
.
detail
.
getDetailInfo
(
row
.
safeCheckId
);
}
,
}
}
;
<
/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