From 9487df669a8ac9aa4ea9124fa2b4a856efa2b225 Mon Sep 17 00:00:00 2001 From: chenglb Date: Mon, 18 Dec 2023 09:23:36 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8A=9F=E8=83=BD=E4=B8=8A=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E7=8E=AF=E5=A2=83=E5=89=8D=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../OperationSales/CouponMgm/WriteOffDetail/loadable.jsx | 12 +++++++++++- .../OperationSales/CouponMgm/WriteOffStat/loadable.jsx | 2 +- src/pages/SystemMgm/BusinessConfig/HotCbdConf/loadable.jsx | 2 +- src/services/OperationCenter/OperationSales/index.js | 9 +++++++++ 4 files changed, 22 insertions(+), 3 deletions(-) diff --git a/src/pages/OperationCenter/OperationSales/CouponMgm/WriteOffDetail/loadable.jsx b/src/pages/OperationCenter/OperationSales/CouponMgm/WriteOffDetail/loadable.jsx index 62bbea2..8a159bc 100644 --- a/src/pages/OperationCenter/OperationSales/CouponMgm/WriteOffDetail/loadable.jsx +++ b/src/pages/OperationCenter/OperationSales/CouponMgm/WriteOffDetail/loadable.jsx @@ -242,6 +242,16 @@ function WriteOffDetail() { }) } + //导出 + const exportData=()=>{ + let data={ + ...formData + } + ajax.handleOffExport(data).then(res => { + window.open(res.data.url) + }) + } + useEffect(()=>{ // getOffList() getCouponOptions() @@ -328,7 +338,7 @@ function WriteOffDetail() { // ]} />
- +
diff --git a/src/pages/OperationCenter/OperationSales/CouponMgm/WriteOffStat/loadable.jsx b/src/pages/OperationCenter/OperationSales/CouponMgm/WriteOffStat/loadable.jsx index 0242980..e3202a1 100644 --- a/src/pages/OperationCenter/OperationSales/CouponMgm/WriteOffStat/loadable.jsx +++ b/src/pages/OperationCenter/OperationSales/CouponMgm/WriteOffStat/loadable.jsx @@ -143,7 +143,7 @@ function WriteOffStat(props) { let data={ ...formData } - ajax.handleOffExport(data).then(res => { + ajax.handleCountExport(data).then(res => { window.open(res.data.url) }) } diff --git a/src/pages/SystemMgm/BusinessConfig/HotCbdConf/loadable.jsx b/src/pages/SystemMgm/BusinessConfig/HotCbdConf/loadable.jsx index 986171a..6a26acd 100644 --- a/src/pages/SystemMgm/BusinessConfig/HotCbdConf/loadable.jsx +++ b/src/pages/SystemMgm/BusinessConfig/HotCbdConf/loadable.jsx @@ -191,7 +191,7 @@ function HotCbdConf() { setCurrentRecord(record) setModalFormData({ name: record.name, - area: parseInt(record.area) ? record.area : '0' , + area: parseInt(record.area_id) ? record.area_id : '0' , center_name: record.center_name }) setDetailVisible(true) diff --git a/src/services/OperationCenter/OperationSales/index.js b/src/services/OperationCenter/OperationSales/index.js index 0a9414a..68bb5d3 100644 --- a/src/services/OperationCenter/OperationSales/index.js +++ b/src/services/OperationCenter/OperationSales/index.js @@ -235,6 +235,15 @@ const getCountList = (p) => { data: p, }); }; +// 优惠券管理-核销统计 导出 +const handleCountExport = (p) => { + return ajax({ + url: "/api/ope/coupon/count_export", + type: "post", + data: p, + }); +}; + export default { getCouponList,