Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
ydLife
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Sweet Zhang
ydLife
Commits
748db9fb
Commit
748db9fb
authored
Mar 13, 2020
by
Chao Sun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
我的商机优化
parent
7ac1ccb1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
45 additions
and
30 deletions
+45
-30
src/app/my/my-business-detail/my-business-detail.component.html
+9
-7
src/app/my/my-business-detail/my-business-detail.component.ts
+36
-23
No files found.
src/app/my/my-business-detail/my-business-detail.component.html
View file @
748db9fb
...
...
@@ -26,12 +26,14 @@
<span>
性别
</span>
<div
class=
"sexWrapper"
>
<button
class=
"form-control sex"
[
ngClass
]="{'
sexBtn
'
:editBusiness
?.
gender=
='1'}"
(
click
)="
selectedGender
('
1
')"
[
disabled
]="
readonlyFlag
"
>
男
(
click
)="
selectedGender
('
1
')"
[
disabled
]="
readonlyFlag
"
*
ngIf=
"sexFlag"
>
男
</button>
<button
class=
"form-control sex"
[
ngClass
]="{'
sexBtn
'
:editBusiness
?.
gender=
='2'}"
(
click
)="
selectedGender
('
2
')"
[
disabled
]="
readonlyFlag
"
>
女
(
click
)="
selectedGender
('
2
')"
[
disabled
]="
readonlyFlag
"
*
ngIf=
"sexFlag"
>
女
</button>
</div>
<input
class=
"form-control"
type=
"text"
placeholder=
"暂无性别信息"
*
ngIf=
"!sexFlag"
disabled
/>
</div>
<div
class=
"contentItem"
>
<span>
手机
</span>
...
...
@@ -87,13 +89,16 @@
</div>
<div
class=
"content"
*
ngIf=
"selectedId===2"
>
<div
style=
"text-align: center;font-size: 16px;margin-top: 10px;"
*
ngIf=
"opportunitySurveyAnswersList?.length==0"
>
暂无问卷信息
</div>
<div
class=
"answerContent"
*
ngFor=
"let surveyItem of opportunitySurveyAnswersList"
>
<div
class=
"questionTitle"
>
{{surveyItem.questionName}}
</div>
<div
class=
"questionContent"
>
{{surveyItem.optionName}}
</div>
</div>
</div>
<div
class=
"content"
*
ngIf=
"selected===4"
>
<div
*
ngIf=
"isCompletedQuestionnaire!=1
"
>
暂无方案
</div>
<div
class=
"content"
*
ngIf=
"selected
Id
===4"
>
<div
style=
"text-align: center;font-size: 16px;margin-top: 10px;"
*
ngIf=
"isCompletedQuestionnaire!=3
"
>
暂无方案
</div>
</div>
<div
class=
"content"
*
ngIf=
"selectedId===3"
>
<!--编辑框-->
...
...
@@ -128,11 +133,8 @@
<div
style=
"display: flex;justify-content: space-between;"
>
<div
class=
"updatedAt"
>
{{opportunityRecordItem.noticeDate}}
</div>
<div
class=
"opportunityRecordItem"
>
{{lifeCommonService.checkStr(opportunityRecordItem.mdDropOptionId)}}
</div>
</div>
<div
class=
"salesNotice"
>
{{opportunityRecordItem.salesNotice}}
</div>
</li>
</ul>
...
...
src/app/my/my-business-detail/my-business-detail.component.ts
View file @
748db9fb
...
...
@@ -41,7 +41,8 @@ export class MyBusinessDetailComponent implements OnInit {
opportunityRecordNoticeDate
:
Date
;
// 跟进状态
opportunityRecordId
:
number
;
//性别显示
sexFlag
:
boolean
;
constructor
(
private
activateRoute
:
ActivatedRoute
,
private
myService
:
MyService
,
public
lifeCommonService
:
LifeCommonService
)
{
this
.
titleList
=
[
...
...
@@ -67,12 +68,13 @@ export class MyBusinessDetailComponent implements OnInit {
editInfo
()
{
this
.
readonlyFlag
=
false
;
this
.
sexFlag
=
true
;
}
selectTab
(
id
)
{
this
.
selectedId
=
id
;
if
(
id
===
4
)
{
if
(
this
.
isCompletedQuestionnaire
==
1
)
{
if
(
this
.
isCompletedQuestionnaire
==
3
)
{
window
.
location
.
href
=
`https://
${
window
.
location
.
host
}
/customizedPlanList/3?orderId=
${
this
.
orderId
}
&customerId=
${
this
.
opportunityId
}
`
// window.location.href = `https://${window.location.host}/customizedPlanList/3?orderId=8373`
...
...
@@ -109,6 +111,11 @@ export class MyBusinessDetailComponent implements OnInit {
this
.
opportunityCustomerTags
=
res
[
'data'
][
'opportunityBasicInformationInfo'
][
'opportunityCustomerTags'
]
this
.
opportunityRecordInfos
=
res
[
'data'
][
'opportunityRecordInfos'
];
this
.
isCompletedQuestionnaire
=
res
[
'data'
][
'opportunityConsultationInfo'
][
'isCompletedQuestionnaire'
];
if
(
!
res
[
'data'
][
'opportunityBasicInformationInfo'
][
'gender'
])
{
this
.
sexFlag
=
false
;
}
else
{
this
.
sexFlag
=
true
;
}
if
(
this
.
opportunityCustomerTags
.
length
>
0
)
{
for
(
let
i
=
0
;
i
<
this
.
opportunityCustomerTags
.
length
;
i
++
)
{
for
(
let
j
=
0
;
j
<
this
.
tagList
.
length
;
j
++
)
{
...
...
@@ -178,29 +185,30 @@ export class MyBusinessDetailComponent implements OnInit {
}
})
const
OVERZERO_REG
=
/^
[
0-9
]
*
[
1-9
][
0-9
]
*$/
;
if
(
!
OVERZERO_REG
.
test
(
this
.
editBusiness
.
age
))
{
if
(
parseInt
(
this
.
editBusiness
.
age
)
>
100
)
{
this
.
toastDialog
=
true
;
this
.
toastInfo
=
{
status
:
1
,
msg
:
'年龄不能大于三位数!'
,
timeout
:
3000
,
align
:
'center'
};
return
;
}
else
{
this
.
toastDialog
=
true
;
this
.
toastInfo
=
{
status
:
1
,
msg
:
'年龄只能输入正整数!'
,
timeout
:
3000
,
align
:
'center'
};
return
;
}
if
(
this
.
editBusiness
.
age
)
{
if
(
!
OVERZERO_REG
.
test
(
this
.
editBusiness
.
age
))
{
if
(
parseInt
(
this
.
editBusiness
.
age
)
>
100
)
{
this
.
toastDialog
=
true
;
this
.
toastInfo
=
{
status
:
1
,
msg
:
'年龄不能大于三位数!'
,
timeout
:
3000
,
align
:
'center'
};
return
;
}
else
{
this
.
toastDialog
=
true
;
this
.
toastInfo
=
{
status
:
1
,
msg
:
'年龄只能输入正整数!'
,
timeout
:
3000
,
align
:
'center'
};
return
;
}
}
}
this
.
editBusiness
=
{
...
this
.
editBusiness
,
opportunityCustomerTags
:
newTag
...
...
@@ -215,6 +223,11 @@ export class MyBusinessDetailComponent implements OnInit {
align
:
'center'
};
this
.
readonlyFlag
=
true
;
if
(
this
.
editBusiness
.
gender
)
{
this
.
sexFlag
=
true
;
}
else
{
this
.
sexFlag
=
false
;
}
}
})
}
...
...
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