Commit 29ca2eb0 by 周子尧

1

1 parent ee39768c
......@@ -53,5 +53,27 @@ const getGiftInfoApi = params => {
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 @@
</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>礼包明细</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>
</GLTable>
<!-- 表格区域 end -->
......@@ -40,7 +40,7 @@ export default {
size: 'small',
url: url,
searchForm: {
whether: '',
wechatUserFlag: '',
orderCode: '',
commentStatus: '',
createDate: []
......@@ -50,7 +50,7 @@ export default {
searchFormData: [
{
label: '领用客户',
name: 'customer',
name: 'nickName',
type: 'input'
},
{
......@@ -60,7 +60,7 @@ export default {
},
{
label: '是否为企微客户',
name: 'whether',
name: 'wechatUserFlag',
type: 'select',
optionList: [],
optionId: 'Id',
......@@ -71,11 +71,11 @@ export default {
searchFormData1: [
{
label: '发放员工',
name: 'staff',
name: 'staffName',
type: 'input'
},
{
label: '领用日期',
label: '领取用日期',
name: 'receiveDate',
type: 'datePicker',
pickerOptions: 'beforeRangePickerOptions'
......@@ -93,8 +93,8 @@ export default {
}
]
},
//礼包表格
getGiftListApi: this.$apis.orderComment.getListApi,
//礼包详情
getGiftListApi: this.$apis.giftBag.getGiftInfoApi,
giftParams: {
listName: 'list',
tableOption: false,
......@@ -128,8 +128,8 @@ export default {
]
},
giftPageConf: { pageSize: 'pageSize', pageNum: 'currentPage', totalCount: 'total' },
// 表格
getListApi: this.$apis.orderComment.getListApi,
// 礼包
getListApi: this.$apis.giftBag.getGiftInfoApi,
tableParams: {
listName: 'list',
tableOption: false,
......@@ -143,31 +143,27 @@ export default {
addHtml: 'giftInfo'
},
{
label: '序号',
prop: 'idx'
},
{
label: '领取客户',
prop: 'orderCode'
prop: 'nickName'
},
{
label: '是否为企微客户',
prop: 'orderCode',
prop: 'wechatUserFlag',
width: '200'
},
{
label: '礼包名称',
prop: 'orderCode',
width: '200'
},
{
label: '备注名称',
prop: 'orderCode',
prop: 'giftName',
width: '200'
},
// {
// label: '备注名称',
// prop: 'orderCode',
// width: '200'
// },
{
label: '预估成本/元',
prop: 'orderCode'
prop: 'anticipatedCost'
},
{
label: '已核销成本',
......@@ -175,11 +171,11 @@ export default {
},
{
label: '发放员工',
prop: 'orderCode'
prop: 'staffName'
},
{
label: '创建时间',
prop: 'createdDate',
label: '领取时间',
prop: 'startTime',
width: '180',
formatter: cellValue => {
return dayjs(cellValue.createdDate).format('YYYY-MM-DD HH:mm:ss')
......@@ -199,8 +195,8 @@ export default {
getParams() {
var params = JSON.parse(JSON.stringify(this.searchForm))
if (this.searchForm.createDate.length) {
params.createStartDateStr = 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.startTime = new Date(this.searchForm.createDate[0]).toLocaleDateString().replace(/\//g, '-') + ' 00:00:00'
params.endTime = new Date(this.searchForm.createDate[1]).toLocaleDateString().replace(/\//g, '-') + ' 23:59:59'
}
delete params.createDate
return params
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!