yaowanxin
4 天以前 376cab4afba8fd1b8be67cae067ed917462c2e16
src/views/equipmentManagement/upkeep/index.vue
@@ -114,11 +114,20 @@
          >
            删除
          </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>
@@ -130,7 +139,7 @@
import MaintenanceModal from "./Modal/MaintenanceModal.vue";
import dayjs from "dayjs";
import { ElMessageBox, ElMessage } from "element-plus";
import FilesDia from "./filesDia.vue";
defineOptions({
  name: "设备保养",
});
@@ -141,7 +150,7 @@
const planModalRef = ref();
// 保养弹窗控制器
const maintainModalRef = ref();
const filesDia = ref()
// 表格多选框选中项
const multipleList = ref([]);
@@ -193,6 +202,11 @@
  //   formatData: (cell) => dayjs(cell).format("YYYY-MM-DD HH:mm:ss"),
  //   width: 200,
  // },
  {
    label: "保养进度描述",
    align: "center",
    prop: "maintenanceProcessDesc",
  },
  {
    label: "实际保养人",
    align: "center",
@@ -265,7 +279,12 @@
   pagination.pageSize = limit;
   onCurrentChange(page);
};
// 打开附件弹框
const openFilesForm = (row) => {
  nextTick(() => {
    filesDia.value?.openDialog( row,'设备保养')
  })
};
// 单行删除
const delRepairByIds = async (ids) => {
  ElMessageBox.confirm("确认删除报修数据, 此操作不可逆?", "警告", {