Commit 28800f4b by wangql

修改BUG

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