ly 2 жил өмнө
parent
commit
7cb6fdb385

+ 2 - 0
master/src/main/java/com/ruoyi/project/ehs/controller/TApproveDangerController.java

@@ -761,6 +761,8 @@ public class TApproveDangerController extends BaseController {
     }
 
 
+
+
     /**
      * 获取已经流转的线
      *

+ 21 - 0
master/src/main/java/com/ruoyi/project/plant/controller/TStaffmgrController.java

@@ -579,6 +579,27 @@ public class TStaffmgrController extends BaseController
         return toAjax(tStaffmgrService.deleteLeftTStaffmgrByIds(id));
     }
 
+    /**
+     * 删除退休人员
+     */
+    @PreAuthorize("@ss.hasPermi('plant:staffmgr:remove')")
+    @Log(title = "人员管理", businessType = BusinessType.DELETE)
+    @GetMapping("/retire/{id}")
+    public AjaxResult removeRetire(@PathVariable Long id)
+    {
+        TTrainingrecords tTrainingrecords = tTrainingrecordsService.selectTTrainingrecordsBystaffId(id);
+        if (tTrainingrecords!= null) {
+            tTrainingrecords.setDelFlag(9l);
+            tTrainingrecordsService.updateTTrainingrecords(tTrainingrecords);
+        }
+        // 王子文 2022年6月27日 添加
+        // 离职时修改继任者清单状态、培养计划状态
+        Long staffId = Long.parseLong(tStaffmgrService.selectTStaffmgrById(id).getStaffid());
+        stSuccessorService.updateStateByStaffId(staffId);
+        tStPlanService.updateStudyStateByStaffId(staffId);
+        return toAjax(tStaffmgrService.deleteRetireTStaffmgrByIds(id));
+    }
+
     /**
      * 复职离职人员
      */

+ 10 - 1
master/src/main/java/com/ruoyi/project/plant/domain/TStaffmgr.java

@@ -129,7 +129,8 @@ public class TStaffmgr extends BaseEntity
     private Date leftDate;
 
     private String leftYear;
-
+    /** 是否退休 */
+    private Integer isRetire;
     public Date getLeftDate() {
         return leftDate;
     }
@@ -386,6 +387,14 @@ public class TStaffmgr extends BaseEntity
         this.leftYear = leftYear;
     }
 
+    public Integer getIsRetire() {
+        return isRetire;
+    }
+
+    public void setIsRetire(Integer isRetire) {
+        this.isRetire = isRetire;
+    }
+
     @Override
     public String toString() {
         return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)

+ 2 - 0
master/src/main/java/com/ruoyi/project/plant/mapper/TStaffmgrMapper.java

@@ -130,4 +130,6 @@ public interface TStaffmgrMapper
     List<TStaffmgr> selectTMentorStaffmgrByPost(SysUser sysUser);
 
     List<Map<String,Object>> selectUserInfoByStaffmgr(TStaffmgr tStaffmgr);
+
+    int deleteRetireTStaffmgrByIds(Long id);
 }

+ 2 - 0
master/src/main/java/com/ruoyi/project/plant/service/ITStaffmgrService.java

@@ -106,4 +106,6 @@ public interface ITStaffmgrService
     List<TStaffmgr> selectTStaffmgrByPost(SysUser sysUser);
 
     List<TStaffmgr> selectTMentorStaffmgrByPost(SysUser sysUser);
+
+    int deleteRetireTStaffmgrByIds(Long id);
 }

+ 5 - 0
master/src/main/java/com/ruoyi/project/plant/service/impl/TStaffmgrServiceImpl.java

@@ -165,4 +165,9 @@ public class TStaffmgrServiceImpl implements ITStaffmgrService
         return tStaffmgrMapper.selectTMentorStaffmgrByPost(sysUser);
     }
 
+    @Override
+    public int deleteRetireTStaffmgrByIds(Long id) {
+        return tStaffmgrMapper.deleteRetireTStaffmgrByIds(id);
+    }
+
 }

+ 1 - 1
master/src/main/java/com/ruoyi/project/training/controller/TByxWorkcertificateController.java

@@ -230,7 +230,7 @@ public class TByxWorkcertificateController extends BaseController
                         }
                     } else if (j == 13) {
                         if (cellValue.length() > 3) {
-                            entity.setForemantrain(new SimpleDateFormat(DateUtils.getDateFormat(cellValue)).parse(cellValue));//班组长最近培训日期
+                            entity.setForemantrain(new SimpleDateFormat(DateUtils.getDateFormat(cellValue)).parse(cellValue));//班组长首次培训日期
                         }
                     } else if (j == 14) {
                         if (cellValue.length() > 3) {

+ 64 - 9
master/src/main/java/com/ruoyi/project/training/controller/TTrainingController.java

@@ -529,9 +529,11 @@ public class TTrainingController extends BaseController {
 
     }
 
+
+
     //苯乙烯 Excel 渲染
     private void replaceExcel(SXSSFWorkbook wb, Long trainingId) {
-        Sheet sheet = wb.getSheet("sheet1");
+        Sheet sheet = wb.getSheet("CTAM");
         TTraining tTraining = tTrainingMapper.selectTTrainingById(trainingId);
         TStaffmgr tStaffmgr = new TStaffmgr();
         tStaffmgr.setActualposts(tTraining.getPosition());
@@ -562,6 +564,58 @@ public class TTrainingController extends BaseController {
             }
             staffmgrList.addAll(staffmgrs);
         }
+        replaceSheet(wb,"CTAM",staffmgrList);
+        replaceSheet(wb,"CTMM",staffmgrList);
+        replaceSheet(wb,"CTSL",staffmgrList);
+        replaceSheet(wb,"白班",staffmgrList);
+        replaceSheet(wb,"班组",staffmgrList);
+    }
+
+    //苯乙烯 Excel 渲染
+    private void replaceSheet(SXSSFWorkbook wb,String sheetName,List<TStaffmgr> staffmgrList) {
+        List<SysDictData> dictList = iSysDictTypeService.selectDictDataByType("STAFF_UNIT");
+        Sheet sheet = wb.getSheet(sheetName);
+        List<TStaffmgr> staffmgrs = new ArrayList<>();
+        if ("CTAM".equals(sheetName)) {
+            for (TStaffmgr t: staffmgrList
+            ) {
+                if ( t.getUnit().equals("22")){
+                    staffmgrs.add(t);
+                }
+            }
+        }
+        if ("CTMM".equals(sheetName)) {
+            for (TStaffmgr t: staffmgrList
+            ) {
+                if ( t.getUnit().equals("24")){
+                    staffmgrs.add(t);
+                }
+            }
+        }
+        if ("CTSL".equals(sheetName)) {
+            for (TStaffmgr t: staffmgrList
+            ) {
+                if ( t.getUnit().equals("16")){
+                    staffmgrs.add(t);
+                }
+            }
+        }
+        if ("白班".equals(sheetName)) {
+            for (TStaffmgr t: staffmgrList
+            ) {
+                if ( t.getTeam().equals("18") && t.getUnit().equals("20")){
+                    staffmgrs.add(t);
+                }
+            }
+        }
+        if ("班组".equals(sheetName)) {
+            for (TStaffmgr t: staffmgrList
+            ) {
+                if ( t.getTeam().equals("10") ||t.getTeam().equals("12") ||t.getTeam().equals("14") ||t.getTeam().equals("16") ){
+                    staffmgrs.add(t);
+                }
+            }
+        }
         //设置style
         CellStyle cellStyle = wb.createCellStyle();
         //设置水平对齐方式
@@ -586,27 +640,27 @@ public class TTrainingController extends BaseController {
         headerFont.setFontHeightInPoints((short) 11);
         cellStyle.setFont(headerFont);
         int rowIndex = 7;//初始行数
-        for (int i = 0; i < staffmgrList.size(); i++) { //加载签名数据
+        for (int i = 0; i < staffmgrs.size(); i++) { //加载签名数据
             Row row = sheet.createRow(rowIndex);
             row.setHeight((short) 400);
             row.createCell(0).setCellValue(i + 1);
             row.getCell(0).setCellStyle(cellStyle);
-            row.createCell(1).setCellValue(DictUtils.getDictVale(dictList, staffmgrList.get(i).getUnit()));
+            row.createCell(1).setCellValue(DictUtils.getDictVale(dictList, staffmgrs.get(i).getUnit()));
             row.getCell(1).setCellStyle(cellStyle);
-            row.createCell(2).setCellValue(staffmgrList.get(i).getStaffid());
+            row.createCell(2).setCellValue(staffmgrs.get(i).getStaffid());
             row.getCell(2).setCellStyle(cellStyle);
-            row.createCell(3).setCellValue(staffmgrList.get(i).getName());
+            row.createCell(3).setCellValue(staffmgrs.get(i).getName());
             row.getCell(3).setCellStyle(cellStyle);
             row.createCell(4).setCellStyle(cellStyle);
             row.createCell(5).setCellStyle(cellStyle);
-            if (i + 1 < staffmgrList.size()) {
+            if (i + 1 < staffmgrs.size()) {
                 row.createCell(6).setCellValue(i + 2);
                 row.getCell(6).setCellStyle(cellStyle);
-                row.createCell(7).setCellValue(DictUtils.getDictVale(dictList, staffmgrList.get(i + 1).getUnit()));
+                row.createCell(7).setCellValue(DictUtils.getDictVale(dictList, staffmgrs.get(i + 1).getUnit()));
                 row.getCell(7).setCellStyle(cellStyle);
-                row.createCell(8).setCellValue(staffmgrList.get(i + 1).getStaffid());
+                row.createCell(8).setCellValue(staffmgrs.get(i + 1).getStaffid());
                 row.getCell(8).setCellStyle(cellStyle);
-                row.createCell(9).setCellValue(staffmgrList.get(i + 1).getName());
+                row.createCell(9).setCellValue(staffmgrs.get(i + 1).getName());
                 row.getCell(9).setCellStyle(cellStyle);
                 row.createCell(10).setCellStyle(cellStyle);
                 row.createCell(11).setCellStyle(cellStyle);
@@ -652,6 +706,7 @@ public class TTrainingController extends BaseController {
         rowLast.createCell(9).setCellStyle(cellStyle);
         rowLast.createCell(10).setCellStyle(cellStyle);
         rowLast.createCell(11).setCellStyle(cellStyle);
+
     }
 
     /**

+ 1 - 1
master/src/main/java/com/ruoyi/project/training/controller/TWorkcertificateController.java

@@ -245,7 +245,7 @@ public class TWorkcertificateController extends BaseController
                         }
                     } else if (j == 17) {
                         if (cellValue.length() > 3) {
-                            entity.setForemantrain(new SimpleDateFormat(DateUtils.getDateFormat(cellValue)).parse(cellValue));//班组长最近培训日期
+                            entity.setForemantrain(new SimpleDateFormat(DateUtils.getDateFormat(cellValue)).parse(cellValue));//班组长首次培训日期
                         }
                     } else if (j == 18) {
                         if (cellValue.length() > 3) {

+ 7 - 1
master/src/main/resources/mybatis/plant/TStaffmgrMapper.xml

@@ -32,6 +32,7 @@
         <result property="pId"    column="p_id"    />
         <result property="specialDuty"    column="special_duty"    />
         <result property="leftDate"    column="left_date"    />
+        <result property="isRetire"    column="is_retire"    />
     </resultMap>
 
     <sql id="selectTStaffmgrVo">
@@ -270,6 +271,7 @@
         <include refid="selectTStaffmgrVo"/>
         <where>
             and d.del_flag = 9
+            <if test="isRetire != null  and isRetire != ''"> and is_retire = #{isRetire}</if>
         </where>
         <!-- 数据范围过滤 -->
         ${params.dataScope}
@@ -383,8 +385,12 @@
     </update>
 
     <update id="deleteLeftTStaffmgrByIds" parameterType="Long">
-        update t_staffmgr set del_flag = 9 , LEFT_DATE = SYSDATE  where id = #{id}
+        update t_staffmgr set del_flag = 9 , LEFT_DATE = SYSDATE,is_retire = 0  where id = #{id}
     </update>
+    <update id="deleteRetireTStaffmgrByIds" parameterType="Long">
+        update t_staffmgr set del_flag = 9 , LEFT_DATE = SYSDATE ,is_retire = 1  where id = #{id}
+    </update>
+
 
     <update id="reLeftTStaffmgrByIds" parameterType="Long">
         update t_staffmgr set del_flag = 0 , LEFT_DATE = null where id = #{id}

BIN
master/src/main/resources/static/word/training/signBYX.xlsx


+ 9 - 0
ui/src/api/plant/staffmgr.js

@@ -162,6 +162,15 @@ export function delLeftStaffmgr(id) {
     method: 'get',
   })
 }
+
+// 删除退休人员管理
+export function delRetireStaffmgr(id) {
+  return request({
+    url: '/plant/staffmgr/retire/' + id,
+    method: 'get',
+  })
+}
+
 // 复职人员管理
 export function reLeftStaffmgr(id) {
   return request({

+ 8 - 7
ui/src/views/monitor/elecNew/index.vue

@@ -198,8 +198,6 @@
   import '@/common/flexible.js';
   import dataV from '@jiaminghi/data-view';
   import {selectLast, selectMonth} from "@/api/aspen/dashboarddata";
-
-
   import drawMixin from "../../../utils/drawMixin"; //自适应缩放
 
   import Swiper from 'swiper'
@@ -373,7 +371,7 @@
     mounted() {
 
 
-      
+
       this.timer = setInterval(()=>{
         const date= dayjs(new Date());
         this.dateDay = date.format('HH:mm:ss');
@@ -448,7 +446,7 @@
       // 重构tab切换
       handleTab(id){
         this.tabIndex = id;
-        
+
         this.goodSwiper.slideTo(id - 1, 1000, false);
         this.goodSwiper.autoplay.start();
         this.swiperAutoText = "暂停轮播";
@@ -459,7 +457,10 @@
             slidesPerView: 1,
             observer: true,
             observeParents: true,
-            autoplay: true,
+            autoplay: {
+              disableOnInteraction: false,  //触碰后自动轮播也不会停止
+              delay: 10000,
+            },
             loop: false,
             on: {
               //滑动swiper使用的方法
@@ -468,11 +469,11 @@
                 },
           }
         });
-        
+
 
       },
       toStop(){
-        
+
         if(this.swiperAutoText === "暂停轮播"){
           this.goodSwiper.autoplay.stop();
           this.swiperAutoText = "启动轮播";

+ 15 - 1
ui/src/views/plant/organization/index.vue

@@ -42,6 +42,18 @@
         </el-form-item>
       </el-form>
       <el-row :gutter="10" class="mb8">
+        <el-col :span="1.5">
+          <div class="bz-box">
+            <i class="iconfont icon-star"></i> 应急响应管理小组组长
+            <i class="iconfont icon-love"></i> 志愿响应小组(VRT)队长
+            <i  class="iconfont icon-triangle"></i>危化品应急处置小组成员
+            <i  class="iconfont icon-square"></i>班组安全代表
+            <i  class="iconfont icon-plus"></i>急救员
+            <i  class="iconfont icon-round"></i>义务消防员
+            <i  class="iconfont icon-yuanjiaoliujiaoxing"></i>安委会成员
+            <i  class="iconfont icon-shebeitubiao_famen"></i>TDS负责人
+          </div>
+        </el-col>
         <right-toolbar :showSearch.sync="showSearch" @queryTable="getChartData"></right-toolbar>
       </el-row>
       <div id="tree" ref="orgChartDom"></div>
@@ -698,5 +710,7 @@ export default {
 }
 </script>
 <style scoped>
-
+.iconfont{
+  color: #ff0000;
+}
 </style>

+ 41 - 9
ui/src/views/plant/staffmgr/index.vue

@@ -147,9 +147,17 @@
           type="success"
           icon="el-icon-s-release"
           size="mini"
-          @click="handleLeft"
+          @click="handleLeft(0)"
         >{{ $t('离职名单') }}</el-button>
       </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="success"
+          icon="el-icon-s-release"
+          size="mini"
+          @click="handleLeft(1)"
+        >{{ $t('退休名单') }}</el-button>
+      </el-col>
       <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
     </el-row>
 
@@ -175,7 +183,7 @@
       <el-table-column :label="$t('技能评估得分')" align="center" prop="skillScore" width="100" :show-overflow-tooltip="true"/>-->
       <el-table-column :label="$t('备注')" align="center" prop="remarks" :show-overflow-tooltip="true"/>
       <!--<el-table-column label="特殊职能" align="center" prop="specialDuty" :formatter="specialDutyFormat" />-->
-      <el-table-column :label="$t('操作')" align="center" fixed="right" width="220" class-name="small-padding fixed-width">
+      <el-table-column :label="$t('操作')" align="center" fixed="right" width="270" class-name="small-padding fixed-width">
         <template slot-scope="scope">
           <el-button
             size="mini"
@@ -198,6 +206,13 @@
             @click="handleLeftDelete(scope.row)"
             v-hasPermi="['plant:staffmgr:remove']"
           >{{ $t('离职') }}</el-button>
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-s-release"
+            @click="handleRetireDelete(scope.row)"
+            v-hasPermi="['plant:staffmgr:remove']"
+          >{{ $t('退休') }}</el-button>
           <el-button
             size="mini"
             type="text"
@@ -605,7 +620,7 @@
 </template>
 
 <script>
-  import { listStaffmgr, listpIdStaffmgr, listLeftStaffmgr, getStaffmgr, delStaffmgr, delLeftStaffmgr,reLeftStaffmgr ,addStaffmgr, updateStaffmgr, exportStaffmgr } from "@/api/plant/staffmgr";
+  import { listStaffmgr, listpIdStaffmgr, listLeftStaffmgr, getStaffmgr,delRetireStaffmgr, delStaffmgr, delLeftStaffmgr,reLeftStaffmgr ,addStaffmgr, updateStaffmgr, exportStaffmgr } from "@/api/plant/staffmgr";
   import { allFileList, listCommonfile, getCommonfile, delCommonfile, addCommonfile, updateCommonfile, exportCommonfile} from "@/api/common/commonfile";
   import { treeselect } from "@/api/system/dept";
   import { getToken } from "@/utils/auth";
@@ -1055,6 +1070,21 @@
           this.msgSuccess(this.$t('离职成功'));
         })
       },
+
+      /** 删除按钮操作 */
+      handleRetireDelete(row) {
+        const ids = row.id;
+        this.$confirm(this.$t('是否确认退休?'), this.$t('警告'), {
+          confirmButtonText: this.$t('确定'),
+          cancelButtonText: this.$t('取消'),
+          type: "warning"
+        }).then(function() {
+          return delRetireStaffmgr(ids);
+        }).then(() => {
+          this.getList();
+          this.msgSuccess(this.$t('退休成功'));
+        })
+      },
       /** 导出按钮操作 */
       handleExport() {
         const queryParams = this.queryParams;
@@ -1158,13 +1188,15 @@
         this.pdf.title = row.fileName
         this.pdf.pdfUrl = process.env.VUE_APP_BASE_API +'/pdf/web/viewer.html?file=' + process.env.VUE_APP_BASE_API + row.fileUrl
       },
-      handleLeft(){
+      handleLeft(isRetire){
         this.left.open = true;
-        this.left.title = this.$t('离职人员信息');
-        this.getLeftData();
+        isRetire == 0?this.left.title = this.$t('离职人员信息'):this.left.title =this.$t('退休人员信息');
+        this.getLeftData(isRetire);
       },
-      getLeftData(){
-        listLeftStaffmgr().then(response => {
+      getLeftData(isRetire){
+        let params ={}
+        params.isRetire = isRetire
+        listLeftStaffmgr(params).then(response => {
           this.left.staffmgrList = response;
         });
       },
@@ -1177,7 +1209,7 @@
         }).then(function() {
           return reLeftStaffmgr(ids);
         }).then(() => {
-          this.getLeftData();
+          this.getLeftData(row.isRetire);
           this.getList();
           this.msgSuccess(this.$t('复职成功'));
         })

+ 3 - 3
ui/src/views/training/byxWorkcertificate/index.vue

@@ -144,7 +144,7 @@
           <span>{{ parseTime(scope.row.crackingreview, '{y}-{m}-{d}') }}</span>
         </template>
       </el-table-column>-->
-      <el-table-column :label="$t('班组长最近培训日期')" align="center" prop="foremantrain" width="100">
+      <el-table-column :label="$t('班组长首次培训日期')" align="center" prop="foremantrain" width="100">
         <template slot-scope="scope">
           <span>{{ parseTime(scope.row.foremantrain, '{y}-{m}-{d}') }}</span>
         </template>
@@ -331,12 +331,12 @@
                           :placeholder="$t('请选择') + $t('下次复审')">
           </el-date-picker>
         </el-form-item>-->
-        <el-form-item :label="$t('班组长最近培训日期')" prop="foremantrain">
+        <el-form-item :label="$t('班组长首次培训日期')" prop="foremantrain">
           <el-date-picker clearable size="small" style="width: 200px"
                           v-model="form.foremantrain"
                           type="date"
                           value-format="yyyy-MM-dd"
-                          :placeholder="$t('请选择') + $t('班组长最近培训日期')">
+                          :placeholder="$t('请选择') + $t('班组长首次培训日期')">
           </el-date-picker>
         </el-form-item>
         <el-form-item :label="$t('班组长本次复审')" prop="foremanreview">

+ 8 - 8
ui/src/views/training/byxWorklicense/index.vue

@@ -112,7 +112,7 @@
       <el-table-column :label="$t('裂解(裂化)')" align="center" prop="boiler" width="100" :formatter="boilerFormat">
         <template slot-scope="scope">
           <span> {{boilerFormat(scope.row)}}</span>
-          <el-button v-if="boilerFormat(scope.row) == 'YES'" icon="el-icon-folder" style="color:#6e96fa;" @click="handleDoc(scope.row , 'worklicense-boiler')"  circle></el-button>
+          <el-button v-if="boilerFormat(scope.row) == 'YES'" icon="el-icon-folder" style="color:#6e96fa;" @click="handleDoc(scope.row , 'byxworklicense-boiler')"  circle></el-button>
         </template>
       </el-table-column>
       <el-table-column :label="$t('取复证日期')" align="center" prop="boilerDate"  width="100">
@@ -128,7 +128,7 @@
       <el-table-column :label="$t('压力容器')" align="center" prop="container" :formatter="crackingFormat">
         <template slot-scope="scope">
           <span> {{crackingFormat(scope.row)}}</span>
-          <el-button v-if="crackingFormat(scope.row) == 'YES'" icon="el-icon-folder" style="color:#6e96fa;" @click="handleDoc(scope.row , 'worklicense-compression')"  circle></el-button>
+          <el-button v-if="crackingFormat(scope.row) == 'YES'" icon="el-icon-folder" style="color:#6e96fa;" @click="handleDoc(scope.row , 'byxworklicense-compression')"  circle></el-button>
         </template>
       </el-table-column>
       <el-table-column :label="$t('取复证日期')" align="center" prop="containerDate"  width="100">
@@ -144,7 +144,7 @@
       <el-table-column :label="$t('压力管道')" align="center" prop="pipe" :formatter="hotareaFormat">
         <template slot-scope="scope">
           <span> {{hotareaFormat(scope.row)}}</span>
-          <el-button v-if="hotareaFormat(scope.row) == 'YES'" icon="el-icon-folder" style="color:#6e96fa;" @click="handleDoc(scope.row , 'worklicense-separation')" circle></el-button>
+          <el-button v-if="hotareaFormat(scope.row) == 'YES'" icon="el-icon-folder" style="color:#6e96fa;" @click="handleDoc(scope.row , 'byxworklicense-separation')" circle></el-button>
         </template>
       </el-table-column>
       <el-table-column :label="$t('取复证日期')" align="center" prop="pipeDate"  width="100">
@@ -160,7 +160,7 @@
       <el-table-column label="烷基化" align="center" prop="alkylation" width="100" :formatter="coldareaFormat">
         <template slot-scope="scope">
           <span> {{coldareaFormat(scope.row)}}</span>
-          <el-button v-if="coldareaFormat(scope.row) == 'YES'" icon="el-icon-folder" style="color:#6e96fa;" @click="handleDoc(scope.row , 'worklicense-pguaeu')"  circle></el-button>
+          <el-button v-if="coldareaFormat(scope.row) == 'YES'" icon="el-icon-folder" style="color:#6e96fa;" @click="handleDoc(scope.row , 'byxworklicense-pguaeu')"  circle></el-button>
         </template>
       </el-table-column>
       <el-table-column :label="$t('取复证日期')" align="center" prop="alkylationDate"  width="100">
@@ -976,13 +976,13 @@ export default {
     /** 报告附件按钮操作 */
     handleDoc(row , fileType) {
       var workType = "";
-      if (fileType === "worklicense-boiler"){
+      if (fileType === "byxworklicense-boiler"){
         workType = this.$t('裂解(裂化)');
-      }else if (fileType === "worklicense-compression"){
+      }else if (fileType === "byxworklicense-compression"){
         workType = this.$t('压力容器');
-      }else if (fileType === "worklicense-separation"){
+      }else if (fileType === "byxworklicense-separation"){
         workType = this.$t('压力管道');
-      }else if (fileType === "worklicense-pguaeu"){
+      }else if (fileType === "byxworklicense-pguaeu"){
         workType = this.$t('烷基化');
       }
       this.doc.pType = fileType