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
提交
2dda565e
提交
2dda565e
编写于
2月 13, 2023
作者:
张磊
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
init-project-01
上级
013c5c81
变更
8
显示空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
881 行增加
和
41 行删除
+881
-41
gitPush.sh
gitPush.sh
+1
-1
detection.js
src/api/detection.js
+55
-0
vue-components.js
src/plugins/vue-components.js
+2
-0
index.js
src/router/index.js
+10
-4
index.vue
src/views/index.vue
+0
-36
insurance-bind-code.vue
src/views/insurance-bind-code/insurance-bind-code.vue
+151
-0
index.scss
src/views/insurance-detection-detail/index.scss
+283
-0
insurance-detection-detail.vue
...insurance-detection-detail/insurance-detection-detail.vue
+379
-0
未找到文件。
gitPush.sh
浏览文件 @
2dda565e
...
@@ -7,7 +7,7 @@ if [ ! $hasGit ];then
...
@@ -7,7 +7,7 @@ if [ ! $hasGit ];then
else
else
git fetch
--all
git fetch
--all
result
=
`
git symbolic-ref
--short
-q
HEAD
`
# 获取分支名
result
=
`
git symbolic-ref
--short
-q
HEAD
`
# 获取分支名
current_id
=
`
git log
-n
1 origin/
release
--pretty
=
format:
"%H"
`
current_id
=
`
git log
-n
1 origin/
develop
--pretty
=
format:
"%H"
`
git reset
--soft
$current_id
git reset
--soft
$current_id
git add
.
git add
.
git commit
-m
"
$msg
"
git commit
-m
"
$msg
"
...
...
src/api/detection.js
0 → 100644
浏览文件 @
2dda565e
import
request
from
'mn-template/plugins/http'
;
// 获取检测详情 接口
export
const
getDetectionDetail
=
(
id
)
=>
{
return
request
({
method
:
'get'
,
url
:
`/trade/detection/record/record/info/?detectionRecordId=
${
id
}
&userType=0`
,
withCredentials
:
true
,
});
};
// 检测详情节点查询
export
const
getDetectionDetailProces
=
(
id
)
=>
{
return
request
({
method
:
'get'
,
url
:
`/trade/detection/record/process/
${
id
}
`
,
withCredentials
:
true
,
});
};
// 发送报告到钉钉工作站
export
const
sendReportWorkStation
=
(
data
)
=>
{
return
request
({
method
:
'get'
,
url
:
`/store/admin/hospital/detection/reportShare/
${
data
.
id
}
?reportType=
${
data
.
reportType
}
`
,
withCredentials
:
true
,
});
};
// 获取报告
export
const
sendReportShareInfo
=
(
data
)
=>
{
return
request
({
method
:
'get'
,
url
:
`/store/admin/hospital/detection/reportShareInfo/
${
data
.
id
}
?reportType=
${
data
.
reportType
}
`
,
withCredentials
:
true
,
});
};
// 获取阳性报告类型列表
export
const
getTypeCodeList
=
()
=>
{
return
request
({
url
:
'basic-data/constants/app?typeCodeList=P326'
,
method
:
'get'
,
withCredentials
:
true
,
});
};
// 跟进报告提交
// /trade/detection/record/operation/submit
export
const
operationSubmit
=
(
data
)
=>
{
return
request
({
method
:
'post'
,
url
:
'/trade/detection/record/operation/submit'
,
data
:
data
,
withCredentials
:
true
,
});
};
src/plugins/vue-components.js
浏览文件 @
2dda565e
import
Vue
from
'vue'
;
import
Vue
from
'vue'
;
import
picaGuideApp
from
'@pica-kit/pica-ui-component/lib/pica-guide-app'
;
import
picaGuideApp
from
'@pica-kit/pica-ui-component/lib/pica-guide-app'
;
import
PageModel
from
'@pica-kit/page-model'
;
Vue
.
use
(
picaGuideApp
);
Vue
.
use
(
picaGuideApp
);
Vue
.
use
(
PageModel
);
src/router/index.js
浏览文件 @
2dda565e
import
{
router
}
from
'@pica-cli/vue-cli-plugin-pica-cli-plugin/auto'
;
import
{
router
}
from
'@pica-cli/vue-cli-plugin-pica-cli-plugin/auto'
;
import
Index
from
'@/views/index.vue'
;
import
insuranceBindCode
from
'@/views/insurance-bind-code/insurance-bind-code'
;
import
insuranceDetectionDetail
from
'@/views/insurance-detection-detail/insurance-detection-detail'
;
import
{
toggleSkeletonRouter
}
from
'mn-template/plugins/toggleSkeleton.js'
;
import
{
toggleSkeletonRouter
}
from
'mn-template/plugins/toggleSkeleton.js'
;
import
handleAllRouter
from
'../public_uat'
;
import
handleAllRouter
from
'../public_uat'
;
const
routerConfig
=
[
const
routerConfig
=
[
{
{
path
:
'/'
,
path
:
'/insuranceBindCode'
,
name
:
'Index'
,
name
:
'insuranceBindCode'
,
component
:
Index
component
:
insuranceBindCode
},
{
path
:
'/insuranceDetectionDetail'
,
name
:
'insuranceDetectionDetail'
,
component
:
insuranceDetectionDetail
},
},
{
{
path
:
'*'
,
path
:
'*'
,
...
...
src/views/index.vue
已删除
100644 → 0
浏览文件 @
013c5c81
<
template
>
<fragment>
<H1
class=
"flex-row flex-center"
>
This is Demo Page
</H1>
<div
class=
"flex-row flex-center"
>
store.count:
{{
count
}}
</div>
</fragment>
</
template
>
<
script
>
export
default
{
name
:
'Home'
,
computed
:
{
count
()
{
return
this
.
$store
.
state
.
home
.
count
;
}
},
mounted
()
{
console
.
log
(
this
.
$route
.
meta
);
// {requiresAuth: true}
const
a
=
1
;
let
b
=
2
;
b
=
3
;
console
.
log
(
b
);
console
.
log
(
a
);
},
methods
:
{
}
};
</
script
>
<
style
scoped
>
</
style
>
src/views/insurance-bind-code/insurance-bind-code.vue
0 → 100644
浏览文件 @
2dda565e
<
template
>
<div
class=
"insurance-binding-code-container"
>
<page-model
ref=
"PageModel"
:header-info=
"headerInfo"
/>
<div
class=
"code-container"
>
<div
class=
"code-content"
>
<div
class=
"code-input-item-l detection-container"
>
<div
class=
"input-title"
>
检测服务
</div>
<div
class=
"input-content"
>
<div
type=
"text"
class=
"code"
placeholder-style=
"font-size: 32px;font-family: PingFangSC-Regular, PingFang SC;font-weight: 400;color: #999999;"
>
{{
checkName
||
''
}}
</div>
<div
class=
"code-input-item-r"
>
<div
class=
"scan-qr-img-container"
@
click=
"triggerEditModal"
>
修改
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"code-container"
>
<div
class=
"code-content"
:class=
"
{'bar-code-content' : errorMessage != ''}"
>
<div
class=
"code-input-item-l"
>
<div
class=
"input-title"
>
条形码
</div>
<div
class=
"input-content-group"
>
<div
class=
"input-content input-content-scan"
>
<input
v-model=
"barCode"
type=
"text"
class=
"code"
placeholder-style=
"font-size: 32px;font-family: PingFangSC-Regular, PingFang SC;font-weight: 400;color: #999999;"
placeholder=
"请输入条形码"
>
<div
class=
"code-input-item-r"
>
<div
v-if=
"barCode"
class=
"clear-img-container"
@
click=
"clearCode"
>
<img
class=
"clear-img"
src=
"https://files.yunqueyi.com/icon/2022/clear.png"
/>
</div>
<div
class=
"scan-qr-img-container-code"
@
click=
"scanCode()"
>
<img
class=
"scan-qr-img"
src=
"https://files.yunqueyi.com/image/png/common/20221128114549858.png"
mode=
""
/>
<span>
扫码识别
</span>
</div>
</div>
</div>
<div
v-if=
"errorMessage != ''"
class=
"input-error-message"
>
{{
errorMessage
||
''
}}
</div>
</div>
</div>
</div>
</div>
<div
class=
"sumbit-button-top"
>
<div
class=
"sumbit-button"
:class=
"barCode.length > 0 ? 'sumbit-button-active' : ''"
@
click=
"toggleBindingInfo"
>
提交
</div>
</div>
</div>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
headerInfo
:
{
title
:
'绑定条码'
,
isBlack
:
false
,
backMethod
:
'web'
,
style
:
'zIndex:100;'
,
background
:
''
,
},
showBindingInfo
:
false
,
showEditModal
:
false
,
isCheck
:
false
,
barCode
:
''
,
protocolName
:
''
,
prototypeId
:
''
,
prototypeLogId
:
''
,
isLoading
:
false
,
recordInfo
:
{
name
:
''
,
sex
:
''
,
date
:
''
,
checkName
:
''
},
goodsId
:
''
,
status
:
''
,
errorMessage
:
''
,
detectionRecordId
:
''
,
showProtocol
:
false
,
agreeText
:
''
,
};
},
computed
:
{
},
created
()
{
},
methods
:
{
}
};
</
script
>
<
style
lang=
"scss"
scoped
>
.insurance-binding-code-container
{
width
:
100%
;
background-color
:
#F5F6F8
;
height
:
100%
;
position
:
absolute
;
}
</
style
>
src/views/insurance-detection-detail/index.scss
0 → 100644
浏览文件 @
2dda565e
.d-box
{
background-color
:
#f5f6f8
;
min-height
:
100vh
;
width
:
100%
;
position
:
relative
;
.title
{
position
:
absolute
;
top
:
0
;
left
:
0
;
right
:
0
;
height
:
260px
;
background
:
linear-gradient
(
180deg
,
#00bda5
0%
,
#20c5b0
52%
,
#f5f6f8
100%
);
}
}
.detail-box
{
padding
:
0
12px
;
height
:
auto
;
padding-bottom
:
60px
;
position
:
relative
;
z-index
:
1
;
.status
{
padding
:
16px
0
;
display
:
flex
;
align-items
:
center
;
img
{
width
:
27px
;
}
div
{
padding-left
:
9px
;
width
:
120px
;
height
:
20px
;
font-size
:
20px
;
font-family
:
PingFangSC-Medium
,
PingFang
SC
;
font-weight
:
500
;
color
:
#ffffff
;
line-height
:
20px
;
}
}
.content
{
height
:
auto
;
.info
{
width
:
100%
;
height
:
auto
;
background
:
#ffffff
;
border-radius
:
10px
;
margin-bottom
:
10px
;
padding-top
:
20px
;
.list
{
padding
:
0px
15px
12px
15px
;
display
:
flex
;
justify-content
:
flex-start
;
align-items
:
center
;
.l-left
{
width
:
62px
;
height
:
14px
;
font-size
:
14px
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
font-weight
:
400
;
color
:
#999999
;
line-height
:
14px
;
}
.l-right
{
padding-left
:
2px
;
width
:
auto
;
height
:
auto
;
font-size
:
14px
;
font-family
:
PingFangSC-Medium
,
PingFang
SC
;
font-weight
:
500
;
color
:
#212121
;
flex
:
1
;
line-height
:
20px
;
span
{
display
:
inline-block
;
padding-right
:
15px
;
}
}
}
.list-bottom
{
padding
:
0px
15px
15px
15px
;
.l-b-code
{
padding
:
16px
14px
;
padding-bottom
:
3px
;
height
:
auto
;
background
:
#f7fffe
;
border-radius
:
11px
;
border
:
0
.5px
solid
#ade9e1
;
.l-b-list
{
display
:
flex
;
justify-content
:
flex-start
;
align-items
:
center
;
padding-bottom
:
13px
;
.l-left
{
width
:
auto
;
height
:
15px
;
font-size
:
15px
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
font-weight
:
400
;
color
:
#212121
;
line-height
:
15px
;
}
.l-right
{
padding-left
:
6px
;
height
:
15px
;
font-size
:
15px
;
font-family
:
PingFangSC-Medium
,
PingFang
SC
;
font-weight
:
500
;
color
:
#00bda5
;
line-height
:
15px
;
}
.l-copy
{
text-align
:
center
;
width
:
41px
;
height
:
20px
;
border-radius
:
10px
;
border
:
0
.5px
solid
#00bda5
;
font-size
:
12px
;
font-family
:
PingFangSC-Medium
,
PingFang
SC
;
font-weight
:
500
;
color
:
#00bda5
;
line-height
:
22px
;
margin-left
:
6px
;
margin-top
:
-2px
;
}
}
}
}
}
.flow
{
padding
:
20px
;
height
:
auto
;
background
:
#ffffff
;
border-radius
:
10px
;
.express-step
{
display
:
flex
;
padding-bottom
:
24px
;
position
:
relative
;
justify-content
:
flex-start
;
.express-step-icon
{
width
:
18px
;
height
:
18px
;
margin-right
:
7px
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
position
:
relative
;
z-index
:
2
;
.step-pg
{
margin-left
:
-11px
;
display
:
block
;
width
:
18px
;
height
:
auto
;
}
.oval-pg
{
display
:
block
;
width
:
6px
;
height
:
6px
;
}
}
.express-step-msg
{
.step-title
{
height
:
18px
;
font-size
:
14px
;
font-family
:
PingFangSC-Medium
,
PingFang
SC
;
font-weight
:
700
;
color
:
#999999
;
line-height
:
18px
;
}
.step-m
{
width
:
300px
;
word-break
:break-all
;
margin-top
:
4px
;
font-size
:
13px
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
font-weight
:
400
;
color
:
#999999
;
line-height
:
19px
;
}
.step-unusual
{
color
:
#ff4b33
;
}
.step-time
{
margin-top
:
5px
;
font-size
:
12px
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
font-weight
:
400
;
color
:
#999999
;
line-height
:
12px
;
}
}
.noButton
{
margin-left
:
22px
;
}
&
:
:
before
{
content
:
''
;
position
:
absolute
;
top
:
5px
;
left
:
0
;
display
:
block
;
width
:
6px
;
height
:
6px
;
border-radius
:
50%
;
background
:
#e7e7e7
;
}
&
:
:
after
{
content
:
''
;
position
:
absolute
;
top
:
11px
;
bottom
:
0
;
height
:
calc
(
100%
-
5px
);
left
:
3px
;
display
:
block
;
width
:
1px
;
background
:
#e7e7e7
;
}
&
.first
{
&
:
:
before
{
display
:
none
;
}
}
&
.last
{
padding-bottom
:
0
;
&
:
:
after
{
display
:
none
;
}
}
}
.isComplate
{
&
:
:
after
{
background
:
#00bda5
;
}
&
:
:
before
{
background
:
#00bda5
;
}
.express-step-msg
{
.step-title
{
color
:
#212121
;
}
}
}
.hideCircle
{
&
:
:
before
{
width
:
0
;
display
:
none
;
}
.express-step-msg
{
.step-title
{
color
:
#212121
;
}
}
}
}
}
}
.sumbit-container
{
box-sizing
:
border-box
;
position
:
fixed
;
bottom
:
0
;
left
:
0
;
width
:
100%
;
z-index
:
99
;
padding
:
5px
12px
;
z-index
:
99
;
padding-bottom
:
calc
(
5px
+
env
(
safe-area-inset-bottom
)
/
2
);
background
:
#ffffff
;
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
justify-content
:
center
;
.sumbit-button
{
width
:
352px
;
height
:
40px
;
background
:
#d9d9d9
;
border-radius
:
20px
;
font-family
:
PingFangSC-Semibold
,
PingFang
SC
;
font-weight
:
700
;
color
:
#ffffff
;
font-size
:
16px
;
display
:
flex
;
align-items
:
center
;
background
:
#00bda5
;
justify-content
:
center
;
}
}
src/views/insurance-detection-detail/insurance-detection-detail.vue
0 → 100644
浏览文件 @
2dda565e
<
template
>
<div
class=
"d-box"
>
<page-model
ref=
"PageModel"
:header-info=
"headerInfo"
/>
<div
class=
"title"
/>
<div
class=
"detail-box"
>
<div
class=
"status"
>
<img
v-if=
"waitIcon.indexOf(dataDetail.status) != -1"
src=
"https://files.yunqueyi.com/image/png/common/20220816135321860.png"
alt=
"wait"
>
<img
v-else-if=
"dataDetail.status == 5"
src=
"https://files.yunqueyi.com/image/png/common/20220817141150961.png"
alt=
"success"
>
<img
v-else
src=
"https://files.yunqueyi.com/image/png/common/20220816135250298.png"
alt=
"success"
>
<div>
{{
dataDetail
.
status
|
statusFilter
}}
</div>
</div>
<div
class=
"content"
>
<div
class=
"info"
>
<div
class=
"list"
>
<p
class=
"l-left"
>
受检人:
</p>
<p
class=
"l-right"
>
<span>
{{
dataDetail
.
patientName
||
'--'
}}
</span><span>
{{
dataDetail
.
sex
|
sexFilter
}}
</span><span
class=
"font"
>
{{
dataDetail
.
ageMonth
?
dataDetail
.
ageMonth
+
'月'
:
dataDetail
.
patientAge
+
'岁'
}}
</span>
</p>
</div>
<div
class=
"list"
>
<p
class=
"l-left"
>
检测项目:
</p>
<p
class=
"l-right"
>
{{
dataDetail
.
checkName
||
'--'
}}
</p>
</div>
<div
class=
"list"
>
<p
class=
"l-left"
>
开单医生:
</p>
<p
class=
"l-right"
>
{{
dataDetail
.
doctorName
||
'--'
}}
</p>
</div>
<div
class=
"list"
>
<p
class=
"l-left"
>
检测编号:
</p>
<p
class=
"l-right"
>
{{
dataDetail
.
recordNo
||
'--'
}}
</p>
</div>
<div
v-if=
"dataDetail.status != 0 && dataDetail.status != 1"
class=
"list-bottom"
>
<div
class=
"l-b-code"
>
<div
class=
"l-b-list"
>
<div
class=
"l-left"
>
条形码:
</div>
<div
class=
"l-right"
>
{{
dataDetail
.
sampleCode
||
'--'
}}
</div>
<div
class=
"l-copy"
@
click=
"copyText(dataDetail.sampleCode)"
>
复制
</div>
</div>
<div
v-if=
"[2, 21, 22, 25].includes(Number(dataDetail.status|| 0))"
class=
"l-b-list"
>
<div
class=
"l-left"
>
预期报告生成时间:
</div>
<div
class=
"l-right"
>
{{
dataDetail
.
detectChargeType
==
10
?
dataDetail
.
reportExpectDate
:
dataDetail
.
reportExpectDateHigh
}}
</div>
</div>
<div
v-if=
"dataDetail.status == 3"
class=
"l-b-list"
>
<div
class=
"l-left"
>
报告生成时间
</div>
<div
class=
"l-right"
>
{{
dataDetail
.
reportDate
}}
</div>
</div>
</div>
</div>
</div>
<div
class=
"flow"
>
<div
class=
"f-list"
>
<div
v-for=
"(item, index) in dataList"
:key=
"index"
class=
"express-step"
:class=
"
{
hideCircle: item.status == dataDetail.status,
last: index == dataList.length - 1,
isComplate: item.complate,
}"
>
<div
v-if=
"item.status == dataDetail.status"
class=
"express-step-icon"
>
<!-- 等待 -->
<img
v-if=
"waitIcon.indexOf(item.status) != -1"
class=
"step-pg"
src=
"https://files.yunqueyi.com/image/png/common/20220816120131913.png"
mode=
"aspectFill"
>
<!-- 成功 -->
<img
v-else
class=
"step-pg"
src=
"https://files.yunqueyi.com/image/png/common/2022081612011851.png"
mode=
"aspectFill"
>
</div>
<div
class=
"express-step-msg"
:class=
"
{ noButton: item.status != dataDetail.status }"
>
<div
class=
"step-title"
>
{{
item
.
nodeName
}}
</div>
<div
v-if=
"item.exceptionDetail && item.exceptionDetail.exceptionTypeStr"
class=
"step-m step-unusual"
>
<span
class=
"fb"
>
{{
item
.
exceptionDetail
.
exceptionTypeStr
}}
:
</span>
<span
v-if=
"item.exceptionDetail.exceptionDesc"
class=
"text-abnormal"
>
{{
item
.
exceptionDetail
.
exceptionDesc
}}
</span>
</div>
<div
v-else
class=
"step-m"
:class=
"
{ 'step-unusual': item.status == 5 }"
>
{{
item
.
nodeDesc
}}
</div>
<div
v-if=
"item.nodeTime"
class=
"step-time"
>
{{
item
.
nodeTime
}}
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div
v-if=
"
noShowBottomBtn.indexOf(dataDetail.status) == -1 ||
(dataDetail.status == 6 && !dataDetail.detectOrderType)
"
class=
"sumbit-container"
>
<div
class=
"sumbit-button"
@
click=
"bottomBtnFun"
>
{{
dataDetail
.
status
|
showBtnTextFilter
}}
</div>
</div>
<!-- howBtn == 0 针对诺辉的走单独送检流程 不显示去送检按钮 -->
<div
v-if=
"dataDetail.status == 2 && dataDetail.showSendBtn == 1"
class=
"sumbit-container"
>
<div
class=
"sumbit-button"
@
click=
"bottomBtnFun"
>
去送检
</div>
</div>
</div>
</
template
>
<
script
>
import
{
getDetectionDetail
,
getDetectionDetailProces
}
from
'@/api/detection'
;
export
default
{
filters
:
{
sexFilter
(
val
)
{
const
str
=
val
==
2
?
'女'
:
'男'
;
return
str
;
},
showReportTime
(
val
)
{
console
.
log
(
val
,
'val----==='
);
if
(
val
==
2
||
val
==
22
||
val
==
21
)
{
return
true
;
}
else
{
return
false
;
}
},
statusShowFilter
(
val
)
{
// 10:免费;20:收费
if
(
!
val
||
val
==
1
)
{
return
false
;
}
else
{
return
true
;
}
},
statusFilter
(
type
)
{
const
obj
=
{
0
:
'待完善信息'
,
1
:
'待采样'
,
2
:
'已采样'
,
21
:
'已送检'
,
25
:
'已接收'
,
27
:
'已上机'
,
22
:
'已签收'
,
3
:
'已完成'
,
5
:
'样本失效'
,
6
:
'待支付'
,
};
return
obj
[
type
];
},
showBtnTextFilter
(
status
)
{
// 0 21 2 22
const
obj
=
{
6
:
'立即支付'
,
// 待支付
1
:
'绑定条形码'
,
// 待采样
3
:
'查看报告'
,
// 已完成
2
:
'样本送检'
,
};
return
obj
[
status
];
},
},
data
()
{
return
{
status
:
''
,
headerInfo
:
{
title
:
'检测详情'
,
isBlack
:
false
,
backMethod
:
'web'
,
style
:
'zIndex:100;'
,
background
:
''
,
},
id
:
''
,
dataDetail
:
{},
canClick
:
true
,
needPaybackOrderid
:
''
,
needPaybackGoodId
:
''
,
payAmountData
:
[],
payLogId
:
''
,
// 预支付记录ID
dataList
:
[],
waitIcon
:
[
0
,
1
,
6
],
// icon 显示等待状态
noShowBottomBtn
:
[
0
,
21
,
22
,
5
,
1
,
6
,
2
,
25
,
27
],
// 这几种状态不显示底部操作按钮
};
},
created
()
{
this
.
id
=
this
.
$route
.
query
.
id
||
123
;
this
.
init
();
},
mounted
()
{
},
methods
:
{
init
()
{
getDetectionDetail
(
this
.
id
).
then
((
res
)
=>
{
if
(
res
.
code
===
'000000'
)
{
this
.
dataDetail
=
res
.
data
;
this
.
getDetailProces
();
console
.
log
(
res
,
'eeeeeeeeeee'
,
this
.
dataDetail
);
}
else
{
this
.
$toast
(
res
.
message
);
}
});
},
copyText
(
val
)
{
const
input
=
document
.
createElement
(
'input'
);
input
.
value
=
val
;
document
.
body
.
appendChild
(
input
);
input
.
select
();
input
.
setSelectionRange
(
0
,
input
.
value
.
length
);
document
.
execCommand
(
'Copy'
);
document
.
body
.
removeChild
(
input
);
this
.
$toast
(
'已复制'
);
console
.
log
(
'已复制的内容:'
,
val
);
window
.
scrollTo
(
0
,
1
);
},
sampleDetection
()
{
// 样本送检测sale-mall-crm/sample-inspection?hospitalId=58436
this
.
$router
.
push
({
name
:
'SampleInspection'
,
query
:
{
hospitalId
:
this
.
dataDetail
.
hospitalId
,
},
});
},
// 检测详情
getDetailProces
()
{
getDetectionDetailProces
(
this
.
id
).
then
((
res
)
=>
{
if
(
res
.
code
===
'000000'
)
{
var
flag
=
false
;
const
data
=
res
.
data
||
[];
console
.
log
(
this
.
dataDetail
);
data
.
forEach
((
item
)
=>
{
if
(
item
.
status
==
this
.
dataDetail
.
status
)
{
item
.
complate
=
false
;
flag
=
true
;
}
else
{
console
.
log
(
flag
,
'flag'
);
if
(
!
flag
)
{
item
.
complate
=
true
;
}
else
{
item
.
complate
=
false
;
}
}
});
this
.
dataList
=
data
;
console
.
log
(
this
.
dataList
,
'res111111'
);
}
else
{
this
.
$toast
(
res
.
message
);
}
});
console
.
log
(
'999000999'
);
},
// 查看报告
seeReport
()
{
// window.open(this.dataDetail.reportUrl + '?response-content-type=application/pdf');
const
l
=
this
.
dataDetail
.
reportUrl
+
'?response-content-type=application/pdf'
;
this
.
$DDObj
.
ddOpenLink
({
url
:
l
});
},
bottomBtnFun
()
{
// 底部按钮点击
const
objFun
=
{
3
:
'seeReport'
,
// 已完成 查看报告
// 1: 'goBindCode', // 待采样 绑定条形码
// 6: 'goPay', // 去支付
2
:
'sampleDetection'
,
// 去送检
};
console
.
log
(
this
.
dataDetail
.
status
);
const
funName
=
objFun
[
this
.
dataDetail
.
status
];
console
.
log
(
funName
);
funName
&&
this
[
funName
]();
},
},
};
</
script
>
<
style
lang=
"scss"
scoped
>
@import
'./index.scss'
;
</
style
>
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录