Commit 121f9203 by 王志慧

fixed

1 parent a0322e9c
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
<el-form-item label="活动模版:" prop="templateId" class="m-t-20"> <el-form-item label="活动模版:" prop="templateId" class="m-t-20">
<el-select :size="size" v-model="configForm.templateId" placeholder="请选择" @focus="getRedEnvelopeTemplateList" filterable > <el-select :size="size" v-model="configForm.templateId" placeholder="请选择" @focus="getRedEnvelopeTemplateList" filterable>
<el-option v-for="item in templateList" :key="item.id" :label="item.templateName" :value="item.id"></el-option> <el-option v-for="item in templateList" :key="item.id" :label="item.templateName" :value="item.id"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
...@@ -64,7 +64,7 @@ ...@@ -64,7 +64,7 @@
<!-- :红包、实物、谢谢惠顾时,为输入框 优惠券,为下拉框 --> <!-- :红包、实物、谢谢惠顾时,为输入框 优惠券,为下拉框 -->
<el-form-item style="margin-bottom: 0px" :prop="'awardList.' + scope.index + '.couponId'" :rules="configRules.couponId"> <el-form-item style="margin-bottom: 0px" :prop="'awardList.' + scope.index + '.couponId'" :rules="configRules.couponId">
<el-select style="width: 100%" v-model="scope.scope.couponId" placeholder="请选择" @change="setAwardName(scope.scope)"> <el-select style="width: 100%" v-model="scope.scope.couponId" placeholder="请选择" @change="setAwardName(scope.scope)">
<el-option v-for="item in couponList" :key="item.id" :label="item.goodsName+'('+item.denomination/100+'元)'" :value="item.id"></el-option> <el-option v-for="item in couponList" :key="item.id" :label="item.goodsName + '(' + item.denomination / 100 + '元)'" :value="item.id"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</template> </template>
...@@ -165,7 +165,8 @@ export const afterRangePickerOptions = { ...@@ -165,7 +165,8 @@ export const afterRangePickerOptions = {
import * as dayjs from 'dayjs' import * as dayjs from 'dayjs'
import { getMerchantListMixin } from '@/mixins' import { getMerchantListMixin } from '@/mixins'
import { awardType } from '@/common/constant' import { awardType } from '@/common/constant'
// 奖项类型: 0-红包、1-实物、2-优惠券、3-谢谢惠顾
const imgArr = []
export default { export default {
mixins: [getMerchantListMixin], mixins: [getMerchantListMixin],
name: '', name: '',
...@@ -178,7 +179,7 @@ export default { ...@@ -178,7 +179,7 @@ export default {
data() { data() {
return { return {
loading: false, loading: false,
activePage:1, activePage: 2,
templateList: [], templateList: [],
couponList: [], couponList: [],
afterRangePickerOptions, afterRangePickerOptions,
...@@ -296,10 +297,10 @@ export default { ...@@ -296,10 +297,10 @@ export default {
}, },
deep: true deep: true
}, },
'configForm.limiting'(newVal){ 'configForm.limiting'(newVal) {
if(newVal){ if (newVal) {
this.configForm.awardsConfig.limitTimes=1 this.configForm.awardsConfig.limitTimes = 1
this.configForm.awardsConfig.msg='' this.configForm.awardsConfig.msg = ''
} }
} }
}, },
...@@ -316,7 +317,7 @@ export default { ...@@ -316,7 +317,7 @@ export default {
amount: '', amount: '',
total: '', total: '',
probability: '', probability: '',
picture: '', picture: data.type != 3 ? `https://img01.glsx.com.cn/weapp/resource/saas/scrm/redEnvelope/prize-${data.type}.png` : '',
couponId: '' couponId: ''
} }
this.$set(this.configForm.awardList, index, this.configForm.awardList[index]) this.$set(this.configForm.awardList, index, this.configForm.awardList[index])
...@@ -437,7 +438,7 @@ export default { ...@@ -437,7 +438,7 @@ export default {
} }
this.configForm.awardList.forEach(item => { this.configForm.awardList.forEach(item => {
if (item.type === 0) { if (item.type === 0) {
if(item.total) params.redEnvelopesTotal += Number(item.total) if (item.total) params.redEnvelopesTotal += Number(item.total)
if (item.amount && item.total) { if (item.amount && item.total) {
params.amountTotal += item.amount * item.total params.amountTotal += item.amount * item.total
} }
......
...@@ -111,6 +111,11 @@ export default { ...@@ -111,6 +111,11 @@ export default {
} }
}, },
{ {
label: '活动形式',
prop: 'activityTypeStr',
minWidth: 100
},
{
label: '创建类型', label: '创建类型',
minWidth: 100, minWidth: 100,
formatter: cell => { formatter: cell => {
...@@ -118,11 +123,6 @@ export default { ...@@ -118,11 +123,6 @@ export default {
} }
}, },
{ {
label: '活动形式',
prop: 'activityTypeStr',
minWidth: 100
},
{
label: '红包链接总数', label: '红包链接总数',
prop: 'amount', prop: 'amount',
minWidth: 150 minWidth: 150
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!