Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
GaoQuYingJiH5-ASD
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
xinzhedeai
GaoQuYingJiH5-ASD
Commits
db2adeb3
Commit
db2adeb3
authored
Jul 24, 2025
by
xinzhedeai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add: 提醒事项弹窗展示修改
parent
d07e002f
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
87 additions
and
23 deletions
+87
-23
_tezhongzuoye_detail-text.html
src/_tezhongzuoye_detail-text.html
+0
-1
_tezhongzuoye_detail.css
src/_tezhongzuoye_detail.css
+5
-0
_tezhongzuoye_detail.html
src/_tezhongzuoye_detail.html
+12
-3
_tezhongzuoye_detail.js
src/_tezhongzuoye_detail.js
+70
-19
No files found.
src/_tezhongzuoye_detail-text.html
View file @
db2adeb3
...
@@ -6,7 +6,6 @@
...
@@ -6,7 +6,6 @@
<meta
name=
"viewport"
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0, viewport-fit:cover"
>
content=
"width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0, viewport-fit:cover"
>
<title>
特种作业提醒事项
</title>
<title>
特种作业提醒事项
</title>
<script
src=
"../sdk/pdf.js"
></script>
<script
type=
"text/javascript"
src=
"../sdk/includeHead.js"
></script>
<script
type=
"text/javascript"
src=
"../sdk/includeHead.js"
></script>
<link
href=
"../sdk/quilljs/quill.snow.css"
rel=
"stylesheet"
>
<link
href=
"../sdk/quilljs/quill.snow.css"
rel=
"stylesheet"
>
<script
src=
"../sdk/quilljs/quill.js"
></script>
<script
src=
"../sdk/quilljs/quill.js"
></script>
...
...
src/_tezhongzuoye_detail.css
View file @
db2adeb3
...
@@ -356,3 +356,8 @@ select:disabled {
...
@@ -356,3 +356,8 @@ select:disabled {
margin-top
:
0.25rem
;
margin-top
:
0.25rem
;
margin-bottom
:
0.15rem
;
margin-bottom
:
0.15rem
;
}
}
iframe
{
height
:
58vh
;
border
:
none
;
}
\ No newline at end of file
src/_tezhongzuoye_detail.html
View file @
db2adeb3
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
<div
class=
"form-item"
>
<div
class=
"form-item"
>
<span
class=
"form-label title_require"
>
单位名称
</span>
<span
class=
"form-label title_require"
>
单位名称
</span>
<div
class=
"form-input-wrap"
style=
"font-size: 15px;color: #9b9fab;"
>
<div
class=
"form-input-wrap"
style=
"font-size: 15px;color: #9b9fab;"
>
{{ formData.mer
chant
Name }}
{{ formData.merName }}
</div>
</div>
</div>
</div>
...
@@ -116,8 +116,8 @@
...
@@ -116,8 +116,8 @@
@
cancel=
"showEndDatePicker = false"
@
cancel=
"showEndDatePicker = false"
/>
/>
</van-popup>
</van-popup>
<div
style=
"margin-top: .
1
rem;"
v-if=
"flag=='ADD'"
>
<div
style=
"margin-top: .
2
rem;"
v-if=
"flag=='ADD'"
>
<van-checkbox
v-model=
"formData.check"
icon-size=
"16px"
style=
"color:blue; font-size:.2rem;"
>
<van-checkbox
v-model=
"formData.check"
icon-size=
"16px"
style=
"color:blue; font-size:.2
8
rem;"
>
我已阅读
我已阅读
<span
style=
"color:blue;"
@
click=
"showTipPage"
>
《提醒事项》
</span>
<span
style=
"color:blue;"
@
click=
"showTipPage"
>
《提醒事项》
</span>
</van-checkbox>
</van-checkbox>
...
@@ -126,6 +126,15 @@
...
@@ -126,6 +126,15 @@
@
click=
"submitForm"
>
提交报备
</button>
@
click=
"submitForm"
>
提交报备
</button>
</div>
</div>
</div>
</div>
<!-- 新增提醒事项弹出层 -->
<van-popup
v-model=
"showTipPopup"
position=
"center"
:style=
"{ width: '90%', maxHeight: '80%',height: '70vh', }"
>
<div
style=
"padding: 0.3rem; overflow-y: auto;"
>
<iframe
:src=
"`_tezhongzuoye_detail-text.html?type=${formData.workType}`"
></iframe>
<van-button
type=
"info"
size=
"small"
plain
style=
"margin-top: 0.2rem; width: 100%;"
@
click=
"showTipPopup = false"
>
关闭
</van-button>
</div>
</van-popup>
</div>
</div>
</body>
</body>
...
...
src/_tezhongzuoye_detail.js
View file @
db2adeb3
...
@@ -9,6 +9,7 @@ window.addEventListener("load", function() {
...
@@ -9,6 +9,7 @@ window.addEventListener("load", function() {
el
:
'
#app
'
,
el
:
'
#app
'
,
data
()
{
data
()
{
return
{
return
{
showTipPopup
:
false
,
previewUrl
:
BASE_URL
,
previewUrl
:
BASE_URL
,
flag
:
'
XQ
'
,
flag
:
'
XQ
'
,
flag
:
'
ADD
'
,
flag
:
'
ADD
'
,
...
@@ -22,15 +23,15 @@ window.addEventListener("load", function() {
...
@@ -22,15 +23,15 @@ window.addEventListener("load", function() {
// maxDate: new Date(new Date().getFullYear() + 10, 11),
// maxDate: new Date(new Date().getFullYear() + 10, 11),
// 新增以下数据
// 新增以下数据
formData
:
{
formData
:
{
merchantName
:
''
,
merchantPhone
:
''
,
merName
:
''
,
attachmentFile
:
[],
attachmentFile
:
[],
exerciseDate
:
gemhoUtil
.
getTargetDateYMD
(),
workType
:
'
1
'
,
workTypeName
:
''
,
companyName
:
'
2
'
,
workType
:
''
,
workerName
:
'
2
'
,
companyName
:
''
,
startTime
:
'
2025-07-24 09:57
'
,
// 开始时间字段
workerName
:
''
,
endTime
:
'
2025-07-24 10:57
'
// 结束时间字段
startTime
:
''
,
// 开始时间字段
endTime
:
''
// 结束时间字段
},
},
id
:
''
id
:
''
}
}
...
@@ -45,19 +46,69 @@ window.addEventListener("load", function() {
...
@@ -45,19 +46,69 @@ window.addEventListener("load", function() {
this
.
detail
()
// 获取商户信息
this
.
detail
()
// 获取商户信息
}
else
{
}
else
{
this
.
flag
=
'
ADD
'
this
.
flag
=
'
ADD
'
this
.
getShopInfo
()
}
}
this
.
getDict4tab1
()
this
.
getDict4tab1
()
},
},
methods
:
{
methods
:
{
showTipPage
(){
getShopInfo
()
{
let
param
=
{
vant
.
Toast
.
loading
({
type
:
this
.
formData
.
workType
,
message
:
'
正在加载...
'
,
pageName
:
'
_tezhongzuoye_detail
'
,
forbidClick
:
true
,
loadingType
:
'
spinner
'
,
})
setTimeout
(()
=>
{
http2
.
post
(
{
serviceId
:
API_KEY_MAP
[
'
no-page
'
][
'
id
'
],
interfacePublicKey
:
API_KEY_MAP
[
'
no-page
'
][
'
publicKey
'
],
interfacePrivateKey
:
API_KEY_MAP
[
'
no-page
'
][
'
privateKey
'
],
reqParams
:
{
sign
:
11
,
merId
:
gemhoUtil
.
getParameter
(
'
merId
'
)
||
''
,
sort
:
'
lawId,desc
'
,
},
},
(
res
)
=>
{
if
(
!
res
)
{
// 中台返回为undefined 重新请求
vant
.
Toast
.
clear
()
this
.
page
=
this
.
page
-
1
// 重新请求后,分页数恢复上一次请求的值
setTimeout
(()
=>
{
// this.getList()
},
0
)
return
}
if
(
res
)
{
var
result
=
JSON
.
parse
(
res
)
console
.
log
(
'
商户信息
'
,
result
)
if
(
result
.
data
){
this
.
formData
.
merName
=
result
.
data
.
merName
this
.
formData
.
merchantPhone
=
result
.
data
.
merchantPhone
this
.
formData
.
merchantName
=
result
.
data
.
merchantName
this
.
formData
.
unitName
=
result
.
data
.
unitName
}
}
let
url
=
gemhoUtil
.
setParameter
(
'
_tezhongzuoye_detail-text.html
'
,
param
)
console
.
log
(
url
)
gemhoUtil
.
navigatePage
(
url
,
'
跳转中...
'
)
// this.formData.
}
}
)
},
0
)
},
showTipPage
(){
this
.
showTipPopup
=
true
return
// let param = {
// type: this.formData.workType,
// pageName: '_tezhongzuoye_detail',
// }
// let url = gemhoUtil.setParameter('_tezhongzuoye_detail-text.html', param)
// console.log(url)
// gemhoUtil.navigatePage(url, '跳转中...')
},
},
getDict4tab1
()
{
getDict4tab1
()
{
http2
.
post
({
http2
.
post
({
...
@@ -211,19 +262,19 @@ window.addEventListener("load", function() {
...
@@ -211,19 +262,19 @@ window.addEventListener("load", function() {
},
},
submitForm
()
{
submitForm
()
{
if
(
!
this
.
formData
.
t
ype
)
{
if
(
!
this
.
formData
.
workT
ype
)
{
vant
.
Dialog
.
alert
({
vant
.
Dialog
.
alert
({
message
:
'
特种作业类型不可为空
'
,
message
:
'
特种作业类型不可为空
'
,
})
})
return
;
return
;
}
}
if
(
!
this
.
formData
.
participantsNum
)
{
if
(
!
this
.
formData
.
workerName
)
{
vant
.
Dialog
.
alert
({
vant
.
Dialog
.
alert
({
message
:
'
作业人员姓名不可为空
'
,
message
:
'
作业人员姓名不可为空
'
,
})
})
return
;
return
;
}
}
if
(
!
this
.
formData
.
responsiblePerson
)
{
if
(
!
this
.
formData
.
startTime
||
!
this
.
formData
.
endTime
)
{
vant
.
Dialog
.
alert
({
vant
.
Dialog
.
alert
({
message
:
'
作业时间不可为空
'
,
message
:
'
作业时间不可为空
'
,
})
})
...
@@ -249,7 +300,7 @@ window.addEventListener("load", function() {
...
@@ -249,7 +300,7 @@ window.addEventListener("load", function() {
}
}
reqParam
.
attachmentFile
=
this
.
formData
.
attachmentFile
.
join
(
'
,
'
)
reqParam
.
attachmentFile
=
this
.
formData
.
attachmentFile
.
join
(
'
,
'
)
http3
.
post
(
'
/g
aoqu/exercise
'
,
reqParam
).
then
((
res
)
=>
{
http3
.
post
(
'
/g
q/special
'
,
reqParam
).
then
((
res
)
=>
{
console
.
log
(
'
添加结果
'
,
res
)
console
.
log
(
'
添加结果
'
,
res
)
vant
.
Toast
({
vant
.
Toast
({
message
:
res
.
code
===
200
?
'
操作成功
'
:
'
操作失败
'
,
message
:
res
.
code
===
200
?
'
操作成功
'
:
'
操作失败
'
,
...
...
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