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
c7508c77
Commit
c7508c77
authored
Mar 12, 2020
by
Chao Sun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
我的商机基本信息按钮
parent
c7aa2080
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
87 additions
and
22 deletions
+87
-22
src/app/my/my-business-detail/my-business-detail.component.html
+9
-3
src/app/my/my-business-detail/my-business-detail.component.scss
+10
-5
src/app/my/my-business-detail/my-business-detail.component.ts
+68
-14
No files found.
src/app/my/my-business-detail/my-business-detail.component.html
View file @
c7508c77
...
@@ -116,7 +116,8 @@
...
@@ -116,7 +116,8 @@
</div>
</div>
<div>
<div>
<div>
跟进时间
</div>
<div>
跟进时间
</div>
<div><input
id=
"time"
class=
"form-control"
[(
ngModel
)]="
opportunityRecordNoticeDate
"
></div>
<div><input
style=
"-webkit-appearance: none;"
id=
"time"
class=
"form-control"
type=
"date"
[(
ngModel
)]="
opportunityRecordNoticeDate
"
></div>
</div>
</div>
<div
class=
"add"
>
<div
class=
"add"
>
<i
class=
"iconfont icon-jia"
(
click
)="
ownOpportunityRecordSave
()"
></i>
<i
class=
"iconfont icon-jia"
(
click
)="
ownOpportunityRecordSave
()"
></i>
...
@@ -124,9 +125,14 @@
...
@@ -124,9 +125,14 @@
</div>
</div>
<ul
class=
"recordLists"
>
<ul
class=
"recordLists"
>
<li
*
ngFor=
"let opportunityRecordItem of opportunityRecordInfos"
>
<li
*
ngFor=
"let opportunityRecordItem of opportunityRecordInfos"
>
<div
class=
"opportunityRecordItem"
>
{{lifeCommonService.checkStr(opportunityRecordItem.mdDropOptionId)}}
</div>
<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>
<div
class=
"salesNotice"
>
{{opportunityRecordItem.salesNotice}}
</div>
<div
class=
"updatedAt"
>
{{opportunityRecordItem.noticeDate}}
</div>
</li>
</li>
</ul>
</ul>
...
...
src/app/my/my-business-detail/my-business-detail.component.scss
View file @
c7508c77
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
height
:
45px
;
height
:
45px
;
line-height
:
45px
;
line-height
:
45px
;
border-radius
:
50%
;
border-radius
:
50%
;
position
:
absolute
;
position
:
fixed
;
right
:
10px
;
right
:
10px
;
font-size
:
24px
;
font-size
:
24px
;
color
:
#fff
;
color
:
#fff
;
...
@@ -51,15 +51,20 @@
...
@@ -51,15 +51,20 @@
align-items
:
center
;
align-items
:
center
;
// border-bottom: 1px #ddd solid;
// border-bottom: 1px #ddd solid;
margin
:
0
8px
5px
8px
;
margin
:
0
8px
5px
8px
;
>
span
:first-child
{
white-space
:
nowrap
;
}
input
.form-control
{
input
.form-control
{
display
:
inline-block
;
display
:
inline-block
;
width
:
60%
;
//
width: 60%;
margin
:
0
5px
;
margin
:
0
5px
;
background
:
none
;
background
:
none
;
outline
:
none
;
outline
:
none
;
border
:
none
;
border
:
none
;
text-align
:
right
;
text-align
:
right
;
box-shadow
:
none
;
box-shadow
:
none
;
display
:
flex
;
flex-wrap
:
wrap
;
}
}
.sexWrapper
{
.sexWrapper
{
...
@@ -186,9 +191,9 @@
...
@@ -186,9 +191,9 @@
margin-bottom
:
5px
;
margin-bottom
:
5px
;
}
}
.updatedAt
{
.updatedAt
{
font-size
:
12px
;
//
font-size: 12px;
color
:
#8a8a8a
;
//
color: #8a8a8a;
text-align
:
right
;
//
text-align: right;
}
}
}
}
...
...
src/app/my/my-business-detail/my-business-detail.component.ts
View file @
c7508c77
...
@@ -78,17 +78,17 @@ export class MyBusinessDetailComponent implements OnInit {
...
@@ -78,17 +78,17 @@ export class MyBusinessDetailComponent implements OnInit {
}
}
}
}
if
(
id
===
3
)
{
//
if (id === 3) {
setTimeout
(()
=>
{
//
setTimeout(() => {
var
calendar
=
new
LCalendar
();
//
var calendar = new LCalendar();
calendar
.
init
({
//
calendar.init({
'trigger'
:
'#time'
,
//标签id
//
'trigger': '#time', //标签id
'type'
:
'date'
,
//date 调出日期选择 datetime 调出日期时间选择 time 调出时间选择 ym 调出年月选择,
//
'type': 'date', //date 调出日期选择 datetime 调出日期时间选择 time 调出时间选择 ym 调出年月选择,
'maxDate'
:
(
new
Date
().
getFullYear
())
+
'-'
+
(
new
Date
().
getMonth
()
+
1
)
+
'-'
+
new
Date
().
getDate
()
//最大日期
//
'maxDate': (new Date().getFullYear()) + '-' + (new Date().getMonth() + 1) + '-' + new Date().getDate() //最大日期
});
//
});
},
300
)
//
}, 300)
}
//
}
}
}
ownOpportunityDetailQuery
()
{
ownOpportunityDetailQuery
()
{
...
@@ -177,14 +177,35 @@ export class MyBusinessDetailComponent implements OnInit {
...
@@ -177,14 +177,35 @@ export class MyBusinessDetailComponent implements OnInit {
tagName
:
item
.
tagName
tagName
:
item
.
tagName
}
}
})
})
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
;
}
}
this
.
editBusiness
=
{
this
.
editBusiness
=
{
...
this
.
editBusiness
,
...
this
.
editBusiness
,
opportunityCustomerTags
:
newTag
opportunityCustomerTags
:
newTag
}
}
console
.
log
(
this
.
editBusiness
)
this
.
myService
.
ownOpportunityBasicInformationSave
(
this
.
editBusiness
).
subscribe
((
res
)
=>
{
this
.
myService
.
ownOpportunityBasicInformationSave
(
this
.
editBusiness
).
subscribe
((
res
)
=>
{
console
.
log
(
res
)
if
(
res
[
'success'
])
{
if
(
res
[
'success'
])
{
this
.
toastDialog
=
true
;
this
.
toastDialog
=
true
;
this
.
toastInfo
=
{
this
.
toastInfo
=
{
...
@@ -193,17 +214,50 @@ export class MyBusinessDetailComponent implements OnInit {
...
@@ -193,17 +214,50 @@ export class MyBusinessDetailComponent implements OnInit {
timeout
:
3000
,
timeout
:
3000
,
align
:
'center'
align
:
'center'
};
};
this
.
readonlyFlag
=
true
;
}
}
})
})
}
}
ownOpportunityRecordSave
()
{
ownOpportunityRecordSave
()
{
if
(
this
.
opportunityRecordId
==
null
&&
!
this
.
salesNotice
)
{
const
nowDate
=
new
Date
().
getTime
();
const
oppDate
=
new
Date
(
this
.
opportunityRecordNoticeDate
).
getTime
();
if
(
nowDate
<
oppDate
)
{
this
.
toastDialog
=
true
;
this
.
toastInfo
=
{
status
:
1
,
msg
:
'跟进时间不能大于当前时间!'
,
timeout
:
3000
,
align
:
'center'
};
return
;
}
if
(
!
this
.
opportunityRecordId
)
{
this
.
toastDialog
=
true
;
this
.
toastInfo
=
{
status
:
1
,
msg
:
'请选择跟进状态!'
,
timeout
:
3000
,
align
:
'center'
};
return
;
}
if
(
!
this
.
salesNotice
)
{
this
.
toastDialog
=
true
;
this
.
toastInfo
=
{
status
:
1
,
msg
:
'备注不能为空!'
,
timeout
:
3000
,
align
:
'center'
};
return
;
}
if
(
!
this
.
opportunityRecordNoticeDate
)
{
this
.
toastDialog
=
true
;
this
.
toastDialog
=
true
;
this
.
toastInfo
=
{
this
.
toastInfo
=
{
status
:
1
,
status
:
1
,
msg
:
'跟进
状态和备注不能同时
为空!'
,
msg
:
'跟进
时间不能
为空!'
,
timeout
:
3000
,
timeout
:
3000
,
align
:
'center'
align
:
'center'
};
};
...
...
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