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
提交
26afa675
提交
26afa675
编写于
8月 21, 2024
作者:
zhongyao.qiao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat 嵌入博斯腾问卷
上级
75183b0d
变更
2
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
42 行增加
和
10 行删除
+42
-10
appoint.js
src/api/appoint.js
+13
-6
index.vue
src/views/bestcovered/index.vue
+29
-4
未找到文件。
src/api/appoint.js
浏览文件 @
26afa675
import
request
from
'mn-template/plugins/http'
;
// 根据订单号获取检测名称
...
...
@@ -35,15 +34,15 @@ export const getDetailByYunOrderNo = async (yunOrderNo) => {
method
:
'get'
,
url
:
`/tis/insurance/getDetailByYunOrderNo?yunOrderNo=
${
yunOrderNo
}
`
,
withCredentials
:
true
,
hasLoading
:
false
,
hasLoading
:
false
,
});
};
export
const
getHospitalList
=
async
(
data
)
=>
{
export
const
getHospitalList
=
async
(
data
)
=>
{
return
request
({
method
:
'post'
,
data
,
headers
:
{
noLoading
:
true
,
noLoading
:
true
,
},
url
:
'/tis/insurance/hospitalList'
,
withCredentials
:
true
,
...
...
@@ -58,7 +57,7 @@ export const getDetailHospital = async (id) => {
});
};
export
const
getCheckInUserInfo
=
async
(
data
)
=>
{
export
const
getCheckInUserInfo
=
async
(
data
)
=>
{
return
request
({
method
:
'post'
,
data
,
...
...
@@ -68,7 +67,7 @@ export const getCheckInUserInfo = async(data) => {
};
// /tis/insurance / save / order / detection / result
export
const
saveOrder
=
async
(
data
)
=>
{
export
const
saveOrder
=
async
(
data
)
=>
{
return
request
({
method
:
'post'
,
data
,
...
...
@@ -84,3 +83,11 @@ export const getDetailtxt = async (data) => {
withCredentials
:
true
,
});
};
// 博斯腾判断订单是否完成
export
const
bestcoveredStatusCheck
=
async
(
data
)
=>
{
return
request
({
method
:
'get'
,
url
:
`/trade/detection/bestcovered/checkComplete/
${
data
.
orderNo
}
/
${
data
.
source
}
`
,
withCredentials
:
true
,
});
};
src/views/bestcovered/index.vue
浏览文件 @
26afa675
...
...
@@ -11,30 +11,55 @@
class=
"footer-box"
>
<div
class=
"btn-box"
>
{{
content
}}
<!--
<div
class=
"btn"
>
<div
class=
"btn"
>
<span>
开始训练
</span>
</div>
-->
</div>
</div>
</div>
</div>
</
template
>
<
script
>
import
{
bestcoveredStatusCheck
}
from
'@/api/appoint'
;
export
default
{
data
()
{
return
{
url
:
''
,
showBtn
:
false
,
content
:
''
,
timer
:
null
,
yunOrderNo
:
''
,
};
},
created
()
{
const
{
url
=
'https://cps-test.bestcovered.com/bst-ld/pages/product-factory/product-factory?clientId=yunque&productCode=G3&userId=123&orderNo=123456&sign=a9da8758984231988537860ca827fac0×tamp=1724119418352&surveyorInfo=SoJcAg9ABYlg3gooqLSn5l5Ut4nCsrZ5K93pUxLfWEol9sXDBdo7r9RlpaBySrISZ38K%252FFb5bYoXYYQFAjsdnLMAMLn5DXCux0Pf0omaaiI5ZgWVgQIupw%253D%253D'
,
yunOrderNo
,
}
=
this
.
$route
.
query
;
this
.
url
=
decodeURIComponent
(
url
);
this
.
yunOrderNo
=
yunOrderNo
;
this
.
loopStatus
();
},
beforeDestroy
()
{
if
(
this
.
timer
)
clearInterval
(
this
.
timer
);
},
methods
:
{
loopStatus
()
{
const
params
=
{
orderNo
:
this
.
yunOrderNo
,
source
:
1
,
};
if
(
this
.
timer
)
clearInterval
(
this
.
timer
);
this
.
timer
=
setInterval
(()
=>
{
bestcoveredStatusCheck
(
params
).
then
((
res
)
=>
{
if
(
res
.
code
===
'000000'
)
{
this
.
showBtn
=
res
.
data
;
clearInterval
(
this
.
timer
);
}
});
},
1000
);
},
},
mounted
()
{},
};
</
script
>
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录