|  |  | 
 |  |  |         > | 
 |  |  |           删除 | 
 |  |  |         </el-button> | 
 |  |  |         <el-button type="primary" @click="handleRandomScheduling"> | 
 |  |  |           随机排产 | 
 |  |  |         </el-button> | 
 |  |  |       </div> | 
 |  |  |       <!-- 数据表格 --> | 
 |  |  |       <ETable | 
 |  |  | 
 |  |  | import ProductionDialog from "./components/ProductionDialog.vue"; | 
 |  |  | import ETable from "@/components/Table/ETable.vue"; | 
 |  |  | import Pagination from "@/components/Pagination/index.vue"; | 
 |  |  | import { getProductionMasterList, delPM } from "@/api/production"; | 
 |  |  | import { getProductionMasterList, delPM, randomScheduling } from "@/api/production"; | 
 |  |  | import { parseCoalArray } from "@/utils/production"; | 
 |  |  | import { useTableData } from "./components/useTableData.js"; | 
 |  |  | import { useDialog } from "./components/useDialog.js"; | 
 |  |  | 
 |  |  |   }); | 
 |  |  | }; | 
 |  |  |  | 
 |  |  | // 随机排产处理函数 | 
 |  |  | const handleRandomScheduling = async () => { | 
 |  |  |   try { | 
 |  |  |     const { ElMessage } = await import('element-plus'); | 
 |  |  |     const res = await randomScheduling(); | 
 |  |  |     if (res.code === 200) { | 
 |  |  |       ElMessage.success('随机排产成功'); | 
 |  |  |       getList(); // 刷新列表 | 
 |  |  |     } else { | 
 |  |  |       ElMessage.error(res.msg || '随机排产失败'); | 
 |  |  |     } | 
 |  |  |   } catch (error) { | 
 |  |  |     const { ElMessage } = await import('element-plus'); | 
 |  |  |     ElMessage.error('请求失败,请稍后重试'); | 
 |  |  |   } | 
 |  |  | }; | 
 |  |  |  | 
 |  |  | // 组件挂载时加载数据 | 
 |  |  | onMounted(async () => { | 
 |  |  |   try { |