Commit 6eb494ea by 周子尧

1

1 parent 3437d45f
......@@ -45,7 +45,9 @@ export default {
let reduceArr = arr1.map(item => {
item.delet = 0
arr2.map(ele => {
item.delet = ele.couponAmount
if (item.couponId == ele.couponId) {
item.delet = ele.couponAmount
}
})
return item
})
......@@ -211,8 +213,11 @@ export default {
}
},
{
label: '已核销成本',
prop: 'verificationAnticipatedCost'
label: '已核销成本/元',
prop: 'verificationAnticipatedCost',
formatter: cellValue => {
return cellValue.verificationAnticipatedCost / 100
}
},
{
label: '发放员工',
......
......@@ -101,8 +101,8 @@ export default {
{
label: '预估成本/元',
prop: 'anticipatedCost ',
formatter: cellValue => {
return cellValue.anticipatedCost/100
formatter: cellValue => {
return cellValue.anticipatedCost / 100
}
},
{
......@@ -177,7 +177,7 @@ export default {
case 0:
return '无限制'
case 1:
return row.useAmount
return '有效期内可使用' + row.useAmount + '次'
case 2:
return '每' + row.useLimitDays + '天可以使用' + row.useAmount + '次'
}
......
......@@ -8,7 +8,7 @@
<el-form-item size="small" label="服务名称" prop="couponName" style="width: 440px">
<el-input size="small" :disabled="disabledContent" v-model.trim="ruleForm.couponName" maxlength="20" placeholder="请输入服务名称,如“精洗轿车”"></el-input>
</el-form-item>
<el-form-item size="small" label="预估成本" prop="anticipatedCost" style="width: 440px">
<el-form-item size="small" label="预估成本/元" prop="anticipatedCost" style="width: 440px">
<el-input size="small" :disabled="disabledCost" v-model.trim="ruleForm.anticipatedCost" maxlength="20" placeholder="请输入预估成本"></el-input>
</el-form-item>
<el-form-item size="small" label="有效期" prop="effectiveType">
......@@ -300,6 +300,7 @@ export default {
params.couponId = this.$route.query.couponId
detailService(params).then(res => {
this.ruleForm = res
this.ruleForm.anticipatedCost = res.anticipatedCost / 100
this.ruleForm.customUseLimit = res.useType
if (res.effectiveType == 1) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!