Commit 50dfa84c authored by Mac's avatar Mac

解决冲突

parents 5b5d8d2a 85a77aaf
...@@ -133,7 +133,6 @@ ...@@ -133,7 +133,6 @@
margin: 0 10px 10px 0; margin: 0 10px 10px 0;
display: inline-block; display: inline-block;
} }
</style> </style>
<template> <template>
<div class="page-body" id="paper_Publish"> <div class="page-body" id="paper_Publish">
...@@ -153,8 +152,8 @@ ...@@ -153,8 +152,8 @@
<span class="papPub_Left f1">发放时间</span> <span class="papPub_Left f1">发放时间</span>
<div class="f1"> <div class="f1">
<div class="Sysuser_Date" style="width:308px;"> <div class="Sysuser_Date" style="width:308px;">
<q-field filled> <q-field filled>
 <template v-slot:control>  <template v-slot:control>
<el-date-picker v-model="postMsg.ExamStartTime" value-format='yyyy-MM-dd HH:mm:ss' <el-date-picker v-model="postMsg.ExamStartTime" value-format='yyyy-MM-dd HH:mm:ss'
:picker-options="picker" type="datetime" placeholder="开始时间" size="small" :picker-options="picker" type="datetime" placeholder="开始时间" size="small"
clear-icon="iconfont icon-guanbi"></el-date-picker> clear-icon="iconfont icon-guanbi"></el-date-picker>
...@@ -167,11 +166,11 @@ ...@@ -167,11 +166,11 @@
<span class="papPub_Left f1">结束时间</span> <span class="papPub_Left f1">结束时间</span>
<div class="f1"> <div class="f1">
<div class="Sysuser_Date" style="width:308px;"> <div class="Sysuser_Date" style="width:308px;">
<q-field filled> <q-field filled>
 <template v-slot:control>  <template v-slot:control>
<el-date-picker v-model="postMsg.ExamEndTime" value-format='yyyy-MM-dd HH:mm:ss' @change="getMinus()" <el-date-picker v-model="postMsg.ExamEndTime" value-format='yyyy-MM-dd HH:mm:ss' @change="getMinus()"
type="datetime" :picker-options="pickerEnd" placeholder="结束时间" size="small" type="datetime" :picker-options="pickerEnd" placeholder="结束时间" size="small"
clear-icon="iconfont icon-guanbi"></el-date-picker> clear-icon="iconfont icon-guanbi"></el-date-picker> 
</template> </template>
</q-field> </q-field>
</div> </div>
...@@ -545,5 +544,4 @@ ...@@ -545,5 +544,4 @@
} }
} }
} }
</script> </script>
\ No newline at end of file
...@@ -35,6 +35,8 @@ ...@@ -35,6 +35,8 @@
</template> </template>
<template v-slot:body-cell-optioned="props"> <template v-slot:body-cell-optioned="props">
<q-td> <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)" />
<q-btn flat size="xs" icon="iconfont icon-view" style="font-weight:400" label="详情" <q-btn flat size="xs" icon="iconfont icon-view" style="font-weight:400" label="详情"
@click="goToDetail(props.row)" /> @click="goToDetail(props.row)" />
</q-td> </q-td>
...@@ -49,7 +51,8 @@ ...@@ -49,7 +51,8 @@
</template> </template>
<script> <script>
import { import {
queryCustomerFinishtaskPage queryCustomerFinishtaskPage,
saveExchangeKudo
} from '../../api/sale/peemanagement'; } from '../../api/sale/peemanagement';
export default { export default {
...@@ -140,6 +143,32 @@ ...@@ -140,6 +143,32 @@
this.getList() this.getList()
}, },
methods: { methods: {
//兑换奖品
exchangeKudo(item) {
var postMsg = {
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,
});
}
})
},
goToDetail(item) { goToDetail(item) {
this.OpenNewUrl('/sale/finishTaskDetails', { this.OpenNewUrl('/sale/finishTaskDetails', {
TaskId: item.TaskId, TaskId: item.TaskId,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment