|
@@ -41,6 +41,7 @@
|
|
|
@openCpModal="openProductModal"
|
|
|
@allThreeStock="searchAllThreeStock"
|
|
|
@addActive="upActive"
|
|
|
+ @error="tableErrorData"
|
|
|
:showTotal="showTotal"
|
|
|
:hasActive="activeList.length>0"
|
|
|
:detailData="detailData"
|
|
@@ -80,6 +81,7 @@
|
|
|
:salesPromoSnSet="salesPromoSnSet"
|
|
|
@showRuleDetail="showRuleDetail"
|
|
|
@refash="refashTableData"
|
|
|
+ @error="tableErrorData"
|
|
|
@upActive="upActive">
|
|
|
</productActiveList>
|
|
|
</div>
|
|
@@ -435,11 +437,16 @@ export default {
|
|
|
// 刷新活动产品列表
|
|
|
if (this.activeList.length) this.$refs.productActiveList.resetSearchForm()
|
|
|
},
|
|
|
+ // 添加产品出错时
|
|
|
+ tableErrorData (type, action) {
|
|
|
+ this.$refs.chooseProduct.spinning = false
|
|
|
+ },
|
|
|
// 添加活动产品成功的回调,刷新产品列表
|
|
|
// type:normal 正常列表 ,active 活动列表
|
|
|
// action:add 添加,del 删除,batchDel 批量删除,update 更新数据, enable 启用禁用,sort 排序
|
|
|
// 如果添加操作,不实时刷新列表,关闭后再刷新
|
|
|
refashTableData (type, action) {
|
|
|
+ this.$refs.chooseProduct.spinning = false
|
|
|
// 重新获取详情信息
|
|
|
this.getOrderDetail(false)
|
|
|
// 如果是活动产品,刷新正常产品列表
|