Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qsh-wc
Project
Project
Details
Activity
Releases
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
honghuiliu
qsh-wc
Commits
d651113f
Commit
d651113f
authored
Sep 05, 2022
by
mahui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
6b6b8e4d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
147 additions
and
9 deletions
+147
-9
order-detail.vue
pc/src/views/order-detail.vue
+2
-1
qshPartol.vue
web/src/view/qshPartol/qshPartol.vue
+145
-8
No files found.
pc/src/views/order-detail.vue
View file @
d651113f
...
...
@@ -236,7 +236,8 @@
function
getDetail
(){
api
.
getPatrolDetail
({
id
:
props
.
order_id
}).
then
((
res
)
=>
{
if
(
res
.
code
==
0
){
res
.
data
.
CreatedAt
=
myPublic
.
dateFormat
.
format
(
res
.
data
.
CreatedAt
)
res
.
data
.
content
=
myPublic
.
isJsonString
(
res
.
data
.
content
)?
JSON
.
parse
(
res
.
data
.
content
):[];
res
.
data
.
CreatedAt
=
myPublic
.
dateFormat
.
format
(
res
.
data
.
CreatedAt
);
Object
.
assign
(
state
.
detail
,{...
res
.
data
});
}
});
...
...
web/src/view/qshPartol/qshPartol.vue
View file @
d651113f
...
...
@@ -90,7 +90,11 @@
</el-select>
</el-form-item>
<el-form-item
label=
"巡检内容:"
>
<!--<el-input v-model="formData.content" clearable placeholder="请输入"/>-->
<
template
v-for=
"item in formData.content"
>
<div
class=
"check-one"
style=
"display: inline-flex;width: 200px;"
>
<el-checkbox
v-model=
"item.check"
:label=
"item.title"
size=
"large"
/>
</div>
</
template
>
</el-form-item>
<el-form-item
label=
"巡检图片:"
>
<new-upload
v-if=
"dialogFormVisible"
:limit=
"99"
:list=
"formData.image?formData.image.split(','):[]"
@
upload=
"(file)=>formData.image = file.join(',')"
:multiply=
"true"
></new-upload>
...
...
@@ -144,7 +148,72 @@
// 自动化生成的字典(可能为空)以及字段
const
partol_typeOptions
=
ref
([])
const
formData
=
ref
({
content
:
''
,
content
:
[
{
title
:
'检查格栅井'
,
check
:
false
},
{
title
:
'格栅井照片'
,
check
:
false
},
{
title
:
'检查调节池'
,
check
:
false
},
{
title
:
'检查厌氧池'
,
check
:
false
},
{
title
:
'检查缺氧池'
,
check
:
false
},
{
title
:
'检查好氧池'
,
check
:
false
},
{
title
:
'检查清水池'
,
check
:
false
},
{
title
:
'格栅污泥池'
,
check
:
false
},
{
title
:
'检查出水井'
,
check
:
false
},
{
title
:
'清水池照片'
,
check
:
false
},
{
title
:
'检查各井口及井盖'
,
check
:
false
},
{
title
:
'检查水泵系统'
,
check
:
false
},
{
title
:
'检查风机系统'
,
check
:
false
},
{
title
:
'检查加药系统'
,
check
:
false
},
{
title
:
'检查监控系统'
,
check
:
false
},
{
title
:
'检查设备房'
,
check
:
false
}
],
description
:
''
,
image
:
''
,
partolName
:
''
,
...
...
@@ -276,7 +345,8 @@
const
res
=
await
findQshPartol
({
ID
:
row
.
ID
})
type
.
value
=
'update'
if
(
res
.
code
===
0
)
{
formData
.
value
=
res
.
data
.
reqshPartol
res
.
data
.
reqshPartol
.
content
=
JSON
.
parse
(
res
.
data
.
reqshPartol
.
content
)
||
[];
Object
.
assign
(
formData
.
value
,
res
.
data
.
reqshPartol
)
dialogFormVisible
.
value
=
true
}
}
...
...
@@ -310,7 +380,72 @@
const
closeDialog
=
()
=>
{
dialogFormVisible
.
value
=
false
formData
.
value
=
{
content
:
''
,
content
:
[
{
title
:
'检查格栅井'
,
check
:
false
},
{
title
:
'格栅井照片'
,
check
:
false
},
{
title
:
'检查调节池'
,
check
:
false
},
{
title
:
'检查厌氧池'
,
check
:
false
},
{
title
:
'检查缺氧池'
,
check
:
false
},
{
title
:
'检查好氧池'
,
check
:
false
},
{
title
:
'检查清水池'
,
check
:
false
},
{
title
:
'格栅污泥池'
,
check
:
false
},
{
title
:
'检查出水井'
,
check
:
false
},
{
title
:
'清水池照片'
,
check
:
false
},
{
title
:
'检查各井口及井盖'
,
check
:
false
},
{
title
:
'检查水泵系统'
,
check
:
false
},
{
title
:
'检查风机系统'
,
check
:
false
},
{
title
:
'检查加药系统'
,
check
:
false
},
{
title
:
'检查监控系统'
,
check
:
false
},
{
title
:
'检查设备房'
,
check
:
false
}
],
description
:
''
,
image
:
''
,
partolName
:
''
,
...
...
@@ -321,16 +456,18 @@
}
// 弹窗确定
const
enterDialog
=
async
()
=>
{
let
res
let
res
;
let
p
=
JSON
.
parse
(
JSON
.
stringify
(
formData
.
value
));
p
.
content
=
JSON
.
stringify
(
formData
.
value
.
content
);
switch
(
type
.
value
)
{
case
'create'
:
res
=
await
createQshPartol
(
formData
.
value
)
res
=
await
createQshPartol
(
p
)
break
case
'update'
:
res
=
await
updateQshPartol
(
formData
.
value
)
res
=
await
updateQshPartol
(
p
)
break
default
:
res
=
await
createQshPartol
(
formData
.
value
)
res
=
await
createQshPartol
(
p
)
break
}
if
(
res
.
code
===
0
)
{
...
...
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