Browse Source

2026-02-03

订单排产(无限产能)页面增加导出功能
master
fengyuan_yang 3 weeks ago
parent
commit
fc2e6b1652
  1. 31
      src/views/modules/schedule/order_schedule_expand.vue

31
src/views/modules/schedule/order_schedule_expand.vue

@ -60,6 +60,9 @@
<el-button :disabled="dataListSelections.length <= 0" type="primary" @click="scheduleBatchDialog()" style="margin-left: 10px; margin-bottom: 5px;">
{{ buttons.scheduleBatch ? buttons.scheduleBatch : '批量排产' }}
</el-button>
<el-button type="primary" @click="exportExcel()" style="margin-left: 10px; margin-bottom: 5px;">
{{ buttons.exportButton ? buttons.exportButton : '导出' }}
</el-button>
</el-form-item>
</el-form-item>
</el-col>
@ -315,6 +318,7 @@ import Chooselist from '@/views/modules/common/Chooselist';/*列表组件*/
import comPartStock from "../common/com_part_stock";/*展示物料库存的组件*/
import comScheduleOrderExpand from '@/views/modules/schedule/com_schedule_order_expand';/*排产扩展 排产单个工单*/
import column from '@/views/modules/common/column';/*动态表头*/
import excel from "@/utils/excel-util.js"; /*导出工具类*/
import {
getShopOrderList,
@ -1178,6 +1182,7 @@ export default {
settingTable: '设置列表',
defaultTable: '设置默认配置',
scheduleBatch: '批量排产',
exportButton: '导出',
},
buttonList: [
{
@ -1216,6 +1221,12 @@ export default {
objectId: 'defaultTable',
objectType: 'button',
tableId: '*'
}, {
functionId: functionId,
languageValue: '导出',
objectId: 'exportButton',
objectType: 'button',
tableId: '*'
},
],
queryButton: {
@ -1788,6 +1799,26 @@ export default {
});
},
// Excel
async exportExcel() {
//
const exportParams = {
...this.pageData,
page: 1,
limit: -1 // -1
}
excel.exportTable({
url: "/scheduling/getShopOrderList", // 使
columnMapping: this.columnList, // 使
mergeSetting: [], //
params: exportParams,
fileName: "订单排产_" + this.dayjs().format('YYYYMMDDHHmmss') + ".xlsx",
rowFetcher: res => res.data.page.list, // R.ok().put("page", page)
columnFormatter: [], //
dropColumns: ['resourceList', 'availResource'] //
});
},
},
created() {

Loading…
Cancel
Save