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
cc0f1281
Commit
cc0f1281
authored
Jul 03, 2020
by
sunchao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
申请专家
parent
f219fdff
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
64 additions
and
10 deletions
+64
-10
package.json
+1
-1
src/app/auth/login/login.component.ts
+0
-1
src/app/domain/businessQuery.ts
+4
-1
src/app/my/my-business-detail/my-business-detail.component.html
+17
-1
src/app/my/my-business-detail/my-business-detail.component.ts
+36
-6
src/app/my/my.service.ts
+6
-0
No files found.
package.json
View file @
cc0f1281
...
...
@@ -6,7 +6,7 @@
"start"
:
"ng serve --host 192.168.124.107"
,
"buildDev"
:
"ng build -c=dev --prod"
,
"buildStage"
:
"ng build -c=stage --prod"
,
"buildProd"
:
"ng build -c=production --prod
"
,
"buildProd"
:
"ng build -c=production --prod"
,
"test"
:
"ng test"
,
"lint"
:
"ng lint"
,
"e2e"
:
"ng e2e"
...
...
src/app/auth/login/login.component.ts
View file @
cc0f1281
...
...
@@ -124,7 +124,6 @@ export class LoginComponent implements OnInit, OnDestroy {
}
else
if
(
!
this
.
MOBILE_REGEXP
.
test
(
this
.
userInfo
.
mobileNo
))
{
this
.
openPopInfo
(
'手机号不正确'
);
}
}
// 倒计时
...
...
src/app/domain/businessQuery.ts
View file @
cc0f1281
...
...
@@ -21,7 +21,10 @@ export class BusinessQuery {
public
assignedPractitionerId
?:
any
,
public
sourceFrom
?:
any
,
public
timeToClose
?:
any
,
public
leadsAssignedId
?:
any
public
leadsAssignedId
?:
any
,
public
expertType
?:
any
,
public
expertPractitionerId
?:
any
,
public
expertPractitionerName
?:
any
)
{
...
...
src/app/my/my-business-detail/my-business-detail.component.html
View file @
cc0f1281
...
...
@@ -131,7 +131,21 @@
{{editBusiness.mdDropOptionName?editBusiness.mdDropOptionName:'待跟进'}}
</div>
</div>
</div>
<div
class=
"wrapper_item"
style=
"border: none;margin-bottom: 0;"
>
<div
*
ngIf=
"editBusiness?.expertType==0"
style=
"width: 50%;margin:0 auto;height:40px;line-height:40px;border-radius:20px;text-align: center;border: 1px #e10d0d solid;"
(
click
)="
openPopInfo
('申请已收到,会在
1
个工作日派遣专家')"
>
<span>
申请专家支持
</span>
</div>
<div
class=
"contentItem"
*
ngIf=
"editBusiness?.expertType==1"
>
<span>
申请中...
</span>
</div>
<div
class=
"contentItem"
>
<div
*
ngIf=
"editBusiness?.expertType ==2"
>
<span>
派遣专家
</span>
<span>
{{editBusiness?.expertPractitionerName}}
</span>
</div>
</div>
</div>
<!-- <div class="contentItem">
<span>标签</span>
<input class="form-control" type="text" placeholder="标签" [(ngModel)]="editBusiness.name"
...
...
@@ -240,3 +254,4 @@
</div>
</div>
<ydlife-toast
*
ngIf=
"toastDialog"
[
toastInfo
]="
toastInfo
"
></ydlife-toast>
<ydlife-alert
*
ngIf=
"isNeedAlert"
[
dialogInfo
]="
dialogInfo
"
(
popInfo
)="
getPopInfo
()"
></ydlife-alert>
\ No newline at end of file
src/app/my/my-business-detail/my-business-detail.component.ts
View file @
cc0f1281
import
{
Component
,
OnInit
,
AfterViewInit
}
from
'@angular/core'
;
import
{
Component
,
OnInit
}
from
'@angular/core'
;
import
{
MyService
}
from
'../my.service'
;
import
{
ActivatedRoute
,
Router
}
from
"@angular/router"
;
import
{
BusinessQuery
}
from
'../../domain/businessQuery'
;
import
{
LifeCommonService
}
from
'../../common/life-common.service'
;
@
Component
({
selector
:
'ydlife-my-business-detail'
,
templateUrl
:
'./my-business-detail.component.html'
,
...
...
@@ -62,6 +60,9 @@ export class MyBusinessDetailComponent implements OnInit {
clickFlag
:
boolean
;
remarkId
:
any
;
status
:
any
;
isNeedAlert
:
boolean
;
dialogInfo
:
any
;
practitionerId
:
any
;
constructor
(
private
activateRoute
:
ActivatedRoute
,
private
myService
:
MyService
,
public
lifeCommonService
:
LifeCommonService
,
private
router
:
Router
,
)
{
this
.
titleList
=
[
...
...
@@ -79,6 +80,7 @@ export class MyBusinessDetailComponent implements OnInit {
//商机id
this
.
leadsAssignedId
=
this
.
activateRoute
.
snapshot
.
queryParams
[
'leadsAssignedId'
];
this
.
opportunityRecordId
=
null
;
this
.
practitionerId
=
JSON
.
parse
(
localStorage
.
getItem
(
'lifeCustomerInfo'
))[
'practitionerId'
]
this
.
tagQuery
();
//商机状态
this
.
dropOptionsQuery
(
'bizchance_promotion_action'
);
...
...
@@ -134,7 +136,7 @@ export class MyBusinessDetailComponent implements OnInit {
const
detailParam
=
{
opportunityId
:
this
.
opportunityId
?
Number
(
this
.
opportunityId
)
:
null
,
orderId
:
this
.
orderId
?
Number
(
this
.
orderId
)
:
null
,
practitionerId
:
JSON
.
parse
(
localStorage
.
getItem
(
'lifeCustomerInfo'
))[
'practitionerId'
]
practitionerId
:
this
.
practitionerId
}
this
.
myService
.
ownOpportunityDetailQuery
(
detailParam
).
subscribe
((
res
)
=>
{
if
(
res
[
'success'
])
{
...
...
@@ -393,7 +395,7 @@ export class MyBusinessDetailComponent implements OnInit {
leadsAssignedId
:
this
.
leadsAssignedId
?
Number
(
this
.
leadsAssignedId
)
:
null
,
opportunityId
:
this
.
opportunityId
?
Number
(
this
.
opportunityId
)
:
null
,
opportunityCustomerTags
:
newTag
?
newTag
:
[],
assignedPractitionerId
:
JSON
.
parse
(
localStorage
.
getItem
(
'lifeCustomerInfo'
))
.
practitionerId
,
assignedPractitionerId
:
this
.
practitionerId
,
fyp
:
this
.
editBusiness
.
fyp
?
Number
(
this
.
editBusiness
.
fyp
)
:
null
,
fyc
:
this
.
editBusiness
.
fyc
?
Number
(
this
.
editBusiness
.
fyc
)
:
null
,
sourceFrom
:
this
.
editBusiness
.
sourceFrom
?
Number
(
this
.
editBusiness
.
sourceFrom
)
:
null
...
...
@@ -494,7 +496,7 @@ export class MyBusinessDetailComponent implements OnInit {
id
:
''
,
salesNotice
:
this
.
salesNotice
,
isActive
:
1
,
practitionerId
:
JSON
.
parse
(
localStorage
.
getItem
(
'lifeCustomerInfo'
))[
'practitionerId'
]
,
practitionerId
:
this
.
practitionerId
,
opportunityId
:
this
.
opportunityId
?
Number
(
this
.
opportunityId
)
:
null
,
mdDropOptionId
:
this
.
opportunityRecordId
?
Number
(
this
.
opportunityRecordId
)
:
null
,
noticeDate
:
this
.
opportunityRecordNoticeDate
,
...
...
@@ -545,6 +547,34 @@ export class MyBusinessDetailComponent implements OnInit {
editRemark
(
id
)
{
this
.
remarkId
=
id
}
openPopInfo
(
message
)
{
this
.
myService
.
applyForExpertSupport
({
leadsAssignedId
:
this
.
leadsAssignedId
,
practitionerId
:
this
.
practitionerId
,
opportunityId
:
this
.
opportunityId
}).
subscribe
((
res
)
=>
{
if
(
res
[
'success'
]){
this
.
ownOpportunityDetailQuery
();
this
.
isNeedAlert
=
true
;
this
.
dialogInfo
=
{
title
:
null
,
content
:
{
value
:
message
,
align
:
'center'
},
footer
:
[{
value
:
'确认离开'
,
routerLink
:
''
,
className
:
'weui-dialog__btn_primary'
}],
};
}
else
{
this
.
toastDialog
=
true
;
this
.
toastInfo
=
{
status
:
1
,
msg
:
res
[
'message'
],
timeout
:
3000
,
align
:
'center'
};
}
})
}
// 关闭弹窗
getPopInfo
()
{
this
.
isNeedAlert
=
false
;
}
}
src/app/my/my.service.ts
View file @
cc0f1281
...
...
@@ -331,4 +331,10 @@ export class MyService {
// document.body.removeChild(link);
// })
}
applyForExpertSupport
(
param
){
const
url
=
this
.
ydapi
+
'/practitioner/applyForExpertSupport'
;
return
this
.
http
.
post
(
url
,
JSON
.
stringify
(
param
));
}
}
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