lxp
2025-03-15 538cb677c7cd304bc8a348c261c74694a06ec8e6
src/views/performance/manHour/work-time-management.vue
@@ -150,26 +150,6 @@
      </div>
    </div>
    <div class="table">
      <!-- <ValueTable
        ref="ValueTable0"
        v-if="currentTable == 'ValueTable0'"
        :isColumnWidth="true"
        :url="$api.auxiliaryWorkingHoursDay.selectAuxiliaryWorkingHoursDay"
        :delUrl="$api.auxiliaryWorkingHoursDay.deleteAuxiliaryWorkingHoursDay"
        :componentData="componentData"
        :key="upIndex"
        @delete="handleDelete"
      /> -->
      <!-- <ValueTable
        ref="ValueTable1"
        v-if="currentTable == 'ValueTable1'"
        :isColumnWidth="true"
        :url="
          $api.auxiliaryOutputWorkingHours.selectAuxiliaryOutputWorkingHours
        "
        :componentData="componentData1"
        :key="upIndex1"
      /> -->
      <lims-table
        v-if="currentTable == 'ValueTable0'"
        :tableData="tableData"
@@ -492,7 +472,8 @@
  collectWorkingHours,
  selectshiftByUser,
  selectAuxiliaryWorkingHoursByNumber,
  exportWorkingHours
  exportWorkingHours,
  deleteAuxiliaryWorkingHoursDay
} from "../../../api/business/manHour";
import { getYearAndMonthAndDays } from "../../../utils/date";
@@ -604,7 +585,42 @@
        {
            label: '日期',
            prop: 'dateTime'
        }
        },
        {
          dataType: "action",
          fixed: "right",
          label: "操作",
          operation: [
            {
              name: "删除",
              type: "text",
              clickFun: (row) => {
                this.del(row);
              },
            },
            {
              name: "编辑",
              type: "text",
              clickFun: (row) => {
                this.handleEdit(row);
              },
            },
            {
              name: "审核",
              type: "text",
              clickFun: (row) => {
                this.handleCheck(row);
              },
            },
            {
              name: "批准",
              type: "text",
              clickFun: (row) => {
                this.handleRatify(row);
              },
            },
          ],
        },
      ],
      tableLoading: false,
      page: {
@@ -833,6 +849,22 @@
    this.entityCopy1 = this.HaveJson(this.entity);
  },
  methods: {
    del(row) {
      console.log(row);
      this.$confirm("此操作将永久删除, 是否继续?", "提示", {
        confirmButtonText: "确定",
        cancelButtonText: "取消",
        type: "warning",
      }).then(() => {
        deleteAuxiliaryWorkingHoursDay({id:row.id}).then((res) => {
          this.$message({
            type: "success",
            message: "删除成功!",
          });
          this.refreshTable();
        });
      });
    },
    getData() {
      if (this.currentTable == "ValueTable0") {
        console.log('辅助工时');
@@ -1137,7 +1169,6 @@
            this.$message.success("操作成功");
            this.checkVisible = false;
            this.refreshTable("page");
            this.collectWorkingHours();
          });
      }
    },