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
2d4e630c
Commit
2d4e630c
authored
Jun 24, 2024
by
耿迪迪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
停气监管
parent
0d0f96d0
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
1511 additions
and
7 deletions
+1511
-7
TSupBalStopSupController.java
...eb/controller/supplybalance/TSupBalStopSupController.java
+97
-0
TSupBalStopSup.java
...rc/main/java/com/zehong/system/domain/TSupBalStopSup.java
+228
-0
TSupBalStopSupMapper.java
...n/java/com/zehong/system/mapper/TSupBalStopSupMapper.java
+61
-0
ITSupBalStopSupService.java
...ava/com/zehong/system/service/ITSupBalStopSupService.java
+61
-0
TSupBalStopSupServiceImpl.java
...zehong/system/service/impl/TSupBalStopSupServiceImpl.java
+96
-0
TSupBalStopSupMapper.xml
...src/main/resources/mapper/system/TSupBalStopSupMapper.xml
+123
-0
stop.js
zh-baseversion-web/src/api/supplybalance/stop.js
+53
-0
index.vue
zh-baseversion-web/src/components/DrawArea/index.vue
+201
-0
DetailInfo.vue
...web/src/views/supplybalance/gas/components/DetailInfo.vue
+118
-0
index.vue
zh-baseversion-web/src/views/supplybalance/gas/index.vue
+20
-7
index.vue
zh-baseversion-web/src/views/supplybalance/stop/index.vue
+453
-0
No files found.
zh-baseversion-admin/src/main/java/com/zehong/web/controller/supplybalance/TSupBalStopSupController.java
0 → 100644
View file @
2d4e630c
package
com
.
zehong
.
web
.
controller
.
supplybalance
;
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.TSupBalStopSup
;
import
com.zehong.system.service.ITSupBalStopSupService
;
import
com.zehong.common.utils.poi.ExcelUtil
;
import
com.zehong.common.core.page.TableDataInfo
;
/**
* 供需平衡-停气监管Controller
*
* @author zehong
* @date 2024-06-21
*/
@RestController
@RequestMapping
(
"/supplyBalance/stop"
)
public
class
TSupBalStopSupController
extends
BaseController
{
@Autowired
private
ITSupBalStopSupService
tSupBalStopSupService
;
/**
* 查询供需平衡-停气监管列表
*/
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
TSupBalStopSup
tSupBalStopSup
)
{
startPage
();
List
<
TSupBalStopSup
>
list
=
tSupBalStopSupService
.
selectTSupBalStopSupList
(
tSupBalStopSup
);
return
getDataTable
(
list
);
}
/**
* 导出供需平衡-停气监管列表
*/
@Log
(
title
=
"供需平衡-停气监管"
,
businessType
=
BusinessType
.
EXPORT
)
@GetMapping
(
"/export"
)
public
AjaxResult
export
(
TSupBalStopSup
tSupBalStopSup
)
{
List
<
TSupBalStopSup
>
list
=
tSupBalStopSupService
.
selectTSupBalStopSupList
(
tSupBalStopSup
);
ExcelUtil
<
TSupBalStopSup
>
util
=
new
ExcelUtil
<
TSupBalStopSup
>(
TSupBalStopSup
.
class
);
return
util
.
exportExcel
(
list
,
"供需平衡-停气监管数据"
);
}
/**
* 获取供需平衡-停气监管详细信息
*/
@GetMapping
(
value
=
"/{fGasStopId}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"fGasStopId"
)
Long
fGasStopId
)
{
return
AjaxResult
.
success
(
tSupBalStopSupService
.
selectTSupBalStopSupById
(
fGasStopId
));
}
/**
* 新增供需平衡-停气监管
*/
@Log
(
title
=
"供需平衡-停气监管"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
public
AjaxResult
add
(
@RequestBody
TSupBalStopSup
tSupBalStopSup
)
{
return
toAjax
(
tSupBalStopSupService
.
insertTSupBalStopSup
(
tSupBalStopSup
));
}
/**
* 修改供需平衡-停气监管
*/
@Log
(
title
=
"供需平衡-停气监管"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
public
AjaxResult
edit
(
@RequestBody
TSupBalStopSup
tSupBalStopSup
)
{
return
toAjax
(
tSupBalStopSupService
.
updateTSupBalStopSup
(
tSupBalStopSup
));
}
/**
* 删除供需平衡-停气监管
*/
@Log
(
title
=
"供需平衡-停气监管"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/{fGasStopIds}"
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
fGasStopIds
)
{
return
toAjax
(
tSupBalStopSupService
.
deleteTSupBalStopSupByIds
(
fGasStopIds
));
}
}
zh-baseversion-system/src/main/java/com/zehong/system/domain/TSupBalStopSup.java
0 → 100644
View file @
2d4e630c
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_sup_bal_stop_sup
*
* @author zehong
* @date 2024-06-21
*/
public
class
TSupBalStopSup
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/** id */
private
Long
fGasStopId
;
/** 企业uuid */
@Excel
(
name
=
"企业uuid"
)
private
String
fCompanyInfoId
;
/** 停气开始日期 */
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
@Excel
(
name
=
"停气开始日期"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd"
)
private
Date
fStartDate
;
/** 停气结束日期 */
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
@Excel
(
name
=
"停气结束日期"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd"
)
private
Date
fEndDate
;
/** 停气类型 */
@Excel
(
name
=
"停气类型"
)
private
String
fStopType
;
/** 影响用户 */
@Excel
(
name
=
"影响用户"
)
private
Long
fInfluenceCus
;
/** 停气原因 */
@Excel
(
name
=
"停气原因"
)
private
String
fStopReason
;
/** 停气范围 */
@Excel
(
name
=
"停气范围"
)
private
String
fStopRange
;
/** 停气进度 */
@Excel
(
name
=
"停气进度"
)
private
String
fStopProgress
;
/** 恢复供气时间 */
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
@Excel
(
name
=
"恢复供气时间"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd"
)
private
Date
fRecoveryGasTime
;
/** 上报状态 0-未上报,1-已上报 */
@Excel
(
name
=
"上报状态 0-未上报,1-已上报"
)
private
String
fRepStatus
;
/** 停气区域 */
@Excel
(
name
=
"停气区域"
)
private
String
fGasStopArea
;
/** 是否删除(0正常,1删除) */
@Excel
(
name
=
"是否删除(0正常,1删除)"
)
private
String
isDel
;
/** 备注 */
@Excel
(
name
=
"备注"
)
private
String
remarks
;
public
void
setfGasStopId
(
Long
fGasStopId
)
{
this
.
fGasStopId
=
fGasStopId
;
}
public
Long
getfGasStopId
()
{
return
fGasStopId
;
}
public
void
setfCompanyInfoId
(
String
fCompanyInfoId
)
{
this
.
fCompanyInfoId
=
fCompanyInfoId
;
}
public
String
getfCompanyInfoId
()
{
return
fCompanyInfoId
;
}
public
void
setfStartDate
(
Date
fStartDate
)
{
this
.
fStartDate
=
fStartDate
;
}
public
Date
getfStartDate
()
{
return
fStartDate
;
}
public
void
setfEndDate
(
Date
fEndDate
)
{
this
.
fEndDate
=
fEndDate
;
}
public
Date
getfEndDate
()
{
return
fEndDate
;
}
public
void
setfStopType
(
String
fStopType
)
{
this
.
fStopType
=
fStopType
;
}
public
String
getfStopType
()
{
return
fStopType
;
}
public
void
setfInfluenceCus
(
Long
fInfluenceCus
)
{
this
.
fInfluenceCus
=
fInfluenceCus
;
}
public
Long
getfInfluenceCus
()
{
return
fInfluenceCus
;
}
public
void
setfStopReason
(
String
fStopReason
)
{
this
.
fStopReason
=
fStopReason
;
}
public
String
getfStopReason
()
{
return
fStopReason
;
}
public
void
setfStopRange
(
String
fStopRange
)
{
this
.
fStopRange
=
fStopRange
;
}
public
String
getfStopRange
()
{
return
fStopRange
;
}
public
void
setfStopProgress
(
String
fStopProgress
)
{
this
.
fStopProgress
=
fStopProgress
;
}
public
String
getfStopProgress
()
{
return
fStopProgress
;
}
public
void
setfRecoveryGasTime
(
Date
fRecoveryGasTime
)
{
this
.
fRecoveryGasTime
=
fRecoveryGasTime
;
}
public
Date
getfRecoveryGasTime
()
{
return
fRecoveryGasTime
;
}
public
void
setfRepStatus
(
String
fRepStatus
)
{
this
.
fRepStatus
=
fRepStatus
;
}
public
String
getfRepStatus
()
{
return
fRepStatus
;
}
public
void
setfGasStopArea
(
String
fGasStopArea
)
{
this
.
fGasStopArea
=
fGasStopArea
;
}
public
String
getfGasStopArea
()
{
return
fGasStopArea
;
}
public
void
setIsDel
(
String
isDel
)
{
this
.
isDel
=
isDel
;
}
public
String
getIsDel
()
{
return
isDel
;
}
public
void
setRemarks
(
String
remarks
)
{
this
.
remarks
=
remarks
;
}
public
String
getRemarks
()
{
return
remarks
;
}
@Override
public
String
toString
()
{
return
new
ToStringBuilder
(
this
,
ToStringStyle
.
MULTI_LINE_STYLE
)
.
append
(
"fGasStopId"
,
getfGasStopId
())
.
append
(
"fCompanyInfoId"
,
getfCompanyInfoId
())
.
append
(
"fStartDate"
,
getfStartDate
())
.
append
(
"fEndDate"
,
getfEndDate
())
.
append
(
"fStopType"
,
getfStopType
())
.
append
(
"fInfluenceCus"
,
getfInfluenceCus
())
.
append
(
"fStopReason"
,
getfStopReason
())
.
append
(
"fStopRange"
,
getfStopRange
())
.
append
(
"fStopProgress"
,
getfStopProgress
())
.
append
(
"fRecoveryGasTime"
,
getfRecoveryGasTime
())
.
append
(
"fRepStatus"
,
getfRepStatus
())
.
append
(
"fGasStopArea"
,
getfGasStopArea
())
.
append
(
"createBy"
,
getCreateBy
())
.
append
(
"createTime"
,
getCreateTime
())
.
append
(
"updateBy"
,
getUpdateBy
())
.
append
(
"updateTime"
,
getUpdateTime
())
.
append
(
"isDel"
,
getIsDel
())
.
append
(
"remarks"
,
getRemarks
())
.
toString
();
}
}
zh-baseversion-system/src/main/java/com/zehong/system/mapper/TSupBalStopSupMapper.java
0 → 100644
View file @
2d4e630c
package
com
.
zehong
.
system
.
mapper
;
import
java.util.List
;
import
com.zehong.system.domain.TSupBalStopSup
;
/**
* 供需平衡-停气监管Mapper接口
*
* @author zehong
* @date 2024-06-21
*/
public
interface
TSupBalStopSupMapper
{
/**
* 查询供需平衡-停气监管
*
* @param fGasStopId 供需平衡-停气监管ID
* @return 供需平衡-停气监管
*/
public
TSupBalStopSup
selectTSupBalStopSupById
(
Long
fGasStopId
);
/**
* 查询供需平衡-停气监管列表
*
* @param tSupBalStopSup 供需平衡-停气监管
* @return 供需平衡-停气监管集合
*/
public
List
<
TSupBalStopSup
>
selectTSupBalStopSupList
(
TSupBalStopSup
tSupBalStopSup
);
/**
* 新增供需平衡-停气监管
*
* @param tSupBalStopSup 供需平衡-停气监管
* @return 结果
*/
public
int
insertTSupBalStopSup
(
TSupBalStopSup
tSupBalStopSup
);
/**
* 修改供需平衡-停气监管
*
* @param tSupBalStopSup 供需平衡-停气监管
* @return 结果
*/
public
int
updateTSupBalStopSup
(
TSupBalStopSup
tSupBalStopSup
);
/**
* 删除供需平衡-停气监管
*
* @param fGasStopId 供需平衡-停气监管ID
* @return 结果
*/
public
int
deleteTSupBalStopSupById
(
Long
fGasStopId
);
/**
* 批量删除供需平衡-停气监管
*
* @param fGasStopIds 需要删除的数据ID
* @return 结果
*/
public
int
deleteTSupBalStopSupByIds
(
Long
[]
fGasStopIds
);
}
zh-baseversion-system/src/main/java/com/zehong/system/service/ITSupBalStopSupService.java
0 → 100644
View file @
2d4e630c
package
com
.
zehong
.
system
.
service
;
import
java.util.List
;
import
com.zehong.system.domain.TSupBalStopSup
;
/**
* 供需平衡-停气监管Service接口
*
* @author zehong
* @date 2024-06-21
*/
public
interface
ITSupBalStopSupService
{
/**
* 查询供需平衡-停气监管
*
* @param fGasStopId 供需平衡-停气监管ID
* @return 供需平衡-停气监管
*/
public
TSupBalStopSup
selectTSupBalStopSupById
(
Long
fGasStopId
);
/**
* 查询供需平衡-停气监管列表
*
* @param tSupBalStopSup 供需平衡-停气监管
* @return 供需平衡-停气监管集合
*/
public
List
<
TSupBalStopSup
>
selectTSupBalStopSupList
(
TSupBalStopSup
tSupBalStopSup
);
/**
* 新增供需平衡-停气监管
*
* @param tSupBalStopSup 供需平衡-停气监管
* @return 结果
*/
public
int
insertTSupBalStopSup
(
TSupBalStopSup
tSupBalStopSup
);
/**
* 修改供需平衡-停气监管
*
* @param tSupBalStopSup 供需平衡-停气监管
* @return 结果
*/
public
int
updateTSupBalStopSup
(
TSupBalStopSup
tSupBalStopSup
);
/**
* 批量删除供需平衡-停气监管
*
* @param fGasStopIds 需要删除的供需平衡-停气监管ID
* @return 结果
*/
public
int
deleteTSupBalStopSupByIds
(
Long
[]
fGasStopIds
);
/**
* 删除供需平衡-停气监管信息
*
* @param fGasStopId 供需平衡-停气监管ID
* @return 结果
*/
public
int
deleteTSupBalStopSupById
(
Long
fGasStopId
);
}
zh-baseversion-system/src/main/java/com/zehong/system/service/impl/TSupBalStopSupServiceImpl.java
0 → 100644
View file @
2d4e630c
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.TSupBalStopSupMapper
;
import
com.zehong.system.domain.TSupBalStopSup
;
import
com.zehong.system.service.ITSupBalStopSupService
;
/**
* 供需平衡-停气监管Service业务层处理
*
* @author zehong
* @date 2024-06-21
*/
@Service
public
class
TSupBalStopSupServiceImpl
implements
ITSupBalStopSupService
{
@Autowired
private
TSupBalStopSupMapper
tSupBalStopSupMapper
;
/**
* 查询供需平衡-停气监管
*
* @param fGasStopId 供需平衡-停气监管ID
* @return 供需平衡-停气监管
*/
@Override
public
TSupBalStopSup
selectTSupBalStopSupById
(
Long
fGasStopId
)
{
return
tSupBalStopSupMapper
.
selectTSupBalStopSupById
(
fGasStopId
);
}
/**
* 查询供需平衡-停气监管列表
*
* @param tSupBalStopSup 供需平衡-停气监管
* @return 供需平衡-停气监管
*/
@Override
public
List
<
TSupBalStopSup
>
selectTSupBalStopSupList
(
TSupBalStopSup
tSupBalStopSup
)
{
return
tSupBalStopSupMapper
.
selectTSupBalStopSupList
(
tSupBalStopSup
);
}
/**
* 新增供需平衡-停气监管
*
* @param tSupBalStopSup 供需平衡-停气监管
* @return 结果
*/
@Override
public
int
insertTSupBalStopSup
(
TSupBalStopSup
tSupBalStopSup
)
{
tSupBalStopSup
.
setCreateTime
(
DateUtils
.
getNowDate
());
return
tSupBalStopSupMapper
.
insertTSupBalStopSup
(
tSupBalStopSup
);
}
/**
* 修改供需平衡-停气监管
*
* @param tSupBalStopSup 供需平衡-停气监管
* @return 结果
*/
@Override
public
int
updateTSupBalStopSup
(
TSupBalStopSup
tSupBalStopSup
)
{
tSupBalStopSup
.
setUpdateTime
(
DateUtils
.
getNowDate
());
return
tSupBalStopSupMapper
.
updateTSupBalStopSup
(
tSupBalStopSup
);
}
/**
* 批量删除供需平衡-停气监管
*
* @param fGasStopIds 需要删除的供需平衡-停气监管ID
* @return 结果
*/
@Override
public
int
deleteTSupBalStopSupByIds
(
Long
[]
fGasStopIds
)
{
return
tSupBalStopSupMapper
.
deleteTSupBalStopSupByIds
(
fGasStopIds
);
}
/**
* 删除供需平衡-停气监管信息
*
* @param fGasStopId 供需平衡-停气监管ID
* @return 结果
*/
@Override
public
int
deleteTSupBalStopSupById
(
Long
fGasStopId
)
{
return
tSupBalStopSupMapper
.
deleteTSupBalStopSupById
(
fGasStopId
);
}
}
zh-baseversion-system/src/main/resources/mapper/system/TSupBalStopSupMapper.xml
0 → 100644
View file @
2d4e630c
<?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.TSupBalStopSupMapper"
>
<resultMap
type=
"TSupBalStopSup"
id=
"TSupBalStopSupResult"
>
<result
property=
"fGasStopId"
column=
"f_gas_stop_id"
/>
<result
property=
"fCompanyInfoId"
column=
"f_company_info_id"
/>
<result
property=
"fStartDate"
column=
"f_start_date"
/>
<result
property=
"fEndDate"
column=
"f_end_date"
/>
<result
property=
"fStopType"
column=
"f_stop_type"
/>
<result
property=
"fInfluenceCus"
column=
"f_influence_cus"
/>
<result
property=
"fStopReason"
column=
"f_stop_reason"
/>
<result
property=
"fStopRange"
column=
"f_stop_range"
/>
<result
property=
"fStopProgress"
column=
"f_stop_progress"
/>
<result
property=
"fRecoveryGasTime"
column=
"f_recovery_gas_time"
/>
<result
property=
"fRepStatus"
column=
"f_rep_status"
/>
<result
property=
"fGasStopArea"
column=
"f_gas_stop_area"
/>
<result
property=
"createBy"
column=
"create_by"
/>
<result
property=
"createTime"
column=
"create_time"
/>
<result
property=
"updateBy"
column=
"update_by"
/>
<result
property=
"updateTime"
column=
"update_time"
/>
<result
property=
"isDel"
column=
"is_del"
/>
<result
property=
"remarks"
column=
"remarks"
/>
</resultMap>
<sql
id=
"selectTSupBalStopSupVo"
>
select f_gas_stop_id, f_company_info_id, f_start_date, f_end_date, f_stop_type, f_influence_cus, f_stop_reason, f_stop_range, f_stop_progress, f_recovery_gas_time, f_rep_status, f_gas_stop_area, create_by, create_time, update_by, update_time, is_del, remarks from t_sup_bal_stop_sup
</sql>
<select
id=
"selectTSupBalStopSupList"
parameterType=
"TSupBalStopSup"
resultMap=
"TSupBalStopSupResult"
>
<include
refid=
"selectTSupBalStopSupVo"
/>
<where>
<if
test=
"fCompanyInfoId != null and fCompanyInfoId != ''"
>
and f_company_info_id = #{fCompanyInfoId}
</if>
<if
test=
"fStopType != null and fStopType != ''"
>
and f_stop_type = #{fStopType}
</if>
<if
test=
"fStopProgress != null and fStopProgress != ''"
>
and f_stop_progress = #{fStopProgress}
</if>
<if
test=
"fRepStatus != null and fRepStatus != ''"
>
and f_rep_status = #{fRepStatus}
</if>
</where>
</select>
<select
id=
"selectTSupBalStopSupById"
parameterType=
"Long"
resultMap=
"TSupBalStopSupResult"
>
<include
refid=
"selectTSupBalStopSupVo"
/>
where f_gas_stop_id = #{fGasStopId}
</select>
<insert
id=
"insertTSupBalStopSup"
parameterType=
"TSupBalStopSup"
useGeneratedKeys=
"true"
keyProperty=
"fGasStopId"
>
insert into t_sup_bal_stop_sup
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"fCompanyInfoId != null"
>
f_company_info_id,
</if>
<if
test=
"fStartDate != null"
>
f_start_date,
</if>
<if
test=
"fEndDate != null"
>
f_end_date,
</if>
<if
test=
"fStopType != null and fStopType != ''"
>
f_stop_type,
</if>
<if
test=
"fInfluenceCus != null"
>
f_influence_cus,
</if>
<if
test=
"fStopReason != null"
>
f_stop_reason,
</if>
<if
test=
"fStopRange != null and fStopRange != ''"
>
f_stop_range,
</if>
<if
test=
"fStopProgress != null and fStopProgress != ''"
>
f_stop_progress,
</if>
<if
test=
"fRecoveryGasTime != null"
>
f_recovery_gas_time,
</if>
<if
test=
"fRepStatus != null and fRepStatus != ''"
>
f_rep_status,
</if>
<if
test=
"fGasStopArea != null"
>
f_gas_stop_area,
</if>
<if
test=
"createBy != null"
>
create_by,
</if>
<if
test=
"createTime != null"
>
create_time,
</if>
<if
test=
"updateBy != null"
>
update_by,
</if>
<if
test=
"updateTime != null"
>
update_time,
</if>
<if
test=
"isDel != null"
>
is_del,
</if>
<if
test=
"remarks != null"
>
remarks,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"fCompanyInfoId != null"
>
#{fCompanyInfoId},
</if>
<if
test=
"fStartDate != null"
>
#{fStartDate},
</if>
<if
test=
"fEndDate != null"
>
#{fEndDate},
</if>
<if
test=
"fStopType != null and fStopType != ''"
>
#{fStopType},
</if>
<if
test=
"fInfluenceCus != null"
>
#{fInfluenceCus},
</if>
<if
test=
"fStopReason != null"
>
#{fStopReason},
</if>
<if
test=
"fStopRange != null and fStopRange != ''"
>
#{fStopRange},
</if>
<if
test=
"fStopProgress != null and fStopProgress != ''"
>
#{fStopProgress},
</if>
<if
test=
"fRecoveryGasTime != null"
>
#{fRecoveryGasTime},
</if>
<if
test=
"fRepStatus != null and fRepStatus != ''"
>
#{fRepStatus},
</if>
<if
test=
"fGasStopArea != null"
>
#{fGasStopArea},
</if>
<if
test=
"createBy != null"
>
#{createBy},
</if>
<if
test=
"createTime != null"
>
#{createTime},
</if>
<if
test=
"updateBy != null"
>
#{updateBy},
</if>
<if
test=
"updateTime != null"
>
#{updateTime},
</if>
<if
test=
"isDel != null"
>
#{isDel},
</if>
<if
test=
"remarks != null"
>
#{remarks},
</if>
</trim>
</insert>
<update
id=
"updateTSupBalStopSup"
parameterType=
"TSupBalStopSup"
>
update t_sup_bal_stop_sup
<trim
prefix=
"SET"
suffixOverrides=
","
>
<if
test=
"fCompanyInfoId != null"
>
f_company_info_id = #{fCompanyInfoId},
</if>
<if
test=
"fStartDate != null"
>
f_start_date = #{fStartDate},
</if>
<if
test=
"fEndDate != null"
>
f_end_date = #{fEndDate},
</if>
<if
test=
"fStopType != null and fStopType != ''"
>
f_stop_type = #{fStopType},
</if>
<if
test=
"fInfluenceCus != null"
>
f_influence_cus = #{fInfluenceCus},
</if>
<if
test=
"fStopReason != null"
>
f_stop_reason = #{fStopReason},
</if>
<if
test=
"fStopRange != null and fStopRange != ''"
>
f_stop_range = #{fStopRange},
</if>
<if
test=
"fStopProgress != null and fStopProgress != ''"
>
f_stop_progress = #{fStopProgress},
</if>
<if
test=
"fRecoveryGasTime != null"
>
f_recovery_gas_time = #{fRecoveryGasTime},
</if>
<if
test=
"fRepStatus != null and fRepStatus != ''"
>
f_rep_status = #{fRepStatus},
</if>
<if
test=
"fGasStopArea != null"
>
f_gas_stop_area = #{fGasStopArea},
</if>
<if
test=
"createBy != null"
>
create_by = #{createBy},
</if>
<if
test=
"createTime != null"
>
create_time = #{createTime},
</if>
<if
test=
"updateBy != null"
>
update_by = #{updateBy},
</if>
<if
test=
"updateTime != null"
>
update_time = #{updateTime},
</if>
<if
test=
"isDel != null"
>
is_del = #{isDel},
</if>
<if
test=
"remarks != null"
>
remarks = #{remarks},
</if>
</trim>
where f_gas_stop_id = #{fGasStopId}
</update>
<delete
id=
"deleteTSupBalStopSupById"
parameterType=
"Long"
>
delete from t_sup_bal_stop_sup where f_gas_stop_id = #{fGasStopId}
</delete>
<delete
id=
"deleteTSupBalStopSupByIds"
parameterType=
"String"
>
delete from t_sup_bal_stop_sup where f_gas_stop_id in
<foreach
item=
"fGasStopId"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
#{fGasStopId}
</foreach>
</delete>
</mapper>
\ No newline at end of file
zh-baseversion-web/src/api/supplybalance/stop.js
0 → 100644
View file @
2d4e630c
import
request
from
'@/utils/request'
// 查询供需平衡-停气监管列表
export
function
listSup
(
query
)
{
return
request
({
url
:
'/supplyBalance/stop/list'
,
method
:
'get'
,
params
:
query
})
}
// 查询供需平衡-停气监管详细
export
function
getSup
(
fGasStopId
)
{
return
request
({
url
:
'/supplyBalance/stop/'
+
fGasStopId
,
method
:
'get'
})
}
// 新增供需平衡-停气监管
export
function
addSup
(
data
)
{
return
request
({
url
:
'/supplyBalance/stop'
,
method
:
'post'
,
data
:
data
})
}
// 修改供需平衡-停气监管
export
function
updateSup
(
data
)
{
return
request
({
url
:
'/supplyBalance/stop'
,
method
:
'put'
,
data
:
data
})
}
// 删除供需平衡-停气监管
export
function
delSup
(
fGasStopId
)
{
return
request
({
url
:
'/supplyBalance/stop/'
+
fGasStopId
,
method
:
'delete'
})
}
// 导出供需平衡-停气监管
export
function
exportSup
(
query
)
{
return
request
({
url
:
'/supplyBalance/stop/export'
,
method
:
'get'
,
params
:
query
})
}
zh-baseversion-web/src/components/DrawArea/index.vue
0 → 100644
View file @
2d4e630c
<
template
>
<div
style=
"position: relative"
>
<div
class=
"search-wrapper pos"
>
<el-input
v-model=
"searchinput"
class=
"searchinput"
placeholder=
"请输入内容"
size=
"mini"
style=
"width: 150px"
ref=
"input"
></el-input>
</div>
<div
id=
"drawArea"
:style=
"
{height: this.height + 'px'}"
>
</div>
</div>
</
template
>
<
script
>
import
{
EditorMap
}
from
"@/utils/mapClass/getPath.js"
;
export
default
{
name
:
"draw-area"
,
props
:{
value
:
{
type
:
Array
,
default
:
()
=>
[],
},
height
:{
type
:
Number
,
default
:
500
}
},
data
(){
return
{
gaoMap
:
null
,
mouseTool
:
null
,
overlays
:
null
,
firstClick
:
0
,
nowMouseTarget
:
null
,
isClickPolygonFlag
:
false
,
opts
:{
fillColor
:
'#00b0ff'
,
strokeColor
:
'#80d8ff'
},
searchinput
:
""
}
},
mounted
(){
this
.
initMap
();
this
.
$nextTick
(()
=>
{
const
input
=
this
.
$refs
.
input
.
$refs
.
input
;
this
.
gaoMap
.
positionSearch
(
input
);
});
},
methods
:{
//地图初始化
initMap
(){
const
path
=
eval
(
this
.
$store
.
state
.
user
.
systemSetting
.
map_center
);
this
.
gaoMap
=
new
EditorMap
(
"drawArea"
,
{
center
:
path
},
this
);
this
.
initMapEvent
();
if
(
this
.
value
.
length
>
0
){
this
.
loadArea
();
}
else
{
this
.
initMouseEvent
();
}
},
initMapEvent
(){
let
that
=
this
;
this
.
gaoMap
.
map
.
on
(
"click"
,
()
=>
{
if
(
that
.
nowMouseTarget
&&
!
that
.
isClickPolygonFlag
){
that
.
$confirm
(
"是否重新绘制区域"
,
{
type
:
"warning"
})
.
then
(()
=>
{
that
.
$emit
(
"input"
,
[]);
that
.
mouseTool
&&
that
.
mouseTool
.
close
();
that
.
nowMouseTarget
.
polygonEditor
&&
that
.
nowMouseTarget
.
polygonEditor
.
close
();
that
.
gaoMap
.
map
.
remove
(
that
.
nowMouseTarget
);
that
.
mouseTool
&&
that
.
mouseTool
.
polygon
(
that
.
opts
);
if
(
!
that
.
mouseTool
){
that
.
initMouseEvent
();
}
that
.
isClickPolygonFlag
=
true
;
}).
catch
(()
=>
{});
}
});
},
//初始化鼠标事件
initMouseEvent
(){
let
that
=
this
;
this
.
gaoMap
.
map
.
plugin
([
"AMap.MouseTool"
],
()
=>
{
that
.
mouseTool
=
new
AMap
.
MouseTool
(
this
.
gaoMap
.
map
);
that
.
mouseTool
.
polygon
(
that
.
opts
);
that
.
mouseTool
.
on
(
'draw'
,
function
(
e
){
that
.
nowMouseTarget
=
e
.
obj
;
that
.
$emit
(
"input"
,
that
.
nowMouseTarget
.
_opts
.
path
);
that
.
isClickPolygonFlag
=
false
;
if
(
that
.
nowMouseTarget
.
_opts
.
path
.
length
>
2
){
that
.
mouseTool
.
close
();
that
.
isClickPolygonFlag
=
true
;
}
that
.
firstClick
=
0
;
e
.
obj
.
on
(
'click'
,
function
()
{
that
.
isClickPolygonFlag
=
true
;
that
.
firstClick
++
;
if
(
that
.
firstClick
<
2
){
that
.
gaoMap
.
map
.
plugin
([
"AMap.PolygonEditor"
],(
n
)
=>
{
const
polygonEditor
=
new
AMap
.
PolygonEditor
(
that
.
gaoMap
.
map
,
e
.
obj
);
that
.
nowMouseTarget
.
polygonEditor
=
polygonEditor
;
polygonEditor
.
on
(
"removenode"
,
(
e
)
=>
{
that
.
$emit
(
"input"
,
e
.
target
.
_opts
.
path
);
that
.
isClickPolygonFlag
=
true
;
if
(
that
.
nowMouseTarget
.
_opts
.
path
.
length
==
0
){
setTimeout
(()
=>
{
that
.
mouseTool
.
polygon
(
that
.
opts
);
},
230
);
}
});
polygonEditor
.
on
(
"adjust"
,(
e
)
=>
{
that
.
$emit
(
"input"
,
e
.
target
.
_opts
.
path
);
})
polygonEditor
.
on
(
"addnode"
,(
e
)
=>
{
that
.
$emit
(
"input"
,
e
.
target
.
_opts
.
path
);
})
polygonEditor
.
open
();
});
}
});
e
.
obj
.
on
(
"mouseout"
,
(
e
)
=>
{
that
.
isClickPolygonFlag
=
false
;
})
//右键关闭区域编辑
e
.
obj
.
on
(
"rightclick"
,()
=>
{
that
.
firstClick
=
0
;
that
.
nowMouseTarget
.
polygonEditor
.
close
();
})
})
});
},
//区域回显
loadArea
(){
const
polygon
=
new
AMap
.
Polygon
({
map
:
this
.
gaoMap
.
map
,
path
:
this
.
value
,
fillColor
:
'#00b0ff'
,
strokeColor
:
'#80d8ff'
});
this
.
nowMouseTarget
=
polygon
;
this
.
firstClick
=
0
;
polygon
.
on
(
"click"
,(
e
)
=>
{
this
.
isClickPolygonFlag
=
true
;
this
.
firstClick
++
;
if
(
this
.
firstClick
<
2
){
this
.
gaoMap
.
map
.
plugin
([
"AMap.PolygonEditor"
],()
=>
{
this
.
nowMouseTarget
.
polygonEditor
=
new
AMap
.
PolygonEditor
(
this
.
gaoMap
.
map
,
e
.
target
);
this
.
nowMouseTarget
.
polygonEditor
.
on
(
"removenode"
,
(
e
)
=>
{
this
.
isClickPolygonFlag
=
true
;
this
.
$emit
(
"input"
,
e
.
target
.
_opts
.
path
);
});
this
.
nowMouseTarget
.
polygonEditor
.
on
(
"adjust"
,(
e
)
=>
{
this
.
$emit
(
"input"
,
e
.
target
.
_opts
.
path
);
})
this
.
nowMouseTarget
.
polygonEditor
.
on
(
"addnode"
,(
e
)
=>
{
this
.
$emit
(
"input"
,
e
.
target
.
_opts
.
path
);
})
this
.
nowMouseTarget
.
polygonEditor
.
open
();
})
}
});
polygon
.
on
(
"mouseout"
,
(
e
)
=>
{
this
.
isClickPolygonFlag
=
false
;
})
polygon
.
on
(
"rightclick"
,()
=>
{
this
.
firstClick
=
0
;
this
.
nowMouseTarget
.
polygonEditor
&&
this
.
nowMouseTarget
.
polygonEditor
.
close
();
})
}
}
}
</
script
>
<
style
scoped
lang=
"scss"
>
.search-wrapper
{
left
:
30px
;
}
.positionBtn
{
right
:
30px
;
}
.pos
{
position
:
absolute
;
top
:
20px
;
left
:
20px
;
z-index
:
20
;
}
#drawArea
{
width
:
100%
;
border
:
1px
solid
;
}
</
style
>
zh-baseversion-web/src/views/supplybalance/gas/components/DetailInfo.vue
0 → 100644
View file @
2d4e630c
<
template
>
<el-dialog
title=
"详情"
:visible
.
sync=
"detailOpen"
width=
"900px"
append-to-body
destroy-on-close
:close-on-click-modal=
"false"
>
<el-form
label-width=
"120px"
>
<el-row
class=
"el-row-table"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"企业名称"
>
<span
v-if=
"detailInfo.enterpriseName"
>
{{
detailInfo
.
enterpriseName
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"计划量/wm³"
>
<span
v-if=
"detailInfo.fPlanQuan"
>
{{
detailInfo
.
fPlanQuan
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"批复量/wm³"
>
<span
v-if=
"detailInfo.fApprQuan"
>
{{
detailInfo
.
fApprQuan
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"供气量/wm³"
>
<span
v-if=
"detailInfo.fSupGasVol"
>
{{
detailInfo
.
fSupGasVol
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"存储量/wm³"
>
<span
v-if=
"detailInfo.fStorageVol"
>
{{
detailInfo
.
fStorageVol
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"监管气量日期"
>
<span
v-if=
"detailInfo.fSupDate"
>
{{
detailInfo
.
fSupDate
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"上报状态"
>
<span
v-if=
"detailInfo.fRepStatus == '0'"
>
未上报
</span>
<span
v-else-if=
"detailInfo.fRepStatus == '1'"
>
已上报
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"上报日期"
>
<span
v-if=
"detailInfo.fRepDate"
>
{{
detailInfo
.
fRepDate
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"创建时间"
>
<span
v-if=
"detailInfo.createTime"
>
{{
detailInfo
.
createTime
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"更新时间"
>
<span
v-if=
"detailInfo.updateTime"
>
{{
detailInfo
.
updateTime
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"备注"
>
<span
v-if=
"detailInfo.remarks"
>
{{
detailInfo
.
remarks
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
</el-row>
</el-form>
</el-dialog>
</
template
>
<
script
>
import
{
getSup
}
from
"@/api/supplybalance/gas"
;
export
default
{
name
:
"detail-info"
,
data
(){
return
{
detailInfo
:
{
fDeleteFlag
:
0
},
detailOpen
:
false
}
},
methods
:{
getDetailInfo
(
id
){
getSup
(
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/supplybalance/gas/index.vue
View file @
2d4e630c
...
...
@@ -77,10 +77,10 @@
<el-table
v-loading=
"loading"
:data=
"supList"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
/>
<el-table-column
label=
"企业名称"
align=
"center"
prop=
"enterpriseName"
/>
<el-table-column
label=
"计划量"
align=
"center"
prop=
"fPlanQuan"
/>
<el-table-column
label=
"批复量"
align=
"center"
prop=
"fApprQuan"
/>
<el-table-column
label=
"供气量"
align=
"center"
prop=
"fSupGasVol"
/>
<el-table-column
label=
"存储量"
align=
"center"
prop=
"fStorageVol"
/>
<el-table-column
label=
"计划量
/wm³
"
align=
"center"
prop=
"fPlanQuan"
/>
<el-table-column
label=
"批复量
/wm³
"
align=
"center"
prop=
"fApprQuan"
/>
<el-table-column
label=
"供气量
/wm³
"
align=
"center"
prop=
"fSupGasVol"
/>
<el-table-column
label=
"存储量
/wm³
"
align=
"center"
prop=
"fStorageVol"
/>
<el-table-column
label=
"监管气量日期"
align=
"center"
prop=
"fSupDate"
/>
<el-table-column
label=
"上报状态"
align=
"center"
prop=
"fRepStatus"
>
<template
slot-scope=
"scope"
>
...
...
@@ -102,6 +102,12 @@
icon
=
"el-icon-edit"
@
click
=
"handleUpdate(scope.row)"
>
修改
<
/el-button>--
>
<
el
-
button
size
=
"mini"
type
=
"text"
icon
=
"el-icon-document"
@
click
=
"handleDetail(scope.row)"
>
详情
<
/el-button
>
<
el
-
button
size
=
"mini"
type
=
"text"
...
...
@@ -247,7 +253,8 @@
<
/div
>
<!--
详情
-->
<
DetailInfo
ref
=
"detail"
/>
<
/div
>
<
/template
>
...
...
@@ -255,10 +262,12 @@
import
{
listSup
,
getSup
,
delSup
,
addSup
,
updateSup
,
exportSup
,
getReportInfoByCompany
,
reportInfoList
}
from
"@/api/supplybalance/gas"
;
import
Calendar
from
"@/components/Calendar"
;
import
moment
from
"moment"
;
import
DetailInfo
from
"./components/DetailInfo"
;
export
default
{
name
:
"Sup"
,
components
:
{
Calendar
Calendar
,
DetailInfo
}
,
data
()
{
return
{
...
...
@@ -516,7 +525,11 @@ export default {
timeChange
(
val
){
this
.
queryParams
.
beginRepDate
=
val
[
0
];
this
.
queryParams
.
endRepDate
=
val
[
1
];
}
}
,
//详情
handleDetail
(
row
){
this
.
$refs
.
detail
.
getDetailInfo
(
row
.
fGasSupId
);
}
,
}
}
;
<
/script
>
...
...
zh-baseversion-web/src/views/supplybalance/stop/index.vue
0 → 100644
View file @
2d4e630c
This diff is collapsed.
Click to expand it.
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