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
2c87ae12
Commit
2c87ae12
authored
Apr 14, 2025
by
xinzhedeai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add: 检查记录+商户详情
parent
772bb099
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
110 additions
and
91 deletions
+110
-91
erweimabg.png
image/code/erweimabg.png
+0
-0
_check_info.html
src/_check_info.html
+2
-2
_check_info.js
src/_check_info.js
+104
-86
_shanghu_detail.js
src/_shanghu_detail.js
+4
-3
No files found.
image/code/erweimabg.png
View replaced file @
772bb099
View file @
2c87ae12
80.7 KB
|
W:
|
H:
80.7 KB
|
W:
|
H:
2-up
Swipe
Onion skin
src/_check_info.html
View file @
2c87ae12
...
...
@@ -55,8 +55,8 @@
<van-cell
v-if=
"item.itemType==2"
>
<div
class=
"limit_date_wrapper"
>
<span>
住宿人数:
</span>
<input
type=
"text"
v-model=
"item.gqCheckQuestionDtoList[0].content"
style=
"width:.8rem;height:.4rem;text-align:center;"
/>
<input
type=
"text"
v-model=
"item.gqCheckQuestionDtoList[0].content"
:disabled=
"flag!=='ADD'"
style=
"width:.8rem;height:.4rem;text-align:center;"
/>
</div>
</van-cell>
</div>
...
...
src/_check_info.js
View file @
2c87ae12
/**
* 1:根据商铺id 查询安全检查记录
* 2:根据记录id 查询详情
* 3:隐患列表
4:隐患详情
5:查询安全检查模板数据
6:商家首页按月查询
9:用户角色可查看的模块
10:查询用户检查过的商户信息
11: 查询商户详情信息
*/
var
VUE
=
null
window
.
onload
=
function
()
{
function
countSelectedNo
(
result
)
{
...
...
@@ -53,7 +66,12 @@ window.onload = function() {
* pageName: 页面名称(用于记录页面来源,用于操作后返回上一页)
*
*/
this
.
flag
=
'
JC_XQ
'
console
.
log
(
gemhoUtil
.
getParameter
,
'
gemhoUtil.getParameter
'
)
this
.
pageName
=
gemhoUtil
.
getParameter
(
'
pageName
'
)
this
.
id
=
gemhoUtil
.
getParameter
(
'
id
'
)
this
.
flag
=
gemhoUtil
.
getParameter
(
'
flag
'
)
// this.flag = 'JC_XQ'
// this.flag = 'ADD'
if
(
this
.
flag
===
'
YH_XQ
'
)
{
// 隐患详情
this
.
getDetail4YH_XQ
()
...
...
@@ -124,41 +142,47 @@ window.onload = function() {
forbidClick
:
true
,
loadingType
:
'
spinner
'
,
});
http2
.
get
(
'
/gq/asd/list
'
,
{
sign
:
5
,
},
(
res
)
=>
{
}).
then
((
res
)
=>
{
console
.
log
(
'
接口回调数据1111template
'
,
res
)
if
(
!
res
)
{
// 中台返回为undefined 重新请求
vant
.
Toast
.
clear
()
setTimeout
(()
=>
{
// this.getDetail4Template()
},
0
);
return
}
if
(
res
)
{
// console.log('接口回调数据', JSON.parse(res))
setTimeout
(()
=>
{
this
.
$nextTick
(()
=>
{
vant
.
Toast
.
clear
()
})
},
0
);
// var result = JSON.parse(res)
var
result
=
res
this
.
checkDate
=
result
.
data
.
checkDate
// 检查日期
this
.
checkPeopleName
=
result
.
data
.
checkPeopleName
// 检查人员
this
.
rectificationDeadline
=
result
.
data
.
rectificationDeadline
// 整改截止日期
this
.
reviewDate
=
result
.
data
.
reviewDate
// 隐患审核日期
this
.
reviewRecord
=
result
.
data
.
reviewRecord
this
.
totalItems
=
result
.
data
.
itemAllCount
,
// 表单数据
this
.
checkData
=
JSON
.
parse
(
JSON
.
stringify
(
result
.
data
.
gqCheckTypeDtoList
))
this
.
originCheckData
=
JSON
.
parse
(
JSON
.
stringify
(
result
.
data
.
gqCheckTypeDtoList
))
}
})
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
:
5
,
},
},
(
res
)
=>
{
console
.
log
(
'
接口回调数据1111template
'
,
res
)
if
(
!
res
)
{
// 中台返回为undefined 重新请求
vant
.
Toast
.
clear
()
setTimeout
(()
=>
{
// this.getDetail4Template()
},
0
);
return
}
if
(
res
)
{
// console.log('接口回调数据', JSON.parse(res))
setTimeout
(()
=>
{
this
.
$nextTick
(()
=>
{
vant
.
Toast
.
clear
()
})
},
0
);
// var result = JSON.parse(res)
var
result
=
res
this
.
checkDate
=
result
.
data
.
checkDate
// 检查日期
this
.
checkPeopleName
=
result
.
data
.
checkPeopleName
// 检查人员
this
.
rectificationDeadline
=
result
.
data
.
rectificationDeadline
// 整改截止日期
this
.
reviewDate
=
result
.
data
.
reviewDate
// 隐患审核日期
this
.
reviewRecord
=
result
.
data
.
reviewRecord
this
.
totalItems
=
result
.
data
.
itemAllCount
,
// 表单数据
this
.
checkData
=
JSON
.
parse
(
JSON
.
stringify
(
result
.
data
.
gqCheckTypeDtoList
))
this
.
originCheckData
=
JSON
.
parse
(
JSON
.
stringify
(
result
.
data
.
gqCheckTypeDtoList
))
}
}
)
},
0
)
},
getDetail4YH_XQ
()
{
// 隐患详情
vant
.
Toast
.
loading
({
...
...
@@ -171,6 +195,7 @@ window.onload = function() {
interfacePublicKey
:
API_KEY_MAP
[
"
no-page
"
][
"
publicKey
"
],
interfacePrivateKey
:
API_KEY_MAP
[
"
no-page
"
][
"
privateKey
"
],
reqParams
:
{
sign
:
4
,
// 隐患详情
"
hdId
"
:
"
1
"
,
}
},
(
res
)
=>
{
...
...
@@ -202,61 +227,52 @@ window.onload = function() {
},
getDetail4JC_XQ
()
{
// 检查单详情
console
.
log
(
'
jiancha
单向器
'
)
console
.
log
(
'
jiancha
详情
'
)
vant
.
Toast
.
loading
({
message
:
'
正在加载...
'
,
forbidClick
:
true
,
loadingType
:
'
spinner
'
,
});
http2
.
get
(
'
/gq/asd/list
'
,
{
sign
:
2
,
// serviceId: API_KEY_MAP["no-page"]['id'],
// interfacePublicKey: API_KEY_MAP["no-page"]["publicKey"],
// interfacePrivateKey: API_KEY_MAP["no-page"]["privateKey"],
// reqParams: {
// "recordId": "10",
// }
"
recordId
"
:
"
22
"
,
},
(
res
)
=>
{
// if (!res) { // 中台返回为undefined 重新请求
// vant.Toast.clear()
// setTimeout(() => {
// this.getDetail4JC_XQ()
// }, 0);
// return
// }
if
(
res
)
{
console
.
log
(
'
接口回调数据
'
,
JSON
.
parse
(
res
))
setTimeout
(()
=>
{
this
.
$nextTick
(()
=>
{
vant
.
Toast
.
clear
()
})
},
0
);
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
:
2
,
"
recordId
"
:
this
.
id
||
"
22
"
,
},
},
(
res
)
=>
{
if
(
res
)
{
setTimeout
(()
=>
{
this
.
$nextTick
(()
=>
{
vant
.
Toast
.
clear
()
})
},
0
);
console
.
log
(
'
接口回调数据检查详情
'
,
res
)
// setTimeout(() => {
// this.$nextTick(() => {
// vant.Toast.clear()
// })
// }, 0);
var
result
=
JSON
.
parse
(
res
)
this
.
checkDate
=
result
.
data
.
checkTime
// 检查日期
this
.
checkPeopleName
=
result
.
data
.
checkPeopleName
// 检查人员
this
.
checkData
=
result
.
data
.
gqCheckTypeDtoList
this
.
noCount
=
result
.
data
.
hiddenCount
this
.
notNullCount
=
result
.
data
.
notRectifiedCount
this
.
totalItems
=
result
.
itemAllCount
}
}).
then
((
res
)
=>
{
console
.
log
(
'
接口回调数据检查详情
'
,
res
)
// setTimeout(() => {
// this.$nextTick(() => {
// vant.Toast.clear()
// })
// }, 0);
var
result
=
res
this
.
checkDate
=
result
.
data
.
checkTime
// 检查日期
this
.
checkPeopleName
=
result
.
data
.
checkPeopleName
// 检查人员
this
.
checkData
=
result
.
data
.
gqCheckTypeDtoList
this
.
noCount
=
result
.
data
.
hiddenCount
this
.
notNullCount
=
result
.
data
.
notRectifiedCount
this
.
totalItems
=
result
.
itemAllCount
})
this
.
checkDate
=
result
.
data
.
checkTime
// 检查日期
this
.
checkPeopleName
=
result
.
data
.
checkPeopleName
// 检查人员
this
.
checkData
=
result
.
data
.
gqCheckTypeDtoList
this
.
noCount
=
result
.
data
.
hiddenCount
this
.
notNullCount
=
result
.
data
.
notRectifiedCount
this
.
totalItems
=
result
.
itemAllCount
// 表单数据
this
.
originCheckData
=
JSON
.
parse
(
JSON
.
stringify
(
result
.
data
.
gqCheckTypeDtoList
))
}
}
)
},
0
)
},
add4ZG_XQ
()
{
if
(
!
this
.
checkData
.
photos
.
length
)
{
...
...
@@ -275,6 +291,7 @@ window.onload = function() {
interfacePublicKey
:
API_KEY_MAP
[
"
no-page
"
][
"
publicKey
"
],
interfacePrivateKey
:
API_KEY_MAP
[
"
no-page
"
][
"
privateKey
"
],
reqParams
:
{
sign
:
7
,
"
hdId
"
:
this
.
id
,
"
photos
"
:
this
.
checkData
,
}
...
...
@@ -307,6 +324,7 @@ window.onload = function() {
interfacePublicKey
:
API_KEY_MAP
[
"
no-page
"
][
"
publicKey
"
],
interfacePrivateKey
:
API_KEY_MAP
[
"
no-page
"
][
"
privateKey
"
],
reqParams
:
{
sign
:
8
,
"
hdId
"
:
this
.
id
,
auditStatus
}
...
...
@@ -340,7 +358,7 @@ window.onload = function() {
vant
.
Toast
({
message
:
'
操作成功
'
,
})
//
gemhoUtil.navigatePage(this.pageName + '.html', '操作完成,跳转中...')
gemhoUtil
.
navigatePage
(
this
.
pageName
+
'
.html
'
,
'
操作完成,跳转中...
'
)
})
}
}
...
...
src/_shanghu_detail.js
View file @
2c87ae12
...
...
@@ -67,7 +67,8 @@ window.addEventListener('load', function () {
interfacePublicKey
:
API_KEY_MAP
[
"
no-page
"
][
"
publicKey
"
],
interfacePrivateKey
:
API_KEY_MAP
[
"
no-page
"
][
"
privateKey
"
],
reqParams
:
{
"
merId
"
:
gemhoUtil
.
getParameter
(
'
id
'
),
sign
:
11
,
"
merId
"
:
gemhoUtil
.
getParameter
(
'
merId
'
),
}
},
(
res
)
=>
{
if
(
!
res
)
{
// 中台返回为undefined 重新请求
...
...
@@ -90,8 +91,8 @@ window.addEventListener('load', function () {
console
.
log
(
'
查看详情:
'
,
id
)
// this.formData = {} // 表单赋值
// 这里添加跳转逻辑
const
QR_IMAGE_URL
=
'
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAAEsAQAAAABRBrPYAAAD70lEQVR42u2az0sUYRjHn8na6SCtVFRSOIqGHQILoRQ3f3TqYNgf0EHo4NVuLsi8YynWJbYWlgKbOQR16xJ0sjSEfsDmBEUkBI4o7lFlg9ZY5ul9n/edSc2gS9C+7DAsw8xnZ+F5n+f7/HgX8G+OdahiVayKVbEqpgMWgjhYyaJ7ASsBw8DAQNw19cLEdWCD5RA8xgEzsM2AqUc6YeI+t4NRsugax0rAMRv4p4YYNwh/SryFZBZdMe7Y3AgGcmtYkTPoh9FNUwYyjiE69K3dY6GiMRIum0J467mrvlU0Fh8h3eefTGjXH3NW5WL0NCCboANWKE5+8OjmQa0XJhZaRHFkFqFaBlfs35JRpWNSkBlVFBTOSsQo+WqGgaguTCFZIa2+E5lo69JrgEXCJeoKvuJCqEu8rOKeEOymbxWMIRVRSNnWoUqDLuL8qxGGUpZVF8Btwg+D6kbQCwtFAiJlJt+O6g3yBNQKQ3JsCcilR6qmhGVMvTAqFEmjZL8jREzlX72wkBp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s8QyrR3D+VYs9jRcv7nyfSpnLfrDcx8SA57CblxkmZEmli10dPlDWOzuHoUmfJCbtfxXwezn+G2nV8udYT/LjhtJ30fYY9v2INwdb2hIFjZvr8TYjFiwNfDcIQ/XEGpITB+5M8gNu/Da9/5zt/wJ5zVLxjs6WyMAAAAASUVORK5CYII='
this
.
generateQRCode
(
QR_IMAGE_URL
)
...
...
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