Commit 02b5e5bf by 张权

0704定向礼包页面开发

1 parent 273a5d5f
...@@ -26,15 +26,28 @@ ...@@ -26,15 +26,28 @@
<div slot="giftInfo" slot-scope="scope"> <div slot="giftInfo" slot-scope="scope">
<GLTable ref="giftListRef" :hasNum="false" :hasPage="false" :noDataImg="url" :tableParams="giftParams" :tableData="scope.scope | filterTable" @setTableFinishFun="setGiftTableFinishFun"></GLTable> <GLTable ref="giftListRef" :hasNum="false" :hasPage="false" :noDataImg="url" :tableParams="giftParams" :tableData="scope.scope | filterTable" @setTableFinishFun="setGiftTableFinishFun"></GLTable>
</div> </div>
<div class="table-btns" slot="auth-button" slot-scope="scope">
<el-button type="text" @click="toVoid(scope.scope)">作废</el-button>
</div>
</GLTable> </GLTable>
<!-- 表格区域 end --> <!-- 表格区域 end -->
</div> </div>
<glsx-dialog showClose class="void-dialog" title="作废确认" :isVisible.sync="voidDialogVisibity" width="720px" @confirmDialog="handleVoidConfirm" @closeDialog="handleVoidClose">
<div class="wrap">
<p class="dialog-tip">请先和客户沟通在确认,避免引起客诉,作废后客户将不可使用该礼包下所有优惠卷</p>
<div style="display:flex;">
<label style="white-space:nowrap;" for="">作废原因:</label>
<el-input type="textarea" v-model="phone" placeholder="请输入作废原因"></el-input>
</div>
</div>
</glsx-dialog>
</div> </div>
</template> </template>
<script> <script>
import * as dayjs from 'dayjs' import * as dayjs from 'dayjs'
import url from '@/assets/empty.png' import url from '@/assets/empty.png'
import glsxDialog from '@/components/glsx-dialog'
import { aToExport } from '@/common/constant' import { aToExport } from '@/common/constant'
export default { export default {
name: 'giftList', name: 'giftList',
...@@ -58,6 +71,7 @@ export default { ...@@ -58,6 +71,7 @@ export default {
return { return {
size: 'small', size: 'small',
url: url, url: url,
voidDialogVisibity: false,
searchForm: { searchForm: {
nickName: '', nickName: '',
wechatUserFlag: '', wechatUserFlag: '',
...@@ -158,7 +172,7 @@ export default { ...@@ -158,7 +172,7 @@ export default {
getListApi: this.$apis.giftBag.getReceivedGiftInfoApi, getListApi: this.$apis.giftBag.getReceivedGiftInfoApi,
tableParams: { tableParams: {
listName: 'list', listName: 'list',
tableOption: false, tableOption: true,
tableColumns: [ tableColumns: [
{ {
label: '', label: '',
...@@ -250,6 +264,9 @@ export default { ...@@ -250,6 +264,9 @@ export default {
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' } pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' }
} }
}, },
components: {
glsxDialog
},
mounted() { mounted() {
this.getOptionsList('searchFormData') this.getOptionsList('searchFormData')
...@@ -263,6 +280,12 @@ export default { ...@@ -263,6 +280,12 @@ export default {
// }) // })
// }, // },
// 查看 // 查看
handleVoidClose() {
this.voidDialogVisibity = false
},
handleVoidConfirm() {
this.handleVoidClose()
},
handleDetail(row) { handleDetail(row) {
this.$router.push({ this.$router.push({
path: '/giftBag/giftDetail', path: '/giftBag/giftDetail',
...@@ -271,6 +294,9 @@ export default { ...@@ -271,6 +294,9 @@ export default {
} }
}) })
}, },
toVoid(scope) {
this.voidDialogVisibity = true
},
getParams() { getParams() {
var params = JSON.parse(JSON.stringify(this.searchForm)) var params = JSON.parse(JSON.stringify(this.searchForm))
if (this.searchForm.createDate.length) { if (this.searchForm.createDate.length) {
...@@ -390,7 +416,7 @@ export default { ...@@ -390,7 +416,7 @@ export default {
} }
</script> </script>
<style scoped> <style lang="scss" scoped>
.table-header { .table-header {
display: inline-flex !important; display: inline-flex !important;
align-items: center; align-items: center;
...@@ -400,4 +426,15 @@ export default { ...@@ -400,4 +426,15 @@ export default {
.marketing /deep/ .el-table th div { .marketing /deep/ .el-table th div {
line-height: normal !important; line-height: normal !important;
} }
.void-dialog {
/deep/ .el-dialog__body {
padding: 20px 80px;
.wrap {
padding-bottom: 50px;
.dialog-tip {
margin-bottom: 20px;
}
}
}
}
</style> </style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!