|
@@ -554,18 +554,13 @@ export default {
|
|
|
centered: true,
|
|
|
onOk () {
|
|
|
_this.spinning = true
|
|
|
- salesDetailBatchDel({
|
|
|
+ const params = {
|
|
|
+ salesBillDetailSnList: obj,
|
|
|
salesBillSn: _this.salesBillSn,
|
|
|
- salesPromoSn: _this.promo.salesPromoSn,
|
|
|
- salesBillDetailSnList: obj
|
|
|
- }).then(res => {
|
|
|
- if (res.status == 200) {
|
|
|
- _this.$refs.table.refresh(false)
|
|
|
- _this.$emit('insterOk', 'promo')
|
|
|
- _this.$message.success(res.message)
|
|
|
- }
|
|
|
- _this.spinning = false
|
|
|
- })
|
|
|
+ oldSalesPromoSn: _this.promo.salesPromoSn
|
|
|
+ }
|
|
|
+ // 更换活动
|
|
|
+ _this.$emit('upActive', _this.promo, '0', params)
|
|
|
}
|
|
|
})
|
|
|
},
|