Browse Source

fix: 功能上测试环境前修改

tags/PMS_Frontend_v1.0.6-develop
chenglb 1 year ago
parent
commit
9487df669a
  1. 12
      src/pages/OperationCenter/OperationSales/CouponMgm/WriteOffDetail/loadable.jsx
  2. 2
      src/pages/OperationCenter/OperationSales/CouponMgm/WriteOffStat/loadable.jsx
  3. 2
      src/pages/SystemMgm/BusinessConfig/HotCbdConf/loadable.jsx
  4. 9
      src/services/OperationCenter/OperationSales/index.js

12
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(()=>{ useEffect(()=>{
// getOffList() // getOffList()
getCouponOptions() getCouponOptions()
@ -328,7 +338,7 @@ function WriteOffDetail() {
// ]} // ]}
/> />
<div className="bottomBox"> <div className="bottomBox">
<Button type="primary" >导出</Button>
<Button type="primary" onClick={exportData} >导出</Button>
<Button type="primary" onClick={reset}>重置</Button> <Button type="primary" onClick={reset}>重置</Button>
<Button type="primary" loading={loading} onClick={search}>查询</Button> <Button type="primary" loading={loading} onClick={search}>查询</Button>
</div> </div>

2
src/pages/OperationCenter/OperationSales/CouponMgm/WriteOffStat/loadable.jsx

@ -143,7 +143,7 @@ function WriteOffStat(props) {
let data={ let data={
...formData ...formData
} }
ajax.handleOffExport(data).then(res => {
ajax.handleCountExport(data).then(res => {
window.open(res.data.url) window.open(res.data.url)
}) })
} }

2
src/pages/SystemMgm/BusinessConfig/HotCbdConf/loadable.jsx

@ -191,7 +191,7 @@ function HotCbdConf() {
setCurrentRecord(record) setCurrentRecord(record)
setModalFormData({ setModalFormData({
name: record.name, name: record.name,
area: parseInt(record.area) ? record.area : '0' ,
area: parseInt(record.area_id) ? record.area_id : '0' ,
center_name: record.center_name center_name: record.center_name
}) })
setDetailVisible(true) setDetailVisible(true)

9
src/services/OperationCenter/OperationSales/index.js

@ -235,6 +235,15 @@ const getCountList = (p) => {
data: p, data: p,
}); });
}; };
// 优惠券管理-核销统计 导出
const handleCountExport = (p) => {
return ajax({
url: "/api/ope/coupon/count_export",
type: "post",
data: p,
});
};
export default { export default {
getCouponList, getCouponList,

Loading…
Cancel
Save