Commit a83b3ab7 by 杨明

新建商品

1 parent e25e88e0
......@@ -141,8 +141,8 @@ export default {
groupOrStore: this.userInfo.accountLevel == 4 ? 2 : 1,
$title: '新建商品'
}
this.$router.push({
path: '/productGroup/editProduct',
this.$router.history({
path: '/store/productGroup/editProduct',
query: params
})
return true
......
......@@ -99,7 +99,7 @@ export default {
this.fnCallBack = true
// console.log(res)
this.productList = res.list
this.productList.forEach(function (item) {
this.productList.forEach(function(item) {
item.retailPrice = (item.retailPrice / 100).toFixed(2)
})
this.recoverySelected()
......@@ -119,8 +119,8 @@ export default {
groupOrStore: this.userInfo.accountLevel == 4 ? 2 : 1,
$title: '新建商品'
}
this.$router.push({
path: '/productGroup/editProduct',
this.$router.history({
path: '/store/productGroup/editProduct',
query: params
})
return true
......
......@@ -44,11 +44,11 @@ export default {
},
selectedProInfo: {
type: Object,
default: () => { }
default: () => {}
},
propSearch: {
type: Object,
default: () => { }
default: () => {}
}
},
......@@ -74,13 +74,13 @@ export default {
// console.log(res)
this.fnCallBack = true
this.productList = res.list
this.productList.forEach(function (item) {
this.productList.forEach(function(item) {
item.saleAmount = item.goodsStatistics.saleAmount
if (item.specificationDetailList.length > 1) {
let retailPriceList = item.specificationDetailList.sort(function (a, b) {
let retailPriceList = item.specificationDetailList.sort(function(a, b) {
return a.retailPrice - b.retailPrice
})
let stockeList = item.specificationDetailList.sort(function (a, b) {
let stockeList = item.specificationDetailList.sort(function(a, b) {
return a.stock - b.stock
})
let minRatilPrice = retailPriceList[0].retailPrice / 100
......@@ -108,8 +108,8 @@ export default {
groupOrStore: this.userInfo.accountLevel == 4 ? 2 : 1,
$title: '新建商品'
}
this.$router.push({
path: '/productGroup/editProduct',
this.$router.history({
path: '/store/productGroup/editProduct',
query: params
})
return true
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!