Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
Project
Project
Details
Activity
Releases
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
罗超
confucius
Commits
48f3b815
Commit
48f3b815
authored
Dec 02, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
e8e5068a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
26 deletions
+21
-26
sale-form.vue
src/components/sale/sale-form.vue
+6
-4
saleTask.vue
src/pages/sale/saleTask.vue
+15
-22
No files found.
src/components/sale/sale-form.vue
View file @
48f3b815
...
...
@@ -115,6 +115,8 @@
</q-input>
</div>
<div
class=
"col-6"
>
<q-select
filled
stack-label
option-value=
"Id"
option-label=
"Name"
v-model=
"objOption.TaskFinishType"
:options=
"finishTypeObj"
label=
"请选择"
dense
emit-value
map-options
/>
</div>
</div>
<div
class=
"row wrap"
style=
"margin-top:20px;"
>
...
...
@@ -161,8 +163,7 @@
</el-select>
</div>
<div
class=
"col-2 q-pr-lg"
style=
"width:19%"
>
<q-select
filled
stack-label
option-value=
"Id"
option-label=
"Name"
v-model=
"sItem.TaskFinishType"
:options=
"finishTypeObj"
label=
"请选择"
dense
emit-value
map-options
/>
</div>
<div
class=
"col-2"
style=
"width:14%"
>
<q-input
filled
stack-label
maxlength=
"20"
@
keyup
.
native=
"checkInteger(sItem,'TaskFinishValue')"
dense
...
...
@@ -250,6 +251,7 @@
TaskEndTime
:
""
,
//任务结束时间
DetailsList
:
[],
//任务详情
ExchangeEndTime
:
""
,
//兑换截止时间
TaskFinishType
:
1
,
//任务完成类
},
optionTitle
:
''
,
CourseList
:
[],
...
...
@@ -294,6 +296,7 @@
this
.
objOption
.
TaskImageList
=
tempData
.
TaskImageList
;
this
.
objOption
.
TaskDesc
=
tempData
.
TaskDesc
;
this
.
objOption
.
ExchangeEndTime
=
tempData
.
ExchangeEndTimeStr
;
this
.
objOption
.
TaskFinishType
=
tempData
.
TaskFinishType
;
}
})
this
.
optionTitle
=
"修改客户任务"
...
...
@@ -307,13 +310,13 @@
this
.
objOption
.
TaskEndTime
=
''
;
this
.
objOption
.
DetailsList
=
[];
this
.
objOption
.
ExchangeEndTime
=
""
;
this
.
objOption
.
TaskFinishType
=
0
;
this
.
optionTitle
=
"新增客户任务"
}
},
//保存
saveCustom
()
{
this
.
$refs
.
TaskName
.
validate
();
//this.$refs.TaskKudo.validate();
if
(
!
this
.
$refs
.
TaskName
.
hasError
)
{
var
oDate1
=
new
Date
(
this
.
objOption
.
TaskStartTime
);
var
oDate2
=
new
Date
(
this
.
objOption
.
TaskEndTime
);
...
...
@@ -357,7 +360,6 @@
DetailsName
:
""
,
//任务条件名称
TaskType
:
1
,
//任务类型(见枚举)
TargetId
:
""
,
//目标编号
TaskFinishType
:
1
,
//完成类型(1-人数,2-固定金额)
TaskFinishValue
:
''
,
//完成值
TaskKudo
:
""
,
//奖品名称
TaskKudoImgList
:
[],
//奖品图片
...
...
src/pages/sale/saleTask.vue
View file @
48f3b815
...
...
@@ -25,6 +25,11 @@
</div>
</q-td>
</
template
>
<
template
v-slot:body-cell-TaskFinishType=
"props"
>
<q-td
:props=
"props"
style=
"padding-right: 0px"
>
{{
props
.
row
.
TaskFinishType
==
1
?
"人数"
:
"销售金额"
}}
</q-td>
</
template
>
<
template
v-slot:body-cell-TaskType=
"props"
>
<q-td
:props=
"props"
style=
"padding-right: 0px"
>
<div
v-for=
"(x,index) in props.value"
:key=
"index"
>
...
...
@@ -69,15 +74,7 @@
</div>
</q-td>
</template>
<
template
v-slot:body-cell-CompleteType=
"props"
>
<q-td
:props=
"props"
style=
"padding-right: 0px"
>
<div
v-for=
"(x,index) in props.value"
:key=
"index"
>
<div
class=
"border-bottom"
>
{{
x
.
TaskFinishType
==
1
?
'人数'
:
'成交金额'
}}
</div>
</div>
</q-td>
</
template
>
<
template
v-slot:body-cell-CompleteValue=
"props"
>
<q-td
:props=
"props"
style=
"padding-right: 0px"
>
<div
v-for=
"(x,index) in props.value"
:key=
"index"
>
...
...
@@ -136,6 +133,12 @@
field
:
'TaskStartTimeStr'
,
align
:
'left'
,
},
{
name
:
'TaskFinishType'
,
label
:
'任务完成类型'
,
align
:
"left"
,
field
:
'TaskFinishType'
,
},
{
name
:
'TaskType'
,
label
:
'任务类型'
,
...
...
@@ -150,13 +153,6 @@
align
:
"left"
,
field
:
(
row
)
=>
row
.
DetailsList
},
{
name
:
'CompleteType'
,
label
:
'完成类型'
,
required
:
true
,
align
:
"left"
,
field
:
(
row
)
=>
row
.
DetailsList
},
{
name
:
'CompleteValue'
,
label
:
'完成值'
,
...
...
@@ -254,7 +250,7 @@
}
this
.
isShowTask
=
true
},
iShowEdit
(
obj
){
iShowEdit
(
obj
)
{
if
(
obj
)
{
this
.
taskOption
=
obj
;
}
else
{
...
...
@@ -281,12 +277,10 @@
}
},
}
</
script
>
<
style
lang=
"sass"
>
@import
url('~assets/css/table.sass')
</
style
>
<
style
lang=
"scss"
>
.otherTask
{
...
...
@@ -319,5 +313,4 @@
padding-bottom
:
5px
;
margin-bottom
:
5px
;
}
</
style
>
\ No newline at end of file
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