|
|
|
@ -68,6 +68,13 @@
|
|
|
|
|
plain |
|
|
|
|
>批量转配送 |
|
|
|
|
</el-button> |
|
|
|
|
<el-button |
|
|
|
|
type="danger" |
|
|
|
|
icon="el-icon-delete" |
|
|
|
|
@click="handleExportInfo" |
|
|
|
|
plain |
|
|
|
|
>导出 |
|
|
|
|
</el-button> |
|
|
|
|
</div> |
|
|
|
|
<!-- 头部右侧按钮模块 --> |
|
|
|
|
<div class="avue-crud__right"> |
|
|
|
@ -210,6 +217,14 @@
|
|
|
|
|
plain |
|
|
|
|
>批量打印 |
|
|
|
|
</el-button> |
|
|
|
|
<el-button |
|
|
|
|
|
|
|
|
|
type="danger" |
|
|
|
|
icon="el-icon-delete" |
|
|
|
|
@click="handleExportInfo" |
|
|
|
|
plain |
|
|
|
|
>导出 |
|
|
|
|
</el-button> |
|
|
|
|
</div> |
|
|
|
|
<!-- 头部右侧按钮模块 --> |
|
|
|
|
<div class="avue-crud__right"> |
|
|
|
@ -416,7 +431,7 @@ import {
|
|
|
|
|
confirms, |
|
|
|
|
addReservations, |
|
|
|
|
cancelReservation, |
|
|
|
|
patchPrintList, |
|
|
|
|
patchPrintList, reservationExport |
|
|
|
|
} from '@/api/distribution/distributionReservation'; |
|
|
|
|
import option from '@/option/distribution/distributionReservation'; |
|
|
|
|
import { mapGetters } from 'vuex'; |
|
|
|
@ -428,6 +443,7 @@ import { getListTeam } from '@/api/basicdata/basicdataTeamGroup';
|
|
|
|
|
import { getStockUpArea, stockUp } from '@/api/basicdata/basicdataGoodsArea'; |
|
|
|
|
import dayjs from 'dayjs'; |
|
|
|
|
import print from '@/utils/print'; |
|
|
|
|
import { downloadXls } from '@/utils/util'; |
|
|
|
|
|
|
|
|
|
export default { |
|
|
|
|
data() { |
|
|
|
@ -1025,6 +1041,28 @@ export default {
|
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
/** |
|
|
|
|
* 导出 |
|
|
|
|
* */ |
|
|
|
|
handleExportInfo(type){ |
|
|
|
|
let row = {}; |
|
|
|
|
if (!!this.ids) { |
|
|
|
|
row.ids = this.ids; |
|
|
|
|
} |
|
|
|
|
let nulName ; |
|
|
|
|
if(type === 1){ |
|
|
|
|
//未 |
|
|
|
|
nulName = '待确定预约单数据.xlsx'; |
|
|
|
|
}else{ |
|
|
|
|
//已 |
|
|
|
|
nulName = '已确定预约单数据.xlsx'; |
|
|
|
|
} |
|
|
|
|
reservationExport(row).then(res => { |
|
|
|
|
console.log(res.data); |
|
|
|
|
downloadXls(res.data, nulName); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
showdrawer(value) { |
|
|
|
|
this.drawerShow = value; |
|
|
|
|
}, |
|
|
|
|