From 17eb789e3d399dfb1109278422e615a342d23aa1 Mon Sep 17 00:00:00 2001 From: beyond <931414026@qq.com> Date: Tue, 4 Feb 2020 15:30:04 +0800 Subject: [PATCH] beyond 2.4 up --- src/api/Coupon.js | 12 +++++++++++ src/views/SaleOut/AddSaleOut.vue | 36 +++++++++++++++++++++++++++++--- 2 files changed, 45 insertions(+), 3 deletions(-) diff --git a/src/api/Coupon.js b/src/api/Coupon.js index 5d015721..3e8c78a6 100644 --- a/src/api/Coupon.js +++ b/src/api/Coupon.js @@ -1,5 +1,17 @@ import request from '@/utils/request' +export function returnMoney(query) { + var params = new URLSearchParams() + if (query !== '' && query !== null && query !== undefined) { + params.append('detailJson', query) // 你要传给后台的参数值 key/value + } + return request({ + url: '/coupon/returnMoney', + method: 'post', + data: params + }) +} + // 添加领料单 export function provide(query) { var params = new URLSearchParams() diff --git a/src/views/SaleOut/AddSaleOut.vue b/src/views/SaleOut/AddSaleOut.vue index c039cbee..14e30d8b 100644 --- a/src/views/SaleOut/AddSaleOut.vue +++ b/src/views/SaleOut/AddSaleOut.vue @@ -197,7 +197,7 @@ - + @@ -548,6 +548,7 @@