|
@@ -375,12 +375,9 @@ export default {
|
|
|
},
|
|
|
// 打折
|
|
|
salesReturnDiscount () {
|
|
|
- if (this.ordeDetail.discountAmount < 0) {
|
|
|
- return
|
|
|
- }
|
|
|
this.spinning = true
|
|
|
salesReturnDiscount({
|
|
|
- discountAmount: this.ordeDetail.discountAmount,
|
|
|
+ discountAmount: this.ordeDetail.discountAmount || 0,
|
|
|
salesReturnSn: this.ordeDetail.salesReturnSn,
|
|
|
id: this.ordeDetail.id
|
|
|
}).then(res => {
|
|
@@ -480,6 +477,9 @@ export default {
|
|
|
this.spinning = true
|
|
|
salesReturnSaveProduct(params).then(res => {
|
|
|
this.resetSearchForm(type == 'edit')
|
|
|
+ if (type == 'new') {
|
|
|
+ this.getOrderDetail()
|
|
|
+ }
|
|
|
this.isInster = false
|
|
|
this.spinning = false
|
|
|
})
|