| | |
| | | > |
| | | 删除 |
| | | </el-button> |
| | | <el-button |
| | | type="primary" |
| | | text |
| | | icon="folder" |
| | | @click="openFilesForm(row)" |
| | | > |
| | | 附件 |
| | | </el-button> |
| | | </template> |
| | | </PIMTable> |
| | | </div> |
| | | <PlanModal ref="planModalRef" @ok="getTableData" /> |
| | | <MaintenanceModal ref="maintainModalRef" @ok="getTableData" /> |
| | | <files-dia ref="filesDia"></files-dia> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | import MaintenanceModal from "./Modal/MaintenanceModal.vue"; |
| | | import dayjs from "dayjs"; |
| | | import { ElMessageBox, ElMessage } from "element-plus"; |
| | | |
| | | import FilesDia from "./filesDia.vue"; |
| | | defineOptions({ |
| | | name: "设备保养", |
| | | }); |
| | |
| | | const planModalRef = ref(); |
| | | // 保养弹窗控制器 |
| | | const maintainModalRef = ref(); |
| | | |
| | | const filesDia = ref() |
| | | // 表格多选框选中项 |
| | | const multipleList = ref([]); |
| | | |
| | |
| | | // formatData: (cell) => dayjs(cell).format("YYYY-MM-DD HH:mm:ss"), |
| | | // width: 200, |
| | | // }, |
| | | { |
| | | label: "保养进度描述", |
| | | align: "center", |
| | | prop: "maintenanceProcessDesc", |
| | | }, |
| | | { |
| | | label: "实际保养人", |
| | | align: "center", |
| | |
| | | pagination.pageSize = limit; |
| | | onCurrentChange(page); |
| | | }; |
| | | |
| | | // 打开附件弹框 |
| | | const openFilesForm = (row) => { |
| | | nextTick(() => { |
| | | filesDia.value?.openDialog( row,'设备保养') |
| | | }) |
| | | }; |
| | | // 单行删除 |
| | | const delRepairByIds = async (ids) => { |
| | | ElMessageBox.confirm("确认删除报修数据, 此操作不可逆?", "警告", { |