Commit c7feb16c by zhangxw

联调修改

1 parent c680b113
...@@ -354,7 +354,7 @@ export default { ...@@ -354,7 +354,7 @@ export default {
} catch (error) { } catch (error) {
return document.getElementById('specificationDetailList').scrollIntoView() return document.getElementById('specificationDetailList').scrollIntoView()
} }
if (this.formatPrice(i)) { if (this.formatPrice(confirmShopData[i])) {
return document.getElementById('specificationDetailList').scrollIntoView() return document.getElementById('specificationDetailList').scrollIntoView()
} }
} }
...@@ -400,8 +400,7 @@ export default { ...@@ -400,8 +400,7 @@ export default {
callback() callback()
}, },
// 校验零售价成本价最低价关系 // 校验零售价成本价最低价关系
formatPrice(index) { formatPrice(item) {
let item = this.goodsInfoData.goodsSpecificationSingleList[index]
return (!this.filterEmpty(item.shopPrice) && !this.filterEmpty(item.shopMinPrice) && Number(item.shopPrice) > Number(item.shopMinPrice)) return (!this.filterEmpty(item.shopPrice) && !this.filterEmpty(item.shopMinPrice) && Number(item.shopPrice) > Number(item.shopMinPrice))
|| (!this.filterEmpty(item.upgradePrice) && !this.filterEmpty(item.shopPrice) && Number(item.shopPrice) > Number(item.upgradePrice)) || (!this.filterEmpty(item.upgradePrice) && !this.filterEmpty(item.shopPrice) && Number(item.shopPrice) > Number(item.upgradePrice))
|| (!this.filterEmpty(item.shopMinPrice) && !this.filterEmpty(item.upgradePrice) && Number(item.shopMinPrice) > Number(item.upgradePrice)) || (!this.filterEmpty(item.shopMinPrice) && !this.filterEmpty(item.upgradePrice) && Number(item.shopMinPrice) > Number(item.upgradePrice))
......
...@@ -164,7 +164,7 @@ export default { ...@@ -164,7 +164,7 @@ export default {
handleRelateConfirm() { handleRelateConfirm() {
const params = this.getParams() const params = this.getParams()
if (params.scene == 1) { if (params.scene == 1 || params.scene == 0) {
if (this.choose4sData.length == 0) { if (this.choose4sData.length == 0) {
this.notice.warningTips('请选择4s店') this.notice.warningTips('请选择4s店')
return return
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!