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
a40e906b
Commit
a40e906b
authored
Sep 12, 2024
by
wanghao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1 液化石油气监管-充装记录导入-功能开发, 涉及到实体类解析报错问题处理,及大数据量查询 气瓶档案 数据优化
2 大屏端 场站 和 调压箱 部分点位展示 不准确问题修复。
parent
65ae33b4
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
322 additions
and
220 deletions
+322
-220
TLpgAirChargeFilesController.java
...ontroller/lpgRegulation/TLpgAirChargeFilesController.java
+3
-2
TimeTasksController.java
...a/com/zehong/web/controller/task/TimeTasksController.java
+13
-13
TLpgAirChargeFiles.java
...ain/java/com/zehong/system/domain/TLpgAirChargeFiles.java
+86
-86
TLpgAirChargeFilesMapper.java
...va/com/zehong/system/mapper/TLpgAirChargeFilesMapper.java
+12
-4
TLpgGasBottleFilesMapper.java
...va/com/zehong/system/mapper/TLpgGasBottleFilesMapper.java
+8
-0
TLpgAirChargeFilesServiceImpl.java
...ng/system/service/impl/TLpgAirChargeFilesServiceImpl.java
+56
-5
TLpgAirChargeFilesMapper.xml
...main/resources/mapper/system/TLpgAirChargeFilesMapper.xml
+77
-60
TLpgGasBottleFilesMapper.xml
...main/resources/mapper/system/TLpgGasBottleFilesMapper.xml
+7
-0
map.js
zh-baseversion-web/src/utils/mapClass/map.js
+10
-10
indexInfo.vue
...ews/lpgRegulation/airchargefiles/components/indexInfo.vue
+13
-13
index.vue
...sion-web/src/views/lpgRegulation/airchargefiles/index.vue
+37
-27
No files found.
zh-baseversion-admin/src/main/java/com/zehong/web/controller/lpgRegulation/TLpgAirChargeFilesController.java
View file @
a40e906b
package
com
.
zehong
.
web
.
controller
.
lpgRegulation
;
package
com
.
zehong
.
web
.
controller
.
lpgRegulation
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.GetMapping
;
...
@@ -123,8 +124,8 @@ public class TLpgAirChargeFilesController extends BaseController
...
@@ -123,8 +124,8 @@ public class TLpgAirChargeFilesController extends BaseController
ExcelUtil
<
TLpgAirChargeFiles
>
util
=
new
ExcelUtil
<>(
TLpgAirChargeFiles
.
class
);
ExcelUtil
<
TLpgAirChargeFiles
>
util
=
new
ExcelUtil
<>(
TLpgAirChargeFiles
.
class
);
List
<
TLpgAirChargeFiles
>
XmbhList
=
util
.
importExcel
(
file
.
getInputStream
());
List
<
TLpgAirChargeFiles
>
XmbhList
=
util
.
importExcel
(
file
.
getInputStream
());
tLpgAirChargeFilesService
.
importLpgAirChargeFileInfo
(
XmbhList
,
updateSupport
,
response
);
Map
<
String
,
Object
>
map
=
tLpgAirChargeFilesService
.
importLpgAirChargeFileInfo
(
XmbhList
,
updateSupport
,
response
);
return
AjaxResult
.
success
();
return
AjaxResult
.
success
(
map
);
}
}
}
}
zh-baseversion-admin/src/main/java/com/zehong/web/controller/task/TimeTasksController.java
View file @
a40e906b
...
@@ -232,19 +232,19 @@ public class TimeTasksController {
...
@@ -232,19 +232,19 @@ public class TimeTasksController {
for
(
int
i
=
startNum
;
i
<
data
.
size
();
i
++){
for
(
int
i
=
startNum
;
i
<
data
.
size
();
i
++){
JSONObject
jsonObject
=
data
.
getJSONObject
(
i
);
JSONObject
jsonObject
=
data
.
getJSONObject
(
i
);
TLpgAirChargeFiles
tLpgAirChargeFile
=
new
TLpgAirChargeFiles
();
TLpgAirChargeFiles
tLpgAirChargeFile
=
new
TLpgAirChargeFiles
();
tLpgAirChargeFile
.
set
f
GzId
(
jsonObject
.
getLong
(
"gzId"
));
tLpgAirChargeFile
.
setGzId
(
jsonObject
.
getLong
(
"gzId"
));
tLpgAirChargeFile
.
set
f
StationName
(
jsonObject
.
getString
(
"stationName"
));
tLpgAirChargeFile
.
setStationName
(
jsonObject
.
getString
(
"stationName"
));
tLpgAirChargeFile
.
set
f
BarCode
(
jsonObject
.
getString
(
"barCode"
));
tLpgAirChargeFile
.
setBarCode
(
jsonObject
.
getString
(
"barCode"
));
tLpgAirChargeFile
.
set
f
VaseCode
(
jsonObject
.
getString
(
"vaseCode"
));
tLpgAirChargeFile
.
setVaseCode
(
jsonObject
.
getString
(
"vaseCode"
));
tLpgAirChargeFile
.
set
f
ScaleNum
(
jsonObject
.
getString
(
"scaleNum"
));
tLpgAirChargeFile
.
setScaleNum
(
jsonObject
.
getString
(
"scaleNum"
));
tLpgAirChargeFile
.
set
f
FillStatrTime
(
jsonObject
.
getString
(
"fillStatrTime"
));
tLpgAirChargeFile
.
setFillStatrTime
(
jsonObject
.
getString
(
"fillStatrTime"
));
tLpgAirChargeFile
.
set
f
FillEndTime
(
jsonObject
.
getString
(
"fillEndTime"
));
tLpgAirChargeFile
.
setFillEndTime
(
jsonObject
.
getString
(
"fillEndTime"
));
tLpgAirChargeFile
.
set
f
SetWeight
(
jsonObject
.
getString
(
"setWeight"
));
tLpgAirChargeFile
.
setSetWeight
(
jsonObject
.
getString
(
"setWeight"
));
tLpgAirChargeFile
.
set
f
WtNet
(
jsonObject
.
getString
(
"wtNet"
));
tLpgAirChargeFile
.
setWtNet
(
jsonObject
.
getString
(
"wtNet"
));
tLpgAirChargeFile
.
set
f
SetBottleWeight
(
jsonObject
.
getString
(
"setBottleWeight"
));
tLpgAirChargeFile
.
setSetBottleWeight
(
jsonObject
.
getString
(
"setBottleWeight"
));
tLpgAirChargeFile
.
set
f
BottleWeight
(
jsonObject
.
getString
(
"bottleWeight"
));
tLpgAirChargeFile
.
setBottleWeight
(
jsonObject
.
getString
(
"bottleWeight"
));
tLpgAirChargeFile
.
set
f
WtGross
(
jsonObject
.
getString
(
"wtGross"
));
tLpgAirChargeFile
.
setWtGross
(
jsonObject
.
getString
(
"wtGross"
));
tLpgAirChargeFile
.
set
f
OprateName
(
jsonObject
.
getString
(
"oprateName"
));
tLpgAirChargeFile
.
setOprateName
(
jsonObject
.
getString
(
"oprateName"
));
tLpgAirChargeFilesService
.
insertTLpgAirChargeFiles
(
tLpgAirChargeFile
);
tLpgAirChargeFilesService
.
insertTLpgAirChargeFiles
(
tLpgAirChargeFile
);
}
}
if
(
data
.
size
()==
100
){
if
(
data
.
size
()==
100
){
...
...
zh-baseversion-system/src/main/java/com/zehong/system/domain/TLpgAirChargeFiles.java
View file @
a40e906b
...
@@ -16,189 +16,189 @@ public class TLpgAirChargeFiles extends BaseEntity
...
@@ -16,189 +16,189 @@ public class TLpgAirChargeFiles extends BaseEntity
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
/** id */
/** id */
private
Long
fG
asAirChargeId
;
private
Long
g
asAirChargeId
;
/** 充装记录编号 */
/** 充装记录编号 */
@Excel
(
name
=
"充装记录编号"
)
@Excel
(
name
=
"充装记录编号"
)
private
Long
fG
zId
;
private
Long
g
zId
;
/** 充装单位 */
/** 充装单位 */
@Excel
(
name
=
"充装单位"
)
@Excel
(
name
=
"充装单位"
)
private
String
fS
tationName
;
private
String
s
tationName
;
/** 气瓶条码 */
/** 气瓶条码 */
@Excel
(
name
=
"气瓶条码"
)
@Excel
(
name
=
"气瓶条码"
)
private
String
fB
arCode
;
private
String
b
arCode
;
/** 钢印号 */
/** 钢印号 */
@Excel
(
name
=
"钢印号"
)
@Excel
(
name
=
"钢印号"
)
private
String
fV
aseCode
;
private
String
v
aseCode
;
/** 秤号 */
/** 秤号 */
@Excel
(
name
=
"秤号"
)
@Excel
(
name
=
"秤号"
)
private
String
fS
caleNum
;
private
String
s
caleNum
;
/** 充装开始时间 */
/** 充装开始时间 */
@Excel
(
name
=
"充装开始时间"
)
@Excel
(
name
=
"充装开始时间"
)
private
String
f
F
illStatrTime
;
private
String
fillStatrTime
;
/** 充装结束时间 */
/** 充装结束时间 */
@Excel
(
name
=
"充装结束时间"
)
@Excel
(
name
=
"充装结束时间"
)
private
String
f
F
illEndTime
;
private
String
fillEndTime
;
/** 设定净重 */
/** 设定净重 */
@Excel
(
name
=
"设定净重"
)
@Excel
(
name
=
"设定净重"
)
private
String
fS
etWeight
;
private
String
s
etWeight
;
/** 实际净重 */
/** 实际净重 */
@Excel
(
name
=
"实际净重"
)
@Excel
(
name
=
"实际净重"
)
private
String
fW
tNet
;
private
String
w
tNet
;
/** 设定瓶重 */
/** 设定瓶重 */
@Excel
(
name
=
"设定瓶重"
)
@Excel
(
name
=
"设定瓶重"
)
private
String
fS
etBottleWeight
;
private
String
s
etBottleWeight
;
/** 实际瓶重 */
/** 实际瓶重 */
@Excel
(
name
=
"实际瓶重"
)
@Excel
(
name
=
"实际瓶重"
)
private
String
fB
ottleWeight
;
private
String
b
ottleWeight
;
/** 实际总重 */
/** 实际总重 */
@Excel
(
name
=
"实际总重"
)
@Excel
(
name
=
"实际总重"
)
private
String
fW
tGross
;
private
String
w
tGross
;
/** 充装工 */
/** 充装工 */
@Excel
(
name
=
"充装工"
)
@Excel
(
name
=
"充装工"
)
private
String
fO
prateName
;
private
String
o
prateName
;
public
Long
get
f
GasAirChargeId
()
{
public
Long
getGasAirChargeId
()
{
return
fG
asAirChargeId
;
return
g
asAirChargeId
;
}
}
public
void
set
fGasAirChargeId
(
Long
fG
asAirChargeId
)
{
public
void
set
GasAirChargeId
(
Long
g
asAirChargeId
)
{
this
.
fGasAirChargeId
=
fG
asAirChargeId
;
this
.
gasAirChargeId
=
g
asAirChargeId
;
}
}
public
Long
get
f
GzId
()
{
public
Long
getGzId
()
{
return
fG
zId
;
return
g
zId
;
}
}
public
void
set
fGzId
(
Long
fG
zId
)
{
public
void
set
GzId
(
Long
g
zId
)
{
this
.
fGzId
=
fG
zId
;
this
.
gzId
=
g
zId
;
}
}
public
String
get
f
StationName
()
{
public
String
getStationName
()
{
return
fS
tationName
;
return
s
tationName
;
}
}
public
void
set
fStationName
(
String
fS
tationName
)
{
public
void
set
StationName
(
String
s
tationName
)
{
this
.
fStationName
=
fS
tationName
;
this
.
stationName
=
s
tationName
;
}
}
public
String
get
f
BarCode
()
{
public
String
getBarCode
()
{
return
fB
arCode
;
return
b
arCode
;
}
}
public
void
set
fBarCode
(
String
fB
arCode
)
{
public
void
set
BarCode
(
String
b
arCode
)
{
this
.
fBarCode
=
fB
arCode
;
this
.
barCode
=
b
arCode
;
}
}
public
String
get
f
VaseCode
()
{
public
String
getVaseCode
()
{
return
fV
aseCode
;
return
v
aseCode
;
}
}
public
void
set
fVaseCode
(
String
fV
aseCode
)
{
public
void
set
VaseCode
(
String
v
aseCode
)
{
this
.
fVaseCode
=
fV
aseCode
;
this
.
vaseCode
=
v
aseCode
;
}
}
public
String
get
f
ScaleNum
()
{
public
String
getScaleNum
()
{
return
fS
caleNum
;
return
s
caleNum
;
}
}
public
void
set
fScaleNum
(
String
fS
caleNum
)
{
public
void
set
ScaleNum
(
String
s
caleNum
)
{
this
.
fScaleNum
=
fS
caleNum
;
this
.
scaleNum
=
s
caleNum
;
}
}
public
String
get
f
FillStatrTime
()
{
public
String
getFillStatrTime
()
{
return
f
F
illStatrTime
;
return
fillStatrTime
;
}
}
public
void
set
fFillStatrTime
(
String
fF
illStatrTime
)
{
public
void
set
FillStatrTime
(
String
f
illStatrTime
)
{
this
.
f
FillStatrTime
=
fF
illStatrTime
;
this
.
f
illStatrTime
=
f
illStatrTime
;
}
}
public
String
get
f
FillEndTime
()
{
public
String
getFillEndTime
()
{
return
f
F
illEndTime
;
return
fillEndTime
;
}
}
public
void
set
fFillEndTime
(
String
fF
illEndTime
)
{
public
void
set
FillEndTime
(
String
f
illEndTime
)
{
this
.
f
FillEndTime
=
fF
illEndTime
;
this
.
f
illEndTime
=
f
illEndTime
;
}
}
public
String
get
f
SetWeight
()
{
public
String
getSetWeight
()
{
return
fS
etWeight
;
return
s
etWeight
;
}
}
public
void
set
fSetWeight
(
String
fS
etWeight
)
{
public
void
set
SetWeight
(
String
s
etWeight
)
{
this
.
fSetWeight
=
fS
etWeight
;
this
.
setWeight
=
s
etWeight
;
}
}
public
String
get
f
WtNet
()
{
public
String
getWtNet
()
{
return
fW
tNet
;
return
w
tNet
;
}
}
public
void
set
fWtNet
(
String
fW
tNet
)
{
public
void
set
WtNet
(
String
w
tNet
)
{
this
.
fWtNet
=
fW
tNet
;
this
.
wtNet
=
w
tNet
;
}
}
public
String
get
f
SetBottleWeight
()
{
public
String
getSetBottleWeight
()
{
return
fS
etBottleWeight
;
return
s
etBottleWeight
;
}
}
public
void
set
fSetBottleWeight
(
String
fS
etBottleWeight
)
{
public
void
set
SetBottleWeight
(
String
s
etBottleWeight
)
{
this
.
fSetBottleWeight
=
fS
etBottleWeight
;
this
.
setBottleWeight
=
s
etBottleWeight
;
}
}
public
String
get
f
BottleWeight
()
{
public
String
getBottleWeight
()
{
return
fB
ottleWeight
;
return
b
ottleWeight
;
}
}
public
void
set
fBottleWeight
(
String
fB
ottleWeight
)
{
public
void
set
BottleWeight
(
String
b
ottleWeight
)
{
this
.
fBottleWeight
=
fB
ottleWeight
;
this
.
bottleWeight
=
b
ottleWeight
;
}
}
public
String
get
f
WtGross
()
{
public
String
getWtGross
()
{
return
fW
tGross
;
return
w
tGross
;
}
}
public
void
set
fWtGross
(
String
fW
tGross
)
{
public
void
set
WtGross
(
String
w
tGross
)
{
this
.
fWtGross
=
fW
tGross
;
this
.
wtGross
=
w
tGross
;
}
}
public
String
get
f
OprateName
()
{
public
String
getOprateName
()
{
return
fO
prateName
;
return
o
prateName
;
}
}
public
void
set
fOprateName
(
String
fO
prateName
)
{
public
void
set
OprateName
(
String
o
prateName
)
{
this
.
fOprateName
=
fO
prateName
;
this
.
oprateName
=
o
prateName
;
}
}
@Override
@Override
public
String
toString
()
{
public
String
toString
()
{
return
new
ToStringBuilder
(
this
,
ToStringStyle
.
MULTI_LINE_STYLE
)
return
"TLpgAirChargeFiles{"
+
.
append
(
"fGasAirChargeId"
,
getfGasAirChargeId
())
"gasAirChargeId="
+
gasAirChargeId
+
.
append
(
"fGzId"
,
getfGzId
())
", gzId="
+
gzId
+
.
append
(
"fStationName"
,
getfStationName
())
", stationName='"
+
stationName
+
'\''
+
.
append
(
"fBarCode"
,
getfBarCode
())
", barCode='"
+
barCode
+
'\''
+
.
append
(
"fVaseCode"
,
getfVaseCode
())
", vaseCode='"
+
vaseCode
+
'\''
+
.
append
(
"fScaleNum"
,
getfScaleNum
())
", scaleNum='"
+
scaleNum
+
'\''
+
.
append
(
"fFillStatrTime"
,
getfFillStatrTime
())
", fillStatrTime='"
+
fillStatrTime
+
'\''
+
.
append
(
"fFillEndTime"
,
getfFillEndTime
())
", fillEndTime='"
+
fillEndTime
+
'\''
+
.
append
(
"fSetWeight"
,
getfSetWeight
())
", setWeight='"
+
setWeight
+
'\''
+
.
append
(
"fWtNet"
,
getfWtNet
())
", wtNet='"
+
wtNet
+
'\''
+
.
append
(
"fSetBottleWeight"
,
getfSetBottleWeight
())
", setBottleWeight='"
+
setBottleWeight
+
'\''
+
.
append
(
"fBottleWeight"
,
getfBottleWeight
())
", bottleWeight='"
+
bottleWeight
+
'\''
+
.
append
(
"fWtGross"
,
getfWtGross
())
", wtGross='"
+
wtGross
+
'\''
+
.
append
(
"fOprateName"
,
getfOprateName
())
", oprateName='"
+
oprateName
+
'\''
+
.
toString
()
;
'}'
;
}
}
}
}
zh-baseversion-system/src/main/java/com/zehong/system/mapper/TLpgAirChargeFilesMapper.java
View file @
a40e906b
...
@@ -2,6 +2,7 @@ package com.zehong.system.mapper;
...
@@ -2,6 +2,7 @@ package com.zehong.system.mapper;
import
java.util.List
;
import
java.util.List
;
import
com.zehong.system.domain.TLpgAirChargeFiles
;
import
com.zehong.system.domain.TLpgAirChargeFiles
;
import
org.apache.ibatis.annotations.Param
;
/**
/**
* 液化石油气-充装记录Mapper接口
* 液化石油气-充装记录Mapper接口
...
@@ -14,10 +15,10 @@ public interface TLpgAirChargeFilesMapper
...
@@ -14,10 +15,10 @@ public interface TLpgAirChargeFilesMapper
/**
/**
* 查询液化石油气-充装记录
* 查询液化石油气-充装记录
*
*
* @param
fG
asAirChargeId 液化石油气-充装记录ID
* @param
g
asAirChargeId 液化石油气-充装记录ID
* @return 液化石油气-充装记录
* @return 液化石油气-充装记录
*/
*/
public
TLpgAirChargeFiles
selectTLpgAirChargeFilesById
(
Long
fG
asAirChargeId
);
public
TLpgAirChargeFiles
selectTLpgAirChargeFilesById
(
Long
g
asAirChargeId
);
public
Integer
selectTLpgAirChargeFilesTotal
();
public
Integer
selectTLpgAirChargeFilesTotal
();
...
@@ -44,6 +45,13 @@ public interface TLpgAirChargeFilesMapper
...
@@ -44,6 +45,13 @@ public interface TLpgAirChargeFilesMapper
*/
*/
public
int
insertTLpgAirChargeFiles
(
TLpgAirChargeFiles
tLpgAirChargeFiles
);
public
int
insertTLpgAirChargeFiles
(
TLpgAirChargeFiles
tLpgAirChargeFiles
);
/**
* 批量插入
* @param list l
* @return r
*/
public
int
insertBatch
(
@Param
(
"list"
)
List
<
TLpgAirChargeFiles
>
list
);
/**
/**
* 修改液化石油气-充装记录
* 修改液化石油气-充装记录
*
*
...
@@ -55,10 +63,10 @@ public interface TLpgAirChargeFilesMapper
...
@@ -55,10 +63,10 @@ public interface TLpgAirChargeFilesMapper
/**
/**
* 删除液化石油气-充装记录
* 删除液化石油气-充装记录
*
*
* @param
fG
asAirChargeId 液化石油气-充装记录ID
* @param
g
asAirChargeId 液化石油气-充装记录ID
* @return 结果
* @return 结果
*/
*/
public
int
deleteTLpgAirChargeFilesById
(
Long
fG
asAirChargeId
);
public
int
deleteTLpgAirChargeFilesById
(
Long
g
asAirChargeId
);
/**
/**
* 批量删除液化石油气-充装记录
* 批量删除液化石油气-充装记录
...
...
zh-baseversion-system/src/main/java/com/zehong/system/mapper/TLpgGasBottleFilesMapper.java
View file @
a40e906b
...
@@ -2,6 +2,7 @@ package com.zehong.system.mapper;
...
@@ -2,6 +2,7 @@ package com.zehong.system.mapper;
import
java.util.List
;
import
java.util.List
;
import
com.zehong.system.domain.TLpgGasBottleFiles
;
import
com.zehong.system.domain.TLpgGasBottleFiles
;
import
org.apache.ibatis.annotations.Param
;
/**
/**
* 液化石油气-气瓶档案Mapper接口
* 液化石油气-气瓶档案Mapper接口
...
@@ -27,6 +28,13 @@ public interface TLpgGasBottleFilesMapper
...
@@ -27,6 +28,13 @@ public interface TLpgGasBottleFilesMapper
*/
*/
public
List
<
TLpgGasBottleFiles
>
selectTLpgGasBottleFilesList
(
TLpgGasBottleFiles
tLpgGasBottleFiles
);
public
List
<
TLpgGasBottleFiles
>
selectTLpgGasBottleFilesList
(
TLpgGasBottleFiles
tLpgGasBottleFiles
);
/**
* 根据 气瓶条码 集合查询数据
* @param codeList codelist
* @return r
*/
public
List
<
TLpgGasBottleFiles
>
queryAllByFQRcodeList
(
@Param
(
"codeList"
)
List
<
String
>
codeList
);
/**
/**
* 新增液化石油气-气瓶档案
* 新增液化石油气-气瓶档案
*
*
...
...
zh-baseversion-system/src/main/java/com/zehong/system/service/impl/TLpgAirChargeFilesServiceImpl.java
View file @
a40e906b
package
com
.
zehong
.
system
.
service
.
impl
;
package
com
.
zehong
.
system
.
service
.
impl
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
import
java.util.stream.Collectors
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
com.zehong.common.utils.StringUtils
;
import
com.zehong.system.domain.TLpgGasBottleFiles
;
import
com.zehong.system.mapper.TLpgGasBottleFilesMapper
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
com.zehong.system.mapper.TLpgAirChargeFilesMapper
;
import
com.zehong.system.mapper.TLpgAirChargeFilesMapper
;
import
com.zehong.system.domain.TLpgAirChargeFiles
;
import
com.zehong.system.domain.TLpgAirChargeFiles
;
import
com.zehong.system.service.ITLpgAirChargeFilesService
;
import
com.zehong.system.service.ITLpgAirChargeFilesService
;
import
javax.annotation.Resource
;
import
javax.servlet.http.HttpServletResponse
;
import
javax.servlet.http.HttpServletResponse
;
/**
/**
...
@@ -21,9 +26,12 @@ import javax.servlet.http.HttpServletResponse;
...
@@ -21,9 +26,12 @@ import javax.servlet.http.HttpServletResponse;
@Service
@Service
public
class
TLpgAirChargeFilesServiceImpl
implements
ITLpgAirChargeFilesService
public
class
TLpgAirChargeFilesServiceImpl
implements
ITLpgAirChargeFilesService
{
{
@
Autowired
@
Resource
private
TLpgAirChargeFilesMapper
tLpgAirChargeFilesMapper
;
private
TLpgAirChargeFilesMapper
tLpgAirChargeFilesMapper
;
@Resource
private
TLpgGasBottleFilesMapper
tLpgGasBottleFilesMapper
;
/**
/**
* 查询液化石油气-充装记录
* 查询液化石油气-充装记录
*
*
...
@@ -124,10 +132,53 @@ public class TLpgAirChargeFilesServiceImpl implements ITLpgAirChargeFilesService
...
@@ -124,10 +132,53 @@ public class TLpgAirChargeFilesServiceImpl implements ITLpgAirChargeFilesService
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
for
(
TLpgAirChargeFiles
tLpgAirChargeFiles
:
xmbhList
)
{
int
errorNum
=
0
;
System
.
out
.
println
(
tLpgAirChargeFiles
.
getfBarCode
());
int
successNum
=
0
;
}
List
<
TLpgAirChargeFiles
>
successList
=
new
ArrayList
<>();
if
(
xmbhList
!=
null
&&
xmbhList
.
size
()
>
0
)
{
if
(
xmbhList
.
size
()
>
500
)
{
map
.
put
(
"errorMsg"
,
"导入数据不允许超过500条"
);
return
map
;
}
List
<
TLpgAirChargeFiles
>
noBarCodeList
=
xmbhList
.
stream
().
filter
(
item
->
StringUtils
.
isBlank
(
item
.
getBarCode
())).
collect
(
Collectors
.
toList
());
List
<
TLpgAirChargeFiles
>
havaBarCodeList
=
xmbhList
.
stream
().
filter
(
item
->
StringUtils
.
isNotBlank
(
item
.
getBarCode
())).
collect
(
Collectors
.
toList
());
// 气瓶条码集合
List
<
String
>
collect
=
havaBarCodeList
.
stream
().
map
(
item
->
item
.
getBarCode
()).
collect
(
Collectors
.
toList
());
// 这是 上面气瓶条码 有的气瓶数据
List
<
TLpgGasBottleFiles
>
tLpgGasBottleFiles2
=
tLpgGasBottleFilesMapper
.
queryAllByFQRcodeList
(
collect
);
// 按照 气瓶条码 分组
Map
<
String
,
List
<
TLpgGasBottleFiles
>>
collect1
=
tLpgGasBottleFiles2
.
stream
().
collect
(
Collectors
.
groupingBy
(
TLpgGasBottleFiles:
:
getfQRcode
));
errorNum
+=
noBarCodeList
.
size
();
for
(
TLpgAirChargeFiles
tLpgAirChargeFiles
:
havaBarCodeList
)
{
List
<
TLpgGasBottleFiles
>
tLpgGasBottleFiles
=
collect1
.
get
(
tLpgAirChargeFiles
.
getBarCode
());
if
(
tLpgGasBottleFiles
==
null
||
tLpgGasBottleFiles
.
size
()
==
0
)
{
errorNum
++;
continue
;
}
successList
.
add
(
tLpgAirChargeFiles
);
successNum
++;
}
if
(
successList
.
size
()
>
0
)
{
tLpgAirChargeFilesMapper
.
insertBatch
(
successList
);
}
map
.
put
(
"errorNum"
,
errorNum
);
map
.
put
(
"successNum"
,
successNum
);
}
else
{
map
.
put
(
"errorNum"
,
errorNum
);
map
.
put
(
"successNum"
,
successNum
);
}
return
map
;
return
map
;
}
}
...
...
zh-baseversion-system/src/main/resources/mapper/system/TLpgAirChargeFilesMapper.xml
View file @
a40e906b
...
@@ -5,20 +5,20 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -5,20 +5,20 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<mapper
namespace=
"com.zehong.system.mapper.TLpgAirChargeFilesMapper"
>
<mapper
namespace=
"com.zehong.system.mapper.TLpgAirChargeFilesMapper"
>
<resultMap
type=
"TLpgAirChargeFiles"
id=
"TLpgAirChargeFilesResult"
>
<resultMap
type=
"TLpgAirChargeFiles"
id=
"TLpgAirChargeFilesResult"
>
<result
property=
"
fG
asAirChargeId"
column=
"f_gas_air_charge_id"
/>
<result
property=
"
g
asAirChargeId"
column=
"f_gas_air_charge_id"
/>
<result
property=
"
fG
zId"
column=
"f_gz_id"
/>
<result
property=
"
g
zId"
column=
"f_gz_id"
/>
<result
property=
"
fS
tationName"
column=
"f_station_name"
/>
<result
property=
"
s
tationName"
column=
"f_station_name"
/>
<result
property=
"
fB
arCode"
column=
"f_bar_code"
/>
<result
property=
"
b
arCode"
column=
"f_bar_code"
/>
<result
property=
"
fV
aseCode"
column=
"f_vase_code"
/>
<result
property=
"
v
aseCode"
column=
"f_vase_code"
/>
<result
property=
"
fS
caleNum"
column=
"f_scale_num"
/>
<result
property=
"
s
caleNum"
column=
"f_scale_num"
/>
<result
property=
"f
F
illStatrTime"
column=
"f_fill_statr_time"
/>
<result
property=
"fillStatrTime"
column=
"f_fill_statr_time"
/>
<result
property=
"f
F
illEndTime"
column=
"f_fill_end_time"
/>
<result
property=
"fillEndTime"
column=
"f_fill_end_time"
/>
<result
property=
"
fS
etWeight"
column=
"f_set_weight"
/>
<result
property=
"
s
etWeight"
column=
"f_set_weight"
/>
<result
property=
"
fW
tNet"
column=
"f_wt_net"
/>
<result
property=
"
w
tNet"
column=
"f_wt_net"
/>
<result
property=
"
fS
etBottleWeight"
column=
"f_set_bottle_weight"
/>
<result
property=
"
s
etBottleWeight"
column=
"f_set_bottle_weight"
/>
<result
property=
"
fB
ottleWeight"
column=
"f_bottle_weight"
/>
<result
property=
"
b
ottleWeight"
column=
"f_bottle_weight"
/>
<result
property=
"
fW
tGross"
column=
"f_wt_gross"
/>
<result
property=
"
w
tGross"
column=
"f_wt_gross"
/>
<result
property=
"
fO
prateName"
column=
"f_oprate_name"
/>
<result
property=
"
o
prateName"
column=
"f_oprate_name"
/>
</resultMap>
</resultMap>
<sql
id=
"selectTLpgAirChargeFilesVo"
>
<sql
id=
"selectTLpgAirChargeFilesVo"
>
...
@@ -28,83 +28,100 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -28,83 +28,100 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select
id=
"selectTLpgAirChargeFilesList"
parameterType=
"TLpgAirChargeFiles"
resultMap=
"TLpgAirChargeFilesResult"
>
<select
id=
"selectTLpgAirChargeFilesList"
parameterType=
"TLpgAirChargeFiles"
resultMap=
"TLpgAirChargeFilesResult"
>
<include
refid=
"selectTLpgAirChargeFilesVo"
/>
<include
refid=
"selectTLpgAirChargeFilesVo"
/>
<where>
<where>
<if
test=
"
fVaseCode != null and fVaseCode != ''"
>
and f_vase_code like concat('%', #{fV
aseCode}, '%')
</if>
<if
test=
"
vaseCode != null and vaseCode != ''"
>
and f_vase_code like concat('%', #{v
aseCode}, '%')
</if>
<if
test=
"
fBarCode != null and fBarCode != ''"
>
and f_bar_code like concat('%', #{fB
arCode}, '%')
</if>
<if
test=
"
barCode != null and barCode != ''"
>
and f_bar_code like concat('%', #{b
arCode}, '%')
</if>
</where>
</where>
</select>
</select>
<select
id=
"queryAllForExport"
resultMap=
"TLpgAirChargeFilesResult"
>
<select
id=
"queryAllForExport"
resultMap=
"TLpgAirChargeFilesResult"
>
<include
refid=
"selectTLpgAirChargeFilesVo"
/>
<include
refid=
"selectTLpgAirChargeFilesVo"
/>
<where>
<where>
<if
test=
"
fVaseCode != null and fVaseCode != ''"
>
and f_vase_code like concat('%', #{fV
aseCode}, '%')
</if>
<if
test=
"
vaseCode != null and vaseCode != ''"
>
and f_vase_code like concat('%', #{v
aseCode}, '%')
</if>
<if
test=
"
fBarCode != null and fBarCode != ''"
>
and f_bar_code like concat('%', #{fB
arCode}, '%')
</if>
<if
test=
"
barCode != null and barCode != ''"
>
and f_bar_code like concat('%', #{b
arCode}, '%')
</if>
</where>
</where>
limit 1000
limit 1000
</select>
</select>
<select
id=
"selectTLpgAirChargeFilesById"
parameterType=
"Long"
resultMap=
"TLpgAirChargeFilesResult"
>
<select
id=
"selectTLpgAirChargeFilesById"
parameterType=
"Long"
resultMap=
"TLpgAirChargeFilesResult"
>
<include
refid=
"selectTLpgAirChargeFilesVo"
/>
<include
refid=
"selectTLpgAirChargeFilesVo"
/>
where f_gas_air_charge_id = #{
fG
asAirChargeId}
where f_gas_air_charge_id = #{
g
asAirChargeId}
</select>
</select>
<select
id=
"selectTLpgAirChargeFilesTotal"
resultType=
"int"
>
<select
id=
"selectTLpgAirChargeFilesTotal"
resultType=
"int"
>
SELECT COUNT(*) FROM t_lpg_air_charge_files
SELECT COUNT(*) FROM t_lpg_air_charge_files
</select>
</select>
<insert
id=
"insertBatch"
parameterType=
"list"
>
insert into t_lpg_air_charge_files (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)
values
<foreach
collection=
"list"
item=
"item"
index=
"index"
separator=
","
>
(
#{item.gzId}, #{item.stationName,jdbcType=VARCHAR}, #{item.barCode,jdbcType=VARCHAR},
#{item.vaseCode,jdbcType=VARCHAR}, #{item.scaleNum,jdbcType=VARCHAR}, #{item.fillStatrTime},
#{item.fillEndTime},
#{item.setWeight,jdbcType=VARCHAR}, #{item.wtNet,jdbcType=VARCHAR}, #{item.setBottleWeight,jdbcType=VARCHAR},
#{item.bottleWeight,jdbcType=VARCHAR}, #{item.wtGross,jdbcType=VARCHAR}, #{item.oprateName,jdbcType=VARCHAR}
)
</foreach>
</insert>
<insert
id=
"insertTLpgAirChargeFiles"
parameterType=
"TLpgAirChargeFiles"
useGeneratedKeys=
"true"
keyProperty=
"fGasAirChargeId"
>
<insert
id=
"insertTLpgAirChargeFiles"
parameterType=
"TLpgAirChargeFiles"
useGeneratedKeys=
"true"
keyProperty=
"fGasAirChargeId"
>
insert into t_lpg_air_charge_files
insert into t_lpg_air_charge_files
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"
fG
zId != null"
>
f_gz_id,
</if>
<if
test=
"
g
zId != null"
>
f_gz_id,
</if>
<if
test=
"
fS
tationName != null"
>
f_station_name,
</if>
<if
test=
"
s
tationName != null"
>
f_station_name,
</if>
<if
test=
"
fB
arCode != null"
>
f_bar_code,
</if>
<if
test=
"
b
arCode != null"
>
f_bar_code,
</if>
<if
test=
"
fV
aseCode != null"
>
f_vase_code,
</if>
<if
test=
"
v
aseCode != null"
>
f_vase_code,
</if>
<if
test=
"
fS
caleNum != null"
>
f_scale_num,
</if>
<if
test=
"
s
caleNum != null"
>
f_scale_num,
</if>
<if
test=
"f
F
illStatrTime != null"
>
f_fill_statr_time,
</if>
<if
test=
"fillStatrTime != null"
>
f_fill_statr_time,
</if>
<if
test=
"f
F
illEndTime != null"
>
f_fill_end_time,
</if>
<if
test=
"fillEndTime != null"
>
f_fill_end_time,
</if>
<if
test=
"
fS
etWeight != null"
>
f_set_weight,
</if>
<if
test=
"
s
etWeight != null"
>
f_set_weight,
</if>
<if
test=
"
fW
tNet != null"
>
f_wt_net,
</if>
<if
test=
"
w
tNet != null"
>
f_wt_net,
</if>
<if
test=
"
fS
etBottleWeight != null"
>
f_set_bottle_weight,
</if>
<if
test=
"
s
etBottleWeight != null"
>
f_set_bottle_weight,
</if>
<if
test=
"
fB
ottleWeight != null"
>
f_bottle_weight,
</if>
<if
test=
"
b
ottleWeight != null"
>
f_bottle_weight,
</if>
<if
test=
"
fW
tGross != null"
>
f_wt_gross,
</if>
<if
test=
"
w
tGross != null"
>
f_wt_gross,
</if>
<if
test=
"
fO
prateName != null"
>
f_oprate_name,
</if>
<if
test=
"
o
prateName != null"
>
f_oprate_name,
</if>
</trim>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"
fGzId != null"
>
#{fG
zId},
</if>
<if
test=
"
gzId != null"
>
#{g
zId},
</if>
<if
test=
"
fStationName != null"
>
#{fS
tationName},
</if>
<if
test=
"
stationName != null"
>
#{s
tationName},
</if>
<if
test=
"
fBarCode != null"
>
#{fB
arCode},
</if>
<if
test=
"
barCode != null"
>
#{b
arCode},
</if>
<if
test=
"
fVaseCode != null"
>
#{fV
aseCode},
</if>
<if
test=
"
vaseCode != null"
>
#{v
aseCode},
</if>
<if
test=
"
fScaleNum != null"
>
#{fS
caleNum},
</if>
<if
test=
"
scaleNum != null"
>
#{s
caleNum},
</if>
<if
test=
"f
FillStatrTime != null"
>
#{fF
illStatrTime},
</if>
<if
test=
"f
illStatrTime != null"
>
#{f
illStatrTime},
</if>
<if
test=
"f
FillEndTime != null"
>
#{fF
illEndTime},
</if>
<if
test=
"f
illEndTime != null"
>
#{f
illEndTime},
</if>
<if
test=
"
fSetWeight != null"
>
#{fS
etWeight},
</if>
<if
test=
"
setWeight != null"
>
#{s
etWeight},
</if>
<if
test=
"
fWtNet != null"
>
#{fW
tNet},
</if>
<if
test=
"
wtNet != null"
>
#{w
tNet},
</if>
<if
test=
"
fSetBottleWeight != null"
>
#{fS
etBottleWeight},
</if>
<if
test=
"
setBottleWeight != null"
>
#{s
etBottleWeight},
</if>
<if
test=
"
fBottleWeight != null"
>
#{fB
ottleWeight},
</if>
<if
test=
"
sottleWeight != null"
>
#{s
ottleWeight},
</if>
<if
test=
"
fWtGross != null"
>
#{fW
tGross},
</if>
<if
test=
"
wtGross != null"
>
#{w
tGross},
</if>
<if
test=
"
fOprateName != null"
>
#{fO
prateName},
</if>
<if
test=
"
oprateName != null"
>
#{o
prateName},
</if>
</trim>
</trim>
</insert>
</insert>
<update
id=
"updateTLpgAirChargeFiles"
parameterType=
"TLpgAirChargeFiles"
>
<update
id=
"updateTLpgAirChargeFiles"
parameterType=
"TLpgAirChargeFiles"
>
update t_lpg_air_charge_files
update t_lpg_air_charge_files
<trim
prefix=
"SET"
suffixOverrides=
","
>
<trim
prefix=
"SET"
suffixOverrides=
","
>
<if
test=
"
fGzId != null"
>
f_gz_id = #{fG
zId},
</if>
<if
test=
"
gzId != null"
>
f_gz_id = #{g
zId},
</if>
<if
test=
"
fStationName != null"
>
f_station_name = #{fS
tationName},
</if>
<if
test=
"
stationName != null"
>
f_station_name = #{s
tationName},
</if>
<if
test=
"
fBarCode != null"
>
f_bar_code = #{fB
arCode},
</if>
<if
test=
"
barCode != null"
>
f_bar_code = #{b
arCode},
</if>
<if
test=
"
fVaseCode != null"
>
f_vase_code = #{fV
aseCode},
</if>
<if
test=
"
vaseCode != null"
>
f_vase_code = #{v
aseCode},
</if>
<if
test=
"
fScaleNum != null"
>
f_scale_num = #{fS
caleNum},
</if>
<if
test=
"
scaleNum != null"
>
f_scale_num = #{s
caleNum},
</if>
<if
test=
"f
FillStatrTime != null"
>
f_fill_statr_time = #{fF
illStatrTime},
</if>
<if
test=
"f
illStatrTime != null"
>
f_fill_statr_time = #{f
illStatrTime},
</if>
<if
test=
"f
FillEndTime != null"
>
f_fill_end_time = #{fF
illEndTime},
</if>
<if
test=
"f
illEndTime != null"
>
f_fill_end_time = #{f
illEndTime},
</if>
<if
test=
"
fSetWeight != null"
>
f_set_weight = #{fS
etWeight},
</if>
<if
test=
"
setWeight != null"
>
f_set_weight = #{s
etWeight},
</if>
<if
test=
"
fWtNet != null"
>
f_wt_net = #{fW
tNet},
</if>
<if
test=
"
wtNet != null"
>
f_wt_net = #{w
tNet},
</if>
<if
test=
"
fSetBottleWeight != null"
>
f_set_bottle_weight = #{fS
etBottleWeight},
</if>
<if
test=
"
setBottleWeight != null"
>
f_set_bottle_weight = #{s
etBottleWeight},
</if>
<if
test=
"
fBottleWeight != null"
>
f_bottle_weight = #{fB
ottleWeight},
</if>
<if
test=
"
sottleWeight != null"
>
f_bottle_weight = #{s
ottleWeight},
</if>
<if
test=
"
fWtGross != null"
>
f_wt_gross = #{fW
tGross},
</if>
<if
test=
"
wtGross != null"
>
f_wt_gross = #{w
tGross},
</if>
<if
test=
"
fOprateName != null"
>
f_oprate_name = #{fO
prateName},
</if>
<if
test=
"
oprateName != null"
>
f_oprate_name = #{o
prateName},
</if>
</trim>
</trim>
where f_gas_air_charge_id = #{fGasAirChargeId}
where f_gas_air_charge_id = #{fGasAirChargeId}
</update>
</update>
<delete
id=
"deleteTLpgAirChargeFilesById"
parameterType=
"Long"
>
<delete
id=
"deleteTLpgAirChargeFilesById"
parameterType=
"Long"
>
delete from t_lpg_air_charge_files where f_gas_air_charge_id = #{
fG
asAirChargeId}
delete from t_lpg_air_charge_files where f_gas_air_charge_id = #{
g
asAirChargeId}
</delete>
</delete>
<delete
id=
"deleteTLpgAirChargeFilesByIds"
parameterType=
"String"
>
<delete
id=
"deleteTLpgAirChargeFilesByIds"
parameterType=
"String"
>
...
...
zh-baseversion-system/src/main/resources/mapper/system/TLpgGasBottleFilesMapper.xml
View file @
a40e906b
...
@@ -78,6 +78,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -78,6 +78,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"fState != null "
>
and f_state = #{fState}
</if>
<if
test=
"fState != null "
>
and f_state = #{fState}
</if>
</where>
</where>
</select>
</select>
<select
id=
"queryAllByFQRcodeList"
resultMap=
"TLpgGasBottleFilesResult"
>
<include
refid=
"selectTLpgGasBottleFilesVo"
/>
where f_q_rcode in
<foreach
collection=
"codeList"
close=
")"
index=
"i"
item=
"item"
open=
"("
separator=
","
>
#{item}
</foreach>
</select>
<select
id=
"selectTLpgGasBottleFilesById"
parameterType=
"Long"
resultMap=
"TLpgGasBottleFilesResult"
>
<select
id=
"selectTLpgGasBottleFilesById"
parameterType=
"Long"
resultMap=
"TLpgGasBottleFilesResult"
>
<include
refid=
"selectTLpgGasBottleFilesVo"
/>
<include
refid=
"selectTLpgGasBottleFilesVo"
/>
...
...
zh-baseversion-web/src/utils/mapClass/map.js
View file @
a40e906b
...
@@ -798,15 +798,15 @@ export class EditorMap {
...
@@ -798,15 +798,15 @@ export class EditorMap {
mapData
.
forEach
((
item
)
=>
{
mapData
.
forEach
((
item
)
=>
{
let
longitude
=
item
.
longitude
;
let
longitude
=
item
.
longitude
;
let
latitude
=
item
.
latitude
;
let
latitude
=
item
.
latitude
;
var
userId
=
item
.
user
Id
;
var
siteStationId
=
item
.
siteStation
Id
;
icon
.
userId
=
user
Id
;
icon
.
siteStationId
=
siteStation
Id
;
var
curData
=
{
var
curData
=
{
position
:
[
longitude
,
latitude
],
position
:
[
longitude
,
latitude
],
icon
:
icon
,
icon
:
icon
,
rank
:
1
,
//避让优先级
rank
:
1
,
//避让优先级
};
};
hashMap
.
set
(
JSON
.
stringify
(
user
Id
),
item
);
hashMap
.
set
(
JSON
.
stringify
(
siteStation
Id
),
item
);
//创建 LabelMarker
//创建 LabelMarker
const
labelMarker
=
new
AMap
.
LabelMarker
(
curData
);
const
labelMarker
=
new
AMap
.
LabelMarker
(
curData
);
// var marker = new AMap.Marker(curData);
// var marker = new AMap.Marker(curData);
...
@@ -815,8 +815,8 @@ export class EditorMap {
...
@@ -815,8 +815,8 @@ export class EditorMap {
labelMarker
.
on
(
"click"
,
(
e
)
=>
{
labelMarker
.
on
(
"click"
,
(
e
)
=>
{
var
opts
=
JSON
.
stringify
(
e
.
data
.
opts
);
var
opts
=
JSON
.
stringify
(
e
.
data
.
opts
);
var
optsObj
=
JSON
.
parse
(
opts
);
var
optsObj
=
JSON
.
parse
(
opts
);
var
userId
=
JSON
.
stringify
(
optsObj
.
icon
.
user
Id
);
var
siteStationId
=
JSON
.
stringify
(
optsObj
.
icon
.
siteStation
Id
);
var
extData
=
hashMap
.
get
(
user
Id
);
var
extData
=
hashMap
.
get
(
siteStation
Id
);
// 如果control==0就是默认值,没有使用123功能,就显示infowindow
// 如果control==0就是默认值,没有使用123功能,就显示infowindow
this
.
massMarksMarkerClick
(
extData
,
compontent
);
this
.
massMarksMarkerClick
(
extData
,
compontent
);
});
});
...
@@ -937,15 +937,15 @@ export class EditorMap {
...
@@ -937,15 +937,15 @@ export class EditorMap {
mapData
.
forEach
((
item
)
=>
{
mapData
.
forEach
((
item
)
=>
{
let
longitude
=
item
.
longitude
;
let
longitude
=
item
.
longitude
;
let
latitude
=
item
.
latitude
;
let
latitude
=
item
.
latitude
;
var
userId
=
item
.
user
Id
;
var
deviceId
=
item
.
device
Id
;
icon
.
userId
=
user
Id
;
icon
.
deviceId
=
device
Id
;
var
curData
=
{
var
curData
=
{
position
:
[
longitude
,
latitude
],
position
:
[
longitude
,
latitude
],
icon
:
icon
,
icon
:
icon
,
rank
:
1
,
//避让优先级
rank
:
1
,
//避让优先级
};
};
hashMap
.
set
(
JSON
.
stringify
(
user
Id
),
item
);
hashMap
.
set
(
JSON
.
stringify
(
device
Id
),
item
);
//创建 LabelMarker
//创建 LabelMarker
const
labelMarker
=
new
AMap
.
LabelMarker
(
curData
);
const
labelMarker
=
new
AMap
.
LabelMarker
(
curData
);
// var marker = new AMap.Marker(curData);
// var marker = new AMap.Marker(curData);
...
@@ -954,8 +954,8 @@ export class EditorMap {
...
@@ -954,8 +954,8 @@ export class EditorMap {
labelMarker
.
on
(
"click"
,
(
e
)
=>
{
labelMarker
.
on
(
"click"
,
(
e
)
=>
{
var
opts
=
JSON
.
stringify
(
e
.
data
.
opts
);
var
opts
=
JSON
.
stringify
(
e
.
data
.
opts
);
var
optsObj
=
JSON
.
parse
(
opts
);
var
optsObj
=
JSON
.
parse
(
opts
);
var
userId
=
JSON
.
stringify
(
optsObj
.
icon
.
user
Id
);
var
deviceId
=
JSON
.
stringify
(
optsObj
.
icon
.
device
Id
);
var
extData
=
hashMap
.
get
(
user
Id
);
var
extData
=
hashMap
.
get
(
device
Id
);
// 如果control==0就是默认值,没有使用123功能,就显示infowindow
// 如果control==0就是默认值,没有使用123功能,就显示infowindow
this
.
massMarksMarkerClick
(
extData
,
compontent
);
this
.
massMarksMarkerClick
(
extData
,
compontent
);
});
});
...
...
zh-baseversion-web/src/views/lpgRegulation/airchargefiles/components/indexInfo.vue
View file @
a40e906b
...
@@ -6,86 +6,86 @@
...
@@ -6,86 +6,86 @@
<el-row
class=
"el-row-table"
>
<el-row
class=
"el-row-table"
>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"充装记录编号"
>
<el-form-item
label=
"充装记录编号"
>
<span
v-if=
"detailInfo.
fGzId"
>
{{
detailInfo
.
fG
zId
}}
</span>
<span
v-if=
"detailInfo.
gzId"
>
{{
detailInfo
.
g
zId
}}
</span>
<span
v-else
>
-
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"充装单位"
>
<el-form-item
label=
"充装单位"
>
<span
v-if=
"detailInfo.
fStationName"
>
{{
detailInfo
.
fS
tationName
}}
</span>
<span
v-if=
"detailInfo.
stationName"
>
{{
detailInfo
.
s
tationName
}}
</span>
<span
v-else
>
-
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"气瓶条码"
>
<el-form-item
label=
"气瓶条码"
>
<span
v-if=
"detailInfo.
fBarCode"
>
{{
detailInfo
.
fB
arCode
}}
</span>
<span
v-if=
"detailInfo.
barCode"
>
{{
detailInfo
.
b
arCode
}}
</span>
<span
v-else
>
-
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"钢印号"
>
<el-form-item
label=
"钢印号"
>
<span
v-if=
"detailInfo.
fVaseCode"
>
{{
detailInfo
.
fV
aseCode
}}
</span>
<span
v-if=
"detailInfo.
vaseCode"
>
{{
detailInfo
.
v
aseCode
}}
</span>
<span
v-else
>
-
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"秤号"
>
<el-form-item
label=
"秤号"
>
<span
v-if=
"detailInfo.
fScaleNum"
>
{{
detailInfo
.
fS
caleNum
}}
</span>
<span
v-if=
"detailInfo.
scaleNum"
>
{{
detailInfo
.
s
caleNum
}}
</span>
<span
v-else
>
-
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"充装开始时间"
>
<el-form-item
label=
"充装开始时间"
>
<span
v-if=
"detailInfo.f
FillStatrTime"
>
{{
detailInfo
.
fF
illStatrTime
}}
</span>
<span
v-if=
"detailInfo.f
illStatrTime"
>
{{
detailInfo
.
f
illStatrTime
}}
</span>
<span
v-else
>
-
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"充装结束时间"
>
<el-form-item
label=
"充装结束时间"
>
<span
v-if=
"detailInfo.f
FillEndTime"
>
{{
detailInfo
.
fF
illEndTime
}}
</span>
<span
v-if=
"detailInfo.f
illEndTime"
>
{{
detailInfo
.
f
illEndTime
}}
</span>
<span
v-else
>
-
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"设定净重"
>
<el-form-item
label=
"设定净重"
>
<span
v-if=
"detailInfo.
fSetWeight"
>
{{
detailInfo
.
fS
etWeight
}}
</span>
<span
v-if=
"detailInfo.
setWeight"
>
{{
detailInfo
.
s
etWeight
}}
</span>
<span
v-else
>
-
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"实际净重"
>
<el-form-item
label=
"实际净重"
>
<span
v-if=
"detailInfo.
fWtNet"
>
{{
detailInfo
.
fW
tNet
}}
</span>
<span
v-if=
"detailInfo.
wtNet"
>
{{
detailInfo
.
w
tNet
}}
</span>
<span
v-else
>
-
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"设定瓶重"
>
<el-form-item
label=
"设定瓶重"
>
<span
v-if=
"detailInfo.
fSetBottleWeight"
>
{{
detailInfo
.
fS
etBottleWeight
}}
</span>
<span
v-if=
"detailInfo.
setBottleWeight"
>
{{
detailInfo
.
s
etBottleWeight
}}
</span>
<span
v-else
>
-
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"实际瓶重"
>
<el-form-item
label=
"实际瓶重"
>
<span
v-if=
"detailInfo.
fBottleWeight"
>
{{
detailInfo
.
fB
ottleWeight
}}
</span>
<span
v-if=
"detailInfo.
bottleWeight"
>
{{
detailInfo
.
b
ottleWeight
}}
</span>
<span
v-else
>
-
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"实际总重"
>
<el-form-item
label=
"实际总重"
>
<span
v-if=
"detailInfo.
fWtGross"
>
{{
detailInfo
.
fW
tGross
}}
</span>
<span
v-if=
"detailInfo.
wtGross"
>
{{
detailInfo
.
w
tGross
}}
</span>
<span
v-else
>
-
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"充装工"
>
<el-form-item
label=
"充装工"
>
<span
v-if=
"detailInfo.
fOprateName"
>
{{
detailInfo
.
fO
prateName
}}
</span>
<span
v-if=
"detailInfo.
oprateName"
>
{{
detailInfo
.
o
prateName
}}
</span>
<span
v-else
>
-
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
...
...
zh-baseversion-web/src/views/lpgRegulation/airchargefiles/index.vue
View file @
a40e906b
<
template
>
<
template
>
<div
class=
"app-container"
>
<div
class=
"app-container"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
:inline=
"true"
v-show=
"showSearch"
label-width=
"68px"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
:inline=
"true"
v-show=
"showSearch"
label-width=
"68px"
>
<el-form-item
label=
"钢印号"
prop=
"
fV
aseCode"
>
<el-form-item
label=
"钢印号"
prop=
"
v
aseCode"
>
<el-input
<el-input
v-model=
"queryParams.
fV
aseCode"
v-model=
"queryParams.
v
aseCode"
placeholder=
"请输入钢印号"
placeholder=
"请输入钢印号"
clearable
clearable
size=
"small"
size=
"small"
@
keyup
.
enter
.
native=
"handleQuery"
@
keyup
.
enter
.
native=
"handleQuery"
/>
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"气瓶条码"
prop=
"
fB
arCode"
>
<el-form-item
label=
"气瓶条码"
prop=
"
b
arCode"
>
<el-input
<el-input
v-model=
"queryParams.
fB
arCode"
v-model=
"queryParams.
b
arCode"
placeholder=
"请输入气瓶条码"
placeholder=
"请输入气瓶条码"
clearable
clearable
size=
"small"
size=
"small"
...
@@ -50,11 +50,11 @@
...
@@ -50,11 +50,11 @@
<el-table
v-loading=
"loading"
:data=
"filesList"
@
selection-change=
"handleSelectionChange"
>
<el-table
v-loading=
"loading"
:data=
"filesList"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
/>
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
/>
<el-table-column
label=
"充装记录编号"
align=
"center"
prop=
"
fG
zId"
/>
<el-table-column
label=
"充装记录编号"
align=
"center"
prop=
"
g
zId"
/>
<el-table-column
label=
"充装单位"
align=
"center"
prop=
"
fS
tationName"
/>
<el-table-column
label=
"充装单位"
align=
"center"
prop=
"
s
tationName"
/>
<el-table-column
label=
"气瓶条码"
align=
"center"
prop=
"
fB
arCode"
/>
<el-table-column
label=
"气瓶条码"
align=
"center"
prop=
"
b
arCode"
/>
<el-table-column
label=
"钢印号"
align=
"center"
prop=
"
fV
aseCode"
/>
<el-table-column
label=
"钢印号"
align=
"center"
prop=
"
v
aseCode"
/>
<el-table-column
label=
"秤号"
align=
"center"
prop=
"
fS
caleNum"
/>
<el-table-column
label=
"秤号"
align=
"center"
prop=
"
s
caleNum"
/>
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
>
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<el-button
<el-button
...
@@ -163,7 +163,7 @@ export default {
...
@@ -163,7 +163,7 @@ export default {
queryParams
:
{
queryParams
:
{
pageNum
:
1
,
pageNum
:
1
,
pageSize
:
10
,
pageSize
:
10
,
fV
aseCode
:
null
,
v
aseCode
:
null
,
},
},
// 表单参数
// 表单参数
form
:
{},
form
:
{},
...
@@ -192,6 +192,7 @@ export default {
...
@@ -192,6 +192,7 @@ export default {
// 文件上传处理中
// 文件上传处理中
handleFileUploadProgress
(
event
,
file
,
fileList
)
{
handleFileUploadProgress
(
event
,
file
,
fileList
)
{
this
.
upload
.
isUploading
=
true
;
this
.
upload
.
isUploading
=
true
;
this
.
$showLoading
.
show
();
},
},
// 文件上传成功处理
// 文件上传成功处理
...
@@ -199,8 +200,17 @@ export default {
...
@@ -199,8 +200,17 @@ export default {
this
.
upload
.
open
=
false
;
this
.
upload
.
open
=
false
;
this
.
upload
.
isUploading
=
false
;
this
.
upload
.
isUploading
=
false
;
this
.
$refs
.
upload
.
clearFiles
();
this
.
$refs
.
upload
.
clearFiles
();
this
.
$alert
(
"<div style='overflow: auto;overflow-x: hidden;max-height: 70vh;padding: 10px 20px 0;'>"
+
response
.
msg
+
"</div>"
,
"导入结果"
,
{
dangerouslyUseHTMLString
:
true
});
if
(
response
.
data
!=
null
)
{
if
(
response
.
data
.
errorMsg
!=
null
&&
response
.
data
.
errorMsg
!==
""
)
{
this
.
$alert
(
"<div style='overflow: auto;overflow-x: hidden;max-height: 70vh;padding: 10px 20px 0;'>"
+
response
.
data
.
errorMsg
+
"</div>"
,
"导入结果"
,
{
dangerouslyUseHTMLString
:
true
});
}
else
{
this
.
$alert
(
"<div style='overflow: auto;overflow-x: hidden;max-height: 70vh;padding: 10px 20px 0;'>"
+
"成功:"
+
response
.
data
.
successNum
+
"条,失败:"
+
response
.
data
.
errorNum
+
"条"
+
"</div>"
,
"导入结果"
,
{
dangerouslyUseHTMLString
:
true
});
}
}
else
{
this
.
$alert
(
"<div style='overflow: auto;overflow-x: hidden;max-height: 70vh;padding: 10px 20px 0;'>"
+
response
.
msg
+
"</div>"
,
"导入结果"
,
{
dangerouslyUseHTMLString
:
true
});
}
this
.
getList
();
this
.
getList
();
this
.
$showLoading
.
hide
();
},
},
// 提交上传文件
// 提交上传文件
...
@@ -225,20 +235,20 @@ export default {
...
@@ -225,20 +235,20 @@ export default {
// 表单重置
// 表单重置
reset
()
{
reset
()
{
this
.
form
=
{
this
.
form
=
{
fG
asAirChargeId
:
null
,
g
asAirChargeId
:
null
,
fG
zId
:
null
,
g
zId
:
null
,
fS
tationName
:
null
,
s
tationName
:
null
,
fB
arCode
:
null
,
b
arCode
:
null
,
fV
aseCode
:
null
,
v
aseCode
:
null
,
fS
caleNum
:
null
,
s
caleNum
:
null
,
f
F
illStatrTime
:
null
,
fillStatrTime
:
null
,
f
F
illEndTime
:
null
,
fillEndTime
:
null
,
fS
etWeight
:
null
,
s
etWeight
:
null
,
fW
tNet
:
null
,
w
tNet
:
null
,
fS
etBottleWeight
:
null
,
s
etBottleWeight
:
null
,
fB
ottleWeight
:
null
,
b
ottleWeight
:
null
,
fW
tGross
:
null
,
w
tGross
:
null
,
fO
prateName
:
null
o
prateName
:
null
};
};
this
.
resetForm
(
"form"
);
this
.
resetForm
(
"form"
);
},
},
...
@@ -255,11 +265,11 @@ export default {
...
@@ -255,11 +265,11 @@ export default {
//详情
//详情
handleDetail
(
row
){
handleDetail
(
row
){
this
.
$refs
.
detail
.
getDetailInfo
(
row
.
fG
asAirChargeId
);
this
.
$refs
.
detail
.
getDetailInfo
(
row
.
g
asAirChargeId
);
},
},
// 多选框选中数据
// 多选框选中数据
handleSelectionChange
(
selection
)
{
handleSelectionChange
(
selection
)
{
this
.
ids
=
selection
.
map
(
item
=>
item
.
fG
asAirChargeId
)
this
.
ids
=
selection
.
map
(
item
=>
item
.
g
asAirChargeId
)
this
.
single
=
selection
.
length
!==
1
this
.
single
=
selection
.
length
!==
1
this
.
multiple
=
!
selection
.
length
this
.
multiple
=
!
selection
.
length
},
},
...
...
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