Commit bb5320df by 周子尧

1

1 parent 29ca2eb0
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
</div> </div>
<!-- 表格区域 开始 --> <!-- 表格区域 开始 -->
<GLTable ref="giftListRef" :getListApi="getListApi" :hasNum="true" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun"> <GLTable ref="giftListRef" :getListApi="getListApi" :hasNum="true" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn">
<div slot="giftInfo" slot-scope="scope"> <div slot="giftInfo" slot-scope="scope">
<div>礼包明细</div> <div>礼包明细</div>
<div>{{ scope.scope }}</div> <div>{{ scope.scope }}</div>
...@@ -40,9 +40,11 @@ export default { ...@@ -40,9 +40,11 @@ export default {
size: 'small', size: 'small',
url: url, url: url,
searchForm: { searchForm: {
nickName: '',
wechatUserFlag: '', wechatUserFlag: '',
giftName: '',
staffName: '',
orderCode: '', orderCode: '',
commentStatus: '',
createDate: [] createDate: []
}, },
tableSearchForm: {}, tableSearchForm: {},
...@@ -129,7 +131,7 @@ export default { ...@@ -129,7 +131,7 @@ export default {
}, },
giftPageConf: { pageSize: 'pageSize', pageNum: 'currentPage', totalCount: 'total' }, giftPageConf: { pageSize: 'pageSize', pageNum: 'currentPage', totalCount: 'total' },
// 礼包 // 礼包
getListApi: this.$apis.giftBag.getGiftInfoApi, getListApi: this.$apis.giftBag.getReceivedGiftInfoApi,
tableParams: { tableParams: {
listName: 'list', listName: 'list',
tableOption: false, tableOption: false,
...@@ -149,11 +151,24 @@ export default { ...@@ -149,11 +151,24 @@ export default {
{ {
label: '是否为企微客户', label: '是否为企微客户',
prop: 'wechatUserFlag', prop: 'wechatUserFlag',
width: '200' width: '200',
formatter: cellValue => {
if (cellValue.wechatUserFlag == 1) {
return '否'
} else if (cellValue.wechatUserFlag == 2) {
return '是'
}
}
}, },
{ {
label: '礼包名称', label: '礼包名称',
prop: 'giftName', prop: 'directionalGiftName',
width: '200'
},
{
label: '礼包备注名称',
prop: 'directionalGiftRemarkName',
width: '200' width: '200'
}, },
// { // {
...@@ -167,7 +182,7 @@ export default { ...@@ -167,7 +182,7 @@ export default {
}, },
{ {
label: '已核销成本', label: '已核销成本',
prop: 'orderCode' prop: 'verificationAnticipatedCos'
}, },
{ {
label: '发放员工', label: '发放员工',
...@@ -175,7 +190,7 @@ export default { ...@@ -175,7 +190,7 @@ export default {
}, },
{ {
label: '领取时间', label: '领取时间',
prop: 'startTime', prop: 'createdDate',
width: '180', width: '180',
formatter: cellValue => { formatter: cellValue => {
return dayjs(cellValue.createdDate).format('YYYY-MM-DD HH:mm:ss') return dayjs(cellValue.createdDate).format('YYYY-MM-DD HH:mm:ss')
...@@ -183,7 +198,7 @@ export default { ...@@ -183,7 +198,7 @@ export default {
} }
] ]
}, },
pageConf: { pageSize: 'pageSize', pageNum: 'currentPage', totalCount: 'total' } pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' }
} }
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!