Commit c39e5e3f by chenwq

优惠券联调

1 parent 0562f5bd
......@@ -60,6 +60,8 @@ export default {
isReload: true,
size: 'small',
searchForm: {
grantMerchantId: '',
verificationMerchantId: '',
couponName: '',
userReq: '',
verificationOperator: '',
......@@ -76,23 +78,23 @@ export default {
searchFormData: [
{
label: '发放门店',
name: '',
name: 'grantMerchantId',
labelWidth: 56,
type: 'select',
optionList: [],
optionId: 'confId',
optionLabel: 'confName',
optionsName: 'discountTypeList'
optionId: 'merchantNo',
optionLabel: 'merchantName',
optionsName: 'merchantList'
},
{
label: '核销门店',
name: '',
name: 'verificationMerchantId',
labelWidth: 56,
type: 'select',
optionList: [],
optionId: 'confId',
optionLabel: 'confName',
optionsName: 'discountTypeList'
optionId: 'merchantNo',
optionLabel: 'merchantName',
optionsName: 'merchantList'
},
// {
// label: '核销门店',
......@@ -126,12 +128,12 @@ export default {
maxlength: 50
},
{
label: '用户',
label: '用户信息',
name: 'userReq',
type: 'input',
labelWidth: 42,
placeholder: '请输入用户手机号',
maxlength: 11
placeholder: '请输入用户昵称或手机号',
maxlength: 50
},
{
label: '核销码',
......@@ -167,11 +169,11 @@ export default {
tableOption: false,
tableColumns: [
{
label: '核销用户',
label: '领取用户',
prop: 'userName',
width: 220,
formatter: cellValue => {
return (cellValue.userName || '') + ' ' + cellValue.phone
return cellValue.userName == cellValue.phone ? cellValue.userName : cellValue.userName + ' ' + cellValue.phone
}
},
{
......@@ -196,28 +198,31 @@ export default {
},
{
label: '发放门店',
prop: ''
width: 200,
prop: 'grantMerchantName'
},
{
label: '核销门店',
width: 200,
prop: 'verificationMerchantName'
},
{
label: '核销人',
width: 120,
prop: 'verificationOperator'
},
{
label: '核销码',
prop: 'verificationCode',
width: 200
},
{
label: '券来源',
prop: 'packageName',
addHtml: 'packageName',
width: 240
},
{
label: '核销码',
prop: 'verificationCode',
width: 200
},
{
label: '核销日期',
prop: 'verificationTime',
width: 200,
......@@ -262,20 +267,15 @@ export default {
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() {
this.getPackageList()
this.getMerchant()
this.getOptionsList('searchFormData')
},
......@@ -296,6 +296,17 @@ export default {
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) {
// console.log('row', row)
......@@ -433,6 +444,8 @@ export default {
handleReset() {
this.isReload = false
this.searchForm = {
grantMerchantId: '',
verificationMerchantId: '',
couponName: '',
userReq: '',
verificationOperator: '',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!