|
@ -290,8 +290,18 @@ |
|
|
}, '/api/goods/getPriceCalendarListBySpecifications').then(res => { |
|
|
}, '/api/goods/getPriceCalendarListBySpecifications').then(res => { |
|
|
this.allSeldDate = res.data || [] |
|
|
this.allSeldDate = res.data || [] |
|
|
this.seldDateIndex = this.allSeldDate.findIndex(item => item.store != 0) |
|
|
this.seldDateIndex = this.allSeldDate.findIndex(item => item.store != 0) |
|
|
this.getTimeStock(this.allSeldDate[this.seldDateIndex].date) |
|
|
|
|
|
this.openPop() |
|
|
if (this.seldDateIndex>=0) { |
|
|
|
|
|
this.getTimeStock(this.allSeldDate[this.seldDateIndex].date) |
|
|
|
|
|
this.openPop() |
|
|
|
|
|
} else { |
|
|
|
|
|
uni.showToast({ |
|
|
|
|
|
title:"库存不足", |
|
|
|
|
|
icon:"none" |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
// 获取规格分时库存 |
|
|
// 获取规格分时库存 |
|
|