|
@@ -662,12 +662,12 @@ export default {
|
|
|
this.resetSearchForm(true)
|
|
|
this.$emit('refash', 'promo', 'add')
|
|
|
} else {
|
|
|
- this.$emit('error', 'normal', 'add')
|
|
|
+ this.$emit('error', 'promo', 'add')
|
|
|
}
|
|
|
this.spinning = false
|
|
|
this.isInster = false
|
|
|
}).catch(err => {
|
|
|
- this.$emit('error', 'normal', 'add')
|
|
|
+ this.$emit('error', 'promo', 'add')
|
|
|
this.isInster = false
|
|
|
this.spinning = false
|
|
|
})
|
|
@@ -685,6 +685,8 @@ export default {
|
|
|
salesBillDetailList: chooseData
|
|
|
}
|
|
|
salesDetailInsertBatchBorrow(params).then(res => {
|
|
|
+ this.spinning = false
|
|
|
+ this.isInster = false
|
|
|
if (res.status == 200) {
|
|
|
if (res.data && res.data.length) {
|
|
|
const tipInfo = res.data.map((item, i) => { return <p>{item},无法添加!</p> })
|
|
@@ -694,15 +696,17 @@ export default {
|
|
|
centered: true,
|
|
|
okText: '知道了'
|
|
|
})
|
|
|
- return
|
|
|
+ this.$emit('error', 'promo', 'add')
|
|
|
+ } else {
|
|
|
+ this.$message.success('累计产品添加成功', 2.5)
|
|
|
+ this.resetSearchForm(true)
|
|
|
+ this.$emit('refash', 'promo', 'add')
|
|
|
}
|
|
|
- this.$message.success('累计产品添加成功', 2.5)
|
|
|
- this.resetSearchForm(true)
|
|
|
- this.$emit('refash', 'promo', 'add')
|
|
|
+ } else {
|
|
|
+ this.$emit('error', 'promo', 'add')
|
|
|
}
|
|
|
- this.spinning = false
|
|
|
- this.isInster = false
|
|
|
}).catch(err => {
|
|
|
+ this.$emit('error', 'promo', 'add')
|
|
|
this.isInster = false
|
|
|
this.spinning = false
|
|
|
})
|