Commit 28800f4b by wangql

修改BUG

1 parent dbc949cf
...@@ -237,7 +237,7 @@ export default { ...@@ -237,7 +237,7 @@ export default {
watch: { watch: {
'editForm.activityPrice'(newValue, oldValue) { 'editForm.activityPrice'(newValue, oldValue) {
this.editForm.activityPrice = limitPrice(newValue, oldValue, 5, 2, 0, this.selectedProInfo.retailPrice / 100) this.editForm.activityPrice = limitPrice(newValue, oldValue, 5, 2, 0, (this.selectedProInfo.retailPrice / 100).toFixed(2))
}, },
'editForm.goodsStock'(newValue, oldValue) { 'editForm.goodsStock'(newValue, oldValue) {
this.editForm.goodsStock = limitPrice(newValue, oldValue, 5, 0, 0, this.selectedProInfo.goodsStock) this.editForm.goodsStock = limitPrice(newValue, oldValue, 5, 0, 0, this.selectedProInfo.goodsStock)
...@@ -455,9 +455,8 @@ export default { ...@@ -455,9 +455,8 @@ export default {
getCouponInfoParams() { getCouponInfoParams() {
var _this = this var _this = this
var param = this.editForm var param = this.$common.utils.deepClone(this.editForm)
// param.activityPrice = (param.activityPrice*100).toFixed(2) //存的分,需乘100 param.activityPrice = (param.activityPrice * 100).toFixed(0) //存的分,需乘100
param.activityPrice = param.activityPrice * 100 //存的分,需乘100
if (this.routeInfo.id) { if (this.routeInfo.id) {
param.id = this.routeInfo.id param.id = this.routeInfo.id
} }
...@@ -473,8 +472,7 @@ export default { ...@@ -473,8 +472,7 @@ export default {
param.specificationDetailList = [] param.specificationDetailList = []
this.nameToValSpecsList.forEach(function(item) { this.nameToValSpecsList.forEach(function(item) {
var obj = { var obj = {
// retailPrice : (item.activityPrice*100).toFixed(0), //存的分,需乘100 retailPrice: (item.activityPrice * 100).toFixed(0), //存的分,需乘100
retailPrice: item.activityPrice * 100, //存的分,需乘100
stock: item.goodsStock, stock: item.goodsStock,
specificationData: item.specificationData, specificationData: item.specificationData,
specificationKey: item.specificationKey specificationKey: item.specificationKey
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!