Commit 29ca2eb0 by 周子尧

1

1 parent ee39768c
...@@ -53,5 +53,27 @@ const getGiftInfoApi = params => { ...@@ -53,5 +53,27 @@ const getGiftInfoApi = params => {
returnAll: true returnAll: true
}) })
} }
// 根据条件获取已领取定向礼包列表
const getReceivedGiftInfoApi = params => {
params.method = 'scrm.api.coupon.user.saas.directional.gift.list'
return http({
url: 'rop-scrm-coupon/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
// 导出已领取礼包
const exportGiftInfoApi = params => {
params.method = 'scrm.api.coupon.user.saas.directional.gift.list.export'
return http({
url: 'rop-scrm-coupon/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
export default { getFollowerStaffListApi, getListApi, giftExportApi, deleteGiftApi, getGiftInfoApi } export default { getFollowerStaffListApi, getListApi, giftExportApi, deleteGiftApi, getGiftInfoApi,getReceivedGiftInfoApi,exportGiftInfoApi }
...@@ -18,11 +18,11 @@ ...@@ -18,11 +18,11 @@
</div> </div>
<!-- 表格区域 开始 --> <!-- 表格区域 开始 -->
<GLTable ref="giftListRef" :getListApi="getListApi" :hasNum="false" :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" @setTableFinishFun="setTableFinishFun">
<div slot="giftInfo" slot-scope="scope"> <div slot="giftInfo" slot-scope="scope">
<div>礼包明细</div> <div>礼包明细</div>
<div>{{ scope.scope }}</div> <div>{{ scope.scope }}</div>
<GLTable ref="giftListRef" :getListApi="getGiftListApi" :hasNum="false" :noDataImg="url" :searchForm="giftSearchForm" :tableParams="giftParams" :pageConf="giftPageConf"></GLTable> <!-- <GLTable ref="giftListRef" :getListApi="getGiftListApi" :hasNum="false" :noDataImg="url" :searchForm="scope.scope" :tableParams="giftParams" :pageConf="giftPageConf"></GLTable> -->
</div> </div>
</GLTable> </GLTable>
<!-- 表格区域 end --> <!-- 表格区域 end -->
...@@ -40,7 +40,7 @@ export default { ...@@ -40,7 +40,7 @@ export default {
size: 'small', size: 'small',
url: url, url: url,
searchForm: { searchForm: {
whether: '', wechatUserFlag: '',
orderCode: '', orderCode: '',
commentStatus: '', commentStatus: '',
createDate: [] createDate: []
...@@ -50,7 +50,7 @@ export default { ...@@ -50,7 +50,7 @@ export default {
searchFormData: [ searchFormData: [
{ {
label: '领用客户', label: '领用客户',
name: 'customer', name: 'nickName',
type: 'input' type: 'input'
}, },
{ {
...@@ -60,7 +60,7 @@ export default { ...@@ -60,7 +60,7 @@ export default {
}, },
{ {
label: '是否为企微客户', label: '是否为企微客户',
name: 'whether', name: 'wechatUserFlag',
type: 'select', type: 'select',
optionList: [], optionList: [],
optionId: 'Id', optionId: 'Id',
...@@ -71,11 +71,11 @@ export default { ...@@ -71,11 +71,11 @@ export default {
searchFormData1: [ searchFormData1: [
{ {
label: '发放员工', label: '发放员工',
name: 'staff', name: 'staffName',
type: 'input' type: 'input'
}, },
{ {
label: '领用日期', label: '领取用日期',
name: 'receiveDate', name: 'receiveDate',
type: 'datePicker', type: 'datePicker',
pickerOptions: 'beforeRangePickerOptions' pickerOptions: 'beforeRangePickerOptions'
...@@ -93,8 +93,8 @@ export default { ...@@ -93,8 +93,8 @@ export default {
} }
] ]
}, },
//礼包表格 //礼包详情
getGiftListApi: this.$apis.orderComment.getListApi, getGiftListApi: this.$apis.giftBag.getGiftInfoApi,
giftParams: { giftParams: {
listName: 'list', listName: 'list',
tableOption: false, tableOption: false,
...@@ -128,8 +128,8 @@ export default { ...@@ -128,8 +128,8 @@ export default {
] ]
}, },
giftPageConf: { pageSize: 'pageSize', pageNum: 'currentPage', totalCount: 'total' }, giftPageConf: { pageSize: 'pageSize', pageNum: 'currentPage', totalCount: 'total' },
// 表格 // 礼包
getListApi: this.$apis.orderComment.getListApi, getListApi: this.$apis.giftBag.getGiftInfoApi,
tableParams: { tableParams: {
listName: 'list', listName: 'list',
tableOption: false, tableOption: false,
...@@ -143,31 +143,27 @@ export default { ...@@ -143,31 +143,27 @@ export default {
addHtml: 'giftInfo' addHtml: 'giftInfo'
}, },
{ {
label: '序号',
prop: 'idx'
},
{
label: '领取客户', label: '领取客户',
prop: 'orderCode' prop: 'nickName'
}, },
{ {
label: '是否为企微客户', label: '是否为企微客户',
prop: 'orderCode', prop: 'wechatUserFlag',
width: '200' width: '200'
}, },
{ {
label: '礼包名称', label: '礼包名称',
prop: 'orderCode', prop: 'giftName',
width: '200'
},
{
label: '备注名称',
prop: 'orderCode',
width: '200' width: '200'
}, },
// {
// label: '备注名称',
// prop: 'orderCode',
// width: '200'
// },
{ {
label: '预估成本/元', label: '预估成本/元',
prop: 'orderCode' prop: 'anticipatedCost'
}, },
{ {
label: '已核销成本', label: '已核销成本',
...@@ -175,11 +171,11 @@ export default { ...@@ -175,11 +171,11 @@ export default {
}, },
{ {
label: '发放员工', label: '发放员工',
prop: 'orderCode' prop: 'staffName'
}, },
{ {
label: '创建时间', label: '领取时间',
prop: 'createdDate', prop: 'startTime',
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')
...@@ -199,8 +195,8 @@ export default { ...@@ -199,8 +195,8 @@ export default {
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) {
params.createStartDateStr = new Date(this.searchForm.createDate[0]).toLocaleDateString().replace(/\//g, '-') + ' 00:00:00' params.startTime = new Date(this.searchForm.createDate[0]).toLocaleDateString().replace(/\//g, '-') + ' 00:00:00'
params.createEndDateStr = new Date(this.searchForm.createDate[1]).toLocaleDateString().replace(/\//g, '-') + ' 23:59:59' params.endTime = new Date(this.searchForm.createDate[1]).toLocaleDateString().replace(/\//g, '-') + ' 23:59:59'
} }
delete params.createDate delete params.createDate
return params return params
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!