Commit 589284d1 by zhangquan

修复第一轮bug

1 parent 0c82cb8d
......@@ -10,7 +10,7 @@
{{ scope.scope.appearance == 2 ? scope.scope.productName + (scope.scope.denomination || '') : scope.scope.productName }}
</div>
<div class="coupon_cost" slot="couponCost" slot-scope="scope">
<el-input :class="{ lowerZero: Number(scope.scope.newCost) <= 0 || Number(scope.scope.newCost) >= Number(scope.scope.salesPrice) }" v-model="scope.scope.newCost" @input="formatNum(scope.scope.id, scope.scope.newCost)" />
<el-input :class="{ lowerZero: Number(scope.scope.newCost) <= 0 || Number(scope.scope.newCost) >= Number(scope.scope.lineationPrice) }" v-model="scope.scope.newCost" @input="formatNum(scope.scope.id, scope.scope.newCost)" />
</div>
<div slot="auth-button" slot-scope="scope">
<GLTableButton :buttonList="buttonList" :buttonItem="scope" :buttonNum="3"></GLTableButton>
......@@ -183,9 +183,9 @@ export default {
this.$refs.couponRef.$refs.formRef.validate(valid => {
if (!valid) return
let { selectedGoodsList, effectiveDays } = this.couponFormObj
const target = selectedGoodsList.find(item => Number(item.newCost) <= 0 || Number(item.newCost) >= Number(item.salesPrice))
const target = selectedGoodsList.find(item => Number(item.newCost) <= 0 || Number(item.newCost) >= Number(item.lineationPrice))
console.log(target)
if (target) return this.$message.error('请填写大于0,小于会员价的券面额')
if (target) return this.$message.error('请填写大于0,小于官方价的券面额')
let equityCouponRequestList = selectedGoodsList.map(item => {
let { brandName, id: goodId, productName: goodsName, appearance, denomination: rechargeDenomination, newCost } = item
return { brandName, goodId, goodsName, appearance, denomination: parseInt(Number(newCost) * 100), rechargeDenomination }
......
......@@ -131,7 +131,8 @@ export default {
dialogSearchForm: {
brandName: '',
productName: '',
appearance: 1
appearance: 1,
status: 1
},
dialogFormData: [
{
......@@ -179,7 +180,8 @@ export default {
this.dialogSearchForm = {
brandName: '',
productName: '',
appearance: type || appearance
appearance: type || appearance,
status: 1
}
},
handleRest(type) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!