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
fb7e4cd7
Commit
fb7e4cd7
authored
Jul 09, 2024
by
wanghao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1 液化石油气监管-充装记录模块功能实现
parent
12c7a59e
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
1027 additions
and
28 deletions
+1027
-28
TLpgAirChargeFilesController.java
...ontroller/lpgRegulation/TLpgAirChargeFilesController.java
+97
-0
TLpgAirChargeFiles.java
...ain/java/com/zehong/system/domain/TLpgAirChargeFiles.java
+219
-0
TLpgAirChargeFilesMapper.java
...va/com/zehong/system/mapper/TLpgAirChargeFilesMapper.java
+61
-0
ITLpgAirChargeFilesService.java
...com/zehong/system/service/ITLpgAirChargeFilesService.java
+61
-0
TLpgAirChargeFilesServiceImpl.java
...ng/system/service/impl/TLpgAirChargeFilesServiceImpl.java
+93
-0
TLpgAirChargeFilesMapper.xml
...main/resources/mapper/system/TLpgAirChargeFilesMapper.xml
+104
-0
airchargefiles.js
zh-baseversion-web/src/api/lpgRegulation/airchargefiles.js
+53
-0
indexInfo.vue
...ews/lpgRegulation/airchargefiles/components/indexInfo.vue
+125
-0
index.vue
...sion-web/src/views/lpgRegulation/airchargefiles/index.vue
+187
-0
indexInfo.vue
...ews/lpgRegulation/gasbottlefiles/components/indexInfo.vue
+27
-28
No files found.
zh-baseversion-admin/src/main/java/com/zehong/web/controller/lpgRegulation/TLpgAirChargeFilesController.java
0 → 100644
View file @
fb7e4cd7
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.TLpgAirChargeFiles
;
import
com.zehong.system.service.ITLpgAirChargeFilesService
;
import
com.zehong.common.utils.poi.ExcelUtil
;
import
com.zehong.common.core.page.TableDataInfo
;
/**
* 液化石油气-充装记录Controller
*
* @author zehong
* @date 2024-07-09
*/
@RestController
@RequestMapping
(
"/lpg/airchargefiles"
)
public
class
TLpgAirChargeFilesController
extends
BaseController
{
@Autowired
private
ITLpgAirChargeFilesService
tLpgAirChargeFilesService
;
/**
* 查询液化石油气-充装记录列表
*/
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
TLpgAirChargeFiles
tLpgAirChargeFiles
)
{
startPage
();
List
<
TLpgAirChargeFiles
>
list
=
tLpgAirChargeFilesService
.
selectTLpgAirChargeFilesList
(
tLpgAirChargeFiles
);
return
getDataTable
(
list
);
}
/**
* 导出液化石油气-充装记录列表
*/
@Log
(
title
=
"液化石油气-充装记录"
,
businessType
=
BusinessType
.
EXPORT
)
@GetMapping
(
"/export"
)
public
AjaxResult
export
(
TLpgAirChargeFiles
tLpgAirChargeFiles
)
{
List
<
TLpgAirChargeFiles
>
list
=
tLpgAirChargeFilesService
.
selectTLpgAirChargeFilesList
(
tLpgAirChargeFiles
);
ExcelUtil
<
TLpgAirChargeFiles
>
util
=
new
ExcelUtil
<
TLpgAirChargeFiles
>(
TLpgAirChargeFiles
.
class
);
return
util
.
exportExcel
(
list
,
"液化石油气-充装记录数据"
);
}
/**
* 获取液化石油气-充装记录详细信息
*/
@GetMapping
(
value
=
"/{fGasAirChargeId}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"fGasAirChargeId"
)
Long
fGasAirChargeId
)
{
return
AjaxResult
.
success
(
tLpgAirChargeFilesService
.
selectTLpgAirChargeFilesById
(
fGasAirChargeId
));
}
/**
* 新增液化石油气-充装记录
*/
@Log
(
title
=
"液化石油气-充装记录"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
public
AjaxResult
add
(
@RequestBody
TLpgAirChargeFiles
tLpgAirChargeFiles
)
{
return
toAjax
(
tLpgAirChargeFilesService
.
insertTLpgAirChargeFiles
(
tLpgAirChargeFiles
));
}
/**
* 修改液化石油气-充装记录
*/
@Log
(
title
=
"液化石油气-充装记录"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
public
AjaxResult
edit
(
@RequestBody
TLpgAirChargeFiles
tLpgAirChargeFiles
)
{
return
toAjax
(
tLpgAirChargeFilesService
.
updateTLpgAirChargeFiles
(
tLpgAirChargeFiles
));
}
/**
* 删除液化石油气-充装记录
*/
@Log
(
title
=
"液化石油气-充装记录"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/{fGasAirChargeIds}"
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
fGasAirChargeIds
)
{
return
toAjax
(
tLpgAirChargeFilesService
.
deleteTLpgAirChargeFilesByIds
(
fGasAirChargeIds
));
}
}
zh-baseversion-system/src/main/java/com/zehong/system/domain/TLpgAirChargeFiles.java
0 → 100644
View file @
fb7e4cd7
package
com
.
zehong
.
system
.
domain
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
import
org.apache.commons.lang3.builder.ToStringStyle
;
import
com.zehong.common.annotation.Excel
;
import
com.zehong.common.core.domain.BaseEntity
;
/**
* 液化石油气-充装记录对象 t_lpg_air_charge_files
*
* @author zehong
* @date 2024-07-09
*/
public
class
TLpgAirChargeFiles
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/** id */
private
Long
fGasAirChargeId
;
/** 充装记录编号 */
@Excel
(
name
=
"充装记录编号"
)
private
Long
fGzId
;
/** 充装单位 */
@Excel
(
name
=
"充装单位"
)
private
String
fStationName
;
/** 气瓶条码 */
@Excel
(
name
=
"气瓶条码"
)
private
String
fBarCode
;
/** 钢印号 */
@Excel
(
name
=
"钢印号"
)
private
String
fVaseCode
;
/** 秤号 */
@Excel
(
name
=
"秤号"
)
private
String
fScaleNum
;
/** 充装开始时间 */
@Excel
(
name
=
"充装开始时间"
)
private
String
fFillStatrTime
;
/** 充装结束时间 */
@Excel
(
name
=
"充装结束时间"
)
private
String
fFillEndTime
;
/** 设定净重 */
@Excel
(
name
=
"设定净重"
)
private
String
fSetWeight
;
/** 实际净重 */
@Excel
(
name
=
"实际净重"
)
private
String
fWtNet
;
/** 设定瓶重 */
@Excel
(
name
=
"设定瓶重"
)
private
String
fSetBottleWeight
;
/** 实际瓶重 */
@Excel
(
name
=
"实际瓶重"
)
private
String
fBottleWeight
;
/** 实际总重 */
@Excel
(
name
=
"实际总重"
)
private
String
fWtGross
;
/** 充装工 */
@Excel
(
name
=
"充装工"
)
private
String
fOprateName
;
public
void
setfGasAirChargeId
(
Long
fGasAirChargeId
)
{
this
.
fGasAirChargeId
=
fGasAirChargeId
;
}
public
Long
getfGasAirChargeId
()
{
return
fGasAirChargeId
;
}
public
void
setfGzId
(
Long
fGzId
)
{
this
.
fGzId
=
fGzId
;
}
public
Long
getfGzId
()
{
return
fGzId
;
}
public
void
setfStationName
(
String
fStationName
)
{
this
.
fStationName
=
fStationName
;
}
public
String
getfStationName
()
{
return
fStationName
;
}
public
void
setfBarCode
(
String
fBarCode
)
{
this
.
fBarCode
=
fBarCode
;
}
public
String
getfBarCode
()
{
return
fBarCode
;
}
public
void
setfVaseCode
(
String
fVaseCode
)
{
this
.
fVaseCode
=
fVaseCode
;
}
public
String
getfVaseCode
()
{
return
fVaseCode
;
}
public
void
setfScaleNum
(
String
fScaleNum
)
{
this
.
fScaleNum
=
fScaleNum
;
}
public
String
getfScaleNum
()
{
return
fScaleNum
;
}
public
void
setfFillStatrTime
(
String
fFillStatrTime
)
{
this
.
fFillStatrTime
=
fFillStatrTime
;
}
public
String
getfFillStatrTime
()
{
return
fFillStatrTime
;
}
public
void
setfFillEndTime
(
String
fFillEndTime
)
{
this
.
fFillEndTime
=
fFillEndTime
;
}
public
String
getfFillEndTime
()
{
return
fFillEndTime
;
}
public
void
setfSetWeight
(
String
fSetWeight
)
{
this
.
fSetWeight
=
fSetWeight
;
}
public
String
getfSetWeight
()
{
return
fSetWeight
;
}
public
void
setfWtNet
(
String
fWtNet
)
{
this
.
fWtNet
=
fWtNet
;
}
public
String
getfWtNet
()
{
return
fWtNet
;
}
public
void
setfSetBottleWeight
(
String
fSetBottleWeight
)
{
this
.
fSetBottleWeight
=
fSetBottleWeight
;
}
public
String
getfSetBottleWeight
()
{
return
fSetBottleWeight
;
}
public
void
setfBottleWeight
(
String
fBottleWeight
)
{
this
.
fBottleWeight
=
fBottleWeight
;
}
public
String
getfBottleWeight
()
{
return
fBottleWeight
;
}
public
void
setfWtGross
(
String
fWtGross
)
{
this
.
fWtGross
=
fWtGross
;
}
public
String
getfWtGross
()
{
return
fWtGross
;
}
public
void
setfOprateName
(
String
fOprateName
)
{
this
.
fOprateName
=
fOprateName
;
}
public
String
getfOprateName
()
{
return
fOprateName
;
}
@Override
public
String
toString
()
{
return
new
ToStringBuilder
(
this
,
ToStringStyle
.
MULTI_LINE_STYLE
)
.
append
(
"fGasAirChargeId"
,
getfGasAirChargeId
())
.
append
(
"fGzId"
,
getfGzId
())
.
append
(
"fStationName"
,
getfStationName
())
.
append
(
"fBarCode"
,
getfBarCode
())
.
append
(
"fVaseCode"
,
getfVaseCode
())
.
append
(
"fScaleNum"
,
getfScaleNum
())
.
append
(
"fFillStatrTime"
,
getfFillStatrTime
())
.
append
(
"fFillEndTime"
,
getfFillEndTime
())
.
append
(
"fSetWeight"
,
getfSetWeight
())
.
append
(
"fWtNet"
,
getfWtNet
())
.
append
(
"fSetBottleWeight"
,
getfSetBottleWeight
())
.
append
(
"fBottleWeight"
,
getfBottleWeight
())
.
append
(
"fWtGross"
,
getfWtGross
())
.
append
(
"fOprateName"
,
getfOprateName
())
.
toString
();
}
}
zh-baseversion-system/src/main/java/com/zehong/system/mapper/TLpgAirChargeFilesMapper.java
0 → 100644
View file @
fb7e4cd7
package
com
.
zehong
.
system
.
mapper
;
import
java.util.List
;
import
com.zehong.system.domain.TLpgAirChargeFiles
;
/**
* 液化石油气-充装记录Mapper接口
*
* @author zehong
* @date 2024-07-09
*/
public
interface
TLpgAirChargeFilesMapper
{
/**
* 查询液化石油气-充装记录
*
* @param fGasAirChargeId 液化石油气-充装记录ID
* @return 液化石油气-充装记录
*/
public
TLpgAirChargeFiles
selectTLpgAirChargeFilesById
(
Long
fGasAirChargeId
);
/**
* 查询液化石油气-充装记录列表
*
* @param tLpgAirChargeFiles 液化石油气-充装记录
* @return 液化石油气-充装记录集合
*/
public
List
<
TLpgAirChargeFiles
>
selectTLpgAirChargeFilesList
(
TLpgAirChargeFiles
tLpgAirChargeFiles
);
/**
* 新增液化石油气-充装记录
*
* @param tLpgAirChargeFiles 液化石油气-充装记录
* @return 结果
*/
public
int
insertTLpgAirChargeFiles
(
TLpgAirChargeFiles
tLpgAirChargeFiles
);
/**
* 修改液化石油气-充装记录
*
* @param tLpgAirChargeFiles 液化石油气-充装记录
* @return 结果
*/
public
int
updateTLpgAirChargeFiles
(
TLpgAirChargeFiles
tLpgAirChargeFiles
);
/**
* 删除液化石油气-充装记录
*
* @param fGasAirChargeId 液化石油气-充装记录ID
* @return 结果
*/
public
int
deleteTLpgAirChargeFilesById
(
Long
fGasAirChargeId
);
/**
* 批量删除液化石油气-充装记录
*
* @param fGasAirChargeIds 需要删除的数据ID
* @return 结果
*/
public
int
deleteTLpgAirChargeFilesByIds
(
Long
[]
fGasAirChargeIds
);
}
zh-baseversion-system/src/main/java/com/zehong/system/service/ITLpgAirChargeFilesService.java
0 → 100644
View file @
fb7e4cd7
package
com
.
zehong
.
system
.
service
;
import
java.util.List
;
import
com.zehong.system.domain.TLpgAirChargeFiles
;
/**
* 液化石油气-充装记录Service接口
*
* @author zehong
* @date 2024-07-09
*/
public
interface
ITLpgAirChargeFilesService
{
/**
* 查询液化石油气-充装记录
*
* @param fGasAirChargeId 液化石油气-充装记录ID
* @return 液化石油气-充装记录
*/
public
TLpgAirChargeFiles
selectTLpgAirChargeFilesById
(
Long
fGasAirChargeId
);
/**
* 查询液化石油气-充装记录列表
*
* @param tLpgAirChargeFiles 液化石油气-充装记录
* @return 液化石油气-充装记录集合
*/
public
List
<
TLpgAirChargeFiles
>
selectTLpgAirChargeFilesList
(
TLpgAirChargeFiles
tLpgAirChargeFiles
);
/**
* 新增液化石油气-充装记录
*
* @param tLpgAirChargeFiles 液化石油气-充装记录
* @return 结果
*/
public
int
insertTLpgAirChargeFiles
(
TLpgAirChargeFiles
tLpgAirChargeFiles
);
/**
* 修改液化石油气-充装记录
*
* @param tLpgAirChargeFiles 液化石油气-充装记录
* @return 结果
*/
public
int
updateTLpgAirChargeFiles
(
TLpgAirChargeFiles
tLpgAirChargeFiles
);
/**
* 批量删除液化石油气-充装记录
*
* @param fGasAirChargeIds 需要删除的液化石油气-充装记录ID
* @return 结果
*/
public
int
deleteTLpgAirChargeFilesByIds
(
Long
[]
fGasAirChargeIds
);
/**
* 删除液化石油气-充装记录信息
*
* @param fGasAirChargeId 液化石油气-充装记录ID
* @return 结果
*/
public
int
deleteTLpgAirChargeFilesById
(
Long
fGasAirChargeId
);
}
zh-baseversion-system/src/main/java/com/zehong/system/service/impl/TLpgAirChargeFilesServiceImpl.java
0 → 100644
View file @
fb7e4cd7
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.TLpgAirChargeFilesMapper
;
import
com.zehong.system.domain.TLpgAirChargeFiles
;
import
com.zehong.system.service.ITLpgAirChargeFilesService
;
/**
* 液化石油气-充装记录Service业务层处理
*
* @author zehong
* @date 2024-07-09
*/
@Service
public
class
TLpgAirChargeFilesServiceImpl
implements
ITLpgAirChargeFilesService
{
@Autowired
private
TLpgAirChargeFilesMapper
tLpgAirChargeFilesMapper
;
/**
* 查询液化石油气-充装记录
*
* @param fGasAirChargeId 液化石油气-充装记录ID
* @return 液化石油气-充装记录
*/
@Override
public
TLpgAirChargeFiles
selectTLpgAirChargeFilesById
(
Long
fGasAirChargeId
)
{
return
tLpgAirChargeFilesMapper
.
selectTLpgAirChargeFilesById
(
fGasAirChargeId
);
}
/**
* 查询液化石油气-充装记录列表
*
* @param tLpgAirChargeFiles 液化石油气-充装记录
* @return 液化石油气-充装记录
*/
@Override
public
List
<
TLpgAirChargeFiles
>
selectTLpgAirChargeFilesList
(
TLpgAirChargeFiles
tLpgAirChargeFiles
)
{
return
tLpgAirChargeFilesMapper
.
selectTLpgAirChargeFilesList
(
tLpgAirChargeFiles
);
}
/**
* 新增液化石油气-充装记录
*
* @param tLpgAirChargeFiles 液化石油气-充装记录
* @return 结果
*/
@Override
public
int
insertTLpgAirChargeFiles
(
TLpgAirChargeFiles
tLpgAirChargeFiles
)
{
return
tLpgAirChargeFilesMapper
.
insertTLpgAirChargeFiles
(
tLpgAirChargeFiles
);
}
/**
* 修改液化石油气-充装记录
*
* @param tLpgAirChargeFiles 液化石油气-充装记录
* @return 结果
*/
@Override
public
int
updateTLpgAirChargeFiles
(
TLpgAirChargeFiles
tLpgAirChargeFiles
)
{
return
tLpgAirChargeFilesMapper
.
updateTLpgAirChargeFiles
(
tLpgAirChargeFiles
);
}
/**
* 批量删除液化石油气-充装记录
*
* @param fGasAirChargeIds 需要删除的液化石油气-充装记录ID
* @return 结果
*/
@Override
public
int
deleteTLpgAirChargeFilesByIds
(
Long
[]
fGasAirChargeIds
)
{
return
tLpgAirChargeFilesMapper
.
deleteTLpgAirChargeFilesByIds
(
fGasAirChargeIds
);
}
/**
* 删除液化石油气-充装记录信息
*
* @param fGasAirChargeId 液化石油气-充装记录ID
* @return 结果
*/
@Override
public
int
deleteTLpgAirChargeFilesById
(
Long
fGasAirChargeId
)
{
return
tLpgAirChargeFilesMapper
.
deleteTLpgAirChargeFilesById
(
fGasAirChargeId
);
}
}
zh-baseversion-system/src/main/resources/mapper/system/TLpgAirChargeFilesMapper.xml
0 → 100644
View file @
fb7e4cd7
<?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.TLpgAirChargeFilesMapper"
>
<resultMap
type=
"TLpgAirChargeFiles"
id=
"TLpgAirChargeFilesResult"
>
<result
property=
"fGasAirChargeId"
column=
"f_gas_air_charge_id"
/>
<result
property=
"fGzId"
column=
"f_gz_id"
/>
<result
property=
"fStationName"
column=
"f_station_name"
/>
<result
property=
"fBarCode"
column=
"f_bar_code"
/>
<result
property=
"fVaseCode"
column=
"f_vase_code"
/>
<result
property=
"fScaleNum"
column=
"f_scale_num"
/>
<result
property=
"fFillStatrTime"
column=
"f_fill_statr_time"
/>
<result
property=
"fFillEndTime"
column=
"f_fill_end_time"
/>
<result
property=
"fSetWeight"
column=
"f_set_weight"
/>
<result
property=
"fWtNet"
column=
"f_wt_net"
/>
<result
property=
"fSetBottleWeight"
column=
"f_set_bottle_weight"
/>
<result
property=
"fBottleWeight"
column=
"f_bottle_weight"
/>
<result
property=
"fWtGross"
column=
"f_wt_gross"
/>
<result
property=
"fOprateName"
column=
"f_oprate_name"
/>
</resultMap>
<sql
id=
"selectTLpgAirChargeFilesVo"
>
select f_gas_air_charge_id, f_gz_id, f_station_name, f_bar_code, f_vase_code, f_scale_num, f_fill_statr_time, f_fill_end_time, f_set_weight, f_wt_net, f_set_bottle_weight, f_bottle_weight, f_wt_gross, f_oprate_name from t_lpg_air_charge_files
</sql>
<select
id=
"selectTLpgAirChargeFilesList"
parameterType=
"TLpgAirChargeFiles"
resultMap=
"TLpgAirChargeFilesResult"
>
<include
refid=
"selectTLpgAirChargeFilesVo"
/>
<where>
<if
test=
"fVaseCode != null and fVaseCode != ''"
>
and f_vase_code like concat('%', #{fVaseCode}, '%')
</if>
</where>
</select>
<select
id=
"selectTLpgAirChargeFilesById"
parameterType=
"Long"
resultMap=
"TLpgAirChargeFilesResult"
>
<include
refid=
"selectTLpgAirChargeFilesVo"
/>
where f_gas_air_charge_id = #{fGasAirChargeId}
</select>
<insert
id=
"insertTLpgAirChargeFiles"
parameterType=
"TLpgAirChargeFiles"
useGeneratedKeys=
"true"
keyProperty=
"fGasAirChargeId"
>
insert into t_lpg_air_charge_files
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"fGzId != null"
>
f_gz_id,
</if>
<if
test=
"fStationName != null"
>
f_station_name,
</if>
<if
test=
"fBarCode != null"
>
f_bar_code,
</if>
<if
test=
"fVaseCode != null"
>
f_vase_code,
</if>
<if
test=
"fScaleNum != null"
>
f_scale_num,
</if>
<if
test=
"fFillStatrTime != null"
>
f_fill_statr_time,
</if>
<if
test=
"fFillEndTime != null"
>
f_fill_end_time,
</if>
<if
test=
"fSetWeight != null"
>
f_set_weight,
</if>
<if
test=
"fWtNet != null"
>
f_wt_net,
</if>
<if
test=
"fSetBottleWeight != null"
>
f_set_bottle_weight,
</if>
<if
test=
"fBottleWeight != null"
>
f_bottle_weight,
</if>
<if
test=
"fWtGross != null"
>
f_wt_gross,
</if>
<if
test=
"fOprateName != null"
>
f_oprate_name,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"fGzId != null"
>
#{fGzId},
</if>
<if
test=
"fStationName != null"
>
#{fStationName},
</if>
<if
test=
"fBarCode != null"
>
#{fBarCode},
</if>
<if
test=
"fVaseCode != null"
>
#{fVaseCode},
</if>
<if
test=
"fScaleNum != null"
>
#{fScaleNum},
</if>
<if
test=
"fFillStatrTime != null"
>
#{fFillStatrTime},
</if>
<if
test=
"fFillEndTime != null"
>
#{fFillEndTime},
</if>
<if
test=
"fSetWeight != null"
>
#{fSetWeight},
</if>
<if
test=
"fWtNet != null"
>
#{fWtNet},
</if>
<if
test=
"fSetBottleWeight != null"
>
#{fSetBottleWeight},
</if>
<if
test=
"fBottleWeight != null"
>
#{fBottleWeight},
</if>
<if
test=
"fWtGross != null"
>
#{fWtGross},
</if>
<if
test=
"fOprateName != null"
>
#{fOprateName},
</if>
</trim>
</insert>
<update
id=
"updateTLpgAirChargeFiles"
parameterType=
"TLpgAirChargeFiles"
>
update t_lpg_air_charge_files
<trim
prefix=
"SET"
suffixOverrides=
","
>
<if
test=
"fGzId != null"
>
f_gz_id = #{fGzId},
</if>
<if
test=
"fStationName != null"
>
f_station_name = #{fStationName},
</if>
<if
test=
"fBarCode != null"
>
f_bar_code = #{fBarCode},
</if>
<if
test=
"fVaseCode != null"
>
f_vase_code = #{fVaseCode},
</if>
<if
test=
"fScaleNum != null"
>
f_scale_num = #{fScaleNum},
</if>
<if
test=
"fFillStatrTime != null"
>
f_fill_statr_time = #{fFillStatrTime},
</if>
<if
test=
"fFillEndTime != null"
>
f_fill_end_time = #{fFillEndTime},
</if>
<if
test=
"fSetWeight != null"
>
f_set_weight = #{fSetWeight},
</if>
<if
test=
"fWtNet != null"
>
f_wt_net = #{fWtNet},
</if>
<if
test=
"fSetBottleWeight != null"
>
f_set_bottle_weight = #{fSetBottleWeight},
</if>
<if
test=
"fBottleWeight != null"
>
f_bottle_weight = #{fBottleWeight},
</if>
<if
test=
"fWtGross != null"
>
f_wt_gross = #{fWtGross},
</if>
<if
test=
"fOprateName != null"
>
f_oprate_name = #{fOprateName},
</if>
</trim>
where f_gas_air_charge_id = #{fGasAirChargeId}
</update>
<delete
id=
"deleteTLpgAirChargeFilesById"
parameterType=
"Long"
>
delete from t_lpg_air_charge_files where f_gas_air_charge_id = #{fGasAirChargeId}
</delete>
<delete
id=
"deleteTLpgAirChargeFilesByIds"
parameterType=
"String"
>
delete from t_lpg_air_charge_files where f_gas_air_charge_id in
<foreach
item=
"fGasAirChargeId"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
#{fGasAirChargeId}
</foreach>
</delete>
</mapper>
\ No newline at end of file
zh-baseversion-web/src/api/lpgRegulation/airchargefiles.js
0 → 100644
View file @
fb7e4cd7
import
request
from
'@/utils/request'
// 查询液化石油气-充装记录列表
export
function
listFiles
(
query
)
{
return
request
({
url
:
'/lpg/airchargefiles/list'
,
method
:
'get'
,
params
:
query
})
}
// 查询液化石油气-充装记录详细
export
function
getFiles
(
fGasAirChargeId
)
{
return
request
({
url
:
'/lpg/airchargefiles/'
+
fGasAirChargeId
,
method
:
'get'
})
}
// 新增液化石油气-充装记录
export
function
addFiles
(
data
)
{
return
request
({
url
:
'/lpg/airchargefiles'
,
method
:
'post'
,
data
:
data
})
}
// 修改液化石油气-充装记录
export
function
updateFiles
(
data
)
{
return
request
({
url
:
'/lpg/airchargefiles'
,
method
:
'put'
,
data
:
data
})
}
// 删除液化石油气-充装记录
export
function
delFiles
(
fGasAirChargeId
)
{
return
request
({
url
:
'/lpg/airchargefiles/'
+
fGasAirChargeId
,
method
:
'delete'
})
}
// 导出液化石油气-充装记录
export
function
exportFiles
(
query
)
{
return
request
({
url
:
'/lpg/airchargefiles/export'
,
method
:
'get'
,
params
:
query
})
}
zh-baseversion-web/src/views/lpgRegulation/airchargefiles/components/indexInfo.vue
0 → 100644
View file @
fb7e4cd7
<
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.fGzId"
>
{{
detailInfo
.
fGzId
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"充装单位"
>
<span
v-if=
"detailInfo.fStationName"
>
{{
detailInfo
.
fStationName
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"气瓶条码"
>
<span
v-if=
"detailInfo.fBarCode"
>
{{
detailInfo
.
fBarCode
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"钢印号"
>
<span
v-if=
"detailInfo.fVaseCode"
>
{{
detailInfo
.
fVaseCode
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"秤号"
>
<span
v-if=
"detailInfo.fScaleNum"
>
{{
detailInfo
.
fScaleNum
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"充装开始时间"
>
<span
v-if=
"detailInfo.fFillStatrTime"
>
{{
detailInfo
.
fFillStatrTime
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"充装结束时间"
>
<span
v-if=
"detailInfo.fFillEndTime"
>
{{
detailInfo
.
fFillEndTime
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"设定净重"
>
<span
v-if=
"detailInfo.fSetWeight"
>
{{
detailInfo
.
fSetWeight
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"实际净重"
>
<span
v-if=
"detailInfo.fWtNet"
>
{{
detailInfo
.
fWtNet
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"设定瓶重"
>
<span
v-if=
"detailInfo.fSetBottleWeight"
>
{{
detailInfo
.
fSetBottleWeight
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"实际瓶重"
>
<span
v-if=
"detailInfo.fBottleWeight"
>
{{
detailInfo
.
fBottleWeight
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"实际总重"
>
<span
v-if=
"detailInfo.fWtGross"
>
{{
detailInfo
.
fWtGross
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"充装工"
>
<span
v-if=
"detailInfo.fOprateName"
>
{{
detailInfo
.
fOprateName
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
</el-row>
</el-form>
</el-dialog>
</
template
>
<
script
>
import
{
getFiles
}
from
"@/api/lpgRegulation/airchargefiles"
;
export
default
{
name
:
"lpg-gasbottlefiles-info"
,
data
(){
return
{
detailInfo
:{},
detailOpen
:
false
}
},
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
>
zh-baseversion-web/src/views/lpgRegulation/airchargefiles/index.vue
0 → 100644
View file @
fb7e4cd7
<
template
>
<div
class=
"app-container"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
:inline=
"true"
v-show=
"showSearch"
label-width=
"68px"
>
<el-form-item
label=
"钢印号"
prop=
"fVaseCode"
>
<el-input
v-model=
"queryParams.fVaseCode"
placeholder=
"请输入钢印号"
clearable
size=
"small"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-search"
size=
"mini"
@
click=
"handleQuery"
>
搜索
</el-button>
<el-button
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"resetQuery"
>
重置
</el-button>
</el-form-item>
</el-form>
<el-row
:gutter=
"10"
class=
"mb8"
>
<el-col
:span=
"1.5"
>
<el-button
type=
"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=
"fGzId"
/>
<el-table-column
label=
"充装单位"
align=
"center"
prop=
"fStationName"
/>
<el-table-column
label=
"气瓶条码"
align=
"center"
prop=
"fBarCode"
/>
<el-table-column
label=
"钢印号"
align=
"center"
prop=
"fVaseCode"
/>
<el-table-column
label=
"秤号"
align=
"center"
prop=
"fScaleNum"
/>
<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-edit"
@
click=
"handleDetail(scope.row)"
v-hasPermi=
"['system:files:edit']"
>
详情
</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
,
exportFiles
}
from
"@/api/lpgRegulation/airchargefiles"
;
import
DetailInfo
from
"./components/indexInfo"
;
export
default
{
name
:
"Files"
,
components
:
{
DetailInfo
},
data
()
{
return
{
// 遮罩层
loading
:
true
,
// 导出遮罩层
exportLoading
:
false
,
// 选中数组
ids
:
[],
// 非单个禁用
single
:
true
,
// 非多个禁用
multiple
:
true
,
// 显示搜索条件
showSearch
:
true
,
// 总条数
total
:
0
,
// 液化石油气-充装记录表格数据
filesList
:
[],
// 弹出层标题
title
:
""
,
// 是否显示弹出层
open
:
false
,
// 查询参数
queryParams
:
{
pageNum
:
1
,
pageSize
:
10
,
fVaseCode
:
null
,
},
// 表单参数
form
:
{},
// 表单校验
rules
:
{
}
};
},
created
()
{
this
.
getList
();
},
methods
:
{
/** 查询液化石油气-充装记录列表 */
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
=
{
fGasAirChargeId
:
null
,
fGzId
:
null
,
fStationName
:
null
,
fBarCode
:
null
,
fVaseCode
:
null
,
fScaleNum
:
null
,
fFillStatrTime
:
null
,
fFillEndTime
:
null
,
fSetWeight
:
null
,
fWtNet
:
null
,
fSetBottleWeight
:
null
,
fBottleWeight
:
null
,
fWtGross
:
null
,
fOprateName
:
null
};
this
.
resetForm
(
"form"
);
},
/** 搜索按钮操作 */
handleQuery
()
{
this
.
queryParams
.
pageNum
=
1
;
this
.
getList
();
},
/** 重置按钮操作 */
resetQuery
()
{
this
.
resetForm
(
"queryForm"
);
this
.
handleQuery
();
},
//详情
handleDetail
(
row
){
this
.
$refs
.
detail
.
getDetailInfo
(
row
.
fGasAirChargeId
);
},
// 多选框选中数据
handleSelectionChange
(
selection
)
{
this
.
ids
=
selection
.
map
(
item
=>
item
.
fGasAirChargeId
)
this
.
single
=
selection
.
length
!==
1
this
.
multiple
=
!
selection
.
length
},
/** 导出按钮操作 */
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
>
zh-baseversion-web/src/views/lpgRegulation/gasbottlefiles/components/indexInfo.vue
View file @
fb7e4cd7
<
template
>
<
template
>
<el-dialog
title=
"详情"
:visible
.
sync=
"detailOpen"
width=
"1000px"
append-to-body
destroy-on-close
:close-on-click-modal=
"false"
>
<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"
>
...
...
@@ -10,35 +10,35 @@
<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>
...
...
@@ -58,19 +58,19 @@
<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>
<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>
<el-col
:span=
"12"
>
<el-form-item
label=
"上检日期"
>
<span
v-if=
"detailInfo.fPChkDate"
>
{{
detailInfo
.
fPChkDate
}}
</span>
...
...
@@ -136,9 +136,9 @@
<span
v-if=
"detailInfo.fValveName"
>
{{
detailInfo
.
fValveName
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"钢瓶交付文件照片"
>
<el-form-item
label=
"钢瓶交付文件照片"
>
<el-image
:src=
"detailInfo.fPayImage"
:preview-src-list=
"[detailInfo.fPayImage]"
...
...
@@ -150,7 +150,7 @@
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"检验质量证明书照片"
>
<el-form-item
label=
"检验质量证明书照片"
>
<el-image
:src=
"detailInfo.fBatchImage"
:preview-src-list=
"[detailInfo.fBatchImage]"
...
...
@@ -161,9 +161,9 @@
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"制造监督检验证书照片"
>
<el-form-item
label=
"制造监督检验证书照片"
>
<el-image
:src=
"detailInfo.fDeviceImage"
:preview-src-list=
"[detailInfo.fDeviceImage]"
...
...
@@ -175,7 +175,7 @@
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"检验报告照片"
>
<el-form-item
label=
"检验报告照片"
>
<el-image
:src=
"detailInfo.fCheckImage"
:preview-src-list=
"[detailInfo.fCheckImage]"
...
...
@@ -187,7 +187,7 @@
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"产品编号照片"
>
<el-form-item
label=
"产品编号照片"
>
<el-image
:src=
"detailInfo.fEquNoImage"
:preview-src-list=
"[detailInfo.fEquNoImage]"
...
...
@@ -199,7 +199,7 @@
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"单位内编号照片"
>
<el-form-item
label=
"单位内编号照片"
>
<el-image
:src=
"detailInfo.fSelfIdImage"
:preview-src-list=
"[detailInfo.fSelfIdImage]"
...
...
@@ -211,7 +211,7 @@
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"钢瓶信息照片"
>
<el-form-item
label=
"钢瓶信息照片"
>
<el-image
:src=
"detailInfo.fBotImage"
:preview-src-list=
"[detailInfo.fBotImage]"
...
...
@@ -286,11 +286,11 @@
</el-form>
</el-dialog>
</
template
>
<
script
>
import
{
getFiles
}
from
"@/api/lpgRegulation/files"
;
export
default
{
name
:
"lpg-gasbottlefiles-info"
,
name
:
"lpg-gasbottlefiles-info"
,
data
(){
return
{
detailInfo
:{
...
...
@@ -298,8 +298,8 @@
},
detailOpen
:
false
}
},
computed
:
{
},
computed
:
{
fImageListSplitAfter
()
{
return
this
.
detailInfo
.
fImageList
.
split
(
','
);
},
...
...
@@ -307,11 +307,11 @@
created
(){
},
methods
:{
methods
:{
getDetailInfo
(
id
){
getFiles
(
id
).
then
(
res
=>
{
if
(
res
.
code
==
200
&&
res
.
data
){
this
.
detailInfo
=
res
.
data
;
this
.
detailInfo
=
res
.
data
;
this
.
detailOpen
=
true
;
}
})
...
...
@@ -319,8 +319,7 @@
}
}
</
script
>
<
style
scoped
>
</
style
>
\ No newline at end of file
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