|
|
@@ -190,27 +190,27 @@ function getSaleBatch() {
|
|
|
hotInfo: {}
|
|
|
}
|
|
|
})
|
|
|
- // if (!res.empty) {
|
|
|
- // res.content.forEach((item, index) => {
|
|
|
- // http.post(
|
|
|
- // '/product/list',
|
|
|
- // {
|
|
|
- // query: {
|
|
|
- // batchId: item.id,
|
|
|
- // status: 'IN_STOCK'
|
|
|
- // },
|
|
|
- // size: 1,
|
|
|
- // sort: 'id,desc'
|
|
|
- // },
|
|
|
- // { body: 'json' }
|
|
|
- // ).then(res => {
|
|
|
- // saleBatches.value[index].empty = res.empty
|
|
|
- // if (!res.empty) {
|
|
|
- // saleBatches.value[index].hotInfo = res.content[0]
|
|
|
- // }
|
|
|
- // })
|
|
|
- // })
|
|
|
- // }
|
|
|
+ if (!res.empty) {
|
|
|
+ res.content.forEach((item, index) => {
|
|
|
+ http.post(
|
|
|
+ '/product/list',
|
|
|
+ {
|
|
|
+ query: {
|
|
|
+ batchId: item.id,
|
|
|
+ status: 'IN_STOCK'
|
|
|
+ },
|
|
|
+ size: 1,
|
|
|
+ sort: 'id,desc'
|
|
|
+ },
|
|
|
+ { body: 'json' }
|
|
|
+ ).then(res => {
|
|
|
+ saleBatches.value[index].empty = res.empty
|
|
|
+ if (!res.empty) {
|
|
|
+ saleBatches.value[index].hotInfo = res.content[0]
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ }
|
|
|
})
|
|
|
}
|
|
|
|