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
66b3dcd2
Commit
66b3dcd2
authored
Aug 25, 2020
by
郭志伟
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fix/goods' into 'master'
fix: userid See merge request
!75
parents
1933546d
bcf63e92
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
18 deletions
+30
-18
validation.js
src/service/validation.js
+2
-2
AIDetail.vue
src/views/Goods/Detail/AIDetail.vue
+5
-2
InsurePersonForm.vue
src/views/Goods/Detail/modules/InsurePersonForm.vue
+23
-14
No files found.
src/service/validation.js
View file @
66b3dcd2
...
...
@@ -270,9 +270,9 @@ export function isBankNumber(str) {
// 判断中文地址不能少于5个汉字,且必须有一位数字
export
function
isChnAddress
(
str
)
{
const
isNum
=
/
[
0-9
]\d
*/
;
const
isChinese_var
=
/
[\u
0391-
\u
FFE5
]{5,}
/g
;
const
isChinese_var
=
/
[\u
4e00-
\u
9fa5
]
/g
;
if
(
!
isNull
(
str
))
{
return
isNum
.
test
(
str
)
&&
isChinese_var
.
test
(
str
)
;
return
isNum
.
test
(
str
)
&&
str
.
match
(
isChinese_var
).
length
>=
5
;
}
return
false
;
}
...
...
src/views/Goods/Detail/AIDetail.vue
View file @
66b3dcd2
...
...
@@ -167,6 +167,7 @@ export default {
let
idNoWho
=
!
relation
||
relation
===
"
1
"
?
selfIdNo
:
idNo
;
let
oldidNoWho
=
!
relation
||
relation
===
"
1
"
?
oldselfIdNo
:
oldidNo
;
if
(
!
relation
&&
idNoWho
&&
idNoWho
.
indexOf
(
"
************
"
)
===
-
1
&&
!
isIdNo
(
idNoWho
)
&&
...
...
@@ -309,15 +310,17 @@ export default {
},
async
calFee
()
{
let
{
price
}
=
this
.
headerInfo
;
const
{
idNo
,
selfIdNo
,
relation
,
amountInsured
,
userInfoSecId
}
=
this
.
formData
;
const
{
idNo
,
selfIdNo
,
relation
,
amountInsured
,
userInfoSecId
,
selfSecId
}
=
this
.
formData
;
let
idNoWho
=
!
relation
||
relation
===
"
1
"
?
selfIdNo
:
idNo
;
let
idWho
=
!
relation
||
relation
===
"
1
"
?
selfSecId
:
userInfoSecId
;
idWho
=
idNoWho
.
indexOf
(
"
**
"
)
>
-
1
?
idWho
||
undefined
:
undefined
;
if
(
!
idNoWho
||
!
amountInsured
)
return
;
const
_param
=
{
productNo
:
this
.
goodId
,
productUserInfo
:
{
insuredUserInfo
:
{
idNo
:
idNoWho
,
userInfoSecId
:
userInfoSecId
?
userInfoSecId
:
undefined
userInfoSecId
:
idWho
},
productItem
:
{
amountInsured
...
...
src/views/Goods/Detail/modules/InsurePersonForm.vue
View file @
66b3dcd2
...
...
@@ -387,20 +387,23 @@ export default {
this
.
infoReadonly
=
false
;
}
this
.
relationList
=
userArray
.
length
>
1
?
userArray
:
[];
this
.
formData
=
{
...
this
.
formData
,
...{
name
,
idNo
,
userInfoSecId
,
socialSecurity
:
socialSecurity
===
""
||
typeof
socialSecurity
===
"
undefined
"
?
""
:
socialSecurity
?
"
1
"
:
"
0
"
}
};
setTimeout
(()
=>
{
this
.
formData
=
{
...
this
.
formData
,
...{
name
,
idNo
,
userInfoSecId
,
socialSecurity
:
socialSecurity
===
""
||
typeof
socialSecurity
===
"
undefined
"
?
""
:
socialSecurity
?
"
1
"
:
"
0
"
}
};
});
if
(
!
this
.
formData
.
socialSecurity
&&
this
.
radioOptions
.
medicalOptions
)
{
try
{
this
.
formData
.
socialSecurity
=
localStorage
.
get
(
this
.
autoSaveKey
).
socialSecurity
;
...
...
@@ -418,6 +421,12 @@ export default {
this
.
familyList
=
res
;
if
(
this
.
hasAutoSaveData
(
this
.
autoSaveKey
))
{
this
.
getSaveInfoHandler
(
this
.
autoSaveKey
,
AUTO_SAVE_TARGET
);
if
(
this
.
formData
.
relation
)
{
const
userArray
=
this
.
familyList
.
filter
(
item
=>
item
.
relation
===
+
this
.
formData
.
relation
);
this
.
relationList
=
userArray
.
length
>
1
?
userArray
:
[];
}
}
else
{
let
relation
=
this
.
formData
.
relation
;
(
this
.
showAuthXyqb
||
this
.
mongoToken
)
&&
this
.
relationChange
(
relation
);
...
...
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