|
@@ -689,7 +689,8 @@ export default {
|
|
const params = {
|
|
const params = {
|
|
salesPromoSn: promo.salesPromoSn,
|
|
salesPromoSn: promo.salesPromoSn,
|
|
salesBillSn: promo.salesBillSn,
|
|
salesBillSn: promo.salesBillSn,
|
|
- salesBillDetailList: chooseData
|
|
|
|
|
|
+ salesBillDetailList: chooseData,
|
|
|
|
+ promoProductClz
|
|
}
|
|
}
|
|
salesDetailInsertBatchBorrow(params).then(res => {
|
|
salesDetailInsertBatchBorrow(params).then(res => {
|
|
this.spinning = false
|
|
this.spinning = false
|
|
@@ -703,17 +704,17 @@ export default {
|
|
centered: true,
|
|
centered: true,
|
|
okText: '知道了'
|
|
okText: '知道了'
|
|
})
|
|
})
|
|
- this.$emit('error', 'promo', 'add')
|
|
|
|
|
|
+ this.$emit('error', 'borrow', 'add')
|
|
} else {
|
|
} else {
|
|
this.$message.success('累计产品添加成功', 2.5)
|
|
this.$message.success('累计产品添加成功', 2.5)
|
|
this.resetSearchForm(true)
|
|
this.resetSearchForm(true)
|
|
- this.$emit('refash', 'promo', 'add')
|
|
|
|
|
|
+ this.$emit('refash', 'borrow', 'add')
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
- this.$emit('error', 'promo', 'add')
|
|
|
|
|
|
+ this.$emit('error', 'borrow', 'add')
|
|
}
|
|
}
|
|
}).catch(err => {
|
|
}).catch(err => {
|
|
- this.$emit('error', 'promo', 'add')
|
|
|
|
|
|
+ this.$emit('error', 'borrow', 'add')
|
|
this.isInster = false
|
|
this.isInster = false
|
|
this.spinning = false
|
|
this.spinning = false
|
|
})
|
|
})
|