Commit bb5320df by 周子尧

1

1 parent 29ca2eb0
......@@ -18,7 +18,7 @@
</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>礼包明细</div>
<div>{{ scope.scope }}</div>
......@@ -40,9 +40,11 @@ export default {
size: 'small',
url: url,
searchForm: {
nickName: '',
wechatUserFlag: '',
giftName: '',
staffName: '',
orderCode: '',
commentStatus: '',
createDate: []
},
tableSearchForm: {},
......@@ -129,7 +131,7 @@ export default {
},
giftPageConf: { pageSize: 'pageSize', pageNum: 'currentPage', totalCount: 'total' },
// 礼包
getListApi: this.$apis.giftBag.getGiftInfoApi,
getListApi: this.$apis.giftBag.getReceivedGiftInfoApi,
tableParams: {
listName: 'list',
tableOption: false,
......@@ -149,11 +151,24 @@ export default {
{
label: '是否为企微客户',
prop: 'wechatUserFlag',
width: '200'
width: '200',
formatter: cellValue => {
if (cellValue.wechatUserFlag == 1) {
return '否'
} else if (cellValue.wechatUserFlag == 2) {
return '是'
}
}
},
{
label: '礼包名称',
prop: 'giftName',
prop: 'directionalGiftName',
width: '200'
},
{
label: '礼包备注名称',
prop: 'directionalGiftRemarkName',
width: '200'
},
// {
......@@ -167,7 +182,7 @@ export default {
},
{
label: '已核销成本',
prop: 'orderCode'
prop: 'verificationAnticipatedCos'
},
{
label: '发放员工',
......@@ -175,7 +190,7 @@ export default {
},
{
label: '领取时间',
prop: 'startTime',
prop: 'createdDate',
width: '180',
formatter: cellValue => {
return dayjs(cellValue.createdDate).format('YYYY-MM-DD HH:mm:ss')
......@@ -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!