|
|
@ -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() { |
|
|
|
// ]} |
|
|
|
/> |
|
|
|
<div className="bottomBox"> |
|
|
|
<Button type="primary" >导出</Button> |
|
|
|
<Button type="primary" onClick={exportData} >导出</Button> |
|
|
|
<Button type="primary" onClick={reset}>重置</Button> |
|
|
|
<Button type="primary" loading={loading} onClick={search}>查询</Button> |
|
|
|
</div> |
|
|
|