|  |  | 
 |  |  |             <div style="text-align: right" class="mb10"> | 
 |  |  |                 <el-button type="primary" @click="openForm">工序排产</el-button> | 
 |  |  |                 <el-button type="danger" @click="handleDelete" plain>取消排产</el-button> | 
 |  |  |                 <el-button @click="handleOut">导出</el-button> | 
 |  |  |             </div> | 
 |  |  |             <PIMTable | 
 |  |  |                 rowKey="id" | 
 |  |  | 
 |  |  |     searchForm: { | 
 |  |  |         staffName: "", | 
 |  |  |         status: 1, | 
 |  |  |         entryDate: [ | 
 |  |  |             dayjs().format("YYYY-MM-DD"), | 
 |  |  |             dayjs().add(1, "day").format("YYYY-MM-DD"), | 
 |  |  |         ], // 录入日期 | 
 |  |  |         entryDateStart: dayjs().format("YYYY-MM-DD"), | 
 |  |  |         entryDateEnd: dayjs().add(1, "day").format("YYYY-MM-DD"), | 
 |  |  |         entryDate: null, // 录入日期 | 
 |  |  |         entryDateStart: undefined, | 
 |  |  |         entryDateEnd: undefined, | 
 |  |  |     }, | 
 |  |  | }); | 
 |  |  | const { searchForm } = toRefs(data); | 
 |  |  | 
 |  |  |             proxy.$modal.msg("已取消"); | 
 |  |  |         }); | 
 |  |  | }; | 
 |  |  |  | 
 |  |  | // 导出 | 
 |  |  | const handleOut = () => { | 
 |  |  |     ElMessageBox.confirm("选中的内容将被导出,是否确认导出?", "导出", { | 
 |  |  |         confirmButtonText: "确认", | 
 |  |  |         cancelButtonText: "取消", | 
 |  |  |         type: "warning", | 
 |  |  |     }) | 
 |  |  |         .then(() => { | 
 |  |  |             proxy.download("/salesLedger/scheduling/exportTwo", {}, "工序排产.xlsx"); | 
 |  |  |         }) | 
 |  |  |         .catch(() => { | 
 |  |  |             proxy.$modal.msg("已取消"); | 
 |  |  |         }); | 
 |  |  | }; | 
 |  |  |  | 
 |  |  | onMounted(() => { | 
 |  |  |     getList(); | 
 |  |  | }); | 
 
 |  |  | 
 |  |  |             </div> | 
 |  |  |             <div> | 
 |  |  |                 <el-button type="primary" @click="openForm('add')">生产派工</el-button> | 
 |  |  |                 <el-button @click="handleOut">导出</el-button> | 
 |  |  |             </div> | 
 |  |  |         </div> | 
 |  |  |         <div class="table_list"> | 
 |  |  | 
 |  |  | import FormDia from "@/views/productionManagement/productionDispatching/components/formDia.vue"; | 
 |  |  | import dayjs from "dayjs"; | 
 |  |  | import {schedulingListPage} from "@/api/productionManagement/productionOrder.js"; | 
 |  |  | import { ElMessageBox } from "element-plus"; | 
 |  |  |  | 
 |  |  | const data = reactive({ | 
 |  |  |     searchForm: { | 
 |  |  |         customerName: "", | 
 |  |  |         projectName: "", | 
 |  |  |         entryDate: [ | 
 |  |  |             dayjs().format("YYYY-MM-DD"), | 
 |  |  |             dayjs().add(1, "day").format("YYYY-MM-DD"), | 
 |  |  |         ], // 录入日期 | 
 |  |  |         entryDateStart: dayjs().format("YYYY-MM-DD"), | 
 |  |  |         entryDateEnd: dayjs().add(1, "day").format("YYYY-MM-DD"), | 
 |  |  |         entryDate: null, // 录入日期 | 
 |  |  |         entryDateStart: undefined, | 
 |  |  |         entryDateEnd: undefined, | 
 |  |  |     }, | 
 |  |  | }); | 
 |  |  | const { searchForm } = toRefs(data); | 
 |  |  | 
 |  |  |     }) | 
 |  |  | }; | 
 |  |  |  | 
 |  |  | // 导出 | 
 |  |  | const handleOut = () => { | 
 |  |  |     ElMessageBox.confirm("选中的内容将被导出,是否确认导出?", "导出", { | 
 |  |  |         confirmButtonText: "确认", | 
 |  |  |         cancelButtonText: "取消", | 
 |  |  |         type: "warning", | 
 |  |  |     }) | 
 |  |  |         .then(() => { | 
 |  |  |             proxy.download("/salesLedger/scheduling/exportOne", {}, "生产派工.xlsx"); | 
 |  |  |         }) | 
 |  |  |         .catch(() => { | 
 |  |  |             proxy.$modal.msg("已取消"); | 
 |  |  |         }); | 
 |  |  | }; | 
 |  |  |  | 
 |  |  | onMounted(() => { | 
 |  |  |     searchForm.value.entryDate = [ | 
 |  |  |         dayjs().format("YYYY-MM-DD"), | 
 |  |  |         dayjs().add(1, "day").format("YYYY-MM-DD"), | 
 |  |  |     ] | 
 |  |  |     searchForm.value.entryDateStart = dayjs().format("YYYY-MM-DD") | 
 |  |  |     searchForm.value.entryDateEnd = dayjs().add(1, "day").format("YYYY-MM-DD") | 
 |  |  |     getList(); | 
 |  |  | }); | 
 |  |  | </script> | 
 
 |  |  | 
 |  |  |     searchForm: { | 
 |  |  |         customerName: "", | 
 |  |  |         projectName: "", | 
 |  |  |         entryDate: [], // 录入日期 | 
 |  |  |         entryDateStart: '', | 
 |  |  |         entryDateEnd: '', | 
 |  |  |         entryDate: null, // 录入日期 | 
 |  |  |         entryDateStart: undefined, | 
 |  |  |         entryDateEnd: undefined, | 
 |  |  |     }, | 
 |  |  | }); | 
 |  |  | const { searchForm } = toRefs(data); | 
 |  |  | 
 |  |  | }; | 
 |  |  |  | 
 |  |  | onMounted(() => { | 
 |  |  |     searchForm.value.entryDate = [ | 
 |  |  |         dayjs().format("YYYY-MM-DD"), | 
 |  |  |         dayjs().add(1, "day").format("YYYY-MM-DD"), | 
 |  |  |     ] | 
 |  |  |     searchForm.value.entryDateStart = dayjs().format("YYYY-MM-DD") | 
 |  |  |     searchForm.value.entryDateEnd = dayjs().add(1, "day").format("YYYY-MM-DD") | 
 |  |  |     getList(); | 
 |  |  | }); | 
 |  |  | </script> | 
 
 |  |  | 
 |  |  |         <div class="table_list"> | 
 |  |  |             <div style="text-align: right" class="mb10"> | 
 |  |  |                 <el-button type="primary" @click="openForm('add')">生产报工</el-button> | 
 |  |  |                 <el-button @click="handleOut">导出</el-button> | 
 |  |  |             </div> | 
 |  |  |             <PIMTable | 
 |  |  |                 rowKey="id" | 
 |  |  | 
 |  |  | const data = reactive({ | 
 |  |  |     searchForm: { | 
 |  |  |         staffName: "", | 
 |  |  |         entryDate: [ | 
 |  |  |             dayjs().format("YYYY-MM-DD"), | 
 |  |  |             dayjs().add(1, "day").format("YYYY-MM-DD"), | 
 |  |  |         ], // 录入日期 | 
 |  |  |         entryDateStart: dayjs().format("YYYY-MM-DD"), | 
 |  |  |         entryDateEnd: dayjs().add(1, "day").format("YYYY-MM-DD"), | 
 |  |  |         entryDate: null, // 录入日期 | 
 |  |  |         entryDateStart: undefined, | 
 |  |  |         entryDateEnd: undefined, | 
 |  |  |     }, | 
 |  |  | }); | 
 |  |  | const { searchForm } = toRefs(data); | 
 |  |  | 
 |  |  |         type: "warning", | 
 |  |  |     }) | 
 |  |  |         .then(() => { | 
 |  |  |             proxy.download("/staff/staffJoinLeaveRecord/export", {staffState: 1}, "人员入职.xlsx"); | 
 |  |  |             proxy.download("/salesLedger/work/export", {}, "生产报工.xlsx"); | 
 |  |  |         }) | 
 |  |  |         .catch(() => { | 
 |  |  |             proxy.$modal.msg("已取消"); |