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
提交
7662caa3
提交
7662caa3
编写于
2月 20, 2023
作者:
张磊
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
auto commit
上级
924486f5
变更
9
显示空白字符变更
内嵌
并排
正在显示
9 个修改的文件
包含
42 行增加
和
134 行删除
+42
-134
detection.js
src/api/detection.js
+2
-2
httpExtension.js
src/plugins/httpExtension.js
+1
-2
index.js
src/router/index.js
+2
-16
index.vue
src/views/appoint/index.vue
+0
-5
index.vue
src/views/appointDetails/index.vue
+4
-36
index.vue
src/views/home/index.vue
+0
-17
insurance-bind-code.vue
src/views/insurance-bind-code/insurance-bind-code.vue
+15
-41
insurance-bindCode-success.vue
...insurance-bindCode-success/insurance-bindCode-success.vue
+0
-1
insurance-detection-detail.vue
...insurance-detection-detail/insurance-detection-detail.vue
+18
-14
未找到文件。
src/api/detection.js
浏览文件 @
7662caa3
...
@@ -9,10 +9,10 @@ export const getDetectionDetail = (id) => {
...
@@ -9,10 +9,10 @@ export const getDetectionDetail = (id) => {
};
};
// 检测详情节点查询
// 检测详情节点查询
export
const
getDetectionDetailProces
=
(
id
)
=>
{
export
const
getDetectionDetailProces
=
(
data
)
=>
{
return
request
({
return
request
({
method
:
'get'
,
method
:
'get'
,
url
:
`/trade/detection/record/process/
${
id
}
`
,
url
:
`/trade/detection/record/process/
${
data
.
id
}
?channel=
${
data
.
channel
}
`
,
withCredentials
:
true
,
withCredentials
:
true
,
});
});
};
};
...
...
src/plugins/httpExtension.js
浏览文件 @
7662caa3
...
@@ -17,8 +17,7 @@ $http.addBeforeHook(config => console.log('我是新增的前置钩子', config)
...
@@ -17,8 +17,7 @@ $http.addBeforeHook(config => console.log('我是新增的前置钩子', config)
// 新增后置钩子
// 新增后置钩子
$http
.
addAfterHook
(
response
=>
{
$http
.
addAfterHook
(
response
=>
{
if
(
response
.
data
.
code
!==
'000000'
)
{
if
(
response
.
code
!==
'000000'
)
{
Toast
(
response
.
data
.
message
);
Toast
(
response
.
data
.
message
);
}
}
console
.
log
(
'我是新增的后置钩子'
,
response
);
console
.
log
(
'我是新增的后置钩子'
,
response
);
...
...
src/router/index.js
浏览文件 @
7662caa3
...
@@ -3,6 +3,7 @@ import insuranceBindCode from '@/views/insurance-bind-code/insurance-bind-code';
...
@@ -3,6 +3,7 @@ import insuranceBindCode from '@/views/insurance-bind-code/insurance-bind-code';
import
insuranceDetectionDetail
from
'@/views/insurance-detection-detail/insurance-detection-detail'
;
import
insuranceDetectionDetail
from
'@/views/insurance-detection-detail/insurance-detection-detail'
;
import
insuranceBindCodeSuccess
from
'@/views/insurance-bindCode-success/insurance-bindCode-success'
;
import
insuranceBindCodeSuccess
from
'@/views/insurance-bindCode-success/insurance-bindCode-success'
;
import
handleAllRouter
from
'../public_uat'
;
import
handleAllRouter
from
'../public_uat'
;
const
routerConfig
=
[
const
routerConfig
=
[
{
{
path
:
'/insuranceBindCode'
,
path
:
'/insuranceBindCode'
,
...
@@ -55,24 +56,9 @@ const routerConfig = [
...
@@ -55,24 +56,9 @@ const routerConfig = [
component
:
()
=>
import
(
'@/views/pdf-preview/index.vue'
),
component
:
()
=>
import
(
'@/views/pdf-preview/index.vue'
),
},
},
];
];
// 无问卷-0001 有问卷未填写-0101 已填写问卷未出结果-0102 已出结果无需领用-0401 已出结果未预约-0201 已预约未采样-0301 已预约已采样-0302
const
routerMap
=
{
'0001'
:
null
,
'0101'
:
null
,
'0102'
:
null
,
'0401'
:
null
,
'0201'
:
'/appoint'
,
'0301'
:
null
,
'0302'
:
null
,
};
router
.
beforeEach
(
async
(
to
,
from
,
next
)
=>
{
router
.
beforeEach
(
async
(
to
,
from
,
next
)
=>
{
console
.
log
(
to
,
from
,
next
);
if
(
to
.
name
===
'home'
)
{
console
.
log
(
to
.
name
,
routerMap
);
}
else
{
next
();
next
();
}
});
});
router
.
addRoutes
(
routerConfig
);
router
.
addRoutes
(
routerConfig
);
...
...
src/views/appoint/index.vue
浏览文件 @
7662caa3
...
@@ -187,7 +187,6 @@
...
@@ -187,7 +187,6 @@
</template>
</template>
<
script
>
<
script
>
import
store
from
'storejs'
;
import
{
getDetectionName
,
getOrderInfo
,
appointment
,
getHospitalList
}
from
'@/api/appoint'
;
import
{
getDetectionName
,
getOrderInfo
,
appointment
,
getHospitalList
}
from
'@/api/appoint'
;
import
SelectHospital
from
'@/components/selectHospital/index.vue'
;
import
SelectHospital
from
'@/components/selectHospital/index.vue'
;
import
SelectTime
from
'@/components/selectTime/index.vue'
;
import
SelectTime
from
'@/components/selectTime/index.vue'
;
...
@@ -323,9 +322,6 @@ export default {
...
@@ -323,9 +322,6 @@ export default {
});
});
geolocation
.
getCurrentPosition
((
status
,
result
)
=>
{
geolocation
.
getCurrentPosition
((
status
,
result
)
=>
{
console
.
log
(
'geolocation,'
,
status
,
result
);
console
.
log
(
'geolocation,'
,
status
,
result
);
if
(
geolocation
.
result
)
{
store
.
set
(
'geolocation'
,
geolocation
.
result
.
position
);
}
that
.
position
.
latitude
=
result
.
position
.
lat
||
''
;
that
.
position
.
latitude
=
result
.
position
.
lat
||
''
;
that
.
position
.
longitude
=
result
.
position
.
lng
||
''
;
that
.
position
.
longitude
=
result
.
position
.
lng
||
''
;
const
data
=
{
const
data
=
{
...
@@ -364,7 +360,6 @@ export default {
...
@@ -364,7 +360,6 @@ export default {
this
.
dectionData
=
dectionData
;
this
.
dectionData
=
dectionData
;
this
.
dectionForm
.
detectName
=
dectionData
.
detectionName
;
this
.
dectionForm
.
detectName
=
dectionData
.
detectionName
;
this
.
dectionForm
.
goodsId
=
dectionData
.
goodsId
;
this
.
dectionForm
.
goodsId
=
dectionData
.
goodsId
;
this
.
$store
.
dispatch
(
'setInsuranceInfo'
,
dectionData
);
}
}
});
});
...
...
src/views/appointDetails/index.vue
浏览文件 @
7662caa3
...
@@ -138,7 +138,6 @@
...
@@ -138,7 +138,6 @@
<
script
>
<
script
>
import
{
getDetailByYunOrderNo
}
from
'@/api/appoint'
;
import
{
getDetailByYunOrderNo
}
from
'@/api/appoint'
;
import
{
mapActions
,
mapGetters
}
from
'vuex'
;
import
{
mapActions
,
mapGetters
}
from
'vuex'
;
import
store
from
'storejs'
;
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
...
@@ -150,7 +149,7 @@ export default {
...
@@ -150,7 +149,7 @@ export default {
style
:
'backgroundColor:#ffffff;zIndex:100;'
,
style
:
'backgroundColor:#ffffff;zIndex:100;'
,
background
:
''
,
background
:
''
,
},
},
actions
:
[{
name
:
'高德地图'
,
value
:
1
},
{
name
:
'腾讯地图'
,
value
:
2
},
{
name
:
'百度地图'
,
value
:
3
}],
actions
:
[{
name
:
'高德地图'
,
value
:
1
},
{
name
:
'腾讯地图'
,
value
:
1
},
{
name
:
'百度地图'
,
value
:
1
}],
detailInfo
:
{},
detailInfo
:
{},
showSsheet
:
false
,
showSsheet
:
false
,
yunOrderNo
:
''
,
yunOrderNo
:
''
,
...
@@ -194,41 +193,10 @@ export default {
...
@@ -194,41 +193,10 @@ export default {
},
},
selectItem
(
item
)
{
selectItem
(
item
)
{
const
geolocation
=
store
.
get
(
'geolocation'
);
const
hospitalName
=
'上海市浦东新区兰花路333'
;
let
url
=
''
;
// lat
<
纬度
>
,
lng
<
经度
>
const
latitude
=
'31.234527'
;
const
longitude
=
'121.287689'
;
if
(
geolocation
&&
geolocation
.
lat
&&
geolocation
.
lng
)
{
// https://uri.amap.com/navigation
}
else
{
console
.
log
(
item
);
console
.
log
(
item
);
switch
(
item
.
value
)
{
const
address
=
'上海市浦东新区兰花路333'
;
case
1
:
const
url
=
'https://uri.amap.com/marker?&name='
+
address
+
'&callnative=1'
;
// https://lbs.amap.com/api/uri-api/guide/mobile-web/point api地址
url
=
'https://uri.amap.com/marker?&name='
+
hospitalName
+
'&position='
+
longitude
+
','
+
latitude
+
'&callnative=1'
;
break
;
case
2
:
// https://lbs.qq.com/webApi/uriV1/uriGuide/uriWebMarker api地址
url
=
'https://apis.map.qq.com/uri/v1/geocoder?coord='
+
latitude
+
','
+
longitude
+
'&referer=PICA'
;
break
;
case
3
:
// https://lbsyun.baidu.com/index.php?title=uri/api/web api地址
url
=
'http://api.map.baidu.com/marker?location='
+
latitude
+
','
+
longitude
+
'&title='
+
hospitalName
+
'&output=html&src=webapp.baidu.openAPIdemo'
;
break
;
default
:
url
=
'https://uri.amap.com/marker?&name='
+
hospitalName
+
'&position='
+
longitude
+
','
+
latitude
+
'&callnative=1'
;
break
;
}
}
console
.
log
(
'geolocation'
,
url
);
window
.
open
(
url
);
window
.
open
(
url
);
},
},
bindingCode
()
{
bindingCode
()
{
this
.
$router
.
push
({
this
.
$router
.
push
({
...
...
src/views/home/index.vue
浏览文件 @
7662caa3
<
template
>
<div>
111
</div>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
};
},
};
</
script
>
<
style
>
</
style
>
src/views/insurance-bind-code/insurance-bind-code.vue
浏览文件 @
7662caa3
...
@@ -18,14 +18,6 @@
...
@@ -18,14 +18,6 @@
>
>
{{
detectionData
.
checkName
||
''
}}
{{
detectionData
.
checkName
||
''
}}
</div>
</div>
<div
class=
"code-input-item-r"
>
<div
class=
"scan-qr-img-container"
@
click=
"triggerEditModal"
>
修改
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -113,10 +105,11 @@
...
@@ -113,10 +105,11 @@
提交
提交
</div>
</div>
</div>
</div>
<van-overlay
<van-popup
z-index=
"11"
v-model=
"showProtocol"
lock-scroll=
"false"
position=
"bottom"
:show=
"showProtocol"
:style=
"
{ height: '80%' }"
:transition-appear="true"
@click="showProtocol = false"
@click="showProtocol = false"
>
>
<div
class=
"protocol-content"
>
<div
class=
"protocol-content"
>
...
@@ -134,7 +127,7 @@
...
@@ -134,7 +127,7 @@
知情并提交
知情并提交
</van-button>
</van-button>
</div>
</div>
</van-
overlay
>
</van-
popup
>
<van-dialog
<van-dialog
v-model=
"showBindingInfo"
v-model=
"showBindingInfo"
confirm-button-color=
"#00BDA5"
confirm-button-color=
"#00BDA5"
...
@@ -206,9 +199,8 @@ export default {
...
@@ -206,9 +199,8 @@ export default {
background
:
''
,
background
:
''
,
},
},
showBindingInfo
:
false
,
showBindingInfo
:
false
,
showEditModal
:
false
,
isCheck
:
false
,
isCheck
:
false
,
barCode
:
'
020987654321
'
,
barCode
:
''
,
protocolName
:
''
,
protocolName
:
''
,
prototypeId
:
''
,
prototypeId
:
''
,
prototypeLogId
:
''
,
prototypeLogId
:
''
,
...
@@ -247,28 +239,11 @@ export default {
...
@@ -247,28 +239,11 @@ export default {
validateIdNo
:
0
,
validateIdNo
:
0
,
};
};
this
.
detectionData
=
mock
;
this
.
detectionData
=
mock
;
this
.
getProtocolName
();
const
{
pprotocolType
,
detectionRecordId
}
=
this
.
$route
.
query
;
this
.
getRecordInfo
();
this
.
getProtocolName
(
pprotocolType
);
this
.
getRecordInfo
(
detectionRecordId
);
},
},
methods
:
{
methods
:
{
triggerEditModal
()
{
this
.
$dialog
.
confirm
({
title
:
'确认提交'
,
message
:
'点击修改,将需要重新登记检测信息'
,
confirmButtonColor
:
'#00BDA5'
,
cancelButtonColor
:
'#00BDA5'
,
confirmButtonText
:
'确认'
,
cancelButtonText
:
'返回'
})
.
then
(()
=>
{
// on confirm
})
.
catch
(()
=>
{
// on cancel
});
this
.
showEditModal
=
true
;
},
clearCode
()
{
clearCode
()
{
this
.
barCode
=
''
;
this
.
barCode
=
''
;
},
},
...
@@ -280,13 +255,13 @@ export default {
...
@@ -280,13 +255,13 @@ export default {
scanType
:
[
'barCode'
],
// 可以指定扫二维码还是一维码,默认二者都有
scanType
:
[
'barCode'
],
// 可以指定扫二维码还是一维码,默认二者都有
success
:
function
(
res
)
{
success
:
function
(
res
)
{
console
.
log
(
'---res'
,
res
);
console
.
log
(
'---res'
,
res
);
const
s
=
res
.
resultStr
;
that
.
barCode
=
s
&&
s
.
spilt
(
','
)[
1
];
}
}
};
};
this
.
$rocNative
&&
this
.
$rocNative
.
scanQRCode
(
p
,
(
res
)
=>
{
this
.
$rocNative
&&
this
.
$rocNative
.
scanQRCode
(
p
,
(
res
)
=>
{
console
.
log
(
'===='
,
res
);
if
(
res
.
resultStr
)
{
const
s
=
String
(
res
.
resultStr
).
split
(
','
);
that
.
barCode
=
s
[
1
];
}
});
});
},
},
toggleBindingInfo
()
{
toggleBindingInfo
()
{
...
@@ -336,9 +311,8 @@ export default {
...
@@ -336,9 +311,8 @@ export default {
if
(
res
.
code
!==
'000000'
)
{
if
(
res
.
code
!==
'000000'
)
{
return
this
.
$toast
(
res
.
message
);
return
this
.
$toast
(
res
.
message
);
}
}
this
.
agreeText
=
res
.
data
;
this
.
showProtocol
=
true
;
this
.
showProtocol
=
true
;
const
protoData
=
res
.
data
;
this
.
agreeText
=
protoData
;
});
});
},
},
getProtocolName
()
{
getProtocolName
()
{
...
...
src/views/insurance-bindCode-success/insurance-bindCode-success.vue
浏览文件 @
7662caa3
...
@@ -136,7 +136,6 @@ export default {
...
@@ -136,7 +136,6 @@ export default {
document
.
execCommand
(
'Copy'
);
document
.
execCommand
(
'Copy'
);
document
.
body
.
removeChild
(
input
);
document
.
body
.
removeChild
(
input
);
this
.
$toast
(
'已复制'
);
this
.
$toast
(
'已复制'
);
window
.
scrollTo
(
0
,
1
);
},
},
},
},
};
};
...
...
src/views/insurance-detection-detail/insurance-detection-detail.vue
浏览文件 @
7662caa3
...
@@ -168,18 +168,18 @@
...
@@ -168,18 +168,18 @@
</div>
</div>
<!-- v-if="[3].includes(dataDetail.status)"-->
<!-- v-if="[3].includes(dataDetail.status)"-->
<div
<div
v-if=
"dataDetail.checkName"
class=
"submit-button"
class=
"submit-button"
@
click=
"getJumpToWebapp"
>
>
<wx-open-launch-weapp
<wx-open-launch-weapp
style=
"position: absolute; top: 0; left: 0; width: 100%; height: 100%"
style=
"position: absolute; top: 0; left: 0; width: 100%; height: 100%"
username=
"gh_e92f58174364
"
:username=
"openWebAppConfig.username
"
path=
"pages/health/detection-detail/index
"
:path=
"openWebAppConfig.path
"
:env-version=
"VUE_APP_ENV != 'testing' ? 'release' : 'trial'
"
env-version=
"trial
"
:extra-data=
"
{id: 113}
"
:extra-data=
"
openWebAppConfig.extraData
"
>
>
<script
type=
"text/wxtag-template"
>
<script
type=
"text/wxtag-template"
>
<style>
.btn
{position:absolute; top: 0;
left: 0; width:100%; height: 100%;}
</style>
<div
class=
"btn"
>
报告解读
{{
dataDetail
.
status
}}
</div>
<style>
.btn
{position:absolute; top: 0;
color: #ffffff;text-align: center;line-height: 40px; left: 0; width:100%; height: 100%;}
</style>
<div
class=
"btn"
>
{{
dataDetail
.
checkName
}}
</div>
</script>
</script>
</wx-open-launch-weapp>
</wx-open-launch-weapp>
</div>
</div>
...
@@ -187,7 +187,8 @@
...
@@ -187,7 +187,8 @@
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
const
{
VUE_APP_ENV
}
=
process
.
env
;
// const { VUE_APP_ENV } = process.env;
import
{
getDetectionDetail
,
getDetectionDetailProces
,
getJumpToWebapp
}
from
'@/api/detection'
;
import
{
getDetectionDetail
,
getDetectionDetailProces
,
getJumpToWebapp
}
from
'@/api/detection'
;
// UNCOMMITTED(0,"待完善信息"),
// UNCOMMITTED(0,"待完善信息"),
// UNDER_DETECTION(1,"待采样"),
// UNDER_DETECTION(1,"待采样"),
...
@@ -252,16 +253,20 @@ export default {
...
@@ -252,16 +253,20 @@ export default {
waitIcon
:
[
0
,
1
,
6
],
// icon 显示等待状态
waitIcon
:
[
0
,
1
,
6
],
// icon 显示等待状态
noShowBottomBtn
:
[
0
,
21
,
22
,
5
,
1
,
6
,
2
,
25
,
27
],
// 这几种状态不显示底部操作按钮
noShowBottomBtn
:
[
0
,
21
,
22
,
5
,
1
,
6
,
2
,
25
,
27
],
// 这几种状态不显示底部操作按钮
openWebAppConfig
:{
openWebAppConfig
:{
content
:
'
<script'
+
' type=text/wxtag-template><style>.btn {position:absolute; top: 0; left: 0; width:100%; height: 100%;}</style> <div class="btn"></div></'
+
'script>
'
,
// 标签内容
content
:
''
,
// 标签内容
username
:
'gh_e92f58174364'
,
// 小程序唯一username 1.gh_80d54796f2d5 云鹊助手 2. gh_e92f58174364 云鹊健康
username
:
'gh_e92f58174364'
,
// 小程序唯一username 1.gh_80d54796f2d5 云鹊助手 2. gh_e92f58174364 云鹊健康
path
:
''
,
// 打开页面
path
:
'pagesInsurance/all-entrance/index'
,
// 打开页面
envVersion
:
VUE_APP_ENV
!=
'testing'
?
'release'
:
'trial'
,
// release 生产
extraData
:
JSON
.
stringify
({})
extraData
:
''
},
},
};
};
},
},
created
()
{
created
()
{
this
.
id
=
this
.
$route
.
query
.
id
||
11073
;
this
.
id
=
this
.
$route
.
query
.
id
||
11073
;
this
.
openWebAppConfig
.
extraData
=
JSON
.
stringify
({
channelSource
:
'insurance_channel'
,
path
:
'pagesInsurance/all-entrance/index'
,
query
:
{
id
:
this
.
id
,}
});
this
.
init
();
this
.
init
();
},
},
mounted
()
{
mounted
()
{
...
@@ -288,11 +293,10 @@ export default {
...
@@ -288,11 +293,10 @@ export default {
document
.
body
.
removeChild
(
input
);
document
.
body
.
removeChild
(
input
);
this
.
$toast
(
'已复制'
);
this
.
$toast
(
'已复制'
);
console
.
log
(
'已复制的内容:'
,
val
);
console
.
log
(
'已复制的内容:'
,
val
);
window
.
scrollTo
(
0
,
1
);
},
},
// 检测详情
// 检测详情
getDetailProces
()
{
getDetailProces
()
{
getDetectionDetailProces
(
this
.
id
).
then
((
res
)
=>
{
getDetectionDetailProces
(
{
id
:
this
.
id
,
channel
:
4
}
).
then
((
res
)
=>
{
if
(
res
.
code
===
'000000'
)
{
if
(
res
.
code
===
'000000'
)
{
var
flag
=
false
;
var
flag
=
false
;
const
data
=
res
.
data
||
[];
const
data
=
res
.
data
||
[];
...
@@ -340,7 +344,7 @@ export default {
...
@@ -340,7 +344,7 @@ export default {
if
(
this
.
picaWechat
==
'wechat'
)
{
if
(
this
.
picaWechat
==
'wechat'
)
{
return
false
;
return
false
;
}
}
const
p
=
{
params
:{
path
:
'pages
/health/myCheck/index'
,
query
:
'zl---test'
},
type
:
2
};
const
p
=
{
params
:{
path
:
'pages
Insurance/all-entrance/index'
,
query
:{
channelSource
:
'insurance_channel'
,
detectionRecordId
:
this
.
id
}
},
type
:
2
};
getJumpToWebapp
(
p
).
then
(
res
=>
{
getJumpToWebapp
(
p
).
then
(
res
=>
{
console
.
log
(
'--res'
,
res
);
console
.
log
(
'--res'
,
res
);
window
.
location
.
href
=
res
.
data
;
window
.
location
.
href
=
res
.
data
;
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录