Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bms-vue-obear
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
daywrite
bms-vue-obear
Commits
f79b85bf
Commit
f79b85bf
authored
Apr 23, 2019
by
huai.li
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复新建任务
parent
8e9e49b1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
38 additions
and
26 deletions
+38
-26
task.js
src/apis/task.js
+10
-2
settingMixin.js
src/components/common/settingMixin.js
+2
-2
taskGroupForm.vue
src/components/task_group/taskGroupForm.vue
+13
-13
taskGroupModal.vue
src/components/task_group/taskGroupModal.vue
+11
-7
groupHome.vue
src/components/task_group_list/groupHome.vue
+2
-2
No files found.
src/apis/task.js
View file @
f79b85bf
...
@@ -38,8 +38,16 @@ export default {
...
@@ -38,8 +38,16 @@ export default {
},
},
getTaskGroupNew
:
{
getTaskGroupNew
:
{
// url: '/vue/task/get-new-group'
url
:
'/vue/task/get-new-group'
url
:
'/vue/sales-order/get-new'
// url: '/vue/sales-order/get-new'
},
saveNewTaskGroup
:
{
url
:
'/vue/task/save-new-group'
},
saveEditTaskGroup
:
{
url
:
'/vue/task/save-edit-group'
},
},
deleteTaskGroup
:
{
deleteTaskGroup
:
{
...
...
src/components/common/settingMixin.js
View file @
f79b85bf
...
@@ -60,8 +60,8 @@ export default {
...
@@ -60,8 +60,8 @@ export default {
return
ret
&&
[].
concat
(
ret
.
value
)
return
ret
&&
[].
concat
(
ret
.
value
)
},
},
salesOrderRemindReceivers
Array
()
{
taskGroupsU
Array
()
{
let
ret
=
this
.
getArrayByKey
(
'
SalesOrders'
,
'salesOrderRemindReceiv
ers'
)
let
ret
=
this
.
getArrayByKey
(
'
TaskGroups'
,
'taskGroupUs
ers'
)
return
ret
&&
[].
concat
(
ret
.
value
)
return
ret
&&
[].
concat
(
ret
.
value
)
}
}
},
},
...
...
src/components/task_group/taskGroupForm.vue
View file @
f79b85bf
<
template
>
<
template
>
<section
class=
"ec-page-wrapper"
style=
"overflow: hidden; padding-bottom: 0px;"
>
<section
class=
"ec-page-wrapper"
style=
"overflow: hidden; padding-bottom: 0px;"
>
<el-form
label-width=
"120px"
ref=
"form"
:rules=
"rules"
:model=
"model"
class=
"ec-create-form"
>
<el-form
label-width=
"120px"
ref=
"form"
:rules=
"rules"
:model=
"model"
class=
"ec-create-form"
>
<el-form-item
label=
"客户"
prop=
"actName"
class=
"ec-clear-left"
>
<el-form-item
label=
"客户
名称:
"
prop=
"actName"
class=
"ec-clear-left"
>
<dep-select
<dep-select
:query=
"model"
:query=
"model"
:inputWidth=
"340"
:inputWidth=
"340"
:startLoadInitial=
"false"
/>
:startLoadInitial=
"false"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"项目名
臣:"
prop=
"description
"
class=
"ec-clear-left ec-form-item-lg"
>
<el-form-item
label=
"项目名
称:"
prop=
"title
"
class=
"ec-clear-left ec-form-item-lg"
>
<el-input
<el-input
class=
"ec-input-normal"
class=
"ec-input-normal"
v-model
.
trim=
"model.
description
"
>
v-model
.
trim=
"model.
title
"
>
</el-input>
</el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"截止日期:"
prop=
"target_completed_at"
class=
"ec-clear-left"
>
<el-form-item
label=
"截止日期:"
prop=
"target_completed_at"
class=
"ec-clear-left"
>
<el-date-picker
<el-date-picker
size=
"small"
size=
"small"
v-model=
"model.target_completed_at"
v-model=
"model.target_completed_at"
type=
"date
time
"
type=
"date"
value-format=
"yyyy-MM-dd
HH:mm:ss
"
value-format=
"yyyy-MM-dd"
@
change=
"targetCompletedAtChange"
@
change=
"targetCompletedAtChange"
placeholder=
"选择日期时间"
>
placeholder=
"选择日期时间"
>
</el-date-picker>
</el-date-picker>
</el-form-item>
</el-form-item>
<el-form-item
label=
"情况说明:"
prop=
"
title
"
class=
"ec-clear-left ec-form-item-lg is-required"
>
<el-form-item
label=
"情况说明:"
prop=
"
situation
"
class=
"ec-clear-left ec-form-item-lg is-required"
>
<el-input
<el-input
class=
"ec-input-normal"
class=
"ec-input-normal"
type=
"textarea"
type=
"textarea"
:rows=
"2"
:rows=
"2"
v-model
.
trim=
"model.
title
"
>
v-model
.
trim=
"model.
situation
"
>
</el-input>
</el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"备注:"
prop=
"
title
"
class=
"ec-clear-left ec-form-item-lg is-required"
>
<el-form-item
label=
"备注:"
prop=
"
description
"
class=
"ec-clear-left ec-form-item-lg is-required"
>
<el-input
<el-input
class=
"ec-input-normal"
class=
"ec-input-normal"
type=
"textarea"
type=
"textarea"
:rows=
"2"
:rows=
"2"
v-model
.
trim=
"model.
title
"
>
v-model
.
trim=
"model.
description
"
>
</el-input>
</el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"成员"
prop=
"
remindReceiv
ers"
class=
"ec-clear-left ec-form-item-lg is-required"
>
<el-form-item
label=
"成员"
prop=
"
TaskGroupUs
ers"
class=
"ec-clear-left ec-form-item-lg is-required"
>
<multiple-check-group
<multiple-check-group
:check-group-form-item=
"model.
remindReceiv
ers"
:check-group-form-item=
"model.
TaskGroupUs
ers"
:check-group-options-list=
"
salesOrderRemindReceivers
Array"
:check-group-options-list=
"
taskGroupsU
Array"
@
update:item=
"val =>
{model.
remindReceiv
ers = val}">
@
update:item=
"val =>
{model.
TaskGroupUs
ers = val}">
</multiple-check-group>
</multiple-check-group>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
...
...
src/components/task_group/taskGroupModal.vue
View file @
f79b85bf
...
@@ -30,19 +30,23 @@ export default {
...
@@ -30,19 +30,23 @@ export default {
diaVis
:
false
,
diaVis
:
false
,
model
:
{
model
:
{
id
:
''
,
id
:
''
,
task_group_id
:
''
,
client_id
:
''
,
client_name
:
''
,
// 客户
title
:
''
,
title
:
''
,
is_important
:
''
,
target_completed_at
:
''
,
target_completed_at
:
''
,
situation
:
''
,
description
:
''
,
description
:
''
,
remindReceiv
ers
:
[]
TaskGroupUs
ers
:
[]
}
}
}
}
},
},
methods
:
{
methods
:
{
show
(
model
)
{
show
(
model
)
{
model
&&
UTIL
.
flatten
(
this
.
model
,
model
)
if
(
model
)
{
UTIL
.
flatten
(
this
.
model
,
model
)
this
.
model
.
client_name
=
model
.
client
.
name
}
this
.
$refs
.
sidePopup
.
show
()
this
.
$refs
.
sidePopup
.
show
()
},
},
...
@@ -54,9 +58,9 @@ export default {
...
@@ -54,9 +58,9 @@ export default {
},
},
save
()
{
save
()
{
let
_params
=
Object
.
assign
({},
setModule
(
this
.
model
,
'Tasks'
))
let
_params
=
Object
.
assign
({},
setModule
(
this
.
model
,
'Task
Group
s'
))
let
_apiUrl
=
!
this
.
model
.
id
?
api
.
saveNewTask
:
api
.
saveEditTask
let
_apiUrl
=
!
this
.
model
.
id
?
api
.
saveNewTask
Group
:
api
.
saveEditTaskGroup
!
this
.
model
.
id
&&
delete
_params
[
'Tasks[id]'
]
!
this
.
model
.
id
&&
delete
_params
[
'Task
Group
s[id]'
]
requestAPI
(
Object
.
assign
(
_apiUrl
,
{
method
:
'POST'
}),
_params
)
requestAPI
(
Object
.
assign
(
_apiUrl
,
{
method
:
'POST'
}),
_params
)
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
this
.
$refs
.
sidePopup
.
close
()
this
.
$refs
.
sidePopup
.
close
()
...
...
src/components/task_group_list/groupHome.vue
View file @
f79b85bf
...
@@ -37,8 +37,8 @@
...
@@ -37,8 +37,8 @@
:key=
"item.id"
>
:key=
"item.id"
>
<span
slot=
"opearate"
class=
"obear-opearate-button"
>
<span
slot=
"opearate"
class=
"obear-opearate-button"
>
<el-button
type=
"primary"
size=
"mini"
@
click
.
prevent
.
stop=
"leaveMessageSch(item)"
><span
class=
"badge"
v-if=
"item.commentCount.comment"
>
{{
item
.
commentCount
.
comment
?
item
.
commentCount
.
comment
:
''
}}
</span><i
class=
"fa fa-commenting"
></i>
留言
</el-button>
<el-button
type=
"primary"
size=
"mini"
@
click
.
prevent
.
stop=
"leaveMessageSch(item)"
><span
class=
"badge"
v-if=
"item.commentCount.comment"
>
{{
item
.
commentCount
.
comment
?
item
.
commentCount
.
comment
:
''
}}
</span><i
class=
"fa fa-commenting"
></i>
留言
</el-button>
<el-button
type=
"primary"
size=
"mini"
@
click
.
prevent
.
stop=
"checkSch(item)"
:disabled=
"!item.can_
upda
te"
><i
class=
"fa fa-fw fa-check"
></i>
完成
</el-button>
<el-button
type=
"primary"
size=
"mini"
@
click
.
prevent
.
stop=
"checkSch(item)"
:disabled=
"!item.can_
comple
te"
><i
class=
"fa fa-fw fa-check"
></i>
完成
</el-button>
<el-button
type=
"primary"
size=
"mini"
@
click
.
prevent
.
stop=
"banSch(item)"
:disabled=
"!item.can_
update
"
><i
class=
"fa fa-fw fa-ban"
></i>
中止
</el-button>
<el-button
type=
"primary"
size=
"mini"
@
click
.
prevent
.
stop=
"banSch(item)"
:disabled=
"!item.can_
stop
"
><i
class=
"fa fa-fw fa-ban"
></i>
中止
</el-button>
<el-button
type=
"primary"
size=
"mini"
@
click
.
prevent
.
stop=
"editSch(item)"
:disabled=
"!item.can_update"
><i
class=
"fa fa-edit animated"
></i>
编辑
</el-button>
<el-button
type=
"primary"
size=
"mini"
@
click
.
prevent
.
stop=
"editSch(item)"
:disabled=
"!item.can_update"
><i
class=
"fa fa-edit animated"
></i>
编辑
</el-button>
<el-button
type=
"primary"
size=
"mini"
@
click
.
prevent
.
stop=
"deleteSch(item.id)"
:disabled=
"!item.can_delete"
><i
class=
"fa fa-trash-o animated-hove"
></i>
删除
</el-button>
<el-button
type=
"primary"
size=
"mini"
@
click
.
prevent
.
stop=
"deleteSch(item.id)"
:disabled=
"!item.can_delete"
><i
class=
"fa fa-trash-o animated-hove"
></i>
删除
</el-button>
</span>
</span>
...
...
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