Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mongo-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ui
mongo-ui
Commits
85f4185e
Commit
85f4185e
authored
Aug 21, 2020
by
郭志伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 问题修复
parent
41a0daec
Changes
11
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
3504 additions
and
10 deletions
+3504
-10
china.js
src/api/china.js
+3356
-0
PopupAreaPicker.vue
src/components/PopupAreaPicker.vue
+1
-1
popupPicker.mixin.js
src/mixins/popupPicker.mixin.js
+3
-1
http.js
src/service/http.js
+7
-1
index.vue
src/views/Consultant/Exclusive/index.vue
+1
-1
index.vue
src/views/Consultant/Question/index.vue
+4
-0
CIIDetail.vue
src/views/Goods/Detail/CIIDetail.vue
+2
-1
MIDetail.vue
src/views/Goods/Detail/MIDetail.vue
+2
-1
InsurePersonForm.vue
src/views/Goods/Detail/modules/InsurePersonForm.vue
+64
-2
index.less
src/views/Policy/Add/index.less
+6
-0
index.vue
src/views/Policy/Add/index.vue
+58
-2
No files found.
src/api/china.js
0 → 100644
View file @
85f4185e
This diff is collapsed.
Click to expand it.
src/components/PopupAreaPicker.vue
View file @
85f4185e
...
...
@@ -12,7 +12,7 @@
<
script
>
import
popupPickerMixin
from
"
../mixins/popupPicker.mixin.js
"
;
import
areaList
from
"
@
qg/cherry-ui/src/area/demo
/china
"
;
import
areaList
from
"
@
/api
/china
"
;
export
default
{
name
:
"
PopupAreaPicker
"
,
mixins
:
[
popupPickerMixin
],
...
...
src/mixins/popupPicker.mixin.js
View file @
85f4185e
...
...
@@ -2,7 +2,7 @@
* @Description: PopupPicker mixin
* @Date: 2020-07-28 19:46:31
* @LastEditors: gzw
* @LastEditTime: 2020-08-
19 18:08:05
* @LastEditTime: 2020-08-
21 15:10:01
*/
// TODO 默认值需要处理
...
...
@@ -39,6 +39,8 @@ export default {
this
.
$refs
[
this
.
refName
].
refreshColumns
();
this
.
setDefaultVal
();
},
500
);
}
else
{
this
.
refreshed
=
false
;
}
}
// value: {
...
...
src/service/http.js
View file @
85f4185e
//引入axios
import
store
from
"
@/store
"
;
import
router
from
"
@/router
"
;
import
axios
from
"
axios
"
;
import
cherry
from
"
@qg/cherry-ui
"
;
import
config
from
"
../config
"
;
...
...
@@ -77,7 +78,12 @@ axios.interceptors.response.use(
delete
pending
[
response
.
config
.
url
];
if
(
response
.
data
.
code
===
"
0
"
)
return
response
.
data
.
data
;
// 特殊处理,下单已存在时,跳转到保单列表
if
(
response
.
config
.
url
===
"
policy_order
"
&&
response
.
data
.
code
===
"
40601
"
)
{
setTimeout
(()
=>
{
router
.
push
(
"
/policy
"
);
},
1000
);
}
Notify
({
type
:
"
danger
"
,
message
:
response
.
data
.
msg
||
"
后端服务异常
"
});
store
.
dispatch
(
"
setIsPayWait
"
,
false
);
return
Promise
.
reject
(
response
.
data
);
...
...
src/views/Consultant/Exclusive/index.vue
View file @
85f4185e
...
...
@@ -6,7 +6,7 @@
<h1>
{{
info
.
name
}}
</h1>
<cr-tag><svg-icon
icon-class=
"medal"
/>
{{
info
.
role
}}
</cr-tag>
<small>
执业保险销售资质:
</small>
<small
v-html=
"`$
{info.card.slice(0, 15)}
<br
/>
${info.
i
d.slice(15)}`">
</small>
<small
v-html=
"`$
{info.card.slice(0, 15)}
<br
/>
${info.
car
d.slice(15)}`">
</small>
</div>
<cr-image
class=
"cul-hd-img"
...
...
src/views/Consultant/Question/index.vue
View file @
85f4185e
...
...
@@ -238,6 +238,7 @@ export default {
sub
:
"
请预留您的信息,保险师会在您方便时联系您
"
}
],
// 给谁买
insuredOptions
:
[
{
label
:
"
本人
"
,
value
:
"
本人
"
},
{
label
:
"
配偶
"
,
value
:
"
配偶
"
},
...
...
@@ -246,6 +247,7 @@ export default {
{
label
:
"
父亲
"
,
value
:
"
父亲
"
},
{
label
:
"
母亲
"
,
value
:
"
母亲
"
}
],
// 有无社保
hasSocialOptions
:
[
{
label
:
"
有
"
,
value
:
"
1
"
},
{
label
:
"
无
"
,
value
:
"
0
"
}
...
...
@@ -254,7 +256,9 @@ export default {
{
label
:
"
男
"
,
value
:
"
0
"
},
{
label
:
"
女
"
,
value
:
"
1
"
}
],
// 收入
incomeOptions
:
[
"
10万
"
,
"
20万
"
,
"
25万
"
,
"
30万
"
],
// 贷款
loanOptions
:
[
"
无房贷
"
,
"
1000元
"
,
"
2000元
"
,
"
3000元
"
,
"
4000元
"
],
solveOptions
:
[
{
label
:
"
之前从没买过保险,打算配置保险
"
,
value
:
"
之前从没买过保险,打算配置保险
"
},
...
...
src/views/Goods/Detail/CIIDetail.vue
View file @
85f4185e
...
...
@@ -355,9 +355,10 @@ export default {
const
res
=
await
trail
(
_param
);
if
(
res
)
{
price
[
2
]
=
payType
===
"
2
"
?
""
:
"
首月
"
;
price
[
0
]
=
res
.
downPayPrice
;
subPrice
[
1
]
=
"
元/月
"
;
subPrice
[
0
]
=
res
.
regularPrice
;
subPrice
[
0
]
=
payType
===
"
2
"
?
""
:
res
.
regularPrice
;
this
.
goodActionInfo
=
{
title
:
price
,
sub
:
subPrice
[
0
]
?
subPrice
:
""
...
...
src/views/Goods/Detail/MIDetail.vue
View file @
85f4185e
...
...
@@ -340,8 +340,9 @@ export default {
};
const
res
=
await
trail
(
_param
);
if
(
res
)
{
price
[
2
]
=
payType
===
"
2
"
?
""
:
"
首月
"
;
price
[
0
]
=
res
.
downPayPrice
;
subPrice
[
0
]
=
res
.
regularPrice
;
subPrice
[
0
]
=
payType
===
"
2
"
?
""
:
res
.
regularPrice
;
subPrice
[
1
]
=
"
元/月
"
;
this
.
goodActionInfo
=
{
title
:
price
,
...
...
src/views/Goods/Detail/modules/InsurePersonForm.vue
View file @
85f4185e
...
...
@@ -60,7 +60,15 @@
:readonly=
"infoReadonly"
label=
"姓名"
:rules=
"[{ required: true, message: '请输入姓名' }]"
/>
>
<cr-icon
type=
"arrow"
slot=
"button"
v-if=
"relationList.length > 1"
class=
"relation-select"
@
click=
"showRelations = true"
/>
</cr-field>
<cr-field
name=
"relativeIdNo"
v-if=
"formData.relation !== '1'"
...
...
@@ -119,6 +127,16 @@
title=
"我们常说的社保都包括哪些?"
confirm-btn=
"我知道了"
/>
<cr-popup
v-model=
"showRelations"
position=
"bottom"
get-container=
"body"
>
<cr-picker
ref=
"relationsPicker"
:columns=
"relationList"
value-key=
"nameMask"
show-toolbar
@
cancel=
"onRelationCancel"
@
confirm=
"onRelationConfirm"
/>
</cr-popup>
</div>
</template>
...
...
@@ -170,10 +188,25 @@ export default {
xyqbAuthState
:
localStorage
.
get
(
"
xyqbAuthState
"
),
selfInfoReadonly
:
false
,
infoReadonly
:
false
,
question
:
false
question
:
false
,
showRelations
:
false
,
refreshed
:
false
,
relationList
:
[]
};
},
watch
:
{
showRelations
(
val
)
{
if
(
val
&&
!
this
.
refreshed
&&
this
.
$refs
[
"
relationsPicker
"
])
{
const
$relationsPicker
=
this
.
$refs
[
"
relationsPicker
"
];
$relationsPicker
.
formattedColumns
=
$relationsPicker
.
formatColumns
(
this
.
relationList
);
setTimeout
(()
=>
{
this
.
refreshed
=
true
;
$relationsPicker
.
refreshColumns
();
},
500
);
}
else
{
this
.
refreshed
=
false
;
}
},
detailType
:
{
immediate
:
true
,
handler
(
val
)
{
...
...
@@ -240,6 +273,28 @@ export default {
this
.
setAuthXyqb
(
2
);
}
},
onRelationCancel
()
{
this
.
showRelations
=
false
;
},
onRelationConfirm
(
picker
,
res
)
{
// console.log(res[0]);
const
{
idNoMask
,
nameMask
,
userInfoSecId
,
socialSecurity
}
=
res
[
0
];
this
.
formData
=
{
...
this
.
formData
,
...{
idNo
:
idNoMask
,
name
:
nameMask
,
userInfoSecId
,
socialSecurity
:
socialSecurity
===
""
||
typeof
socialSecurity
===
"
undefined
"
?
""
:
socialSecurity
?
"
1
"
:
"
0
"
}
};
this
.
onRelationCancel
();
},
relationChange
(
relation
=
this
.
formData
.
relation
)
{
this
.
familyList
.
forEach
(
item
=>
{
const
{
...
...
@@ -301,6 +356,7 @@ export default {
}
this
.
infoReadonly
=
false
;
}
this
.
relationList
=
userArray
.
length
>
1
?
userArray
:
[];
this
.
formData
=
{
...
this
.
formData
,
...{
...
...
@@ -446,4 +502,10 @@ export default {
top: 10px;
left: -35px;
}
.relation-select {
width: 13px;
height: 22px;
text-align: center;
line-height: 22px;
}
</
style
>
src/views/Policy/Add/index.less
View file @
85f4185e
...
...
@@ -112,4 +112,10 @@
}
}
}
}
.relation-select {
width: 13px;
height: 22px;
text-align: center;
line-height: 22px;
}
\ No newline at end of file
src/views/Policy/Add/index.vue
View file @
85f4185e
...
...
@@ -229,7 +229,15 @@
message: '请填写正确的被保人姓名,最少2个中文字符'
}
]"
/>
>
<cr-icon
type=
"arrow"
slot=
"button"
v-if=
"relationList.length > 1"
class=
"relation-select"
@
click=
"showRelations = true"
/>
</cr-field>
<cr-field
v-model=
"formData.insuredUserInfo.idNo"
name=
"insuredUserInfo_idNo"
...
...
@@ -459,6 +467,16 @@
:url=
"pupopData.url"
>
</popup-with-iframe>
<cr-popup
v-model=
"showRelations"
position=
"bottom"
get-container=
"body"
>
<cr-picker
ref=
"relationsPicker"
:columns=
"relationList"
value-key=
"nameMask"
show-toolbar
@
cancel=
"onRelationCancel"
@
confirm=
"onRelationConfirm"
/>
</cr-popup>
</div>
</template>
...
...
@@ -558,10 +576,25 @@ export default {
insuredAmountOptions
,
bankInfo
,
selfInfoReadonly
:
false
,
infoReadonly
:
false
infoReadonly
:
false
,
showRelations
:
false
,
refreshed
:
false
,
relationList
:
[]
};
},
watch
:
{
showRelations
(
val
)
{
if
(
val
&&
!
this
.
refreshed
&&
this
.
$refs
[
"
relationsPicker
"
])
{
const
$relationsPicker
=
this
.
$refs
[
"
relationsPicker
"
];
$relationsPicker
.
formattedColumns
=
$relationsPicker
.
formatColumns
(
this
.
relationList
);
setTimeout
(()
=>
{
this
.
refreshed
=
true
;
$relationsPicker
.
refreshColumns
();
},
500
);
}
else
{
this
.
refreshed
=
false
;
}
},
popupShow
(
val
)
{
if
(
!
val
&&
this
.
currentPupopIndex
===
6
)
this
.
currentPupopIndex
=
null
;
},
...
...
@@ -693,6 +726,28 @@ export default {
this
.
setAuthXyqb
(
2
);
}
},
onRelationCancel
()
{
this
.
showRelations
=
false
;
},
onRelationConfirm
(
picker
,
res
)
{
// console.log(res[0]);
const
{
idNoMask
,
nameMask
,
userInfoSecId
,
socialSecurity
}
=
res
[
0
];
this
.
formData
.
insuredUserInfo
=
{
...
this
.
formData
.
insuredUserInfo
,
...{
idNo
:
idNoMask
,
name
:
nameMask
,
userInfoSecId
,
socialSecurity
:
socialSecurity
===
""
||
typeof
socialSecurity
===
"
undefined
"
?
""
:
socialSecurity
?
"
1
"
:
"
0
"
}
};
this
.
onRelationCancel
();
},
onFormSubmit
()
{
this
.
goInsureState
=
true
;
},
...
...
@@ -758,6 +813,7 @@ export default {
}
this
.
infoReadonly
=
false
;
}
this
.
relationList
=
userArray
.
length
>
1
?
userArray
:
[];
this
.
formData
.
insuredUserInfo
=
{
...
this
.
formData
.
insuredUserInfo
,
...{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment