Commit a83b3ab7 by 杨明

新建商品

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