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
ca11e965
Commit
ca11e965
authored
Jul 09, 2024
by
wanghao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1 液化石油气监管-气瓶档案模块功能开发
parent
371043f1
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
1935 additions
and
2 deletions
+1935
-2
TLpgGasBottleFilesController.java
...ontroller/lpgRegulation/TLpgGasBottleFilesController.java
+97
-0
TLpgGasBottleFiles.java
...ain/java/com/zehong/system/domain/TLpgGasBottleFiles.java
+659
-0
TLpgGasBottleFilesMapper.java
...va/com/zehong/system/mapper/TLpgGasBottleFilesMapper.java
+61
-0
ITLpgGasBottleFilesService.java
...com/zehong/system/service/ITLpgGasBottleFilesService.java
+61
-0
GovernmentSupervisionInfoServiceImpl.java
...em/service/impl/GovernmentSupervisionInfoServiceImpl.java
+6
-2
TLpgGasBottleFilesServiceImpl.java
...ng/system/service/impl/TLpgGasBottleFilesServiceImpl.java
+93
-0
TLpgGasBottleFilesMapper.xml
...main/resources/mapper/system/TLpgGasBottleFilesMapper.xml
+246
-0
files.js
zh-baseversion-web/src/api/lpgRegulation/files.js
+53
-0
indexInfo.vue
...ews/lpgRegulation/gasbottlefiles/components/indexInfo.vue
+326
-0
index.vue
...sion-web/src/views/lpgRegulation/gasbottlefiles/index.vue
+333
-0
No files found.
zh-baseversion-admin/src/main/java/com/zehong/web/controller/lpgRegulation/TLpgGasBottleFilesController.java
0 → 100644
View file @
ca11e965
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.TLpgGasBottleFiles
;
import
com.zehong.system.service.ITLpgGasBottleFilesService
;
import
com.zehong.common.utils.poi.ExcelUtil
;
import
com.zehong.common.core.page.TableDataInfo
;
/**
* 液化石油气-气瓶档案Controller
*
* @author zehong
* @date 2024-07-09
*/
@RestController
@RequestMapping
(
"/lpg/gasbottlefiles"
)
public
class
TLpgGasBottleFilesController
extends
BaseController
{
@Autowired
private
ITLpgGasBottleFilesService
tLpgGasBottleFilesService
;
/**
* 查询液化石油气-气瓶档案列表
*/
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
TLpgGasBottleFiles
tLpgGasBottleFiles
)
{
startPage
();
List
<
TLpgGasBottleFiles
>
list
=
tLpgGasBottleFilesService
.
selectTLpgGasBottleFilesList
(
tLpgGasBottleFiles
);
return
getDataTable
(
list
);
}
/**
* 导出液化石油气-气瓶档案列表
*/
@Log
(
title
=
"液化石油气-气瓶档案"
,
businessType
=
BusinessType
.
EXPORT
)
@GetMapping
(
"/export"
)
public
AjaxResult
export
(
TLpgGasBottleFiles
tLpgGasBottleFiles
)
{
List
<
TLpgGasBottleFiles
>
list
=
tLpgGasBottleFilesService
.
selectTLpgGasBottleFilesList
(
tLpgGasBottleFiles
);
ExcelUtil
<
TLpgGasBottleFiles
>
util
=
new
ExcelUtil
<
TLpgGasBottleFiles
>(
TLpgGasBottleFiles
.
class
);
return
util
.
exportExcel
(
list
,
"液化石油气-气瓶档案数据"
);
}
/**
* 获取液化石油气-气瓶档案详细信息
*/
@GetMapping
(
value
=
"/{fGasBottleFilesId}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"fGasBottleFilesId"
)
Long
fGasBottleFilesId
)
{
return
AjaxResult
.
success
(
tLpgGasBottleFilesService
.
selectTLpgGasBottleFilesById
(
fGasBottleFilesId
));
}
/**
* 新增液化石油气-气瓶档案
*/
@Log
(
title
=
"液化石油气-气瓶档案"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
public
AjaxResult
add
(
@RequestBody
TLpgGasBottleFiles
tLpgGasBottleFiles
)
{
return
toAjax
(
tLpgGasBottleFilesService
.
insertTLpgGasBottleFiles
(
tLpgGasBottleFiles
));
}
/**
* 修改液化石油气-气瓶档案
*/
@Log
(
title
=
"液化石油气-气瓶档案"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
public
AjaxResult
edit
(
@RequestBody
TLpgGasBottleFiles
tLpgGasBottleFiles
)
{
return
toAjax
(
tLpgGasBottleFilesService
.
updateTLpgGasBottleFiles
(
tLpgGasBottleFiles
));
}
/**
* 删除液化石油气-气瓶档案
*/
@Log
(
title
=
"液化石油气-气瓶档案"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/{fGasBottleFilesIds}"
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
fGasBottleFilesIds
)
{
return
toAjax
(
tLpgGasBottleFilesService
.
deleteTLpgGasBottleFilesByIds
(
fGasBottleFilesIds
));
}
}
zh-baseversion-system/src/main/java/com/zehong/system/domain/TLpgGasBottleFiles.java
0 → 100644
View file @
ca11e965
package
com
.
zehong
.
system
.
domain
;
import
java.math.BigDecimal
;
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_gas_bottle_files
*
* @author zehong
* @date 2024-07-09
*/
public
class
TLpgGasBottleFiles
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/** id */
private
Long
fGasBottleFilesId
;
/** 登记证号 */
@Excel
(
name
=
"登记证号"
,
width
=
30
)
private
String
fRegCode
;
/** 产品编号 */
@Excel
(
name
=
"产品编号"
,
width
=
30
)
private
String
fEquNo
;
/** 设备类型 */
@Excel
(
name
=
"设备类型"
,
width
=
30
)
private
String
fEquType
;
/** 充装介质 */
@Excel
(
name
=
"充装介质"
,
width
=
30
)
private
String
fMedium
;
/** 生产日期 */
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
@Excel
(
name
=
"生产日期"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd"
)
private
Date
fMakeDate
;
/** 生产(制造单位) */
@Excel
(
name
=
"生产(制造单位) "
,
width
=
30
)
private
String
fMakeInfo
;
/** 单位内编号 */
@Excel
(
name
=
"单位内编号"
,
width
=
30
)
private
String
fSelfId
;
/** 压力 */
@Excel
(
name
=
"压力"
,
width
=
30
)
private
BigDecimal
fPressure
;
/** 体积 */
@Excel
(
name
=
"体积"
,
width
=
30
)
private
BigDecimal
fVolume
;
/** 电子标签 */
private
String
fAppId
;
/** 二维码 */
private
String
fQRcode
;
/** 使用单位 */
@Excel
(
name
=
"使用单位"
,
width
=
30
)
private
String
fBuildUser
;
/** 录入日期 */
private
Date
fAddTime
;
/** 录入人姓名 */
private
String
fOptName
;
/** 更新日期 */
private
Date
fUpTime
;
/** 状态1 新增、2 修改、-1、删除 (默认1) 3.注销 */
@Excel
(
name
=
"状态1 新增、2 修改、-1、删除 "
,
readConverterExp
=
"默=认1"
)
private
String
fState
;
/** 修改人姓名 */
private
String
fUpOptName
;
/** 上检日期 */
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
@Excel
(
name
=
"上检日期"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd"
)
private
Date
fPChkDate
;
/** 下检日期 */
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
@Excel
(
name
=
"下检日期"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd"
)
private
Date
fNChkDate
;
/** 生产日期 */
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
@Excel
(
name
=
"生产日期"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd"
)
private
Date
fProductDate
;
/** 报废日期 */
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
@Excel
(
name
=
"报废日期"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd"
)
private
Date
fDiscardDate
;
/** 安全评定日期 */
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
@Excel
(
name
=
"安全评定日期"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd"
)
private
Date
fSafeJudgeDate
;
/** 公称压力Mpa */
@Excel
(
name
=
"公称压力/Mpa"
)
private
BigDecimal
fGPressure
;
/** 水试验压力Mpa */
@Excel
(
name
=
"水试验压力/Mpa"
)
private
BigDecimal
fWPressure
;
/** 标准重量KG */
@Excel
(
name
=
"标准重量/KG"
)
private
BigDecimal
fSelfWeight
;
/** 壁厚mm */
@Excel
(
name
=
"壁厚/mm"
)
private
BigDecimal
fThickness
;
/** 气瓶许可证号 */
@Excel
(
name
=
"气瓶许可证号"
)
private
String
fPermitNo
;
/** 阀类型名称 */
@Excel
(
name
=
"阀类型名称"
)
private
String
fValveName
;
/** 钢瓶交付文件照片 */
@Excel
(
name
=
"钢瓶交付文件照片"
)
private
String
fPayImage
;
/** 检验质量证明书照片 */
@Excel
(
name
=
"检验质量证明书照片"
)
private
String
fBatchImage
;
/** 制造监督检验证书照片 */
@Excel
(
name
=
"制造监督检验证书照片"
)
private
String
fDeviceImage
;
/** 检验报告照片 */
@Excel
(
name
=
"检验报告照片"
)
private
String
fCheckImage
;
/** 产品编号照片 */
@Excel
(
name
=
"产品编号照片"
)
private
String
fEquNoImage
;
/** 单位内编号照片 */
@Excel
(
name
=
"单位内编号照片"
)
private
String
fSelfIdImage
;
/** 钢瓶信息照片 */
@Excel
(
name
=
"钢瓶信息照片"
)
private
String
fBotImage
;
/** 钢瓶规格名称 */
@Excel
(
name
=
"钢瓶规格名称"
)
private
String
fBotSpecName
;
/** 钢瓶型号 */
@Excel
(
name
=
"钢瓶型号"
)
private
String
fBottleType
;
/** 已检验次数 */
@Excel
(
name
=
"已检验次数"
)
private
Long
fInspectedTimes
;
/** 是否专用(1:专用 2:托管) */
@Excel
(
name
=
"是否专用"
)
private
String
fIsSpecialized
;
/** 阀厂家 */
@Excel
(
name
=
"阀厂家"
)
private
String
fValveManuFacturer
;
/** 检验标牌(有/无) */
@Excel
(
name
=
"检验标牌"
)
private
String
fInspectionLabel
;
/** 第三方标签 */
@Excel
(
name
=
"第三方标签"
)
private
String
fThirdPartyLabel
;
/** 孔洞码 */
@Excel
(
name
=
"孔洞码"
)
private
String
fHoleCode
;
/** 存储类型(气相/液相) */
@Excel
(
name
=
"存储类型"
)
private
String
fBottleStorageType
;
public
String
getfValveName
()
{
return
fValveName
;
}
public
void
setfValveName
(
String
fValveName
)
{
this
.
fValveName
=
fValveName
;
}
public
String
getfState
()
{
return
fState
;
}
public
void
setfState
(
String
fState
)
{
this
.
fState
=
fState
;
}
public
String
getfBuildUser
()
{
return
fBuildUser
;
}
public
void
setfBuildUser
(
String
fBuildUser
)
{
this
.
fBuildUser
=
fBuildUser
;
}
public
void
setfGasBottleFilesId
(
Long
fGasBottleFilesId
)
{
this
.
fGasBottleFilesId
=
fGasBottleFilesId
;
}
public
Long
getfGasBottleFilesId
()
{
return
fGasBottleFilesId
;
}
public
void
setfRegCode
(
String
fRegCode
)
{
this
.
fRegCode
=
fRegCode
;
}
public
String
getfRegCode
()
{
return
fRegCode
;
}
public
void
setfEquNo
(
String
fEquNo
)
{
this
.
fEquNo
=
fEquNo
;
}
public
String
getfEquNo
()
{
return
fEquNo
;
}
public
void
setfEquType
(
String
fEquType
)
{
this
.
fEquType
=
fEquType
;
}
public
String
getfEquType
()
{
return
fEquType
;
}
public
void
setfMedium
(
String
fMedium
)
{
this
.
fMedium
=
fMedium
;
}
public
String
getfMedium
()
{
return
fMedium
;
}
public
void
setfMakeDate
(
Date
fMakeDate
)
{
this
.
fMakeDate
=
fMakeDate
;
}
public
Date
getfMakeDate
()
{
return
fMakeDate
;
}
public
void
setfMakeInfo
(
String
fMakeInfo
)
{
this
.
fMakeInfo
=
fMakeInfo
;
}
public
String
getfMakeInfo
()
{
return
fMakeInfo
;
}
public
void
setfSelfId
(
String
fSelfId
)
{
this
.
fSelfId
=
fSelfId
;
}
public
String
getfSelfId
()
{
return
fSelfId
;
}
public
void
setfPressure
(
BigDecimal
fPressure
)
{
this
.
fPressure
=
fPressure
;
}
public
BigDecimal
getfPressure
()
{
return
fPressure
;
}
public
void
setfVolume
(
BigDecimal
fVolume
)
{
this
.
fVolume
=
fVolume
;
}
public
BigDecimal
getfVolume
()
{
return
fVolume
;
}
public
void
setfAppId
(
String
fAppId
)
{
this
.
fAppId
=
fAppId
;
}
public
String
getfAppId
()
{
return
fAppId
;
}
public
void
setfQRcode
(
String
fQRcode
)
{
this
.
fQRcode
=
fQRcode
;
}
public
String
getfQRcode
()
{
return
fQRcode
;
}
public
void
setfPChkDate
(
Date
fPChkDate
)
{
this
.
fPChkDate
=
fPChkDate
;
}
public
Date
getfPChkDate
()
{
return
fPChkDate
;
}
public
void
setfNChkDate
(
Date
fNChkDate
)
{
this
.
fNChkDate
=
fNChkDate
;
}
public
Date
getfNChkDate
()
{
return
fNChkDate
;
}
public
void
setfProductDate
(
Date
fProductDate
)
{
this
.
fProductDate
=
fProductDate
;
}
public
Date
getfProductDate
()
{
return
fProductDate
;
}
public
void
setfDiscardDate
(
Date
fDiscardDate
)
{
this
.
fDiscardDate
=
fDiscardDate
;
}
public
Date
getfDiscardDate
()
{
return
fDiscardDate
;
}
public
void
setfSafeJudgeDate
(
Date
fSafeJudgeDate
)
{
this
.
fSafeJudgeDate
=
fSafeJudgeDate
;
}
public
Date
getfSafeJudgeDate
()
{
return
fSafeJudgeDate
;
}
public
void
setfGPressure
(
BigDecimal
fGPressure
)
{
this
.
fGPressure
=
fGPressure
;
}
public
BigDecimal
getfGPressure
()
{
return
fGPressure
;
}
public
void
setfWPressure
(
BigDecimal
fWPressure
)
{
this
.
fWPressure
=
fWPressure
;
}
public
BigDecimal
getfWPressure
()
{
return
fWPressure
;
}
public
void
setfSelfWeight
(
BigDecimal
fSelfWeight
)
{
this
.
fSelfWeight
=
fSelfWeight
;
}
public
BigDecimal
getfSelfWeight
()
{
return
fSelfWeight
;
}
public
void
setfThickness
(
BigDecimal
fThickness
)
{
this
.
fThickness
=
fThickness
;
}
public
BigDecimal
getfThickness
()
{
return
fThickness
;
}
public
void
setfPermitNo
(
String
fPermitNo
)
{
this
.
fPermitNo
=
fPermitNo
;
}
public
String
getfPermitNo
()
{
return
fPermitNo
;
}
public
void
setfPayImage
(
String
fPayImage
)
{
this
.
fPayImage
=
fPayImage
;
}
public
String
getfPayImage
()
{
return
fPayImage
;
}
public
void
setfBatchImage
(
String
fBatchImage
)
{
this
.
fBatchImage
=
fBatchImage
;
}
public
String
getfBatchImage
()
{
return
fBatchImage
;
}
public
void
setfDeviceImage
(
String
fDeviceImage
)
{
this
.
fDeviceImage
=
fDeviceImage
;
}
public
String
getfDeviceImage
()
{
return
fDeviceImage
;
}
public
void
setfCheckImage
(
String
fCheckImage
)
{
this
.
fCheckImage
=
fCheckImage
;
}
public
String
getfCheckImage
()
{
return
fCheckImage
;
}
public
void
setfEquNoImage
(
String
fEquNoImage
)
{
this
.
fEquNoImage
=
fEquNoImage
;
}
public
String
getfEquNoImage
()
{
return
fEquNoImage
;
}
public
void
setfSelfIdImage
(
String
fSelfIdImage
)
{
this
.
fSelfIdImage
=
fSelfIdImage
;
}
public
String
getfSelfIdImage
()
{
return
fSelfIdImage
;
}
public
void
setfBotImage
(
String
fBotImage
)
{
this
.
fBotImage
=
fBotImage
;
}
public
String
getfBotImage
()
{
return
fBotImage
;
}
public
void
setfBotSpecName
(
String
fBotSpecName
)
{
this
.
fBotSpecName
=
fBotSpecName
;
}
public
String
getfBotSpecName
()
{
return
fBotSpecName
;
}
public
void
setfBottleType
(
String
fBottleType
)
{
this
.
fBottleType
=
fBottleType
;
}
public
String
getfBottleType
()
{
return
fBottleType
;
}
public
void
setfInspectedTimes
(
Long
fInspectedTimes
)
{
this
.
fInspectedTimes
=
fInspectedTimes
;
}
public
Long
getfInspectedTimes
()
{
return
fInspectedTimes
;
}
public
void
setfIsSpecialized
(
String
fIsSpecialized
)
{
this
.
fIsSpecialized
=
fIsSpecialized
;
}
public
String
getfIsSpecialized
()
{
return
fIsSpecialized
;
}
public
void
setfValveManuFacturer
(
String
fValveManuFacturer
)
{
this
.
fValveManuFacturer
=
fValveManuFacturer
;
}
public
String
getfValveManuFacturer
()
{
return
fValveManuFacturer
;
}
public
void
setfInspectionLabel
(
String
fInspectionLabel
)
{
this
.
fInspectionLabel
=
fInspectionLabel
;
}
public
String
getfInspectionLabel
()
{
return
fInspectionLabel
;
}
public
void
setfThirdPartyLabel
(
String
fThirdPartyLabel
)
{
this
.
fThirdPartyLabel
=
fThirdPartyLabel
;
}
public
String
getfThirdPartyLabel
()
{
return
fThirdPartyLabel
;
}
public
void
setfHoleCode
(
String
fHoleCode
)
{
this
.
fHoleCode
=
fHoleCode
;
}
public
String
getfHoleCode
()
{
return
fHoleCode
;
}
public
void
setfBottleStorageType
(
String
fBottleStorageType
)
{
this
.
fBottleStorageType
=
fBottleStorageType
;
}
public
String
getfBottleStorageType
()
{
return
fBottleStorageType
;
}
public
void
setfOptName
(
String
fOptName
)
{
this
.
fOptName
=
fOptName
;
}
public
String
getfOptName
()
{
return
fOptName
;
}
public
void
setfAddTime
(
Date
fAddTime
)
{
this
.
fAddTime
=
fAddTime
;
}
public
Date
getfAddTime
()
{
return
fAddTime
;
}
public
void
setfUpTime
(
Date
fUpTime
)
{
this
.
fUpTime
=
fUpTime
;
}
public
Date
getfUpTime
()
{
return
fUpTime
;
}
public
void
setfUpOptName
(
String
fUpOptName
)
{
this
.
fUpOptName
=
fUpOptName
;
}
public
String
getfUpOptName
()
{
return
fUpOptName
;
}
@Override
public
String
toString
()
{
return
new
ToStringBuilder
(
this
,
ToStringStyle
.
MULTI_LINE_STYLE
)
.
append
(
"fGasBottleFilesId"
,
getfGasBottleFilesId
())
.
append
(
"fRegCode"
,
getfRegCode
())
.
append
(
"fEquNo"
,
getfEquNo
())
.
append
(
"fEquType"
,
getfEquType
())
.
append
(
"fMedium"
,
getfMedium
())
.
append
(
"fMakeDate"
,
getfMakeDate
())
.
append
(
"fMakeInfo"
,
getfMakeInfo
())
.
append
(
"fSelfId"
,
getfSelfId
())
.
append
(
"fPressure"
,
getfPressure
())
.
append
(
"fVolume"
,
getfVolume
())
.
append
(
"fPChkDate"
,
getfPChkDate
())
.
append
(
"fNChkDate"
,
getfNChkDate
())
.
append
(
"fProductDate"
,
getfProductDate
())
.
append
(
"fDiscardDate"
,
getfDiscardDate
())
.
append
(
"fSafeJudgeDate"
,
getfSafeJudgeDate
())
.
append
(
"fGPressure"
,
getfGPressure
())
.
append
(
"fWPressure"
,
getfWPressure
())
.
append
(
"fSelfWeight"
,
getfSelfWeight
())
.
append
(
"fThickness"
,
getfThickness
())
.
append
(
"fPermitNo"
,
getfPermitNo
())
.
append
(
"fPayImage"
,
getfPayImage
())
.
append
(
"fBatchImage"
,
getfBatchImage
())
.
append
(
"fDeviceImage"
,
getfDeviceImage
())
.
append
(
"fCheckImage"
,
getfCheckImage
())
.
append
(
"fEquNoImage"
,
getfEquNoImage
())
.
append
(
"fSelfIdImage"
,
getfSelfIdImage
())
.
append
(
"fBotImage"
,
getfBotImage
())
.
append
(
"fBotSpecName"
,
getfBotSpecName
())
.
append
(
"fBottleType"
,
getfBottleType
())
.
append
(
"fInspectedTimes"
,
getfInspectedTimes
())
.
append
(
"fIsSpecialized"
,
getfIsSpecialized
())
.
append
(
"fValveManuFacturer"
,
getfValveManuFacturer
())
.
append
(
"fInspectionLabel"
,
getfInspectionLabel
())
.
append
(
"fThirdPartyLabel"
,
getfThirdPartyLabel
())
.
append
(
"fHoleCode"
,
getfHoleCode
())
.
append
(
"fBottleStorageType"
,
getfBottleStorageType
())
.
append
(
"fOptName"
,
getfOptName
())
.
append
(
"fAddTime"
,
getfAddTime
())
.
append
(
"fUpTime"
,
getfUpTime
())
.
append
(
"fUpOptName"
,
getfUpOptName
())
.
toString
();
}
}
zh-baseversion-system/src/main/java/com/zehong/system/mapper/TLpgGasBottleFilesMapper.java
0 → 100644
View file @
ca11e965
package
com
.
zehong
.
system
.
mapper
;
import
java.util.List
;
import
com.zehong.system.domain.TLpgGasBottleFiles
;
/**
* 液化石油气-气瓶档案Mapper接口
*
* @author zehong
* @date 2024-07-09
*/
public
interface
TLpgGasBottleFilesMapper
{
/**
* 查询液化石油气-气瓶档案
*
* @param fGasBottleFilesId 液化石油气-气瓶档案ID
* @return 液化石油气-气瓶档案
*/
public
TLpgGasBottleFiles
selectTLpgGasBottleFilesById
(
Long
fGasBottleFilesId
);
/**
* 查询液化石油气-气瓶档案列表
*
* @param tLpgGasBottleFiles 液化石油气-气瓶档案
* @return 液化石油气-气瓶档案集合
*/
public
List
<
TLpgGasBottleFiles
>
selectTLpgGasBottleFilesList
(
TLpgGasBottleFiles
tLpgGasBottleFiles
);
/**
* 新增液化石油气-气瓶档案
*
* @param tLpgGasBottleFiles 液化石油气-气瓶档案
* @return 结果
*/
public
int
insertTLpgGasBottleFiles
(
TLpgGasBottleFiles
tLpgGasBottleFiles
);
/**
* 修改液化石油气-气瓶档案
*
* @param tLpgGasBottleFiles 液化石油气-气瓶档案
* @return 结果
*/
public
int
updateTLpgGasBottleFiles
(
TLpgGasBottleFiles
tLpgGasBottleFiles
);
/**
* 删除液化石油气-气瓶档案
*
* @param fGasBottleFilesId 液化石油气-气瓶档案ID
* @return 结果
*/
public
int
deleteTLpgGasBottleFilesById
(
Long
fGasBottleFilesId
);
/**
* 批量删除液化石油气-气瓶档案
*
* @param fGasBottleFilesIds 需要删除的数据ID
* @return 结果
*/
public
int
deleteTLpgGasBottleFilesByIds
(
Long
[]
fGasBottleFilesIds
);
}
zh-baseversion-system/src/main/java/com/zehong/system/service/ITLpgGasBottleFilesService.java
0 → 100644
View file @
ca11e965
package
com
.
zehong
.
system
.
service
;
import
java.util.List
;
import
com.zehong.system.domain.TLpgGasBottleFiles
;
/**
* 液化石油气-气瓶档案Service接口
*
* @author zehong
* @date 2024-07-09
*/
public
interface
ITLpgGasBottleFilesService
{
/**
* 查询液化石油气-气瓶档案
*
* @param fGasBottleFilesId 液化石油气-气瓶档案ID
* @return 液化石油气-气瓶档案
*/
public
TLpgGasBottleFiles
selectTLpgGasBottleFilesById
(
Long
fGasBottleFilesId
);
/**
* 查询液化石油气-气瓶档案列表
*
* @param tLpgGasBottleFiles 液化石油气-气瓶档案
* @return 液化石油气-气瓶档案集合
*/
public
List
<
TLpgGasBottleFiles
>
selectTLpgGasBottleFilesList
(
TLpgGasBottleFiles
tLpgGasBottleFiles
);
/**
* 新增液化石油气-气瓶档案
*
* @param tLpgGasBottleFiles 液化石油气-气瓶档案
* @return 结果
*/
public
int
insertTLpgGasBottleFiles
(
TLpgGasBottleFiles
tLpgGasBottleFiles
);
/**
* 修改液化石油气-气瓶档案
*
* @param tLpgGasBottleFiles 液化石油气-气瓶档案
* @return 结果
*/
public
int
updateTLpgGasBottleFiles
(
TLpgGasBottleFiles
tLpgGasBottleFiles
);
/**
* 批量删除液化石油气-气瓶档案
*
* @param fGasBottleFilesIds 需要删除的液化石油气-气瓶档案ID
* @return 结果
*/
public
int
deleteTLpgGasBottleFilesByIds
(
Long
[]
fGasBottleFilesIds
);
/**
* 删除液化石油气-气瓶档案信息
*
* @param fGasBottleFilesId 液化石油气-气瓶档案ID
* @return 结果
*/
public
int
deleteTLpgGasBottleFilesById
(
Long
fGasBottleFilesId
);
}
zh-baseversion-system/src/main/java/com/zehong/system/service/impl/GovernmentSupervisionInfoServiceImpl.java
View file @
ca11e965
...
...
@@ -191,7 +191,9 @@ public class GovernmentSupervisionInfoServiceImpl implements GovernmentSupervisi
GovernmentDataCopyUtil
.
copyToLocalData
(
proAppInforBrowseVo
,
tProAppInforBrowse
);
proAppInforBrowseList
.
add
(
tProAppInforBrowse
);
}
tProAppInforBrowseMapper
.
batchInsertTProAppInforBrowse
(
proAppInforBrowseList
);
if
(
proAppInforBrowseList
.
size
()
>
0
)
{
tProAppInforBrowseMapper
.
batchInsertTProAppInforBrowse
(
proAppInforBrowseList
);
}
}
return
json
;
}
...
...
@@ -216,7 +218,9 @@ public class GovernmentSupervisionInfoServiceImpl implements GovernmentSupervisi
GovernmentDataCopyUtil
.
copyToLocalData
(
proBehInfoBrowseVo
,
proBehInforBrowse
);
proBehInforBrowseList
.
add
(
proBehInforBrowse
);
}
fProBehInforBrowseMapper
.
batchInsertFProBehInforBrowse
(
proBehInforBrowseList
);
if
(
proBehInforBrowseList
.
size
()
>
0
)
{
fProBehInforBrowseMapper
.
batchInsertFProBehInforBrowse
(
proBehInforBrowseList
);
}
}
return
json
;
}
...
...
zh-baseversion-system/src/main/java/com/zehong/system/service/impl/TLpgGasBottleFilesServiceImpl.java
0 → 100644
View file @
ca11e965
package
com
.
zehong
.
system
.
service
.
impl
;
import
java.util.List
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
com.zehong.system.mapper.TLpgGasBottleFilesMapper
;
import
com.zehong.system.domain.TLpgGasBottleFiles
;
import
com.zehong.system.service.ITLpgGasBottleFilesService
;
/**
* 液化石油气-气瓶档案Service业务层处理
*
* @author zehong
* @date 2024-07-09
*/
@Service
public
class
TLpgGasBottleFilesServiceImpl
implements
ITLpgGasBottleFilesService
{
@Autowired
private
TLpgGasBottleFilesMapper
tLpgGasBottleFilesMapper
;
/**
* 查询液化石油气-气瓶档案
*
* @param fGasBottleFilesId 液化石油气-气瓶档案ID
* @return 液化石油气-气瓶档案
*/
@Override
public
TLpgGasBottleFiles
selectTLpgGasBottleFilesById
(
Long
fGasBottleFilesId
)
{
return
tLpgGasBottleFilesMapper
.
selectTLpgGasBottleFilesById
(
fGasBottleFilesId
);
}
/**
* 查询液化石油气-气瓶档案列表
*
* @param tLpgGasBottleFiles 液化石油气-气瓶档案
* @return 液化石油气-气瓶档案
*/
@Override
public
List
<
TLpgGasBottleFiles
>
selectTLpgGasBottleFilesList
(
TLpgGasBottleFiles
tLpgGasBottleFiles
)
{
return
tLpgGasBottleFilesMapper
.
selectTLpgGasBottleFilesList
(
tLpgGasBottleFiles
);
}
/**
* 新增液化石油气-气瓶档案
*
* @param tLpgGasBottleFiles 液化石油气-气瓶档案
* @return 结果
*/
@Override
public
int
insertTLpgGasBottleFiles
(
TLpgGasBottleFiles
tLpgGasBottleFiles
)
{
return
tLpgGasBottleFilesMapper
.
insertTLpgGasBottleFiles
(
tLpgGasBottleFiles
);
}
/**
* 修改液化石油气-气瓶档案
*
* @param tLpgGasBottleFiles 液化石油气-气瓶档案
* @return 结果
*/
@Override
public
int
updateTLpgGasBottleFiles
(
TLpgGasBottleFiles
tLpgGasBottleFiles
)
{
return
tLpgGasBottleFilesMapper
.
updateTLpgGasBottleFiles
(
tLpgGasBottleFiles
);
}
/**
* 批量删除液化石油气-气瓶档案
*
* @param fGasBottleFilesIds 需要删除的液化石油气-气瓶档案ID
* @return 结果
*/
@Override
public
int
deleteTLpgGasBottleFilesByIds
(
Long
[]
fGasBottleFilesIds
)
{
return
tLpgGasBottleFilesMapper
.
deleteTLpgGasBottleFilesByIds
(
fGasBottleFilesIds
);
}
/**
* 删除液化石油气-气瓶档案信息
*
* @param fGasBottleFilesId 液化石油气-气瓶档案ID
* @return 结果
*/
@Override
public
int
deleteTLpgGasBottleFilesById
(
Long
fGasBottleFilesId
)
{
return
tLpgGasBottleFilesMapper
.
deleteTLpgGasBottleFilesById
(
fGasBottleFilesId
);
}
}
zh-baseversion-system/src/main/resources/mapper/system/TLpgGasBottleFilesMapper.xml
0 → 100644
View file @
ca11e965
<?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.TLpgGasBottleFilesMapper"
>
<resultMap
type=
"TLpgGasBottleFiles"
id=
"TLpgGasBottleFilesResult"
>
<result
property=
"fGasBottleFilesId"
column=
"f_gas_bottle_files_id"
/>
<result
property=
"fRegCode"
column=
"f_reg_code"
/>
<result
property=
"fEquNo"
column=
"f_equ_no"
/>
<result
property=
"fEquType"
column=
"f_equ_type"
/>
<result
property=
"fMedium"
column=
"f_medium"
/>
<result
property=
"fMakeDate"
column=
"f_make_date"
/>
<result
property=
"fMakeInfo"
column=
"f_make_info"
/>
<result
property=
"fSelfId"
column=
"f_self_id"
/>
<result
property=
"fPressure"
column=
"f_pressure"
/>
<result
property=
"fVolume"
column=
"f_volume"
/>
<result
property=
"fAppId"
column=
"f_app_id"
/>
<result
property=
"fQRcode"
column=
"f_q_rcode"
/>
<result
property=
"fBuildUser"
column=
"f_build_user"
/>
<result
property=
"fOptName"
column=
"f_opt_name"
/>
<result
property=
"fAddTime"
column=
"f_add_time"
/>
<result
property=
"fUpTime"
column=
"f_up_time"
/>
<result
property=
"fState"
column=
"f_state"
/>
<result
property=
"fUpOptName"
column=
"f_up_opt_name"
/>
<result
property=
"fPChkDate"
column=
"f_p_chk_date"
/>
<result
property=
"fNChkDate"
column=
"f_n_chk_date"
/>
<result
property=
"fProductDate"
column=
"f_product_date"
/>
<result
property=
"fDiscardDate"
column=
"f_discard_date"
/>
<result
property=
"fSafeJudgeDate"
column=
"f_safe_judge_date"
/>
<result
property=
"fGPressure"
column=
"f_g_pressure"
/>
<result
property=
"fWPressure"
column=
"f_w_pressure"
/>
<result
property=
"fSelfWeight"
column=
"f_self_weight"
/>
<result
property=
"fThickness"
column=
"f_thickness"
/>
<result
property=
"fPermitNo"
column=
"f_permit_no"
/>
<result
property=
"fValveName"
column=
"f_valve_name"
/>
<result
property=
"fPayImage"
column=
"f_pay_image"
/>
<result
property=
"fBatchImage"
column=
"f_batch_image"
/>
<result
property=
"fDeviceImage"
column=
"f_device_image"
/>
<result
property=
"fCheckImage"
column=
"f_check_image"
/>
<result
property=
"fEquNoImage"
column=
"f_equ_no_image"
/>
<result
property=
"fSelfIdImage"
column=
"f_self_id_image"
/>
<result
property=
"fBotImage"
column=
"f_bot_image"
/>
<result
property=
"fBotSpecName"
column=
"f_bot_spec_name"
/>
<result
property=
"fBottleType"
column=
"f_bottle_type"
/>
<result
property=
"fInspectedTimes"
column=
"f_inspected_times"
/>
<result
property=
"fIsSpecialized"
column=
"f_is_specialized"
/>
<result
property=
"fValveManuFacturer"
column=
"f_valve_manu_facturer"
/>
<result
property=
"fInspectionLabel"
column=
"f_inspection_label"
/>
<result
property=
"fThirdPartyLabel"
column=
"f_third_party_label"
/>
<result
property=
"fHoleCode"
column=
"f_hole_code"
/>
<result
property=
"fBottleStorageType"
column=
"f_bottle_storage_type"
/>
</resultMap>
<sql
id=
"selectTLpgGasBottleFilesVo"
>
select f_gas_bottle_files_id, f_reg_code, f_equ_no, f_equ_type, f_medium, f_make_date, f_make_info, f_self_id,f_pressure, f_volume, f_app_id, f_q_rcode,f_build_user,f_p_chk_date, f_n_chk_date, f_product_date, f_discard_date, f_safe_judge_date, f_g_pressure, f_w_pressure, f_self_weight, f_thickness, f_permit_no, f_valve_name, f_pay_image, f_batch_image, f_device_image, f_check_image, f_equ_no_image, f_self_id_image, f_bot_image, f_bot_spec_name, f_bottle_type, f_inspected_times,
( CASE f_is_specialized WHEN '1' THEN '专用' WHEN '2' THEN '托管' ELSE '-' END ) AS f_is_specialized,
f_valve_manu_facturer, f_inspection_label, f_third_party_label, f_hole_code, f_bottle_storage_type,
( CASE f_state WHEN '1' THEN '新增' WHEN '2' THEN '修改' WHEN '-1' THEN '删除' ELSE '-' END ) AS f_state,
f_opt_name, f_add_time, f_up_time, f_up_opt_name from t_lpg_gas_bottle_files
</sql>
<select
id=
"selectTLpgGasBottleFilesList"
parameterType=
"TLpgGasBottleFiles"
resultMap=
"TLpgGasBottleFilesResult"
>
<include
refid=
"selectTLpgGasBottleFilesVo"
/>
<where>
<if
test=
"fPChkDate != null "
>
and f_p_chk_date = #{fPChkDate}
</if>
<if
test=
"fNChkDate != null "
>
and f_n_chk_date = #{fNChkDate}
</if>
<if
test=
"fProductDate != null "
>
and f_product_date = #{fProductDate}
</if>
<if
test=
"fDiscardDate != null "
>
and f_discard_date = #{fDiscardDate}
</if>
<if
test=
"fSafeJudgeDate != null "
>
and f_safe_judge_date = #{fSafeJudgeDate}
</if>
<if
test=
"fGPressure != null "
>
and f_g_pressure = #{fGPressure}
</if>
<if
test=
"fWPressure != null "
>
and f_w_pressure = #{fWPressure}
</if>
<if
test=
"fSelfWeight != null "
>
and f_self_weight = #{fSelfWeight}
</if>
<if
test=
"fPermitNo != null and fPermitNo != ''"
>
and f_permit_no = #{fPermitNo}
</if>
<if
test=
"fValveName != null "
>
and f_valve_name like concat('%', #{fValveName}, '%')
</if>
<if
test=
"fState != null "
>
and f_state = #{fState}
</if>
</where>
</select>
<select
id=
"selectTLpgGasBottleFilesById"
parameterType=
"Long"
resultMap=
"TLpgGasBottleFilesResult"
>
<include
refid=
"selectTLpgGasBottleFilesVo"
/>
where f_gas_bottle_files_id = #{fGasBottleFilesId}
</select>
<insert
id=
"insertTLpgGasBottleFiles"
parameterType=
"TLpgGasBottleFiles"
useGeneratedKeys=
"true"
keyProperty=
"fGasBottleFilesId"
>
insert into t_lpg_gas_bottle_files
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"fRegCode != null"
>
f_reg_code,
</if>
<if
test=
"fEquNo != null"
>
f_equ_no,
</if>
<if
test=
"fEquType != null"
>
f_equ_type,
</if>
<if
test=
"fMedium != null"
>
f_medium,
</if>
<if
test=
"fMakeDate != null"
>
f_make_date,
</if>
<if
test=
"fMakeInfo != null"
>
f_make_info,
</if>
<if
test=
"fSelfId != null"
>
f_self_id,
</if>
<if
test=
"fPressure != null"
>
f_pressure,
</if>
<if
test=
"fVolume != null"
>
f_volume,
</if>
<if
test=
"fAppId != null"
>
f_app_id,
</if>
<if
test=
"fQRcode != null"
>
f_q_rcode,
</if>
<if
test=
"fBuildUser != null"
>
f_build_user,
</if>
<if
test=
"fPChkDate != null"
>
f_p_chk_date,
</if>
<if
test=
"fNChkDate != null"
>
f_n_chk_date,
</if>
<if
test=
"fProductDate != null"
>
f_product_date,
</if>
<if
test=
"fDiscardDate != null"
>
f_discard_date,
</if>
<if
test=
"fSafeJudgeDate != null"
>
f_safe_judge_date,
</if>
<if
test=
"fGPressure != null"
>
f_g_pressure,
</if>
<if
test=
"fWPressure != null"
>
f_w_pressure,
</if>
<if
test=
"fSelfWeight != null"
>
f_self_weight,
</if>
<if
test=
"fThickness != null"
>
f_thickness,
</if>
<if
test=
"fPermitNo != null"
>
f_permit_no,
</if>
<if
test=
"fValveName != null"
>
f_valve_name,
</if>
<if
test=
"fPayImage != null"
>
f_pay_image,
</if>
<if
test=
"fBatchImage != null"
>
f_batch_image,
</if>
<if
test=
"fDeviceImage != null"
>
f_device_image,
</if>
<if
test=
"fCheckImage != null"
>
f_check_image,
</if>
<if
test=
"fEquNoImage != null"
>
f_equ_no_image,
</if>
<if
test=
"fSelfIdImage != null"
>
f_self_id_image,
</if>
<if
test=
"fBotImage != null"
>
f_bot_image,
</if>
<if
test=
"fBotSpecName != null"
>
f_bot_spec_name,
</if>
<if
test=
"fBottleType != null"
>
f_bottle_type,
</if>
<if
test=
"fInspectedTimes != null"
>
f_inspected_times,
</if>
<if
test=
"fIsSpecialized != null"
>
f_is_specialized,
</if>
<if
test=
"fValveManuFacturer != null"
>
f_valve_manu_facturer,
</if>
<if
test=
"fInspectionLabel != null"
>
f_inspection_label,
</if>
<if
test=
"fThirdPartyLabel != null"
>
f_third_party_label,
</if>
<if
test=
"fHoleCode != null"
>
f_hole_code,
</if>
<if
test=
"fBottleStorageType != null"
>
f_bottle_storage_type,
</if>
<if
test=
"fState != null"
>
f_state,
</if>
<if
test=
"fOptName != null"
>
f_opt_name,
</if>
<if
test=
"fAddTime != null"
>
f_add_time,
</if>
<if
test=
"fUpTime != null"
>
f_up_time,
</if>
<if
test=
"fUpOptName != null"
>
f_up_opt_name,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"fRegCode != null"
>
#{fRegCode},
</if>
<if
test=
"fEquNo != null"
>
#{fEquNo},
</if>
<if
test=
"fEquType != null"
>
#{fEquType},
</if>
<if
test=
"fMedium != null"
>
#{fMedium},
</if>
<if
test=
"fMakeDate != null"
>
#{fMakeDate},
</if>
<if
test=
"fMakeInfo != null"
>
#{fMakeInfo},
</if>
<if
test=
"fSelfId != null"
>
#{fSelfId},
</if>
<if
test=
"fPressure != null"
>
#{fPressure},
</if>
<if
test=
"fVolume != null"
>
#{fVolume},
</if>
<if
test=
"fAppId != null"
>
#{fAppId},
</if>
<if
test=
"fQRcode != null"
>
#{fQRcode},
</if>
<if
test=
"fBuildUser != null"
>
#{fBuildUser},
</if>
<if
test=
"fPChkDate != null"
>
#{fPChkDate},
</if>
<if
test=
"fNChkDate != null"
>
#{fNChkDate},
</if>
<if
test=
"fProductDate != null"
>
#{fProductDate},
</if>
<if
test=
"fDiscardDate != null"
>
#{fDiscardDate},
</if>
<if
test=
"fSafeJudgeDate != null"
>
#{fSafeJudgeDate},
</if>
<if
test=
"fGPressure != null"
>
#{fGPressure},
</if>
<if
test=
"fWPressure != null"
>
#{fWPressure},
</if>
<if
test=
"fSelfWeight != null"
>
#{fSelfWeight},
</if>
<if
test=
"fThickness != null"
>
#{fThickness},
</if>
<if
test=
"fPermitNo != null"
>
#{fPermitNo},
</if>
<if
test=
"fValveName != null"
>
#{fValveName},
</if>
<if
test=
"fPayImage != null"
>
#{fPayImage},
</if>
<if
test=
"fBatchImage != null"
>
#{fBatchImage},
</if>
<if
test=
"fDeviceImage != null"
>
#{fDeviceImage},
</if>
<if
test=
"fCheckImage != null"
>
#{fCheckImage},
</if>
<if
test=
"fEquNoImage != null"
>
#{fEquNoImage},
</if>
<if
test=
"fSelfIdImage != null"
>
#{fSelfIdImage},
</if>
<if
test=
"fBotImage != null"
>
#{fBotImage},
</if>
<if
test=
"fBotSpecName != null"
>
#{fBotSpecName},
</if>
<if
test=
"fBottleType != null"
>
#{fBottleType},
</if>
<if
test=
"fInspectedTimes != null"
>
#{fInspectedTimes},
</if>
<if
test=
"fIsSpecialized != null"
>
#{fIsSpecialized},
</if>
<if
test=
"fValveManuFacturer != null"
>
#{fValveManuFacturer},
</if>
<if
test=
"fInspectionLabel != null"
>
#{fInspectionLabel},
</if>
<if
test=
"fThirdPartyLabel != null"
>
#{fThirdPartyLabel},
</if>
<if
test=
"fHoleCode != null"
>
#{fHoleCode},
</if>
<if
test=
"fBottleStorageType != null"
>
#{fBottleStorageType},
</if>
<if
test=
"fState != null"
>
#{fState},
</if>
<if
test=
"fOptName != null"
>
#{fOptName},
</if>
<if
test=
"fAddTime != null"
>
#{fAddTime},
</if>
<if
test=
"fUpTime != null"
>
#{fUpTime},
</if>
<if
test=
"fUpOptName != null"
>
#{fUpOptName},
</if>
</trim>
</insert>
<update
id=
"updateTLpgGasBottleFiles"
parameterType=
"TLpgGasBottleFiles"
>
update t_lpg_gas_bottle_files
<trim
prefix=
"SET"
suffixOverrides=
","
>
<if
test=
"fRegCode != null"
>
f_reg_code = #{fRegCode},
</if>
<if
test=
"fEquNo != null"
>
f_equ_no = #{fEquNo},
</if>
<if
test=
"fEquType != null"
>
f_equ_type = #{fEquType},
</if>
<if
test=
"fMedium != null"
>
f_medium = #{fMedium},
</if>
<if
test=
"fMakeDate != null"
>
f_make_date = #{fMakeDate},
</if>
<if
test=
"fMakeInfo != null"
>
f_make_info = #{fMakeInfo},
</if>
<if
test=
"fSelfId != null"
>
f_self_id = #{fSelfId},
</if>
<if
test=
"fPressure != null"
>
f_pressure = #{fPressure},
</if>
<if
test=
"fVolume != null"
>
f_volume = #{fVolume},
</if>
<if
test=
"fAppId != null"
>
f_app_id = #{fAppId},
</if>
<if
test=
"fQRcode != null"
>
f_q_rcode = #{fQRcode},
</if>
<if
test=
"fBuildUser != null"
>
f_build_user = #{fBuildUser},
</if>
<if
test=
"fPChkDate != null"
>
f_p_chk_date = #{fPChkDate},
</if>
<if
test=
"fNChkDate != null"
>
f_n_chk_date = #{fNChkDate},
</if>
<if
test=
"fProductDate != null"
>
f_product_date = #{fProductDate},
</if>
<if
test=
"fDiscardDate != null"
>
f_discard_date = #{fDiscardDate},
</if>
<if
test=
"fSafeJudgeDate != null"
>
f_safe_judge_date = #{fSafeJudgeDate},
</if>
<if
test=
"fGPressure != null"
>
f_g_pressure = #{fGPressure},
</if>
<if
test=
"fWPressure != null"
>
f_w_pressure = #{fWPressure},
</if>
<if
test=
"fSelfWeight != null"
>
f_self_weight = #{fSelfWeight},
</if>
<if
test=
"fThickness != null"
>
f_thickness = #{fThickness},
</if>
<if
test=
"fPermitNo != null"
>
f_permit_no = #{fPermitNo},
</if>
<if
test=
"fValveName != null"
>
f_valve_name = #{fValveName},
</if>
<if
test=
"fPayImage != null"
>
f_pay_image = #{fPayImage},
</if>
<if
test=
"fBatchImage != null"
>
f_batch_image = #{fBatchImage},
</if>
<if
test=
"fDeviceImage != null"
>
f_device_image = #{fDeviceImage},
</if>
<if
test=
"fCheckImage != null"
>
f_check_image = #{fCheckImage},
</if>
<if
test=
"fEquNoImage != null"
>
f_equ_no_image = #{fEquNoImage},
</if>
<if
test=
"fSelfIdImage != null"
>
f_self_id_image = #{fSelfIdImage},
</if>
<if
test=
"fBotImage != null"
>
f_bot_image = #{fBotImage},
</if>
<if
test=
"fBotSpecName != null"
>
f_bot_spec_name = #{fBotSpecName},
</if>
<if
test=
"fBottleType != null"
>
f_bottle_type = #{fBottleType},
</if>
<if
test=
"fInspectedTimes != null"
>
f_inspected_times = #{fInspectedTimes},
</if>
<if
test=
"fIsSpecialized != null"
>
f_is_specialized = #{fIsSpecialized},
</if>
<if
test=
"fValveManuFacturer != null"
>
f_valve_manu_facturer = #{fValveManuFacturer},
</if>
<if
test=
"fInspectionLabel != null"
>
f_inspection_label = #{fInspectionLabel},
</if>
<if
test=
"fThirdPartyLabel != null"
>
f_third_party_label = #{fThirdPartyLabel},
</if>
<if
test=
"fHoleCode != null"
>
f_hole_code = #{fHoleCode},
</if>
<if
test=
"fBottleStorageType != null"
>
f_bottle_storage_type = #{fBottleStorageType},
</if>
<if
test=
"fState != null"
>
f_state = #{fState},
</if>
<if
test=
"fOptName != null"
>
f_opt_name = #{fOptName},
</if>
<if
test=
"fAddTime != null"
>
f_add_time = #{fAddTime},
</if>
<if
test=
"fUpTime != null"
>
f_up_time = #{fUpTime},
</if>
<if
test=
"fUpOptName != null"
>
f_up_opt_name = #{fUpOptName},
</if>
</trim>
where f_gas_bottle_files_id = #{fGasBottleFilesId}
</update>
<delete
id=
"deleteTLpgGasBottleFilesById"
parameterType=
"Long"
>
delete from t_lpg_gas_bottle_files where f_gas_bottle_files_id = #{fGasBottleFilesId}
</delete>
<delete
id=
"deleteTLpgGasBottleFilesByIds"
parameterType=
"String"
>
delete from t_lpg_gas_bottle_files where f_gas_bottle_files_id in
<foreach
item=
"fGasBottleFilesId"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
#{fGasBottleFilesId}
</foreach>
</delete>
</mapper>
\ No newline at end of file
zh-baseversion-web/src/api/lpgRegulation/files.js
0 → 100644
View file @
ca11e965
import
request
from
'@/utils/request'
// 查询液化石油气-气瓶档案列表
export
function
listFiles
(
query
)
{
return
request
({
url
:
'/lpg/gasbottlefiles/list'
,
method
:
'get'
,
params
:
query
})
}
// 查询液化石油气-气瓶档案详细
export
function
getFiles
(
fGasBottleFilesId
)
{
return
request
({
url
:
'/lpg/gasbottlefiles/'
+
fGasBottleFilesId
,
method
:
'get'
})
}
// 新增液化石油气-气瓶档案
export
function
addFiles
(
data
)
{
return
request
({
url
:
'/lpg/gasbottlefiles'
,
method
:
'post'
,
data
:
data
})
}
// 修改液化石油气-气瓶档案
export
function
updateFiles
(
data
)
{
return
request
({
url
:
'/lpg/gasbottlefiles'
,
method
:
'put'
,
data
:
data
})
}
// 删除液化石油气-气瓶档案
export
function
delFiles
(
fGasBottleFilesId
)
{
return
request
({
url
:
'/lpg/gasbottlefiles/'
+
fGasBottleFilesId
,
method
:
'delete'
})
}
// 导出液化石油气-气瓶档案
export
function
exportFiles
(
query
)
{
return
request
({
url
:
'/lpg/gasbottlefiles/export'
,
method
:
'get'
,
params
:
query
})
}
zh-baseversion-web/src/views/lpgRegulation/gasbottlefiles/components/indexInfo.vue
0 → 100644
View file @
ca11e965
<
template
>
<el-dialog
title=
"详情"
:visible
.
sync=
"detailOpen"
width=
"1000px"
append-to-body
destroy-on-close
:close-on-click-modal=
"false"
>
<el-form
label-width=
"180px"
>
<el-row
class=
"el-row-table"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"登记证号"
>
<span
v-if=
"detailInfo.fRegCode"
>
{{
detailInfo
.
fRegCode
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"钢印号(出厂编号)"
>
<span
v-if=
"detailInfo.fEquNo"
>
{{
detailInfo
.
fEquNo
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"设备类型"
>
<span
v-if=
"detailInfo.fEquType"
>
{{
detailInfo
.
fEquType
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"充装介质"
>
<span
v-if=
"detailInfo.fMedium"
>
{{
detailInfo
.
fMedium
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"制造年月"
>
<span
v-if=
"detailInfo.fMakeDate"
>
{{
detailInfo
.
fMakeDate
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"生产(制造)单位"
>
<span
v-if=
"detailInfo.fMakeInfo"
>
{{
detailInfo
.
fMakeInfo
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"单位内编号"
>
<span
v-if=
"detailInfo.fSelfId"
>
{{
detailInfo
.
fSelfId
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"公称工作压力(MPa)"
>
<span
v-if=
"detailInfo.fPressure"
>
{{
detailInfo
.
fPressure
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"容积(L)"
>
<span
v-if=
"detailInfo.fVolume"
>
{{
detailInfo
.
fVolume
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"使用单位"
>
<span
v-if=
"detailInfo.fBuildUser"
>
{{
detailInfo
.
fBuildUser
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"上检日期"
>
<span
v-if=
"detailInfo.fPChkDate"
>
{{
detailInfo
.
fPChkDate
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"下检日期"
>
<span
v-if=
"detailInfo.fNChkDate"
>
{{
detailInfo
.
fNChkDate
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"生产日期"
>
<span
v-if=
"detailInfo.fProductDate"
>
{{
detailInfo
.
fProductDate
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"报废日期"
>
<span
v-if=
"detailInfo.fDiscardDate"
>
{{
detailInfo
.
fDiscardDate
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"安全评定日期"
>
<span
v-if=
"detailInfo.fSafeJudgeDate"
>
{{
detailInfo
.
fSafeJudgeDate
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"公称压力"
>
<span
v-if=
"detailInfo.fGPressure"
>
{{
detailInfo
.
fGPressure
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"水试验压力"
>
<span
v-if=
"detailInfo.fWPressure"
>
{{
detailInfo
.
fWPressure
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"标准重量"
>
<span
v-if=
"detailInfo.fSelfWeight"
>
{{
detailInfo
.
fSelfWeight
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"壁厚"
>
<span
v-if=
"detailInfo.fThickness"
>
{{
detailInfo
.
fThickness
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"气瓶许可证号"
>
<span
v-if=
"detailInfo.fPermitNo"
>
{{
detailInfo
.
fPermitNo
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"阀类型名称"
>
<span
v-if=
"detailInfo.fValveName"
>
{{
detailInfo
.
fValveName
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"钢瓶交付文件照片"
>
<el-image
:src=
"detailInfo.fPayImage"
:preview-src-list=
"[detailInfo.fPayImage]"
v-if=
"detailInfo.fPayImage != '' && detailInfo.fPayImage != null"
:z-index=
5000
style=
"width: 200px;height: 200px;"
></el-image>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"检验质量证明书照片"
>
<el-image
:src=
"detailInfo.fBatchImage"
:preview-src-list=
"[detailInfo.fBatchImage]"
v-if=
"detailInfo.fBatchImage != '' && detailInfo.fBatchImage != null"
:z-index=
5000
style=
"width: 200px;height: 200px;"
></el-image>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"制造监督检验证书照片"
>
<el-image
:src=
"detailInfo.fDeviceImage"
:preview-src-list=
"[detailInfo.fDeviceImage]"
v-if=
"detailInfo.fDeviceImage != '' && detailInfo.fDeviceImage != null"
:z-index=
5000
style=
"width: 200px;height: 200px;"
></el-image>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"检验报告照片"
>
<el-image
:src=
"detailInfo.fCheckImage"
:preview-src-list=
"[detailInfo.fCheckImage]"
v-if=
"detailInfo.fCheckImage != '' && detailInfo.fCheckImage != null"
:z-index=
5000
style=
"width: 200px;height: 200px;"
></el-image>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"产品编号照片"
>
<el-image
:src=
"detailInfo.fEquNoImage"
:preview-src-list=
"[detailInfo.fEquNoImage]"
v-if=
"detailInfo.fEquNoImage != '' && detailInfo.fEquNoImage != null"
:z-index=
5000
style=
"width: 200px;height: 200px;"
></el-image>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"单位内编号照片"
>
<el-image
:src=
"detailInfo.fSelfIdImage"
:preview-src-list=
"[detailInfo.fSelfIdImage]"
v-if=
"detailInfo.fSelfIdImage != '' && detailInfo.fSelfIdImage != null"
:z-index=
5000
style=
"width: 200px;height: 200px;"
></el-image>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"钢瓶信息照片"
>
<el-image
:src=
"detailInfo.fBotImage"
:preview-src-list=
"[detailInfo.fBotImage]"
v-if=
"detailInfo.fBotImage != '' && detailInfo.fBotImage != null"
:z-index=
5000
style=
"width: 200px;height: 200px;"
></el-image>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"钢瓶规格名称"
>
<span
v-if=
"detailInfo.fBotSpecName"
>
{{
detailInfo
.
fBotSpecName
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"钢瓶型号"
>
<span
v-if=
"detailInfo.fBottleType"
>
{{
detailInfo
.
fBottleType
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"已检验次数"
>
<span
v-if=
"detailInfo.fInspectedTimes"
>
{{
detailInfo
.
fInspectedTimes
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"是否专用"
>
<span
v-if=
"detailInfo.fIsSpecialized"
>
{{
detailInfo
.
fIsSpecialized
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"阀厂家"
>
<span
v-if=
"detailInfo.fValveManuFacturer"
>
{{
detailInfo
.
fValveManuFacturer
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"检验标牌"
>
<span
v-if=
"detailInfo.fInspectionLabel"
>
{{
detailInfo
.
fInspectionLabel
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"第三方标签"
>
<span
v-if=
"detailInfo.fThirdPartyLabel"
>
{{
detailInfo
.
fThirdPartyLabel
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"孔洞码"
>
<span
v-if=
"detailInfo.fHoleCode"
>
{{
detailInfo
.
fHoleCode
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"存储类型"
>
<span
v-if=
"detailInfo.fBottleStorageType"
>
{{
detailInfo
.
fBottleStorageType
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"状态"
>
<span
v-if=
"detailInfo.fState"
>
{{
detailInfo
.
fState
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
</el-row>
</el-form>
</el-dialog>
</
template
>
<
script
>
import
{
getFiles
}
from
"@/api/lpgRegulation/files"
;
export
default
{
name
:
"lpg-gasbottlefiles-info"
,
data
(){
return
{
detailInfo
:{
fImageList
:[]
},
detailOpen
:
false
}
},
computed
:
{
fImageListSplitAfter
()
{
return
this
.
detailInfo
.
fImageList
.
split
(
','
);
},
},
created
(){
},
methods
:{
getDetailInfo
(
id
){
getFiles
(
id
).
then
(
res
=>
{
if
(
res
.
code
==
200
&&
res
.
data
){
this
.
detailInfo
=
res
.
data
;
this
.
detailOpen
=
true
;
}
})
},
}
}
</
script
>
<
style
scoped
>
</
style
>
\ No newline at end of file
zh-baseversion-web/src/views/lpgRegulation/gasbottlefiles/index.vue
0 → 100644
View file @
ca11e965
<
template
>
<div
class=
"app-container"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
:inline=
"true"
v-show=
"showSearch"
label-width=
"100px"
>
<el-form-item
label=
"阀类型名称"
prop=
"fValveName"
>
<el-input
v-model=
"queryParams.fValveName"
placeholder=
"请输入阀类型名称"
clearable
size=
"small"
/>
</el-form-item>
<el-form-item
label=
"状态"
prop=
"fState"
>
<el-select
v-model=
"queryParams.fState"
placeholder=
"请选择状态"
clearable
>
<el-option
v-for=
"item in fStateOptions"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
>
</el-option>
</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=
"warning"
plain
icon=
"el-icon-download"
size=
"mini"
:loading=
"exportLoading"
@
click=
"handleExport"
v-hasPermi=
"['system:files:export']"
>
导出
</el-button>
</el-col>
<right-toolbar
:showSearch
.
sync=
"showSearch"
@
queryTable=
"getList"
></right-toolbar>
</el-row>
<el-table
v-loading=
"loading"
:data=
"filesList"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
/>
<el-table-column
label=
"阀类型名称"
align=
"center"
prop=
"fValveName"
:show-overflow-tooltip=
"true"
width=
"100"
/>
<el-table-column
label=
"钢瓶规格名称"
align=
"center"
prop=
"fBotSpecName"
:show-overflow-tooltip=
"true"
width=
"100"
/>
<el-table-column
label=
"钢瓶型号"
align=
"center"
prop=
"fBottleType"
:show-overflow-tooltip=
"true"
width=
"100"
/>
<el-table-column
label=
"气瓶许可证号"
align=
"center"
prop=
"fPermitNo"
:show-overflow-tooltip=
"true"
width=
"100"
/>
<el-table-column
label=
"上检日期"
align=
"center"
prop=
"fPChkDate"
width=
"100"
>
<template
slot-scope=
"scope"
>
<span>
{{
parseTime
(
scope
.
row
.
fPChkDate
,
'{y
}
-{m
}
-{d
}
'
)
}}
<
/span
>
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"下检日期"
align
=
"center"
prop
=
"fNChkDate"
width
=
"100"
>
<
template
slot
-
scope
=
"scope"
>
<
span
>
{{
parseTime
(
scope
.
row
.
fNChkDate
,
'{y
}
-{m
}
-{d
}
'
)
}}
<
/span
>
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"生产日期"
align
=
"center"
prop
=
"fProductDate"
width
=
"100"
>
<
template
slot
-
scope
=
"scope"
>
<
span
>
{{
parseTime
(
scope
.
row
.
fProductDate
,
'{y
}
-{m
}
-{d
}
'
)
}}
<
/span
>
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"报废日期"
align
=
"center"
prop
=
"fDiscardDate"
width
=
"100"
>
<
template
slot
-
scope
=
"scope"
>
<
span
>
{{
parseTime
(
scope
.
row
.
fDiscardDate
,
'{y
}
-{m
}
-{d
}
'
)
}}
<
/span
>
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"安全评定日期"
align
=
"center"
prop
=
"fSafeJudgeDate"
width
=
"100"
>
<
template
slot
-
scope
=
"scope"
>
<
span
>
{{
parseTime
(
scope
.
row
.
fSafeJudgeDate
,
'{y
}
-{m
}
-{d
}
'
)
}}
<
/span
>
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"已检验次数"
align
=
"center"
prop
=
"fInspectedTimes"
width
=
"100"
/>
<
el
-
table
-
column
label
=
"状态"
align
=
"center"
prop
=
"fState"
width
=
"100"
/>
<
el
-
table
-
column
label
=
"操作"
align
=
"center"
class
-
name
=
"small-padding fixed-width"
width
=
"100"
>
<
template
slot
-
scope
=
"scope"
>
<
el
-
button
size
=
"mini"
type
=
"text"
icon
=
"el-icon-document"
@
click
=
"handleDetail(scope.row)"
>
详情
<
/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"
/>
<!--
详情
-->
<
DetailInfo
ref
=
"detail"
/>
<
/div
>
<
/template
>
<
script
>
import
{
listFiles
,
getFiles
,
delFiles
,
addFiles
,
updateFiles
,
exportFiles
}
from
"@/api/lpgRegulation/files"
;
import
ImageUpload
from
'@/components/ImageUpload'
;
import
DetailInfo
from
"./components/indexInfo"
;
export
default
{
name
:
"Files"
,
components
:
{
ImageUpload
,
DetailInfo
}
,
data
()
{
return
{
fStateOptions
:[
{
value
:
1
,
label
:
'新增'
}
,
{
value
:
2
,
label
:
'修改'
}
,
{
value
:
-
1
,
label
:
'删除'
}
,
],
// 遮罩层
loading
:
true
,
// 导出遮罩层
exportLoading
:
false
,
// 选中数组
ids
:
[],
// 非单个禁用
single
:
true
,
// 非多个禁用
multiple
:
true
,
// 显示搜索条件
showSearch
:
true
,
// 总条数
total
:
0
,
// 液化石油气-气瓶档案表格数据
filesList
:
[],
// 弹出层标题
title
:
""
,
// 是否显示弹出层
open
:
false
,
// 查询参数
queryParams
:
{
pageNum
:
1
,
pageSize
:
10
,
fPChkDate
:
null
,
fNChkDate
:
null
,
fProductDate
:
null
,
fDiscardDate
:
null
,
fSafeJudgeDate
:
null
,
fGPressure
:
null
,
fWPressure
:
null
,
fSelfWeight
:
null
,
fPermitNo
:
null
,
fValveName
:
null
,
fState
:
null
,
}
,
// 表单参数
form
:
{
}
,
// 表单校验
rules
:
{
}
}
;
}
,
created
()
{
this
.
getList
();
}
,
methods
:
{
// 是否下发 0-不下发 1 - 下发字典翻译
fStateFormat
(
row
,
column
)
{
if
(
row
.
fState
===
1
)
{
return
"新增"
}
else
if
(
row
.
fState
===
2
)
{
return
"修改"
}
else
if
(
row
.
fState
===
-
1
)
{
return
"删除"
}
}
,
/** 查询液化石油气-气瓶档案列表 */
getList
()
{
this
.
loading
=
true
;
listFiles
(
this
.
queryParams
).
then
(
response
=>
{
this
.
filesList
=
response
.
rows
;
this
.
total
=
response
.
total
;
this
.
loading
=
false
;
}
);
}
,
// 取消按钮
cancel
()
{
this
.
open
=
false
;
this
.
reset
();
}
,
// 表单重置
reset
()
{
this
.
form
=
{
fGasBottleFilesId
:
null
,
fStationId
:
null
,
fRegId
:
null
,
fRegCode
:
null
,
fEquNo
:
null
,
fEquTypeCode
:
null
,
fEquType
:
null
,
fMediumCode
:
null
,
fMedium
:
null
,
fMakeDate
:
null
,
fMakeInfo
:
null
,
fSelfId
:
null
,
fNumber
:
null
,
fAllowedFillingWeight
:
null
,
fWayCard
:
null
,
fProvinceCode
:
null
,
fProvinceName
:
null
,
fCityCode
:
null
,
fCityName
:
null
,
fCountryCode
:
null
,
fCountryName
:
null
,
fPressure
:
null
,
fVolume
:
null
,
fVolumeUnit
:
null
,
fCheckId
:
null
,
fCheckReportNo
:
null
,
fIsCard
:
null
,
fDepartmentId
:
null
,
fCheckDeptCode
:
null
,
fCheckDeptName
:
null
,
fCheckDate
:
null
,
fNextCheckDate
:
null
,
fScrapId
:
null
,
fScrapDate
:
null
,
fScrapNo
:
null
,
fBottleStatus
:
"0"
,
fReportStatus
:
0
,
fChangeStatus
:
0
,
fStatus
:
"0"
,
fSbCode
:
null
,
fCardRecId
:
null
,
fAppId
:
null
,
fQRcode
:
null
,
fCardSendMan
:
null
,
fCardSendDeptCode
:
null
,
fCardSendDeptName
:
null
,
fCardSendTime
:
null
,
fBuildUserId
:
null
,
fBuildUser
:
null
,
fBak0
:
null
,
fBak1
:
null
,
fBak2
:
null
,
fPChkDate
:
null
,
fNChkDate
:
null
,
fProductDate
:
null
,
fDiscardDate
:
null
,
fSafeJudgeDate
:
null
,
fGPressure
:
null
,
fWPressure
:
null
,
fSelfWeight
:
null
,
fThickness
:
null
,
fPermitNo
:
null
,
fValveType
:
null
,
fValveName
:
null
,
fImageList
:
null
,
fPayImage
:
null
,
fBatchImage
:
null
,
fDeviceImage
:
null
,
fCheckImage
:
null
,
fEquNoImage
:
null
,
fSelfIdImage
:
null
,
fBotImage
:
null
,
fBotSpecType
:
null
,
fBotSpecName
:
null
,
fBottleType
:
null
,
fInspectedTimes
:
null
,
fIsSpecialized
:
null
,
fValveManuFacturer
:
null
,
fInspectionLabel
:
null
,
fThirdPartyLabel
:
null
,
fHoleCode
:
null
,
fBottleStorageType
:
null
,
fSourceFrom
:
null
,
fRowVersion
:
null
,
fState
:
null
,
fOptId
:
null
,
fOptName
:
null
,
fAddTime
:
null
,
fUpTime
:
null
,
fUpOptId
:
null
,
fUpOptName
:
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
.
fGasBottleFilesId
)
this
.
single
=
selection
.
length
!==
1
this
.
multiple
=
!
selection
.
length
}
,
//详情
handleDetail
(
row
){
this
.
$refs
.
detail
.
getDetailInfo
(
row
.
fGasBottleFilesId
);
}
,
/** 导出按钮操作 */
handleExport
()
{
const
queryParams
=
this
.
queryParams
;
this
.
$confirm
(
'是否确认导出所有液化石油气-气瓶档案数据项?'
,
"警告"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}
).
then
(()
=>
{
this
.
exportLoading
=
true
;
return
exportFiles
(
queryParams
);
}
).
then
(
response
=>
{
this
.
download
(
response
.
msg
);
this
.
exportLoading
=
false
;
}
).
catch
(()
=>
{
}
);
}
}
}
;
<
/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