Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gassafety-progress
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
耿迪迪
gassafety-progress
Commits
caf4c63d
Commit
caf4c63d
authored
Feb 18, 2022
by
zhangjianqian
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
d936e6e4
0af2839f
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
52 additions
and
19 deletions
+52
-19
TWorkOrderServiceImpl.java
...com/zehong/system/service/impl/TWorkOrderServiceImpl.java
+26
-4
TWorkOrderMapper.xml
...tem/src/main/resources/mapper/system/TWorkOrderMapper.xml
+1
-0
package.json
gassafetyprogress-web/package.json
+1
-1
Logo.vue
gassafetyprogress-web/src/layout/components/Sidebar/Logo.vue
+1
-1
settings.js
gassafetyprogress-web/src/settings.js
+1
-1
index.vue
...ogress-web/src/views/operationMonitor/workOrder/index.vue
+20
-10
vue.config.js
gassafetyprogress-web/vue.config.js
+2
-2
No files found.
gassafetyprogress-system/src/main/java/com/zehong/system/service/impl/TWorkOrderServiceImpl.java
View file @
caf4c63d
package
com
.
zehong
.
system
.
service
.
impl
;
package
com
.
zehong
.
system
.
service
.
impl
;
import
java.util.List
;
import
com.zehong.common.utils.DateUtils
;
import
com.zehong.common.utils.DateUtils
;
import
com.zehong.common.utils.SecurityUtils
;
import
com.zehong.common.utils.SecurityUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
com.zehong.common.utils.StringUtils
;
import
org.springframework.stereotype.Service
;
import
com.zehong.system.domain.TEnterpriseInfo
;
import
com.zehong.system.mapper.TWorkOrderMapper
;
import
com.zehong.system.domain.TWorkOrder
;
import
com.zehong.system.domain.TWorkOrder
;
import
com.zehong.system.mapper.TEnterpriseInfoMapper
;
import
com.zehong.system.mapper.TWorkOrderMapper
;
import
com.zehong.system.service.ITWorkOrderService
;
import
com.zehong.system.service.ITWorkOrderService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
java.util.List
;
/**
/**
* 燃气任务Service业务层处理
* 燃气任务Service业务层处理
...
@@ -21,6 +25,9 @@ public class TWorkOrderServiceImpl implements ITWorkOrderService
...
@@ -21,6 +25,9 @@ public class TWorkOrderServiceImpl implements ITWorkOrderService
@Autowired
@Autowired
private
TWorkOrderMapper
tWorkOrderMapper
;
private
TWorkOrderMapper
tWorkOrderMapper
;
@Autowired
private
TEnterpriseInfoMapper
tEnterpriseInfoMapper
;
/**
/**
* 查询燃气任务
* 查询燃气任务
*
*
...
@@ -56,6 +63,21 @@ public class TWorkOrderServiceImpl implements ITWorkOrderService
...
@@ -56,6 +63,21 @@ public class TWorkOrderServiceImpl implements ITWorkOrderService
{
{
tWorkOrder
.
setCreateTime
(
DateUtils
.
getNowDate
());
tWorkOrder
.
setCreateTime
(
DateUtils
.
getNowDate
());
tWorkOrder
.
setCreateBy
(
SecurityUtils
.
getUsername
());
tWorkOrder
.
setCreateBy
(
SecurityUtils
.
getUsername
());
Long
enterpriseId
=
SecurityUtils
.
getLoginUser
().
getUser
().
getDeptId
();
if
(
null
!=
enterpriseId
){
if
(
"-2"
.
equals
(
enterpriseId
.
toString
())){
tWorkOrder
.
setWorkCreateEnterpriseId
(
"-2"
);
tWorkOrder
.
setWorkCreateEnterpriseName
(
"政府部门"
);
}
else
{
TEnterpriseInfo
enterpriseInfo
=
tEnterpriseInfoMapper
.
selectTEnterpriseInfoById
(
enterpriseId
);
if
(
null
!=
enterpriseInfo
&&
StringUtils
.
isNotEmpty
(
enterpriseInfo
.
getEnterpriseName
())){
tWorkOrder
.
setWorkCreateEnterpriseId
(
enterpriseId
.
toString
());
tWorkOrder
.
setWorkCreateEnterpriseName
(
enterpriseInfo
.
getEnterpriseName
());
}
}
}
return
tWorkOrderMapper
.
insertTWorkOrder
(
tWorkOrder
);
return
tWorkOrderMapper
.
insertTWorkOrder
(
tWorkOrder
);
}
}
...
...
gassafetyprogress-system/src/main/resources/mapper/system/TWorkOrderMapper.xml
View file @
caf4c63d
...
@@ -137,6 +137,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -137,6 +137,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"workCreateEnterpriseId != null"
>
work_create_enterprise_id = #{workCreateEnterpriseId},
</if>
<if
test=
"workCreateEnterpriseId != null"
>
work_create_enterprise_id = #{workCreateEnterpriseId},
</if>
<if
test=
"workAssignEnterproseName != null"
>
work_assign_enterprose_name = #{workAssignEnterproseName},
</if>
<if
test=
"workAssignEnterproseName != null"
>
work_assign_enterprose_name = #{workAssignEnterproseName},
</if>
<if
test=
"workAssignEnterproseId != null"
>
work_assign_enterprose_id = #{workAssignEnterproseId},
</if>
<if
test=
"workAssignEnterproseId != null"
>
work_assign_enterprose_id = #{workAssignEnterproseId},
</if>
<if
test=
"workAssignManId == null"
>
work_assign_man_id = null,
</if>
<if
test=
"workAssignManId != null"
>
work_assign_man_id = #{workAssignManId},
</if>
<if
test=
"workAssignManId != null"
>
work_assign_man_id = #{workAssignManId},
</if>
<if
test=
"workAssignMan != null"
>
work_assign_man = #{workAssignMan},
</if>
<if
test=
"workAssignMan != null"
>
work_assign_man = #{workAssignMan},
</if>
<if
test=
"workStatus != null"
>
work_status = #{workStatus},
</if>
<if
test=
"workStatus != null"
>
work_status = #{workStatus},
</if>
...
...
gassafetyprogress-web/package.json
View file @
caf4c63d
{
{
"name"
:
"zehong"
,
"name"
:
"zehong"
,
"version"
:
"3.5.0"
,
"version"
:
"3.5.0"
,
"description"
:
"
泽宏
管理系统"
,
"description"
:
"
智慧管网
管理系统"
,
"author"
:
"泽宏"
,
"author"
:
"泽宏"
,
"license"
:
"MIT"
,
"license"
:
"MIT"
,
"scripts"
:
{
"scripts"
:
{
...
...
gassafetyprogress-web/src/layout/components/Sidebar/Logo.vue
View file @
caf4c63d
...
@@ -35,7 +35,7 @@ export default {
...
@@ -35,7 +35,7 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
title
:
'
泽宏
管理系统'
,
title
:
'
智慧管网
管理系统'
,
logo
:
logoImg
logo
:
logoImg
}
}
}
}
...
...
gassafetyprogress-web/src/settings.js
View file @
caf4c63d
module
.
exports
=
{
module
.
exports
=
{
title
:
'
泽宏
管理系统'
,
title
:
'
智慧管网
管理系统'
,
/**
/**
* 侧边栏主题 深色主题theme-dark,浅色主题theme-light
* 侧边栏主题 深色主题theme-dark,浅色主题theme-light
...
...
gassafetyprogress-web/src/views/operationMonitor/workOrder/index.vue
View file @
caf4c63d
...
@@ -147,7 +147,7 @@
...
@@ -147,7 +147,7 @@
@
click
=
"handleDelete(scope.row)"
@
click
=
"handleDelete(scope.row)"
v
-
hasPermi
=
"['system:order:remove']"
v
-
hasPermi
=
"['system:order:remove']"
>
删除
<
/el-button
>
>
删除
<
/el-button
>
<
el
-
button
v
-
if
=
"(('enterprise'== roleType && (scope.row.workAssignManId == '' || scope.row.workAssignManId == null)) || ('zhengfu'== roleType && (scope.row.workAssignEnterproseId == '' || scope.row.workAssignEnterproseId == null))) && scope.row.workStatus == '0'"
<
el
-
button
v
-
if
=
"
(('enterprise'== roleType && (scope.row.workAssignManId == '' || scope.row.workAssignManId == null)) || ('zhengfu'== roleType && (scope.row.workAssignEnterproseId == '' || scope.row.workAssignEnterproseId == null))) && scope.row.workStatus == '0'"
size
=
"mini"
size
=
"mini"
type
=
"text"
type
=
"text"
icon
=
"el-icon-edit"
icon
=
"el-icon-edit"
...
@@ -225,7 +225,7 @@
...
@@ -225,7 +225,7 @@
<
el
-
col
:
span
=
"12"
>
<
el
-
col
:
span
=
"12"
>
<
el
-
form
-
item
label
=
"指派人"
prop
=
"workAssignMan"
>
<
el
-
form
-
item
label
=
"指派人"
prop
=
"workAssignMan"
>
<!--
<
el
-
input
v
-
model
=
"form.workAssignManId"
placeholder
=
"请输入指派人"
/>-->
<!--
<
el
-
input
v
-
model
=
"form.workAssignManId"
placeholder
=
"请输入指派人"
/>-->
<
el
-
select
v
-
model
=
"form.workAssignManId"
placeholder
=
"请输入指派人"
style
=
"width: 350px"
@
change
=
"selectInspection($event,'edit')"
:
disabled
=
"isDetail"
>
<
el
-
select
v
-
model
=
"form.workAssignManId"
placeholder
=
"请输入指派人"
style
=
"width: 350px"
@
change
=
"selectInspection($event,'edit')"
:
disabled
=
"isDetail"
clearable
>
<
el
-
option
<
el
-
option
v
-
for
=
"item in inspectors"
v
-
for
=
"item in inspectors"
:
key
=
"item.userId "
:
key
=
"item.userId "
...
@@ -237,7 +237,7 @@
...
@@ -237,7 +237,7 @@
<
/el-col
>
<
/el-col
>
<
/el-row
>
<
/el-row
>
<
el
-
row
>
<
el
-
row
>
<
el
-
col
:
span
=
"12"
>
<
el
-
col
:
span
=
"12"
v
-
show
=
"isDetail"
>
<
el
-
form
-
item
label
=
"创建单位"
prop
=
"inspectionDate"
>
<
el
-
form
-
item
label
=
"创建单位"
prop
=
"inspectionDate"
>
<
el
-
input
v
-
model
=
"form.workCreateEnterpriseName"
placeholder
=
"请输入创建单位名称"
:
disabled
=
"isDetail"
/>
<
el
-
input
v
-
model
=
"form.workCreateEnterpriseName"
placeholder
=
"请输入创建单位名称"
:
disabled
=
"isDetail"
/>
<
/el-form-item
>
<
/el-form-item
>
...
@@ -706,19 +706,28 @@ export default {
...
@@ -706,19 +706,28 @@ export default {
selectworkAssignEnterprose
(
enterpriseId
){
selectworkAssignEnterprose
(
enterpriseId
){
this
.
form
.
workAssignManId
=
""
;
this
.
form
.
workAssignManId
=
""
;
this
.
workForm
.
workAssignManId
=
""
;
this
.
workForm
.
workAssignManId
=
""
;
this
.
workForm
.
workAssignMan
=
""
;
this
.
form
.
workAssignMan
=
""
;
this
.
getInspectionUserList
(
enterpriseId
);
this
.
getInspectionUserList
(
enterpriseId
);
let
enterpriseName
=
this
.
enterprises
.
find
(
val
=>
val
.
enterpriseId
==
enterpriseId
).
enterpriseName
;
let
enterpriseName
=
this
.
enterprises
.
find
(
val
=>
val
.
enterpriseId
==
enterpriseId
).
enterpriseName
;
this
.
form
.
workAssignEnterproseName
=
enterpriseName
;
this
.
form
.
workAssignEnterproseName
=
enterpriseName
;
}
,
}
,
//获取指派人
//获取指派人
selectInspection
(
userId
,
type
){
selectInspection
(
userId
,
type
){
if
(
userId
){
let
userName
=
this
.
inspectors
.
find
(
val
=>
val
.
userId
==
userId
).
userName
;
let
userName
=
this
.
inspectors
.
find
(
val
=>
val
.
userId
==
userId
).
userName
;
if
(
"edit"
==
type
){
if
(
"edit"
==
type
){
this
.
form
.
workAssignMan
=
userName
;
this
.
form
.
workAssignMan
=
userName
;
}
else
{
}
else
{
this
.
workForm
.
workAssignMan
=
userName
;
this
.
workForm
.
workAssignMan
=
userName
;
}
}
}
else
{
if
(
"edit"
==
type
){
this
.
form
.
workAssignMan
=
""
;
}
else
{
this
.
workForm
.
workAssignMan
=
""
;
}
}
}
,
}
,
/*//选择任务类型
/*//选择任务类型
selectWorkType(workType){
selectWorkType(workType){
...
@@ -741,6 +750,7 @@ export default {
...
@@ -741,6 +750,7 @@ export default {
//任务下发
//任务下发
workIssue
(
row
){
workIssue
(
row
){
this
.
title
=
"任务下发"
;
this
.
title
=
"任务下发"
;
this
.
workForm
=
{
}
;
this
.
workForm
.
workId
=
row
.
workId
;
this
.
workForm
.
workId
=
row
.
workId
;
this
.
workForm
.
workTitle
=
row
.
workTitle
;
this
.
workForm
.
workTitle
=
row
.
workTitle
;
this
.
workForm
.
workType
=
row
.
workType
;
this
.
workForm
.
workType
=
row
.
workType
;
...
@@ -748,10 +758,10 @@ export default {
...
@@ -748,10 +758,10 @@ export default {
this
.
workForm
.
workAssignEnterproseId
=
row
.
workAssignEnterproseId
;
this
.
workForm
.
workAssignEnterproseId
=
row
.
workAssignEnterproseId
;
this
.
workForm
.
workAssignEnterproseName
=
row
.
workAssignEnterproseName
;
this
.
workForm
.
workAssignEnterproseName
=
row
.
workAssignEnterproseName
;
}
}
if
(
row
.
workAssignManId
){
/*
if(row.workAssignManId){
this.workForm.workAssignManId = row.workAssignManId;
this.workForm.workAssignManId = row.workAssignManId;
this.workForm.workAssignMan = row.workAssignMan;
this.workForm.workAssignMan = row.workAssignMan;
}
}
*/
//this.workForm = row;
//this.workForm = row;
this
.
workForm
.
workStatus
=
'1'
;
this
.
workForm
.
workStatus
=
'1'
;
this
.
workOpen
=
true
;
this
.
workOpen
=
true
;
...
...
gassafetyprogress-web/vue.config.js
View file @
caf4c63d
...
@@ -6,7 +6,7 @@ function resolve(dir) {
...
@@ -6,7 +6,7 @@ function resolve(dir) {
return
path
.
join
(
__dirname
,
dir
)
return
path
.
join
(
__dirname
,
dir
)
}
}
const
name
=
defaultSettings
.
title
||
'
泽宏
管理系统'
// 标题
const
name
=
defaultSettings
.
title
||
'
智慧管网
管理系统'
// 标题
const
port
=
process
.
env
.
port
||
process
.
env
.
npm_config_port
||
80
// 端口
const
port
=
process
.
env
.
port
||
process
.
env
.
npm_config_port
||
80
// 端口
...
@@ -34,7 +34,7 @@ module.exports = {
...
@@ -34,7 +34,7 @@ module.exports = {
proxy
:
{
proxy
:
{
// detail: https://cli.vuejs.org/config/#devserver-proxy
// detail: https://cli.vuejs.org/config/#devserver-proxy
[
process
.
env
.
VUE_APP_BASE_API
]:
{
[
process
.
env
.
VUE_APP_BASE_API
]:
{
target
:
`http://
222.223.203.154:8092
/gassafety`
,
target
:
`http://
localhost:8903
/gassafety`
,
changeOrigin
:
true
,
changeOrigin
:
true
,
pathRewrite
:
{
pathRewrite
:
{
[
'^'
+
process
.
env
.
VUE_APP_BASE_API
]:
''
[
'^'
+
process
.
env
.
VUE_APP_BASE_API
]:
''
...
...
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