修改文案

master
fanfan 5 months ago
parent 2e895ff215
commit 1f97b2269b
  1. 20
      src/views/goods/distributionPrice/Index.vue
  2. 20
      src/views/goods/memberPrice/Index.vue

@ -29,8 +29,8 @@
<div class="fan" v-for="(m, index2) in k.price_list" :key="m.id"> <div class="fan" v-for="(m, index2) in k.price_list" :key="m.id">
<a-form-item style="margin-right: 15px; width: 47%; cursor: pointer"> <a-form-item style="margin-right: 15px; width: 47%; cursor: pointer">
<div class="inMax"> <div class="inMax">
<input placeholder="最小利润值" @blur="onPrice($event, index, index2)" v-model="m.min" class="input" type="text" /> <input placeholder="最低成本价" @blur="onPrice($event, index, index2)" v-model="m.min" class="input" type="text" />
~<input placeholder="最大利润值" @blur="onPrice($event, index, index2)" v-model="m.max" class="input" type="text" /> ~<input placeholder="最高成本价" @blur="onPrice($event, index, index2)" v-model="m.max" class="input" type="text" />
<div class="yuan"></div> <div class="yuan"></div>
</div> </div>
</a-form-item> </a-form-item>
@ -107,21 +107,21 @@ export default {
const list = form.getFieldValue('list') const list = form.getFieldValue('list')
if (0 >= list[index_1].price_list[index_2].min) { if (0 >= list[index_1].price_list[index_2].min) {
list[index_1].price_list[index_2].min = null list[index_1].price_list[index_2].min = null
this.$message.warning('最小利润值必须大于0', 1.5) this.$message.warning('最低成本价必须大于0', 1.5)
list[index_1].price_list[index_2].startProfit = 0 list[index_1].price_list[index_2].startProfit = 0
list[index_1].price_list[index_2].endProfit = 0 list[index_1].price_list[index_2].endProfit = 0
return return
} }
if (0 >= list[index_1].price_list[index_2].max) { if (0 >= list[index_1].price_list[index_2].max) {
list[index_1].price_list[index_2].max = null list[index_1].price_list[index_2].max = null
this.$message.warning('最大利润值必须大于0', 1.5) this.$message.warning('最高成本价必须大于0', 1.5)
list[index_1].price_list[index_2].startProfit = 0 list[index_1].price_list[index_2].startProfit = 0
list[index_1].price_list[index_2].endProfit = 0 list[index_1].price_list[index_2].endProfit = 0
return return
} }
if (list[index_1].price_list[index_2].min > list[index_1].price_list[index_2].max) { if (list[index_1].price_list[index_2].min > list[index_1].price_list[index_2].max) {
list[index_1].price_list[index_2].max = null list[index_1].price_list[index_2].max = null
this.$message.warning('最大利润值不能低于最小利润值', 1.5) this.$message.warning('最高成本价不能低于最低成本价', 1.5)
list[index_1].price_list[index_2].startProfit = 0 list[index_1].price_list[index_2].startProfit = 0
list[index_1].price_list[index_2].endProfit = 0 list[index_1].price_list[index_2].endProfit = 0
return return
@ -155,12 +155,12 @@ export default {
let max = list[index_1].price_list[index_2].max let max = list[index_1].price_list[index_2].max
if (!min && !max) { if (!min && !max) {
list[index_1].price_list[index_2].add_price_rate = '' list[index_1].price_list[index_2].add_price_rate = ''
this.$message.warning('利润不能低于为空', 1.5) this.$message.warning('利润不能低于为空', 1.5)
return return
} }
if (0 > rate) { if (0 > rate) {
list[index_1].price_list[index_2].add_price_rate = '' list[index_1].price_list[index_2].add_price_rate = ''
this.$message.warning('最低利率不能低于等于0', 1.5) this.$message.warning('利率不能低于等于0', 1.5)
return return
} }
list[index_1].price_list[index_2].startProfit = Number( list[index_1].price_list[index_2].startProfit = Number(
@ -382,19 +382,19 @@ export default {
item_1.category = item.category item_1.category = item.category
if (!item_1.min) { if (!item_1.min) {
step++ step++
let name = '请完善第' + (index + 1) + '行分类模版的' + '第' + (index_1 + 1) + '行分类的最低价' let name = '请完善第' + (index + 1) + '行分类模版的' + '第' + (index_1 + 1) + '行分类的最低成本价'
this.$message.warning(name, 1.5) this.$message.warning(name, 1.5)
return return
} }
if (!item_1.max) { if (!item_1.max) {
step++ step++
let name = '请完善第' + (index + 1) + '行分类模版的' + '第' + (index_1 + 1) + '行分类的最高价' let name = '请完善第' + (index + 1) + '行分类模版的' + '第' + (index_1 + 1) + '行分类的最高成本价'
this.$message.warning(name, 1.5) this.$message.warning(name, 1.5)
return return
} }
if (!item_1.add_price_rate) { if (!item_1.add_price_rate) {
step++ step++
let name = '请完善第' + (index + 1) + '行分类模版的' + '第' + (index_1 + 1) + '行分类的会员加价率' let name = '请完善第' + (index + 1) + '行分类模版的' + '第' + (index_1 + 1) + '行分类的会员利润率'
this.$message.warning(name, 1.5) this.$message.warning(name, 1.5)
return return
} }

@ -28,8 +28,8 @@
<div class="fan" v-for="(m, index2) in k.price_list" :key="m.id"> <div class="fan" v-for="(m, index2) in k.price_list" :key="m.id">
<a-form-item style="margin-right: 15px; width: 47%; cursor: pointer"> <a-form-item style="margin-right: 15px; width: 47%; cursor: pointer">
<div class="inMax"> <div class="inMax">
<input placeholder="最小利润值" @blur="onPrice($event, index, index2)" v-model="m.min" class="input" type="text" /> <input placeholder="最低成本价" @blur="onPrice($event, index, index2)" v-model="m.min" class="input" type="text" />
~<input placeholder="最大利润值" @blur="onPrice($event, index, index2)" v-model="m.max" class="input" type="text" /> ~<input placeholder="最高成本价" @blur="onPrice($event, index, index2)" v-model="m.max" class="input" type="text" />
<div class="yuan"></div> <div class="yuan"></div>
</div> </div>
</a-form-item> </a-form-item>
@ -106,21 +106,21 @@ export default {
const list = form.getFieldValue('list') const list = form.getFieldValue('list')
if (0 >= list[index_1].price_list[index_2].min) { if (0 >= list[index_1].price_list[index_2].min) {
list[index_1].price_list[index_2].min = null list[index_1].price_list[index_2].min = null
this.$message.warning('最小利润值必须大于0', 1.5) this.$message.warning('最低成本价必须大于0', 1.5)
list[index_1].price_list[index_2].startProfit = 0 list[index_1].price_list[index_2].startProfit = 0
list[index_1].price_list[index_2].endProfit = 0 list[index_1].price_list[index_2].endProfit = 0
return return
} }
if (0 >= list[index_1].price_list[index_2].max) { if (0 >= list[index_1].price_list[index_2].max) {
list[index_1].price_list[index_2].max = null list[index_1].price_list[index_2].max = null
this.$message.warning('最大利润值必须大于0', 1.5) this.$message.warning('最高成本价必须大于0', 1.5)
list[index_1].price_list[index_2].startProfit = 0 list[index_1].price_list[index_2].startProfit = 0
list[index_1].price_list[index_2].endProfit = 0 list[index_1].price_list[index_2].endProfit = 0
return return
} }
if (list[index_1].price_list[index_2].min > list[index_1].price_list[index_2].max) { if (list[index_1].price_list[index_2].min > list[index_1].price_list[index_2].max) {
list[index_1].price_list[index_2].max = null list[index_1].price_list[index_2].max = null
this.$message.warning('最大利润值不能低于最小利润值', 1.5) this.$message.warning('最高成本价不能低于最低成本价', 1.5)
list[index_1].price_list[index_2].startProfit = 0 list[index_1].price_list[index_2].startProfit = 0
list[index_1].price_list[index_2].endProfit = 0 list[index_1].price_list[index_2].endProfit = 0
return return
@ -154,12 +154,12 @@ export default {
let max = list[index_1].price_list[index_2].max let max = list[index_1].price_list[index_2].max
if (!min && !max) { if (!min && !max) {
list[index_1].price_list[index_2].add_price_rate = '' list[index_1].price_list[index_2].add_price_rate = ''
this.$message.warning('利润不能低于为空', 1.5) this.$message.warning('利润不能低于为空', 1.5)
return return
} }
if (0 > rate) { if (0 > rate) {
list[index_1].price_list[index_2].add_price_rate = '' list[index_1].price_list[index_2].add_price_rate = ''
this.$message.warning('最低利率不能低于等于0', 1.5) this.$message.warning('利率不能低于等于0', 1.5)
return return
} }
list[index_1].price_list[index_2].startProfit = Number( list[index_1].price_list[index_2].startProfit = Number(
@ -381,19 +381,19 @@ export default {
item_1.category = item.category item_1.category = item.category
if (!item_1.min) { if (!item_1.min) {
step++ step++
let name = '请完善第' + (index + 1) + '行分类模版的' + '第' + (index_1 + 1) + '行分类的最低价' let name = '请完善第' + (index + 1) + '行分类模版的' + '第' + (index_1 + 1) + '行分类的最低成本价'
this.$message.warning(name, 1.5) this.$message.warning(name, 1.5)
return return
} }
if (!item_1.max) { if (!item_1.max) {
step++ step++
let name = '请完善第' + (index + 1) + '行分类模版的' + '第' + (index_1 + 1) + '行分类的最高价' let name = '请完善第' + (index + 1) + '行分类模版的' + '第' + (index_1 + 1) + '行分类的最高成本价'
this.$message.warning(name, 1.5) this.$message.warning(name, 1.5)
return return
} }
if (!item_1.add_price_rate) { if (!item_1.add_price_rate) {
step++ step++
let name = '请完善第' + (index + 1) + '行分类模版的' + '第' + (index_1 + 1) + '行分类的会员加价率' let name = '请完善第' + (index + 1) + '行分类模版的' + '第' + (index_1 + 1) + '行分类的利润率'
this.$message.warning(name, 1.5) this.$message.warning(name, 1.5)
return return
} }

Loading…
Cancel
Save