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
d35a0ca8
Commit
d35a0ca8
authored
Dec 08, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
yemian
parent
85a77aaf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
19 deletions
+20
-19
finishTask.vue
src/pages/sale/finishTask.vue
+20
-19
No files found.
src/pages/sale/finishTask.vue
View file @
d35a0ca8
...
...
@@ -8,6 +8,9 @@
<div
class=
"col-3"
>
<q-input
@
input=
"resetSearch"
clearable
filled
v-model=
"msg.CustomerName"
label=
"客户名称"
/>
</div>
<div
class=
"col-3"
>
<q-input
@
input=
"resetSearch"
clearable
filled
v-model=
"msg.ExchangeCode"
label=
"兑换码"
/>
</div>
<div
class=
"col-3"
>
<q-select
@
input=
"resetSearch"
option-value=
"Id"
option-label=
"Name"
clearable
filled
v-model=
"msg.ExchangeStatus"
:options=
"StatusList"
emit-value
map-options
label=
"状态"
/>
...
...
@@ -35,8 +38,9 @@
</template>
<
template
v-slot:body-cell-optioned=
"props"
>
<q-td>
<q-btn
v-if=
"props.row.ExchangeStatus==1"
flat
size=
"xs"
icon=
"iconfont icon-view"
style=
"font-weight:400"
label=
"兑换"
@
click=
"exchangeKudo(props.row)"
/>
@
click=
"exchangeKudo(props.row)"
/>
<q-btn
flat
size=
"xs"
icon=
"iconfont icon-view"
style=
"font-weight:400"
label=
"详情"
@
click=
"goToDetail(props.row)"
/>
</q-td>
...
...
@@ -121,6 +125,7 @@
TaskName
:
""
,
//任务
CustomerName
:
""
,
//客户名称
ExchangeStatus
:
""
,
//领取状态
ExchangeCode
:
""
,
//兑换码
},
StatusList
:
[{
Id
:
1
,
...
...
@@ -149,24 +154,20 @@
CustomerId
:
item
.
CustomerId
,
ExchangeCode
:
item
.
ExchangeCode
};
saveExchangeKudo
(
postMsg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
$q
.
notify
({
icon
:
"iconfont icon-chenggong"
,
color
:
"accent"
,
timeout
:
2000
,
message
:
"兑换成功!"
,
position
:
"top"
,
});
this
.
getList
();
}
else
{
this
.
$q
.
notify
({
type
:
"negative"
,
message
:
"兑换失败!"
,
position
:
"top"
,
timeout
:
2000
,
});
}
var
that
=
this
;
this
.
$confirm
(
'是否要兑换此奖品?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
saveExchangeKudo
(
postMsg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
that
.
$message
.
success
(
"兑换成功!"
)
that
.
getList
();
}
else
{
that
.
$message
.
error
(
"兑换失败!"
);
}
})
})
},
goToDetail
(
item
)
{
...
...
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