diff --git a/src/views/goods/Create.vue b/src/views/goods/Create.vue index e0f39c1..02bd096 100644 --- a/src/views/goods/Create.vue +++ b/src/views/goods/Create.vue @@ -1,365 +1,543 @@ diff --git a/src/views/goods/distributionPrice/Index.vue b/src/views/goods/distributionPrice/Index.vue index 78252d3..e83fcb1 100644 --- a/src/views/goods/distributionPrice/Index.vue +++ b/src/views/goods/distributionPrice/Index.vue @@ -181,7 +181,7 @@ export default { return } if (list[index_1].price_list[index_2].min && list[index_1].price_list[index_2].max) { - let rate = Number(list[index_1].price_list[index_2].add_price_rate) + let rate =list[index_1].price_list[index_2].add_price_rate list[index_1].price_list[index_2].startProfit = Number( (list[index_1].price_list[index_2].min * (rate / 100)).toFixed(2) ) @@ -199,7 +199,7 @@ export default { onRate(e, index_1, index_2) { const { form } = this const list = form.getFieldValue('list') - let rate = Number(list[index_1].price_list[index_2].add_price_rate) + let rate = list[index_1].price_list[index_2].add_price_rate let min = list[index_1].price_list[index_2].min let max = list[index_1].price_list[index_2].max if (!min) { diff --git a/src/views/goods/memberPrice/Index.vue b/src/views/goods/memberPrice/Index.vue index a54f156..341999a 100644 --- a/src/views/goods/memberPrice/Index.vue +++ b/src/views/goods/memberPrice/Index.vue @@ -178,7 +178,7 @@ export default { return } if (list[index_1].price_list[index_2].min && list[index_1].price_list[index_2].max) { - let rate = Number(list[index_1].price_list[index_2].add_price_rate) + let rate =list[index_1].price_list[index_2].add_price_rate list[index_1].price_list[index_2].startProfit = Number( (list[index_1].price_list[index_2].min * (rate / 100)).toFixed(2) ) @@ -196,7 +196,7 @@ export default { onRate(e, index_1, index_2) { const { form } = this const list = form.getFieldValue('list') - let rate = Number(list[index_1].price_list[index_2].add_price_rate) + let rate = list[index_1].price_list[index_2].add_price_rate let min = list[index_1].price_list[index_2].min let max = list[index_1].price_list[index_2].max if (!min) { diff --git a/src/views/goods/modules/Update.vue b/src/views/goods/modules/Update.vue index 49e8867..a9dea72 100644 --- a/src/views/goods/modules/Update.vue +++ b/src/views/goods/modules/Update.vue @@ -245,7 +245,7 @@ - +