Commit c39e5e3f by chenwq

优惠券联调

1 parent 0562f5bd
...@@ -60,6 +60,8 @@ export default { ...@@ -60,6 +60,8 @@ export default {
isReload: true, isReload: true,
size: 'small', size: 'small',
searchForm: { searchForm: {
grantMerchantId: '',
verificationMerchantId: '',
couponName: '', couponName: '',
userReq: '', userReq: '',
verificationOperator: '', verificationOperator: '',
...@@ -76,23 +78,23 @@ export default { ...@@ -76,23 +78,23 @@ export default {
searchFormData: [ searchFormData: [
{ {
label: '发放门店', label: '发放门店',
name: '', name: 'grantMerchantId',
labelWidth: 56, labelWidth: 56,
type: 'select', type: 'select',
optionList: [], optionList: [],
optionId: 'confId', optionId: 'merchantNo',
optionLabel: 'confName', optionLabel: 'merchantName',
optionsName: 'discountTypeList' optionsName: 'merchantList'
}, },
{ {
label: '核销门店', label: '核销门店',
name: '', name: 'verificationMerchantId',
labelWidth: 56, labelWidth: 56,
type: 'select', type: 'select',
optionList: [], optionList: [],
optionId: 'confId', optionId: 'merchantNo',
optionLabel: 'confName', optionLabel: 'merchantName',
optionsName: 'discountTypeList' optionsName: 'merchantList'
}, },
// { // {
// label: '核销门店', // label: '核销门店',
...@@ -126,12 +128,12 @@ export default { ...@@ -126,12 +128,12 @@ export default {
maxlength: 50 maxlength: 50
}, },
{ {
label: '用户', label: '用户信息',
name: 'userReq', name: 'userReq',
type: 'input', type: 'input',
labelWidth: 42, labelWidth: 42,
placeholder: '请输入用户手机号', placeholder: '请输入用户昵称或手机号',
maxlength: 11 maxlength: 50
}, },
{ {
label: '核销码', label: '核销码',
...@@ -167,11 +169,11 @@ export default { ...@@ -167,11 +169,11 @@ export default {
tableOption: false, tableOption: false,
tableColumns: [ tableColumns: [
{ {
label: '核销用户', label: '领取用户',
prop: 'userName', prop: 'userName',
width: 220, width: 220,
formatter: cellValue => { formatter: cellValue => {
return (cellValue.userName || '') + ' ' + cellValue.phone return cellValue.userName == cellValue.phone ? cellValue.userName : cellValue.userName + ' ' + cellValue.phone
} }
}, },
{ {
...@@ -196,28 +198,31 @@ export default { ...@@ -196,28 +198,31 @@ export default {
}, },
{ {
label: '发放门店', label: '发放门店',
prop: '' width: 200,
prop: 'grantMerchantName'
}, },
{ {
label: '核销门店', label: '核销门店',
width: 200,
prop: 'verificationMerchantName' prop: 'verificationMerchantName'
}, },
{ {
label: '核销人', label: '核销人',
width: 120,
prop: 'verificationOperator' prop: 'verificationOperator'
}, },
{ {
label: '核销码',
prop: 'verificationCode',
width: 200
},
{
label: '券来源', label: '券来源',
prop: 'packageName', prop: 'packageName',
addHtml: 'packageName', addHtml: 'packageName',
width: 240 width: 240
}, },
{ {
label: '核销码',
prop: 'verificationCode',
width: 200
},
{
label: '核销日期', label: '核销日期',
prop: 'verificationTime', prop: 'verificationTime',
width: 200, width: 200,
...@@ -262,20 +267,15 @@ export default { ...@@ -262,20 +267,15 @@ export default {
confName: '服务券' confName: '服务券'
} }
], ],
packageList: [] packageList: [],
} merchantList: []
} }
},
created() {
if (this.$isGroupUp) {
this.getPackageList()
} }
this.showOrHideAttr('searchFormData', this.$isGroupUp ? '核销人' : '', true)
!this.$isGroupUp && this.showOrHideAttr('searchFormData', '券来源', true)
this.deleteAttr(this.$isGroupUp ? ['核销人'] : [])
}, },
mounted() { mounted() {
this.getPackageList()
this.getMerchant()
this.getOptionsList('searchFormData') this.getOptionsList('searchFormData')
}, },
...@@ -296,6 +296,17 @@ export default { ...@@ -296,6 +296,17 @@ export default {
this.getOptionsList('searchFormData', true, 'packageId') this.getOptionsList('searchFormData', true, 'packageId')
}) })
}, },
getMerchant() {
const { session } = this.$globalState || {}
const param = {
supMerchantNo: session.merchantId,
merchantAccountLevel: 4
}
this.$apis.groupGiftBag.getMerchantListApi(param).then(res => {
this.baseData.merchantList = res || []
this.getOptionsList('searchFormData')
})
},
// 跳转到礼包领取详情页 // 跳转到礼包领取详情页
couponNameHandleDetail(row) { couponNameHandleDetail(row) {
// console.log('row', row) // console.log('row', row)
...@@ -433,6 +444,8 @@ export default { ...@@ -433,6 +444,8 @@ export default {
handleReset() { handleReset() {
this.isReload = false this.isReload = false
this.searchForm = { this.searchForm = {
grantMerchantId: '',
verificationMerchantId: '',
couponName: '', couponName: '',
userReq: '', userReq: '',
verificationOperator: '', verificationOperator: '',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!