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
ed769d62
Commit
ed769d62
authored
May 12, 2020
by
Chao Sun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增商机微调
parent
70095582
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
35 additions
and
24 deletions
+35
-24
package.json
+1
-1
src/app/domain/businessQuery.ts
+1
-1
src/app/my/my-business-detail/my-business-detail.component.html
+14
-8
src/app/my/my-business-detail/my-business-detail.component.scss
+5
-1
src/app/my/my-business-detail/my-business-detail.component.ts
+14
-13
No files found.
package.json
View file @
ed769d62
...
...
@@ -3,7 +3,7 @@
"version"
:
"0.0.0"
,
"scripts"
:
{
"ng"
:
"ng"
,
"start"
:
"ng serve --host 192.168.1.
169
"
,
"start"
:
"ng serve --host 192.168.1.
25
"
,
"build"
:
"ng build -c=dev --prod"
,
"test"
:
"ng test"
,
"lint"
:
"ng lint"
,
...
...
src/app/domain/businessQuery.ts
View file @
ed769d62
...
...
@@ -2,7 +2,7 @@ export class BusinessQuery {
constructor
(
public
opportunityId
?:
string
,
public
age
?:
string
,
public
name
?:
string
,
public
gender
?:
string
,
public
gender
?:
any
,
public
mobileNo
?:
string
,
public
weChat
?:
string
,
public
otherContacts
?:
string
,
...
...
src/app/my/my-business-detail/my-business-detail.component.html
View file @
ed769d62
...
...
@@ -44,7 +44,8 @@
<span>
血型
</span>
<select
name=
"bloodTypeId"
id=
"bloodTypeId"
class=
"form-control"
[
disabled
]="
readonlyFlag
"
>
<option
value=
""
>
{{readonlyFlag ?'暂无血型信息':'请选择血型'}}
</option>
<option
*
ngFor=
"let businessBloodItem of businessBloodList"
value=
"businessBloodItem.id"
>
{{businessBloodItem.dropOptionName}}
</option>
<option
*
ngFor=
"let businessBloodItem of businessBloodList"
value=
"businessBloodItem.id"
>
{{businessBloodItem.dropOptionName}}
</option>
</select>
<!--<input class="form-control" type="text" placeholder="{{readonlyFlag ?'暂无血型信息':'请选择血型'}}"-->
<!--[disabled]="readonlyFlag" [(ngModel)]="editBusiness.bloodTypeId" (blur)="inputBlur()" />-->
...
...
@@ -53,7 +54,8 @@
<span>
星座
</span>
<select
name=
"businessZodiacId"
id=
"businessZodiacId"
class=
"form-control"
[
disabled
]="
readonlyFlag
"
>
<option
value=
""
>
{{readonlyFlag ?'暂无星座信息':'请选择星座'}}
</option>
<option
*
ngFor=
"let businessZodiacItem of businessZodiacList"
value=
"businessZodiacItem.id"
>
{{businessZodiacItem.dropOptionName}}
</option>
<option
*
ngFor=
"let businessZodiacItem of businessZodiacList"
value=
"businessZodiacItem.id"
>
{{businessZodiacItem.dropOptionName}}
</option>
</select>
<!--<input class="form-control" type="text" placeholder="{{readonlyFlag ?'暂无星座信息':'请选择星座'}}"-->
<!--[disabled]="readonlyFlag" [(ngModel)]="editBusiness.zodiacTypeId" (blur)="inputBlur()" />-->
...
...
@@ -62,10 +64,12 @@
<div
class=
"wrapper_item"
>
<div
class=
"contentItem"
>
<span>
手机
</span>
<a
style=
"text-decoration:none;color: #333;margin-right: 16px;"
href=
"tel:{{editBusiness.mobileNo}}"
>
<a
*
ngIf=
"opportunityId!=0"
style=
"text-decoration:none;color: #333;margin-right: 16px;"
href=
"tel:{{editBusiness.mobileNo}}"
>
<i
class=
"iconfont icon-dianhua"
style=
"color: #e10d0d;"
></i>
{{editBusiness.mobileNo}}
</a>
<input
class=
"form-control"
type=
"text"
[(
ngModel
)]="
editBusiness
.
mobileNo
"
*
ngIf=
"opportunityId==0"
/>
<input
class=
"form-control"
type=
"text"
[(
ngModel
)]="
editBusiness
.
mobileNo
"
*
ngIf=
"opportunityId==0"
placeholder=
"请输入手机号"
/>
</div>
<div
class=
"contentItem"
>
<span>
微信
</span>
...
...
@@ -89,7 +93,7 @@
<div
class=
"contentItem"
>
<span>
预计FYC
</span>
<input
class=
"form-control"
type=
"text"
placeholder=
"{{readonlyFlag ?'暂无预计FYC':'请输入预计FYP'}}"
[
disabled
]="
readonlyFlag
"
[(
ngModel
)]="
editBusiness
.
fyc
"
/>
[
disabled
]="
readonlyFlag
"
[(
ngModel
)]="
editBusiness
.
fyc
"
/>
</div>
<div
class=
"contentItem"
>
<span>
预计成交件数
</span>
...
...
@@ -107,7 +111,8 @@
<span>
商机来源
</span>
<select
name=
"businessSourceId"
id=
"businessSourceId"
class=
"form-control"
[
disabled
]="
readonlyFlag
"
>
<option
value=
""
>
{{readonlyFlag ?'暂无商机来源':'请选择商机来源'}}
</option>
<option
*
ngFor=
"let businessSourceItem of businessSourceList"
value=
"businessSourceItem.id"
>
{{businessSourceItem.dropOptionName}}
</option>
<option
*
ngFor=
"let businessSourceItem of businessSourceList"
value=
"businessSourceItem.id"
>
{{businessSourceItem.dropOptionName}}
</option>
</select>
<!--<input class="form-control" type="text" [(ngModel)]="editBusiness.sourceChannel" disabled />-->
</div>
...
...
@@ -132,12 +137,12 @@
<div
class=
"contentItem"
>
<span>
备注
</span>
<div
style=
"padding: 6px 15px;padding: 6px 15px;"
>
<input
class=
"form-control"
type=
"text"
[(
ngModel
)]="
editBusiness
.
remark
"
disabled
placeholder=
"备注信息"
/>
<input
class=
"form-control"
type=
"text"
[(
ngModel
)]="
editBusiness
.
remark
"
disabled
placeholder=
"备注信息"
/>
</div>
</div>
</div>
<!-- 如果是新增商机,不需要打标签-->
<div
class=
"tagWrapper"
*
ngIf=
"opportunityId =
= 0"
>
<div
class=
"tagWrapper"
*
ngIf=
"opportunityId !
= 0"
>
<div
style=
"width: 100%;height: 34px;line-height: 34px;"
>
标签
</div>
<!-- <div class="tagContent" *ngFor="let tagItem of tagList" (click)="selectTag(tagItem)"
[ngClass]="{selected:tagItem.selected}">
...
...
@@ -149,6 +154,7 @@
</div>
</div>
</div>
<div
class=
"content"
*
ngIf=
"selectedId===2"
>
<div
style=
"text-align: center;font-size: 16px;margin-top: 10px;"
*
ngIf=
"opportunitySurveyAnswersList?.length==0 || !opportunitySurveyAnswersList"
>
...
...
src/app/my/my-business-detail/my-business-detail.component.scss
View file @
ed769d62
...
...
@@ -70,7 +70,11 @@
display
:
flex
;
flex-wrap
:
wrap
;
}
select
{
option
.gray
{
color
:
#ccc
;
}
}
.sexWrapper
{
display
:
flex
;
width
:
60%
;
...
...
src/app/my/my-business-detail/my-business-detail.component.ts
View file @
ed769d62
import
{
Component
,
OnInit
,
AfterViewInit
}
from
'@angular/core'
;
import
{
MyService
}
from
'../my.service'
;
import
{
ActivatedRoute
}
from
"@angular/router"
;
import
{
BusinessQuery
}
from
'../../domain/businessQuery'
;
import
{
LifeCommonService
}
from
'../../common/life-common.service'
;
import
{
Component
,
OnInit
,
AfterViewInit
}
from
'@angular/core'
;
import
{
MyService
}
from
'../my.service'
;
import
{
ActivatedRoute
}
from
"@angular/router"
;
import
{
BusinessQuery
}
from
'../../domain/businessQuery'
;
import
{
LifeCommonService
}
from
'../../common/life-common.service'
;
@
Component
({
...
...
@@ -64,10 +64,10 @@ export class MyBusinessDetailComponent implements OnInit {
constructor
(
private
activateRoute
:
ActivatedRoute
,
private
myService
:
MyService
,
public
lifeCommonService
:
LifeCommonService
)
{
this
.
titleList
=
[
{
id
:
1
,
name
:
'基本信息'
},
{
id
:
2
,
name
:
'咨询问卷'
},
{
id
:
4
,
name
:
'咨询报告'
},
{
id
:
3
,
name
:
'商机跟进'
}
{
id
:
1
,
name
:
'基本信息'
},
{
id
:
2
,
name
:
'咨询问卷'
},
{
id
:
4
,
name
:
'咨询报告'
},
{
id
:
3
,
name
:
'商机跟进'
}
]
}
...
...
@@ -92,6 +92,8 @@ export class MyBusinessDetailComponent implements OnInit {
this
.
maleFlag
=
true
;
this
.
femaleFlag
=
true
;
this
.
clickFlag
=
false
;
//初始化新增
this
.
editBusiness
=
new
BusinessQuery
(
""
,
""
,
""
,
1
,
""
,
""
,
""
,
""
,
""
,
""
,
""
,
""
,
""
,
""
,
""
,
""
,
""
,
""
,
""
,
""
,
""
);
this
.
selectTab
(
1
);
}
else
{
this
.
clickFlag
=
true
;
...
...
@@ -123,7 +125,6 @@ export class MyBusinessDetailComponent implements OnInit {
}
else
{
this
.
selectedId
=
1
;
}
}
ownOpportunityDetailQuery
()
{
...
...
@@ -170,7 +171,7 @@ export class MyBusinessDetailComponent implements OnInit {
}
tagQuery
()
{
this
.
myService
.
tagQuery
({
tagType
:
2
,
isActive
:
1
}).
subscribe
((
res
)
=>
{
this
.
myService
.
tagQuery
({
tagType
:
2
,
isActive
:
1
}).
subscribe
((
res
)
=>
{
if
(
res
[
'success'
])
{
this
.
tagList
=
res
[
'data'
][
'tagVOs'
];
}
...
...
@@ -199,7 +200,7 @@ export class MyBusinessDetailComponent implements OnInit {
// 获取下拉框列表
dropOptionsQuery
(
dropCode
)
{
this
.
myService
.
dropOptionsQuery
({
code
:
dropCode
}).
subscribe
((
res
)
=>
{
this
.
myService
.
dropOptionsQuery
({
code
:
dropCode
}).
subscribe
((
res
)
=>
{
if
(
res
[
'success'
])
{
if
(
dropCode
===
'bizchance_promotion_action'
)
{
this
.
businessStatusList
=
res
[
'data'
][
'dropMasterInfoList'
][
'0'
][
'dropOptionsInfoList'
];
...
...
@@ -217,7 +218,7 @@ export class MyBusinessDetailComponent implements OnInit {
saveInfo
()
{
// 如果是新增商机,不需要打标签
let
newTag
;
if
(
this
.
opportunityId
!=
0
)
{
if
(
Number
(
this
.
opportunityId
)
!=
0
)
{
newTag
=
this
.
editBusiness
.
opportunityCustomerTags
.
map
((
item
)
=>
{
return
{
tagId
:
item
.
id
?
item
.
id
:
item
.
tagId
,
...
...
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