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
提交
99cf5ff8
提交
99cf5ff8
编写于
2月 21, 2023
作者:
张敬贤
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'feature/zjx' into 'develop'
Feature/zjx See merge request
!34
上级
e3b8ff2c
2e865f83
变更
4
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
53 行增加
和
62 行删除
+53
-62
main.js
src/main.js
+3
-3
index.vue
src/views/appoint/index.vue
+6
-0
index.vue
src/views/home/index.vue
+43
-49
insuranceQuestionResult.vue
...ews/insurance-question-result/insuranceQuestionResult.vue
+1
-10
未找到文件。
src/main.js
浏览文件 @
99cf5ff8
...
...
@@ -4,8 +4,8 @@ import '@/router';
console
.
log
(
'router, store, vueApp: '
,
router
,
store
,
vueApp
);
import
'@/assets/js/flexible'
;
import
{
isWeixin
}
from
'./utils/index'
;
import
{
PicaArea
}
from
'pica-area
'
;
console
.
log
(
'PicaArea'
,
PicaArea
);
import
Loading
from
'@/components/loading/loading.js
'
;
// 禁用双指放大
var
lastTouchEnd
=
0
;
document
.
addEventListener
(
'touchstart'
,
function
(
event
)
{
...
...
@@ -56,7 +56,7 @@ if(dd.env.version) {
sessionStorage
.
setItem
(
'headerHeight'
,
0
);
window
.
Vue
.
use
(
PicaArea
);
window
.
Vue
.
use
(
Loading
);
// 设置安全密钥
window
.
_AMapSecurityConfig
=
{
securityJsCode
:
'5dfc1ae6a14ad5c005ffb2ad6d718ae4'
...
...
src/views/appoint/index.vue
浏览文件 @
99cf5ff8
...
...
@@ -31,6 +31,7 @@
<van-field
v-model=
"dectionForm.beneficiaryName"
label=
"受检人"
:disabled=
"isDisabled"
class=
"appoint-form-items"
placeholder=
"请输入受检人姓名"
:rules=
"[{ required: true, message: '请输入受检人姓名' },{
...
...
@@ -45,6 +46,7 @@
<van-field
v-model=
"dectionForm.beneficiaryPhone"
class=
"appoint-form-items"
:disabled=
"isDisabled"
label=
"手机号"
placeholder=
"请输入受检人手机号"
:rules=
"[{ required: true, message: '请输入受检人手机号' },
...
...
@@ -55,6 +57,7 @@
/>
<van-field
v-model=
"dectionForm.beneficiaryIdNum"
:disabled=
"isDisabled"
class=
"appoint-form-items"
label=
"身份证号"
placeholder=
"请输入受检人真实身份证号"
...
...
@@ -259,6 +262,7 @@ export default {
projectEquityNo
:
''
,
yunOrderNo
:
''
,
externalData
:
{},
isDisabled
:
false
,
};
},
computed
:
{
...
...
@@ -284,6 +288,7 @@ export default {
);
},
},
mounted
()
{
...
...
@@ -393,6 +398,7 @@ export default {
this
.
dectionForm
.
beneficiaryName
=
res
.
data
.
beneficiaryName
;
this
.
dectionForm
.
beneficiaryPhone
=
res
.
data
.
beneficiaryPhone
;
this
.
dectionForm
.
beneficiaryIdNum
=
res
.
data
.
beneficiaryIdNum
;
this
.
isDisabled
=
(
this
.
dectionForm
.
beneficiaryName
!=
''
&&
this
.
dectionForm
.
beneficiaryPhone
!=
''
&&
this
.
dectionForm
.
beneficiaryIdNum
!=
''
)
&&
(
this
.
dectionForm
.
beneficiaryName
&&
this
.
dectionForm
.
beneficiaryPhone
&&
this
.
dectionForm
.
beneficiaryIdNum
);
this
.
$store
.
dispatch
(
'home/setOrderInfo'
,
res
.
data
);
});
...
...
src/views/home/index.vue
浏览文件 @
99cf5ff8
...
...
@@ -8,44 +8,42 @@ import {getDetectionName} from '@/api/appoint';
export
default
{
data
()
{
return
{
// 无问卷-0001 有问卷未填写-0101 已填写问卷未出结果-0102 已出结果无需领用-0401 已出结果未预约-0201 已预约未采样-0301 已预约已采样-0302
// // 0102 已填写问卷
// // 0201 待预约
// // 0202 已预约
// // 0203 已取消待重新预约(暂时无用)
// // 0301 待采样 (暂时无用)
// // 0302 已采样
// // 0303 待重新采样
// // 0901 已结束
// // 0902 已出报告
// // 变化如下:
// // 原来的 已出报告状态从0304变更为0901, 原来的已结束状态0401变更为0902
// STATUS_CODE_0101("0101", "未填写问卷"),
// STATUS_CODE_0102("0102", "已填写问卷"),
// STATUS_CODE_0201("0201", "待预约"),
// STATUS_CODE_0202("0202", "已预约"),
// STATUS_CODE_0203("0203", "已取消待重新预约"),
// STATUS_CODE_0301("0301", "待采样"),
// STATUS_CODE_0302("0302", "已采样"),
// STATUS_CODE_0303("0303", "待重新采样"),
// STATUS_CODE_0901("0901", "已出报告"),
// STATUS_CODE_0902("0902", "已结束")
routerMap
:{
//
'0001': '/appoint',
//
'0101': null,
'0001'
:
'/appoint'
,
'0101'
:
null
,
'0102'
:
'/insuranceQuestionBack'
,
// '0401': '/insuranceQuestionResult',
'0201'
:
'/appoint'
,
'0202'
:
'/appoint-details'
,
//
'0203': '/appoint-details',
'0203'
:
'/appoint-details'
,
'0302'
:
'/insuranceDetectionDetail'
,
'0303'
:
'/insuranceBindCode'
,
'0901'
:
'/insuranceQuestionResult'
,
// '0902': '/insuranceBindCode
',
'0902'
:
'/insuranceQuestionResult
'
,
},
dectionData
:
{},
projectEquityNo
:
''
,
o
rderNo
:
''
,
externalO
rderNo
:
''
,
query
:{}
};
},
mounted
()
{
const
{
projectEquityNo
,
o
rderNo
}
=
this
.
$route
.
query
;
const
{
projectEquityNo
,
externalO
rderNo
}
=
this
.
$route
.
query
;
this
.
query
=
this
.
$route
.
query
;
this
.
projectEquityNo
=
projectEquityNo
;
this
.
orderNo
=
o
rderNo
;
this
.
externalOrderNo
=
externalO
rderNo
;
this
.
getJumpPageStatus
();
},
methods
:
{
...
...
@@ -65,8 +63,9 @@ export default {
// 获取跳转状态
getJumpPageStatus
()
{
const
data
=
{
orderNo
:
this
.
orderNo
,
projectEquityNo
:
this
.
projectEquityNo
externalOrderNo
:
this
.
externalOrderNo
,
projectEquityNo
:
this
.
projectEquityNo
};
getJumpPageStatus
(
data
).
then
(
res
=>
{
if
(
res
.
code
==
'000000'
)
{
...
...
@@ -85,29 +84,24 @@ export default {
this
.
status
=
res
.
data
.
status
;
this
.
getDetectionName
(
this
.
yunOrderNo
);
switch
(
res
.
data
.
status
)
{
case
'0001'
:
this
.
turnToPage
(
this
.
routerMap
[
this
.
status
],
this
.
query
);
break
;
case
'0101'
:
// this.turnToPage(this.routerMap[ this.status], this.query);
// 跳转到问卷页面
window
.
location
.
href
=
res
.
data
.
questionnaireUrl
;
break
;
case
'0001'
:
case
'0102'
:
// 跳转到结果页面;
this
.
turnToPage
(
this
.
routerMap
[
this
.
status
],
this
.
query
);
break
;
case
'0401'
:
this
.
query
.
needDetect
=
1
;
this
.
turnToPage
(
this
.
routerMap
[
this
.
status
],
this
.
query
);
break
;
case
'0201'
:
case
'0202'
:
case
'0303'
:
case
'0902'
:
this
.
turnToPage
(
this
.
routerMap
[
this
.
status
],
this
.
query
);
break
;
case
'0301'
:
case
'0901'
:
this
.
query
.
needDetect
=
1
;
this
.
turnToPage
(
this
.
routerMap
[
this
.
status
],
this
.
query
);
break
;
case
'0302'
:
this
.
query
.
detectionRecordId
=
res
.
data
.
detectionRecordId
;
this
.
turnToPage
(
this
.
routerMap
[
this
.
status
],
this
.
query
);
break
;
default
:
...
...
src/views/insurance-question-result/insuranceQuestionResult.vue
浏览文件 @
99cf5ff8
...
...
@@ -82,16 +82,6 @@ export default {
projectEquityNo
:
''
,
orderNo
:
''
,
yunOrderNo
:
''
,
// 无问卷-0001 有问卷未填写-0101 已填写问卷未出结果-0102 已出结果无需领用-0401 已出结果未预约-0201 已预约未采样-0301 已预约已采样-0302
routerMap
:
{
'0001'
:
null
,
'0101'
:
null
,
'0102'
:
null
,
'0401'
:
null
,
'0201'
:
'/appoint'
,
'0301'
:
null
,
'0302'
:
null
,
},
status
:
null
,
query
:
{},
buttonStatus
:
false
...
...
@@ -102,6 +92,7 @@ export default {
console
.
log
(
11223
);
const
{
query
}
=
this
.
$route
;
this
.
query
=
query
;
this
.
needDetect
=
query
.
needDetect
===
1
;
this
.
getButtonStatus
(
query
.
yunOrderNo
);
},
methods
:
{
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录