|
@@ -269,21 +269,17 @@ export default {
|
|
// 刷新所有第三方库存
|
|
// 刷新所有第三方库存
|
|
searchAllThreeStock () {
|
|
searchAllThreeStock () {
|
|
this.spinning = true
|
|
this.spinning = true
|
|
- getThirdStockQty({ salesBillSn: this.$route.params.sn }).then(res => {
|
|
|
|
- if (res.status == 200) {
|
|
|
|
- // 刷新正常活动产品列表
|
|
|
|
- this.$refs.productNormalList.searchThreeStockOk()
|
|
|
|
- // 刷新所有活动产品列表
|
|
|
|
- const activeList = this.activeList
|
|
|
|
- activeList.map(item => {
|
|
|
|
- item.isActive = true
|
|
|
|
- const row = this.$refs['productList-' + item.promoRuleSn][0]
|
|
|
|
- row && row.searchThreeStockOk()
|
|
|
|
- })
|
|
|
|
- activeList.splice()
|
|
|
|
- }
|
|
|
|
- this.spinning = false
|
|
|
|
|
|
+ // 刷新正常活动产品列表
|
|
|
|
+ this.$refs.productNormalList.searchThreeStockOk()
|
|
|
|
+ // 刷新所有活动产品列表
|
|
|
|
+ const activeList = this.activeList
|
|
|
|
+ activeList.map(item => {
|
|
|
|
+ item.isActive = true
|
|
|
|
+ const row = this.$refs['productList-' + item.promoRuleSn][0]
|
|
|
|
+ row && row.searchThreeStockOk()
|
|
})
|
|
})
|
|
|
|
+ activeList.splice()
|
|
|
|
+ this.spinning = false
|
|
},
|
|
},
|
|
// 刷新所有表格数据
|
|
// 刷新所有表格数据
|
|
updateAllTable (flag) {
|
|
updateAllTable (flag) {
|