|
@@ -294,11 +294,8 @@ const seeDetail = new Vue({
|
|
|
// 已选择的禁用勾选框
|
|
|
handleSelectable(row) {
|
|
|
const skuIds = this.checkedProductList.map(pros => pros.skuId);
|
|
|
- if (skuIds.includes(row.skuId)) {
|
|
|
- return false
|
|
|
- } else {
|
|
|
- return true
|
|
|
- }
|
|
|
+ console.log('skuIds',skuIds)
|
|
|
+ return !skuIds.includes(row.skuId);
|
|
|
},
|
|
|
//取消选择
|
|
|
handleCanle(){
|
|
@@ -341,8 +338,6 @@ const seeDetail = new Vue({
|
|
|
},
|
|
|
// 修改数量判断阶梯价
|
|
|
handleChangeNumber(row){
|
|
|
- console.log('count',row.count)
|
|
|
- console.log('minBuyNumber',row.minBuyNumber)
|
|
|
if (row.count < row.minBuyNumber) {
|
|
|
row.count = row.minBuyNumber
|
|
|
if (row.ladderPriceFlag === 1) {
|
|
@@ -393,6 +388,9 @@ const seeDetail = new Vue({
|
|
|
if(data.abnormalProductList.length > 0){
|
|
|
_this.abnormalProductList = data.abnormalProductList
|
|
|
_this.abnormalDialogVisible = true
|
|
|
+ // 根据 checkedProductList 中的 skuId,删除 abnormalProductList 中的相同 skuId 的数据
|
|
|
+ _this.checkedProductList = _this.checkedProductList.filter(check => !_this.abnormalProductList.map(abnormal => abnormal.skuId).includes(check.skuId));
|
|
|
+ console.log('checkedProductList',_this.checkedProductList)
|
|
|
}else{
|
|
|
_this.supplier = data.shop
|
|
|
_this.orderInfoArray.push(_this.supplier)
|
|
@@ -406,12 +404,6 @@ const seeDetail = new Vue({
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- // 隐藏提示
|
|
|
- handleAbnormalDialogVisible(){
|
|
|
- // this.productRadio = null
|
|
|
- // this.checkedProductList = []
|
|
|
- this.abnormalDialogVisible = false
|
|
|
- },
|
|
|
// 选择商品
|
|
|
handleSelectionChange(row) {
|
|
|
this.productRadio = row
|