Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica-insurance
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
com.pica.cloud.frontend
pica-insurance
提交
38bda998
提交
38bda998
编写于
6月 28, 2023
作者:
张磊
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'feature/zl' into 'release'
lz-insurance See merge request
!259
上级
f841d4c0
0540bc92
变更
1
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
116 行增加
和
8 行删除
+116
-8
index.vue
src/views/appointDetails/index.vue
+116
-8
未找到文件。
src/views/appointDetails/index.vue
浏览文件 @
38bda998
...
@@ -72,6 +72,19 @@
...
@@ -72,6 +72,19 @@
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"detail-qrcode-content"
>
<van-image
width=
"189px"
height=
"189px"
:src=
"qrcodeUrl"
/>
<div
class=
"cancel-code"
>
{{
`核销码:${verificationCode
}
`
}}
<
/div
>
<
div
class
=
"tips"
>
请截图保存图片
<
br
>
检测时出示给检测人员
<
/div
>
<
/div
>
<
div
<
div
v
-
if
=
"!expireFlag"
v
-
if
=
"!expireFlag"
class
=
"detail-bottom"
class
=
"detail-bottom"
...
@@ -219,14 +232,23 @@ export default {
...
@@ -219,14 +232,23 @@ export default {
expireFlag
:
false
,
expireFlag
:
false
,
query
:
{
}
,
query
:
{
}
,
isUnderLine
:
false
,
isUnderLine
:
false
,
insuranceText
:{}
insuranceText
:{
}
,
qrcodeUrl
:
''
,
verificationCode
:
''
,
intervalId
:
null
,
status
:
''
,
}
;
}
;
}
,
}
,
computed
:
{
computed
:
{
...
mapGetters
(
'home'
,
[
'insuranceInfo'
]),
...
mapGetters
(
'home'
,
[
'insuranceInfo'
]),
}
,
}
,
created
()
{
this
.
dataRefreh
();
}
,
mounted
()
{
mounted
()
{
//
this.$loading.show();
this
.
$loading
.
show
();
const
{
yunOrderNo
,
projectEquityNo
}
=
this
.
$route
.
query
;
const
{
yunOrderNo
,
projectEquityNo
}
=
this
.
$route
.
query
;
this
.
yunOrderNo
=
yunOrderNo
;
this
.
yunOrderNo
=
yunOrderNo
;
this
.
projectEquityNo
=
projectEquityNo
;
this
.
projectEquityNo
=
projectEquityNo
;
...
@@ -240,13 +262,67 @@ export default {
...
@@ -240,13 +262,67 @@ export default {
web_data
:{
yunOrderNo
:
yunOrderNo
}
,
web_data
:{
yunOrderNo
:
yunOrderNo
}
,
}
);
}
);
}
,
}
,
destroyed
()
{
this
.
clear
();
}
,
methods
:
{
methods
:
{
// 定时刷新数据函数
dataRefreh
()
{
// 计时器正在进行中,退出函数
if
(
this
.
intervalId
!=
null
)
{
return
;
}
// 计时器为空,操作
this
.
intervalId
=
setInterval
(()
=>
{
this
.
dataRefreh
();
this
.
getDetailByYunOrderNo
(
this
.
yunOrderNo
);
}
,
3000
);
}
,
// 停止定时器
clear
()
{
clearInterval
(
this
.
intervalId
);
// 清除计时器
this
.
intervalId
=
null
;
// 设置为null
}
,
getDetailByYunOrderNo
(
yunOrderNo
)
{
getDetailByYunOrderNo
(
yunOrderNo
)
{
console
.
log
(
'appointDetail-yunOrderNo'
,
yunOrderNo
);
const
that
=
this
;
getDetailByYunOrderNo
(
yunOrderNo
).
then
(
res
=>
{
getDetailByYunOrderNo
(
yunOrderNo
).
then
(
res
=>
{
const
{
expireFlag
}
=
res
.
data
;
if
(
res
.
code
==
'000000'
)
{
this
.
detailInfo
=
res
.
data
;
console
.
log
(
'appointDetail-orderInfo'
,
res
);
this
.
expireFlag
=
expireFlag
||
''
;
const
{
expireFlag
,
qrCodeUrl
,
verificationCode
,
status
,
detectionKind
,
detectionServiceRecordId
,
sampleCode
,
externalOrderNo
,
projectEquityNo
}
=
res
.
data
;
this
.
isUnderLine
=
res
.
data
.
detectionCategory
==
2
;
this
.
detailInfo
=
res
.
data
;
this
.
expireFlag
=
expireFlag
||
''
;
this
.
isUnderLine
=
res
.
data
.
detectionCategory
==
2
;
this
.
qrcodeUrl
=
qrCodeUrl
;
this
.
verificationCode
=
verificationCode
;
if
(
window
.
_miniprogram
)
{
if
(
status
!=
'0202'
)
{
let
url
;
if
(
detectionKind
==
1
)
{
url
=
`/pagesInsurance/sz-insurance/quick-detection-confirm-success?detectionRecordId=${detectionServiceRecordId
}
&projectEquityNo=${that.projectEquityNo
}
&yunOrderNo=${that.yunOrderNo
}
`
;
}
if
(
detectionKind
==
0
)
{
url
=
`/pages/health/detection-confirm-success/index?detectionRecordId=${detectionServiceRecordId
}
&yunOrderNo=${that.yunOrderNo
}
&code=${sampleCode
}
`
;
}
this
.
clear
();
this
.
$rocNative
.
WXInstance
.
miniProgram
.
redirectTo
({
url
}
);
}
}
else
{
if
(
status
!=
'0202'
)
{
this
.
clear
();
this
.
$router
.
push
({
path
:
`/home?externalOrderNo=${externalOrderNo
}
&projectEquityNo=${projectEquityNo
}
`
,
}
);
}
}
}
else
{
this
.
$toast
(
res
.
message
||
'操作失败'
);
}
this
.
$loading
.
hide
();
this
.
$loading
.
hide
();
}
);
}
);
}
,
}
,
...
@@ -282,7 +358,6 @@ export default {
...
@@ -282,7 +358,6 @@ export default {
}
);
}
);
}
);
}
);
}
,
}
,
reAppoint
()
{
reAppoint
()
{
const
that
=
this
;
const
that
=
this
;
this
.
$sendBuriedData
({
this
.
$sendBuriedData
({
...
@@ -395,7 +470,6 @@ export default {
...
@@ -395,7 +470,6 @@ export default {
longitude
:
this
.
detailInfo
.
longitude
,
longitude
:
this
.
detailInfo
.
longitude
,
name
:
this
.
detailInfo
.
hospitalName
,
name
:
this
.
detailInfo
.
hospitalName
,
}
;
}
;
console
.
log
(
this
.
$rocNative
.
WXInstance
);
this
.
$rocNative
.
WXInstance
.
openLocation
(
addressInfo
);
this
.
$rocNative
.
WXInstance
.
openLocation
(
addressInfo
);
return
;
return
;
}
}
...
@@ -505,6 +579,40 @@ export default {
...
@@ -505,6 +579,40 @@ export default {
border
-
radius
:
15
px
;
border
-
radius
:
15
px
;
margin
-
bottom
:
10
px
;
margin
-
bottom
:
10
px
;
}
}
.
detail
-
qrcode
-
content
{
padding
:
20
px
0
;
border
-
radius
:
11
px
;
background
:
#
fff
;
display
:
flex
;
flex
-
direction
:
column
;
align
-
items
:
center
;
justify
-
content
:
center
;
margin
-
bottom
:
10
px
;
.
cancel
-
code
{
width
:
165
px
;
height
:
31
px
;
background
:
#
F9FAFB
;
border
-
radius
:
15
px
;
font
-
size
:
14
px
;
color
:
#
666666
;
text
-
align
:
center
;
line
-
height
:
31
px
;
margin
:
2
px
0
4.5
px
0
;
}
.
tips
{
width
:
210
px
;
height
:
50
px
;
font
-
size
:
18
px
;
text
-
align
:
center
;
font
-
weight
:
700
;
color
:
#
212121
;
line
-
height
:
25
px
;
}
}
.
detail
-
top
-
info
{
.
detail
-
top
-
info
{
background
:
#
F9FAFB
;
background
:
#
F9FAFB
;
border
-
radius
:
11
px
;
border
-
radius
:
11
px
;
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录