licp
2024-08-01 62c0885f2777abb700b66bb26ed9f66786c79f7b
修改工时管理
已修改4个文件
52 ■■■■ 文件已修改
src/components/do/b1-inspect-order-plan/Inspection.vue 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/view/b1-inspection-order.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/view/b1-report-preparation.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/view/b3-work-time-management.vue 43 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/do/b1-inspect-order-plan/Inspection.vue
@@ -1933,6 +1933,12 @@
        this.getTableLists();
        this.currentKey = row.index
        this.currentTab = null;
        this.worker.postMessage(JSON.stringify({
          type: 'saveData',
          tableList:this.tableList,
          param:this.param,
          currentTable:this.currentTable
        }));
      },
      getReportModel(id){
        if(this.PROJECT!='检测中心'){
src/components/view/b1-inspection-order.vue
@@ -763,7 +763,7 @@
              }`,
              onPrintDialogClose: this.erexcel=false,
              targetStyles: ["*"], // 使用dom的所有样式,很重要
              font_size: '',
              font_size: '0.21cm',
        });
      },
      print(){
src/components/view/b1-report-preparation.vue
@@ -406,6 +406,7 @@
        this.inLoading = false;
        if (response.code == 200) {
          this.$message.success('导入成功')
          this.refreshTable()
                }else{
          this.$message.error(response.message)
        }
src/components/view/b3-work-time-management.vue
@@ -2,13 +2,13 @@
  <div class="work-time-management">
    <div style="text-align: left">
      <el-radio-group v-model="currentComponent" size="small" style="margin-top: 16px;margin-bottom: 16px;">
        <el-radio-button label="workTimeStatistics">
        <el-radio-button label="workTimeStatistics" v-if="selectAuxiliaryOriginalHours">
          工时统计
        </el-radio-button>
        <el-radio-button label="workTimeManagement">
        <el-radio-button label="workTimeManagement" v-if="selectAuxiliaryOutputWorkingHours">
          日工时管理
        </el-radio-button>
        <el-radio-button label="workTimeConfig">
        <el-radio-button label="workTimeConfig" v-if="selectAuxiliaryWorkingHours">
          辅助工时配置
        </el-radio-button>
      </el-radio-group>
@@ -27,11 +27,44 @@
    workTimeManagement,
    workTimeConfig
  },
  mounted() {
  created() {
    this.getPower()
  },
  data() {
    return{
      currentComponent:'workTimeStatistics'
      currentComponent:'workTimeStatistics',
      selectAuxiliaryOriginalHours:false,
      selectAuxiliaryOutputWorkingHours:false,
      selectAuxiliaryWorkingHours:false
    }
  },
  methods: {
    getPower(){
      let power = JSON.parse(sessionStorage.getItem('power'))
      let selectAuxiliaryOriginalHours = false
      let selectAuxiliaryOutputWorkingHours = false
      let selectAuxiliaryWorkingHours = false
      for (var i = 0; i < power.length; i++) {
        if (power[i].menuMethod == 'selectAuxiliaryOriginalHours') {
          selectAuxiliaryOriginalHours = true
        }
        if (power[i].menuMethod == 'selectAuxiliaryOutputWorkingHours') {
          selectAuxiliaryOutputWorkingHours = true
        }
        if (power[i].menuMethod == 'selectAuxiliaryWorkingHours') {
          selectAuxiliaryWorkingHours = true
        }
      }
      this.selectAuxiliaryOriginalHours = selectAuxiliaryOriginalHours
      this.selectAuxiliaryOutputWorkingHours = selectAuxiliaryOutputWorkingHours
      this.selectAuxiliaryWorkingHours = selectAuxiliaryWorkingHours
      if(this.selectAuxiliaryOriginalHours){
        this.currentComponent = 'workTimeStatistics'
      }else if(this.selectAuxiliaryOutputWorkingHours){
        this.currentComponent = 'workTimeManagement'
      }else if(this.selectAuxiliaryWorkingHours){
        this.currentComponent = 'workTimeConfig'
      }
    }
  }
}