|
@@ -154,7 +154,7 @@ export default {
|
|
|
// 减发
|
|
|
handleReduce(e) {
|
|
|
this.$modal.prompt('请输入减发数量').then(({ value }) => {
|
|
|
- return updateNumber({ discountId: e.discountId, type: 'delete', comment: value });
|
|
|
+ return updateNumber({ discountId: e.discountId, type: 'plus', count: value });
|
|
|
}).then(() => {
|
|
|
this.query();
|
|
|
this.$modal.msgSuccess("减发成功");
|
|
@@ -163,7 +163,7 @@ export default {
|
|
|
// 增发
|
|
|
handleIncrease(e) {
|
|
|
this.$modal.prompt('请输入增发数量').then(({ value }) => {
|
|
|
- return updateNumber({ discountId: e.discountId, type: 'add', comment: value });
|
|
|
+ return updateNumber({ discountId: e.discountId, type: 'minus', count: value });
|
|
|
}).then(() => {
|
|
|
this.query();
|
|
|
this.$modal.msgSuccess("增发成功");
|