wangggziwen преди 2 години
родител
ревизия
e6010f0a86

+ 14 - 1
master/src/main/java/com/ruoyi/project/process/controller/TMocController.java

@@ -162,7 +162,7 @@ public class TMocController extends BaseController
      */
     @PreAuthorize("@ss.hasPermi('process:moc:list')")
     @GetMapping("/listpermanent")
-    public TableDataInfo list(TMoc tMoc)
+    public TableDataInfo listPermanent(TMoc tMoc)
     {
         tMoc.setTimeliness("1");
         startPage();
@@ -171,6 +171,19 @@ public class TMocController extends BaseController
         return getDataTable(list);
     }
 
+    /**
+     * 查询MOC管理列表
+     */
+    @PreAuthorize("@ss.hasPermi('process:moc:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(TMoc tMoc)
+    {
+        startPage();
+        List<TMoc> list = tMocService.selectTMocList(tMoc);
+        this.getFiles(list);
+        return getDataTable(list);
+    }
+
     //申请年份统计
     @GetMapping("/yearData")
     public List<DataEntity> engData(Map param)

+ 239 - 0
master/src/main/java/com/ruoyi/project/process/domain/TMoc.java

@@ -224,6 +224,245 @@ public class TMoc extends BaseEntity
     @Excel(name = "完成时间", width = 30, dateFormat = "yyyy-MM-dd")
     private Date finishDate;
 
+    /** 工艺单元 */
+    @Excel(name = "工艺单元")
+    private String processUnit;
+
+    /** 部门 */
+    @Excel(name = "部门")
+    private String department;
+
+    /** 泄露位置 */
+    @Excel(name = "泄露位置")
+    private String leakLocation;
+
+    /** 操作压力 */
+    @Excel(name = "操作压力")
+    private String pressure;
+
+    /** 操作温度 */
+    @Excel(name = "操作温度")
+    private String temperature;
+
+    /** 泄露介质 */
+    @Excel(name = "泄露介质")
+    private String leakFluid;
+
+    /** 介质类型 */
+    @Excel(name = "介质类型")
+    private String materialType;
+
+    /** 方案日期 */
+    @JsonFormat(pattern = "yyyy-MM-dd" , timezone = "GMT+8")
+    @Excel(name = "方案日期", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date planDate;
+
+    /** 堵漏日期 */
+    @JsonFormat(pattern = "yyyy-MM-dd" , timezone = "GMT+8")
+    @Excel(name = "堵漏日期", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date sealDate;
+
+    /** 第一次延期 */
+    @JsonFormat(pattern = "yyyy-MM-dd" , timezone = "GMT+8")
+    @Excel(name = "第一次延期", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date extention1;
+
+    /** 第二次延期 */
+    @JsonFormat(pattern = "yyyy-MM-dd" , timezone = "GMT+8")
+    @Excel(name = "第二次延期", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date extention2;
+
+    /** 第三次延期 */
+    @JsonFormat(pattern = "yyyy-MM-dd" , timezone = "GMT+8")
+    @Excel(name = "第三次延期", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date extention3;
+
+    /** 第四次延期 */
+    @JsonFormat(pattern = "yyyy-MM-dd" , timezone = "GMT+8")
+    @Excel(name = "第四次延期", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date extention4;
+
+    /** 第五次延期 */
+    @JsonFormat(pattern = "yyyy-MM-dd" , timezone = "GMT+8")
+    @Excel(name = "第五次延期", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date extention5;
+
+    /** 第六次延期 */
+    @JsonFormat(pattern = "yyyy-MM-dd" , timezone = "GMT+8")
+    @Excel(name = "第六次延期", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date extention6;
+
+    /** 第七次延期 */
+    @JsonFormat(pattern = "yyyy-MM-dd" , timezone = "GMT+8")
+    @Excel(name = "第七次延期", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date extention7;
+
+    /** 第八次延期 */
+    @JsonFormat(pattern = "yyyy-MM-dd" , timezone = "GMT+8")
+    @Excel(name = "第八次延期", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date extention8;
+
+    /** 第九次延期 */
+    @JsonFormat(pattern = "yyyy-MM-dd" , timezone = "GMT+8")
+    @Excel(name = "第九次延期", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date extention9;
+
+    /** 卡具状态 */
+    @Excel(name = "卡具状态")
+    private String status;
+
+    public String getStatus() {
+        return status;
+    }
+
+    public void setStatus(String status) {
+        this.status = status;
+    }
+
+    public String getProcessUnit() {
+        return processUnit;
+    }
+
+    public void setProcessUnit(String processUnit) {
+        this.processUnit = processUnit;
+    }
+
+    public String getDepartment() {
+        return department;
+    }
+
+    public void setDepartment(String department) {
+        this.department = department;
+    }
+
+    public String getLeakLocation() {
+        return leakLocation;
+    }
+
+    public void setLeakLocation(String leakLocation) {
+        this.leakLocation = leakLocation;
+    }
+
+    public String getPressure() {
+        return pressure;
+    }
+
+    public void setPressure(String pressure) {
+        this.pressure = pressure;
+    }
+
+    public String getTemperature() {
+        return temperature;
+    }
+
+    public void setTemperature(String temperature) {
+        this.temperature = temperature;
+    }
+
+    public String getLeakFluid() {
+        return leakFluid;
+    }
+
+    public void setLeakFluid(String leakFluid) {
+        this.leakFluid = leakFluid;
+    }
+
+    public String getMaterialType() {
+        return materialType;
+    }
+
+    public void setMaterialType(String materialType) {
+        this.materialType = materialType;
+    }
+
+    public Date getPlanDate() {
+        return planDate;
+    }
+
+    public void setPlanDate(Date planDate) {
+        this.planDate = planDate;
+    }
+
+    public Date getSealDate() {
+        return sealDate;
+    }
+
+    public void setSealDate(Date sealDate) {
+        this.sealDate = sealDate;
+    }
+
+    public Date getExtention1() {
+        return extention1;
+    }
+
+    public void setExtention1(Date extention1) {
+        this.extention1 = extention1;
+    }
+
+    public Date getExtention2() {
+        return extention2;
+    }
+
+    public void setExtention2(Date extention2) {
+        this.extention2 = extention2;
+    }
+
+    public Date getExtention3() {
+        return extention3;
+    }
+
+    public void setExtention3(Date extention3) {
+        this.extention3 = extention3;
+    }
+
+    public Date getExtention4() {
+        return extention4;
+    }
+
+    public void setExtention4(Date extention4) {
+        this.extention4 = extention4;
+    }
+
+    public Date getExtention5() {
+        return extention5;
+    }
+
+    public void setExtention5(Date extention5) {
+        this.extention5 = extention5;
+    }
+
+    public Date getExtention6() {
+        return extention6;
+    }
+
+    public void setExtention6(Date extention6) {
+        this.extention6 = extention6;
+    }
+
+    public Date getExtention7() {
+        return extention7;
+    }
+
+    public void setExtention7(Date extention7) {
+        this.extention7 = extention7;
+    }
+
+    public Date getExtention8() {
+        return extention8;
+    }
+
+    public void setExtention8(Date extention8) {
+        this.extention8 = extention8;
+    }
+
+    public Date getExtention9() {
+        return extention9;
+    }
+
+    public void setExtention9(Date extention9) {
+        this.extention9 = extention9;
+    }
+
     public String getLocation() {
         return location;
     }

+ 96 - 1
master/src/main/resources/mybatis/process/TMocMapper.xml

@@ -57,10 +57,29 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <result property="tempState"    column="temp_state"    />
         <result property="location"    column="location"    />
         <result property="finishDate"    column="finish_date"    />
+        <result property="processUnit"    column="process_unit"    />
+        <result property="department"    column="department"    />
+        <result property="leakLocation"    column="leak_location"    />
+        <result property="pressure"    column="pressure"    />
+        <result property="temperature"    column="temperature"    />
+        <result property="leakFluid"    column="leak_fluid"    />
+        <result property="materialType"    column="material_type"    />
+        <result property="planDate"    column="plan_date"    />
+        <result property="sealDate"    column="seal_date"    />
+        <result property="extention1"    column="extention1"    />
+        <result property="extention2"    column="extention2"    />
+        <result property="extention3"    column="extention3"    />
+        <result property="extention4"    column="extention4"    />
+        <result property="extention5"    column="extention5"    />
+        <result property="extention6"    column="extention6"    />
+        <result property="extention7"    column="extention7"    />
+        <result property="extention8"    column="extention8"    />
+        <result property="extention9"    column="extention9"    />
+        <result property="status"    column="status"    />
     </resultMap>
 
     <sql id="selectTMocVo">
-        select d.id, d.plant_code, d.moc_no, d.plant_number, d.notice_letter, d.work_letter, d.cte_no, d.invest_cost, d.category, d.significance, d.classification, d.area, d.dash_control, d.title, d.owner, d.approve_time, d.estimate_endtime, d.endtime, d.true_state, d.change_nature, d.over_time, d.risk_level, d.training, d.pssr, d.ehs_check, d.ehs_db, d.pid_master, d.pssr_db, d.capex, d.del_flag, d.creater_code, d.createdate, d.updater_code, d.updatedate, d.dept_id, d.remarks, d.temporary_state, d.sop_update, d.company_moc_no, d.project_no, d.moc_type, d.mc_time, d.mc_detail, d.doc_update, d.pssr_no ,d.timeliness, d.temp_category, d.exp_time, d.temp_state ,d.location, d.finish_date ,s.dept_name from t_moc d
+        select d.id, d.plant_code, d.moc_no, d.plant_number, d.notice_letter, d.work_letter, d.cte_no, d.invest_cost, d.category, d.significance, d.classification, d.area, d.dash_control, d.title, d.owner, d.approve_time, d.estimate_endtime, d.endtime, d.true_state, d.change_nature, d.over_time, d.risk_level, d.training, d.pssr, d.ehs_check, d.ehs_db, d.pid_master, d.pssr_db, d.capex, d.del_flag, d.creater_code, d.createdate, d.updater_code, d.updatedate, d.dept_id, d.remarks, d.temporary_state, d.sop_update, d.company_moc_no, d.project_no, d.moc_type, d.mc_time, d.mc_detail, d.doc_update, d.pssr_no, d.timeliness, d.temp_category, d.exp_time, d.temp_state, d.location, d.finish_date, d.process_unit, d.department, d.leak_location, d.pressure, d.temperature, d.leak_fluid, d.material_type, d.plan_date, d.seal_date, d.extention1, d.extention2, d.extention3, d.extention4, d.extention5, d.extention6, d.extention7, d.extention8, d.extention9, d.status ,s.dept_name from t_moc d
       left join sys_dept s on s.dept_id = d.dept_id
     </sql>
 
@@ -108,6 +127,25 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="tempState != null "> and temp_state = #{tempState}</if>
             <if test="location != null  and location != ''"> and location like concat(concat('%', #{location}), '%') </if>
             <if test="finishDate != null "> and finish_date = #{finishDate}</if>
+            <if test="processUnit != null  and processUnit != ''"> and process_unit = #{processUnit}</if>
+            <if test="department != null "> and department = #{department}</if>
+            <if test="leakLocation != null  and leakLocation != ''"> and leak_location like concat(concat('%', #{leakLocation}), '%') </if>
+            <if test="pressure != null  and pressure != ''"> and pressure = #{pressure}</if>
+            <if test="temperature != null  and temperature != ''"> and temperature = #{temperature}</if>
+            <if test="leakFluid != null  and leakFluid != ''"> and leak_fluid like concat(concat('%', #{leakFluid}), '%') </if>
+            <if test="materialType != null  and materialType != ''"> and material_type = #{materialType}</if>
+            <if test="planDate != null "> and plan_date = #{planDate}</if>
+            <if test="sealDate != null "> and seal_date = #{sealDate}</if>
+            <if test="extention1 != null "> and extention1 = #{extention1}</if>
+            <if test="extention2 != null "> and extention2 = #{extention2}</if>
+            <if test="extention3 != null "> and extention3 = #{extention3}</if>
+            <if test="extention4 != null "> and extention4 = #{extention4}</if>
+            <if test="extention5 != null "> and extention5 = #{extention5}</if>
+            <if test="extention6 != null "> and extention6 = #{extention6}</if>
+            <if test="extention7 != null "> and extention7 = #{extention7}</if>
+            <if test="extention8 != null "> and extention8 = #{extention8}</if>
+            <if test="extention9 != null "> and extention9 = #{extention9}</if>
+            <if test="status != null  and status != ''"> and status = #{status}</if>
             and d.del_flag = 0
         </where>
         <!-- 数据范围过滤 -->
@@ -177,6 +215,25 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="tempState != null">temp_state,</if>
             <if test="location != null">location,</if>
             <if test="finishDate != null">finish_date,</if>
+            <if test="processUnit != null">process_unit,</if>
+            <if test="department != null">department,</if>
+            <if test="leakLocation != null">leak_location,</if>
+            <if test="pressure != null">pressure,</if>
+            <if test="temperature != null">temperature,</if>
+            <if test="leakFluid != null">leak_fluid,</if>
+            <if test="materialType != null">material_type,</if>
+            <if test="planDate != null">plan_date,</if>
+            <if test="sealDate != null">seal_date,</if>
+            <if test="extention1 != null">extention1,</if>
+            <if test="extention2 != null">extention2,</if>
+            <if test="extention3 != null">extention3,</if>
+            <if test="extention4 != null">extention4,</if>
+            <if test="extention5 != null">extention5,</if>
+            <if test="extention6 != null">extention6,</if>
+            <if test="extention7 != null">extention7,</if>
+            <if test="extention8 != null">extention8,</if>
+            <if test="extention9 != null">extention9,</if>
+            <if test="status != null">status,</if>
          </trim>
         <trim prefix="values (" suffix=")" suffixOverrides=",">
             <if test="id != null">#{id},</if>
@@ -230,6 +287,25 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="tempState != null">#{tempState},</if>
             <if test="location != null">#{location},</if>
             <if test="finishDate != null">#{finishDate},</if>
+            <if test="processUnit != null">#{processUnit},</if>
+            <if test="department != null">#{department},</if>
+            <if test="leakLocation != null">#{leakLocation},</if>
+            <if test="pressure != null">#{pressure},</if>
+            <if test="temperature != null">#{temperature},</if>
+            <if test="leakFluid != null">#{leakFluid},</if>
+            <if test="materialType != null">#{materialType},</if>
+            <if test="planDate != null">#{planDate},</if>
+            <if test="sealDate != null">#{sealDate},</if>
+            <if test="extention1 != null">#{extention1},</if>
+            <if test="extention2 != null">#{extention2},</if>
+            <if test="extention3 != null">#{extention3},</if>
+            <if test="extention4 != null">#{extention4},</if>
+            <if test="extention5 != null">#{extention5},</if>
+            <if test="extention6 != null">#{extention6},</if>
+            <if test="extention7 != null">#{extention7},</if>
+            <if test="extention8 != null">#{extention8},</if>
+            <if test="extention9 != null">#{extention9},</if>
+            <if test="status != null">#{status},</if>
          </trim>
     </insert>
 
@@ -290,6 +366,25 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="tempState != null">temp_state = #{tempState},</if>
             <if test="location != null">location = #{location},</if>
             <if test="finishDate != null">finish_date = #{finishDate},</if>
+            <if test="processUnit != null">process_unit = #{processUnit},</if>
+            <if test="department != null">department = #{department},</if>
+            <if test="leakLocation != null">leak_location = #{leakLocation},</if>
+            <if test="pressure != null">pressure = #{pressure},</if>
+            <if test="temperature != null">temperature = #{temperature},</if>
+            <if test="leakFluid != null">leak_fluid = #{leakFluid},</if>
+            <if test="materialType != null">material_type = #{materialType},</if>
+            <if test="planDate != null">plan_date = #{planDate},</if>
+            <if test="sealDate != null">seal_date = #{sealDate},</if>
+            <if test="extention1 != null">extention1 = #{extention1},</if>
+            <if test="extention2 != null">extention2 = #{extention2},</if>
+            <if test="extention3 != null">extention3 = #{extention3},</if>
+            <if test="extention4 != null">extention4 = #{extention4},</if>
+            <if test="extention5 != null">extention5 = #{extention5},</if>
+            <if test="extention6 != null">extention6 = #{extention6},</if>
+            <if test="extention7 != null">extention7 = #{extention7},</if>
+            <if test="extention8 != null">extention8 = #{extention8},</if>
+            <if test="extention9 != null">extention9 = #{extention9},</if>
+            <if test="status != null">status = #{status},</if>
         </trim>
         where id = #{id}
     </update>

+ 8 - 0
ui/src/api/process/moc.js

@@ -1,6 +1,14 @@
 import request from '@/utils/request'
 
 // 查询MOC管理列表
+export function list(query) {
+  return request({
+    url: '/process/moc/list',
+    method: 'get',
+    params: query
+  })
+}
+
 export function listPermanent(query) {
   return request({
     url: '/process/moc/listpermanent',

+ 2017 - 5
ui/src/views/process/moc/aquifier/index.vue

@@ -1,13 +1,2025 @@
 <template>
-    <div>带压消漏清单</div>
+  <div class="app-container-list">
+    <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
+      <el-form-item :label="$t('MOC编号')" label-width="50" prop="mocNo">
+        <el-input
+          v-model="queryParams.mocNo"
+          :placeholder="$t('请输入') + $t('MOC编号')"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item :label="$t('公司MOC编号')" label-width="50" prop="companyMocNo">
+        <el-input
+          v-model="queryParams.companyMocNo"
+          :placeholder="$t('请输入') + $t('公司MOC编号')"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item :label="$t('工艺单元')" label-width="50" prop="processUnit">
+        <el-input
+          v-model="queryParams.processUnit"
+          :placeholder="$t('请输入') + $t('工艺单元')"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item :label="$t('部门')" label-width="50" prop="department">
+        <el-input
+          v-model="queryParams.department"
+          :placeholder="$t('请输入') + $t('部门')"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item :label="$t('泄露位置')" label-width="50" prop="leakLocation">
+        <el-input
+          v-model="queryParams.leakLocation"
+          :placeholder="$t('请输入') + $t('泄露位置')"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <!--<el-form-item :label="$t('项目号')" label-width="50" prop="projectNo">-->
+        <!--<el-input-->
+          <!--v-model="queryParams.projectNo"-->
+          <!--:placeholder="$t('请输入') + $t('项目号')"-->
+          <!--clearable-->
+          <!--size="small"-->
+          <!--@keyup.enter.native="handleQuery"-->
+        <!--/>-->
+      <!--</el-form-item>-->
+      <!--<el-form-item :label="$t('区域')" prop="area">-->
+        <!--<el-select v-model="queryParams.area" :placeholder="$t('请选择') + $t('区域')">-->
+          <!--<el-option-->
+            <!--v-for="dict in areaOptions"-->
+            <!--:key="dict.dictValue"-->
+            <!--:label="dict.dictLabel"-->
+            <!--:value="dict.dictValue"-->
+          <!--&gt;</el-option>-->
+        <!--</el-select>-->
+      <!--</el-form-item>-->
+      <el-form-item :label="$t('标题')" prop="title">
+        <el-input
+          v-model="queryParams.title"
+          :placeholder="$t('请输入') + $t('标题')"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item :label="$t('操作压力')" prop="pressure">
+        <el-input v-model="queryParams.pressure" :placeholder="$t('请输入') + $t('操作压力')" />
+      </el-form-item>
+      <el-form-item :label="$t('操作温度')" prop="temperature">
+        <el-input v-model="queryParams.temperature" :placeholder="$t('请输入') + $t('操作温度')" />
+      </el-form-item>
+      <el-form-item :label="$t('泄露介质')" prop="leakFluid">
+        <el-input v-model="queryParams.leakFluid" :placeholder="$t('请输入') + $t('泄露介质')" />
+      </el-form-item>
+      <el-form-item :label="$t('介质类型')" prop="materialType">
+        <el-input v-model="queryParams.materialType" :placeholder="$t('请输入') + $t('介质类型')" />
+      </el-form-item>
+      <el-form-item :label="$t('方案日期')" prop="planDate">
+        <el-date-picker clearable size="small" style="width: 200px"
+                        v-model="queryParams.planDate"
+                        type="date"
+                        value-format="yyyy-MM-dd"
+                        :placeholder="$t('请选择') + $t('方案日期')">
+        </el-date-picker>
+      </el-form-item>
+      <el-form-item :label="$t('堵漏日期')" prop="sealDate">
+        <el-date-picker clearable size="small" style="width: 200px"
+                        v-model="queryParams.sealDate"
+                        type="date"
+                        value-format="yyyy-MM-dd"
+                        :placeholder="$t('请选择') + $t('堵漏日期')">
+        </el-date-picker>
+      </el-form-item>
+      <el-form-item :label="$t('第一次延期')" prop="extention1">
+        <el-date-picker clearable size="small" style="width: 200px"
+                        v-model="queryParams.extention1"
+                        type="date"
+                        value-format="yyyy-MM-dd"
+                        :placeholder="$t('请选择') + $t('第一次延期')">
+        </el-date-picker>
+      </el-form-item>
+      <el-form-item :label="$t('第二次延期')" prop="extention2">
+        <el-date-picker clearable size="small" style="width: 200px"
+                        v-model="queryParams.extention2"
+                        type="date"
+                        value-format="yyyy-MM-dd"
+                        :placeholder="$t('请选择') + $t('第二次延期')">
+        </el-date-picker>
+      </el-form-item>
+      <el-form-item :label="$t('第三次延期')" prop="extention3">
+        <el-date-picker clearable size="small" style="width: 200px"
+                        v-model="queryParams.extention3"
+                        type="date"
+                        value-format="yyyy-MM-dd"
+                        :placeholder="$t('请选择') + $t('第三次延期')">
+        </el-date-picker>
+      </el-form-item>
+      <el-form-item :label="$t('第四次延期')" prop="extention4">
+        <el-date-picker clearable size="small" style="width: 200px"
+                        v-model="queryParams.extention4"
+                        type="date"
+                        value-format="yyyy-MM-dd"
+                        :placeholder="$t('请选择') + $t('第四次延期')">
+        </el-date-picker>
+      </el-form-item>
+      <el-form-item :label="$t('第五次延期')" prop="extention5">
+        <el-date-picker clearable size="small" style="width: 200px"
+                        v-model="queryParams.extention5"
+                        type="date"
+                        value-format="yyyy-MM-dd"
+                        :placeholder="$t('请选择') + $t('第五次延期')">
+        </el-date-picker>
+      </el-form-item>
+      <el-form-item :label="$t('第六次延期')" prop="extention6">
+        <el-date-picker clearable size="small" style="width: 200px"
+                        v-model="queryParams.extention6"
+                        type="date"
+                        value-format="yyyy-MM-dd"
+                        :placeholder="$t('请选择') + $t('第六次延期')">
+        </el-date-picker>
+      </el-form-item>
+      <el-form-item :label="$t('第七次延期')" prop="extention7">
+        <el-date-picker clearable size="small" style="width: 200px"
+                        v-model="queryParams.extention7"
+                        type="date"
+                        value-format="yyyy-MM-dd"
+                        :placeholder="$t('请选择') + $t('第七次延期')">
+        </el-date-picker>
+      </el-form-item>
+      <el-form-item :label="$t('第八次延期')" prop="extention8">
+        <el-date-picker clearable size="small" style="width: 200px"
+                        v-model="queryParams.extention8"
+                        type="date"
+                        value-format="yyyy-MM-dd"
+                        :placeholder="$t('请选择') + $t('第八次延期')">
+        </el-date-picker>
+      </el-form-item>
+      <el-form-item :label="$t('第九次延期')" prop="extention9">
+        <el-date-picker clearable size="small" style="width: 200px"
+                        v-model="queryParams.extention9"
+                        type="date"
+                        value-format="yyyy-MM-dd"
+                        :placeholder="$t('请选择') + $t('第九次延期')">
+        </el-date-picker>
+      </el-form-item>
+      <el-form-item :label="$t('卡具状态')" prop="status">
+        <el-input v-model="queryParams.status" :placeholder="$t('卡具状态') + $t('介质类型')" />
+      </el-form-item>
+      <el-form-item :label="$t('到期时间')" prop="extention9">
+        <el-date-picker clearable size="small" style="width: 200px"
+                        v-model="queryParams.expTime"
+                        type="date"
+                        value-format="yyyy-MM-dd"
+                        :placeholder="$t('请选择') + $t('到期时间')">
+        </el-date-picker>
+      </el-form-item>
+      <!--<el-form-item :label="$t('MOC类型')" prop="mocType">-->
+        <!--<el-select v-model="queryParams.mocType" :placeholder="$t('请选择') + $t('MOC类型')">-->
+          <!--<el-option-->
+            <!--v-for="dict in areaOptions"-->
+            <!--:key="dict.dictValue"-->
+            <!--:label="dict.dictLabel"-->
+            <!--:value="dict.dictValue"-->
+          <!--&gt;</el-option>-->
+        <!--</el-select>-->
+      <!--</el-form-item>-->
+      <!--<el-form-item :label="$t('负责人')" prop="owner">-->
+        <!--<el-input-->
+          <!--v-model="queryParams.owner"-->
+          <!--:placeholder="$t('请输入') + $t('负责人')"-->
+          <!--clearable-->
+          <!--size="small"-->
+          <!--@keyup.enter.native="handleQuery"-->
+        <!--/>-->
+      <!--</el-form-item>-->
+      <!--<el-form-item :label="$t('申请时间')" prop="approveTime">-->
+        <!--<el-date-picker clearable size="small" style="width: 200px"-->
+                        <!--v-model="queryParams.approveTime"-->
+                        <!--type="date"-->
+                        <!--value-format="yyyy-MM-dd"-->
+                        <!--:placeholder="$t('请选择') + $t('申请时间')">-->
+        <!--</el-date-picker>-->
+      <!--</el-form-item>-->
+      <!--<el-form-item :label="$t('MC时间')" prop="mcTime">-->
+        <!--<el-date-picker clearable size="small" style="width: 200px"-->
+                        <!--v-model="queryParams.mcTime"-->
+                        <!--type="date"-->
+                        <!--value-format="yyyy-MM-dd"-->
+                        <!--:placeholder="$t('请选择') + $t('MC时间')">-->
+        <!--</el-date-picker>-->
+      <!--</el-form-item>-->
+      <!--<el-form-item :label="$t('MC情况')" prop="mcDetail">-->
+        <!--<el-input-->
+          <!--v-model="queryParams.mcDetail"-->
+          <!--:placeholder="$t('请输入') + $t('MC情况')"-->
+          <!--clearable-->
+          <!--size="small"-->
+          <!--@keyup.enter.native="handleQuery"-->
+        <!--/>-->
+      <!--</el-form-item>-->
+      <el-form-item :label="$t('备注')" prop="remarks">
+        <el-input
+          v-model="queryParams.remarks"
+          :placeholder="$t('请输入') + $t('备注')"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <!--<el-form-item :label="$t('风险等级')" prop="riskLevel">-->
+        <!--<el-input-->
+          <!--v-model="queryParams.riskLevel"-->
+          <!--:placeholder="$t('请输入') + $t('风险等级')"-->
+          <!--clearable-->
+          <!--size="small"-->
+          <!--@keyup.enter.native="handleQuery"-->
+        <!--/>-->
+      <!--</el-form-item>-->
+      <!--<el-form-item :label="$t('EHS评估/审查')" prop="ehsCheck">-->
+        <!--<el-date-picker clearable size="small" style="width: 200px"-->
+                        <!--v-model="queryParams.ehsCheck"-->
+                        <!--type="date"-->
+                        <!--value-format="yyyy-MM-dd"-->
+                        <!--:placeholder="$t('请选择') + $t('EHS评估/审查')">-->
+        <!--</el-date-picker>-->
+      <!--</el-form-item>-->
+      <!--<el-form-item :label="$t('培训')" prop="training">-->
+        <!--<el-date-picker clearable size="small" style="width: 200px"-->
+                        <!--v-model="queryParams.training"-->
+                        <!--type="date"-->
+                        <!--value-format="yyyy-MM-dd"-->
+                        <!--:placeholder="$t('请选择') + $t('培训')"-->
+                        <!--:picker-options="trainingDatePicker">-->
+        <!--</el-date-picker>-->
+      <!--</el-form-item>-->
+      <!--<el-form-item :label="$t('PID更新')" prop="pidMaster">-->
+        <!--<el-select v-model="queryParams.pidMaster" :placeholder="$t('请选择') + $t('PID更新')">-->
+          <!--<el-option-->
+            <!--v-for="dict in pidMasterOptions"-->
+            <!--:key="dict.dictValue"-->
+            <!--:label="dict.dictLabel"-->
+            <!--:value="dict.dictValue"-->
+          <!--&gt;</el-option>-->
+        <!--</el-select>-->
+      <!--</el-form-item>-->
+      <!--<el-form-item :label="$t('SOP更新')" prop="sopUpdate">-->
+        <!--<el-select v-model="queryParams.sopUpdate" :placeholder="$t('请选择') + $t('SOP更新')">-->
+          <!--<el-option-->
+            <!--v-for="dict in sopUpdateOptions"-->
+            <!--:key="dict.dictValue"-->
+            <!--:label="dict.dictLabel"-->
+            <!--:value="dict.dictValue"-->
+          <!--&gt;</el-option>-->
+        <!--</el-select>-->
+      <!--</el-form-item>-->
+      <!--<el-form-item :label="$t('文档更新')" prop="docUpdate">-->
+        <!--<el-select v-model="queryParams.docUpdate" :placeholder="$t('请选择') + $t('文档更新')">-->
+          <!--<el-option-->
+            <!--v-for="dict in docUpdateOptions"-->
+            <!--:key="dict.dictValue"-->
+            <!--:label="dict.dictLabel"-->
+            <!--:value="dict.dictValue"-->
+          <!--&gt;</el-option>-->
+        <!--</el-select>-->
+      <!--</el-form-item>-->
+      <!--<el-form-item label="PSSR" prop="pssr">-->
+        <!--<el-date-picker clearable size="small" style="width: 200px"-->
+                        <!--v-model="queryParams.pssr"-->
+                        <!--type="date"-->
+                        <!--value-format="yyyy-MM-dd"-->
+                        <!--:placeholder="$t('请选择') + 'PSSR'"-->
+                        <!--:picker-options="pssrDatePicker">-->
+        <!--</el-date-picker>-->
+      <!--</el-form-item>-->
+      <!--<el-form-item :label="$t('PSSR编号')" prop="pssrNo">-->
+        <!--<el-input v-model="queryParams.pssrNo" :placeholder="$t('请输入') + $t('PSSR编号')" />-->
+      <!--</el-form-item>-->
+      <!--<el-form-item :label="$t('CTE工作号')" label-width="120" prop="cteNo">-->
+      <!--<el-input-->
+      <!--v-model="queryParams.cteNo"-->
+      <!--:placeholder="$t('请输入') + $t('CTE工作号')"-->
+      <!--clearable-->
+      <!--size="small"-->
+      <!--@keyup.enter.native="handleQuery"-->
+      <!--/>-->
+      <!--</el-form-item>-->
+      <!--<el-form-item :label="$t('实施情况')" prop="trueState" label-width="150">-->
+      <!--<el-select v-model="queryParams.trueState" :placeholder="$t('请选择') + $t('实施情况')" clearable size="small">-->
+      <!--<el-option-->
+      <!--v-for="dict in trueStateOptions"-->
+      <!--:key="dict.dictValue"-->
+      <!--:label="dict.dictLabel"-->
+      <!--:value="dict.dictValue"-->
+      <!--/>-->
+      <!--</el-select>-->
+      <!--</el-form-item>-->
+      <!--<el-form-item :label="$t('变更性质')" prop="changeNature" label-width="150">-->
+      <!--<el-select v-model="queryParams.changeNature" :placeholder="$t('请选择') + $t('变更性质')" clearable size="small">-->
+      <!--<el-option-->
+      <!--v-for="dict in changeNatureOptions"-->
+      <!--:key="dict.dictValue"-->
+      <!--:label="dict.dictLabel"-->
+      <!--:value="dict.dictValue"-->
+      <!--/>-->
+      <!--</el-select>-->
+      <!--</el-form-item>-->
+      <el-form-item>
+        <el-button type="cyan" icon="el-icon-search" size="mini" @click="handleQuery">{{ $t('搜索') }}</el-button>
+        <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">{{ $t('重置') }}</el-button>
+      </el-form-item>
+    </el-form>
+
+    <el-row :gutter="10" class="mb8">
+      <el-col :span="1.5">
+        <el-button
+          type="primary"
+          icon="el-icon-plus"
+          size="mini"
+          @click="handleAdd"
+          v-hasPermi="['process:moc:add']"
+        >{{ $t('新增') }}</el-button>
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="success"
+          icon="el-icon-edit"
+          size="mini"
+          :disabled="single"
+          @click="handleUpdate"
+          v-hasPermi="['process:moc:edit']"
+        >{{ $t('修改') }}</el-button>
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="danger"
+          icon="el-icon-delete"
+          size="mini"
+          :disabled="multiple"
+          @click="handleDelete"
+          v-hasPermi="['process:moc:remove']"
+        >{{ $t('删除') }}</el-button>
+      </el-col>
+      <!--<el-col :span="1.5">-->
+      <!--<el-button-->
+      <!--type="info"-->
+      <!--icon="el-icon-upload2"-->
+      <!--size="mini"-->
+      <!--@click="handleImport"-->
+      <!--v-hasPermi="['process:moc:edit']"-->
+      <!--&gt;{{ $t('导入') }}</el-button>-->
+      <!--</el-col>-->
+      <!--<el-col :span="1.5">-->
+      <!--<el-button-->
+      <!--type="warning"-->
+      <!--icon="el-icon-download"-->
+      <!--size="mini"-->
+      <!--@click="handleExport"-->
+      <!--v-hasPermi="['process:moc:export']"-->
+      <!--&gt;{{ $t('导出') }}</el-button>-->
+      <!--</el-col>-->
+      <!--<el-col :span="1.5">-->
+        <!--<el-button-->
+          <!--type="primary"-->
+          <!--icon="el-icon-s-data"-->
+          <!--size="mini"-->
+          <!--@click="handleData"-->
+        <!--&gt;{{ $t('数据分析') }}</el-button>-->
+      <!--</el-col>-->
+      <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
+    </el-row>
+
+    <el-table v-loading="loading" :data="mocList" @selection-change="handleSelectionChange" :cell-style="tableCellStyle" :cell-class-name="tableCellClassName" :height="clientHeight" border>
+      <el-table-column type="selection" width="55" align="center" />
+      <el-table-column :label="$t('MOC编号')" align="center" width="120" prop="mocNo" :show-overflow-tooltip="true"/>
+      <!--<el-table-column :label="$t('装置编号')" align="center" width="120" prop="plantNumber" :show-overflow-tooltip="true"/>-->
+      <el-table-column :label="$t('公司MOC编号')" align="center" width="120" prop="companyMocNo" :show-overflow-tooltip="true"/>
+      <el-table-column :label="$t('工艺单元')" align="center" width="120" prop="processUnit" :show-overflow-tooltip="true"/>
+      <el-table-column :label="$t('部门')" align="center" width="120" prop="department" :show-overflow-tooltip="true" />
+      <el-table-column :label="$t('泄露位置')" align="center" width="120" prop="leakLocation" :show-overflow-tooltip="true"/>
+      <!--<el-table-column :label="$t('项目号')" align="center" width="120" prop="projectNo" :show-overflow-tooltip="true"/>-->
+      <!--<el-table-column :label="$t('区域')" align="center" prop="area" :formatter="areaFormat" />-->
+      <el-table-column :label="$t('标题')" align="center" width="320" prop="title" :show-overflow-tooltip="true"/>
+      <el-table-column :label="$t('操作压力 (MPaG)')" align="center" width="150" prop="pressure" :show-overflow-tooltip="true"/>
+      <el-table-column :label="$t('操作温度 (℃)')" align="center" width="120" prop="temperature" :show-overflow-tooltip="true"/>
+      <el-table-column :label="$t('泄露介质')" align="center" width="100" prop="leakFluid" :show-overflow-tooltip="true"/>
+      <el-table-column :label="$t('介质类型')" align="center" width="100" prop="materialType" :show-overflow-tooltip="true"/>
+      <el-table-column :label="$t('方案日期')" align="center" prop="planDate" width="100">
+        <template slot-scope="scope">
+        <span>{{ parseTime(scope.row.planDate, '{y}-{m}-{d}') }}</span>
+        </template>
+      </el-table-column>
+      <el-table-column :label="$t('堵漏日期')" align="center" prop="sealDate" width="100">
+        <template slot-scope="scope">
+          <span>{{ parseTime(scope.row.sealDate, '{y}-{m}-{d}') }}</span>
+        </template>
+      </el-table-column>
+      <el-table-column :label="$t('第一次延期')" align="center" prop="extention1" width="100">
+        <template slot-scope="scope">
+          <span>{{ parseTime(scope.row.extention1, '{y}-{m}-{d}') }}</span>
+        </template>
+      </el-table-column>
+      <el-table-column :label="$t('第二次延期')" align="center" prop="extention2" width="100">
+        <template slot-scope="scope">
+          <span>{{ parseTime(scope.row.extention2, '{y}-{m}-{d}') }}</span>
+        </template>
+      </el-table-column>
+      <el-table-column :label="$t('第三次延期')" align="center" prop="extention3" width="100">
+        <template slot-scope="scope">
+          <span>{{ parseTime(scope.row.extention3, '{y}-{m}-{d}') }}</span>
+        </template>
+      </el-table-column>
+      <el-table-column :label="$t('第四次延期')" align="center" prop="extention4" width="100">
+        <template slot-scope="scope">
+          <span>{{ parseTime(scope.row.extention4, '{y}-{m}-{d}') }}</span>
+        </template>
+      </el-table-column>
+      <el-table-column :label="$t('第五次延期')" align="center" prop="extention5" width="100">
+        <template slot-scope="scope">
+          <span>{{ parseTime(scope.row.extention5, '{y}-{m}-{d}') }}</span>
+        </template>
+      </el-table-column>
+      <el-table-column :label="$t('第六次延期')" align="center" prop="extention6" width="100">
+        <template slot-scope="scope">
+          <span>{{ parseTime(scope.row.extention6, '{y}-{m}-{d}') }}</span>
+        </template>
+      </el-table-column>
+      <el-table-column :label="$t('第七次延期')" align="center" prop="extention7" width="100">
+        <template slot-scope="scope">
+          <span>{{ parseTime(scope.row.extention7, '{y}-{m}-{d}') }}</span>
+        </template>
+      </el-table-column>
+      <el-table-column :label="$t('第八次延期')" align="center" prop="extention8" width="100">
+        <template slot-scope="scope">
+          <span>{{ parseTime(scope.row.extention8, '{y}-{m}-{d}') }}</span>
+        </template>
+      </el-table-column>
+      <el-table-column :label="$t('第九次延期')" align="center" prop="extention9" width="100">
+        <template slot-scope="scope">
+          <span>{{ parseTime(scope.row.extention9, '{y}-{m}-{d}') }}</span>
+        </template>
+      </el-table-column>
+      <el-table-column :label="$t('到期时间')" align="center" prop="extention9" width="100">
+        <template slot-scope="scope">
+          <span>{{ parseTime(scope.row.expTime, '{y}-{m}-{d}') }}</span>
+        </template>
+      </el-table-column>
+      <el-table-column :label="$t('卡具状态')" align="center" width="100" prop="status" :show-overflow-tooltip="true"/>
+      <!--<el-table-column prop="mocType" label="":show-overflow-tooltip="true" :formatter="mocTypeFormat" width="120">-->
+        <!--<template slot="header">-->
+          <!--MOC类型-->
+          <!--<span-->
+            <!--@click="mocTypeInfo.open = true"-->
+            <!--id="moc-type">-->
+            <!--<i class="el-icon-question"></i>-->
+          <!--</span>-->
+        <!--</template>-->
+      <!--</el-table-column>-->
+      <!--<el-table-column :label="$t('负责人')" align="center" prop="owner" :show-overflow-tooltip="true"/>-->
+      <!--<el-table-column :label="$t('申请时间')" align="center" prop="approveTime" width="100">-->
+        <!--<template slot-scope="scope">-->
+          <!--<span>{{ parseTime(scope.row.approveTime, '{y}-{m}-{d}') }}</span>-->
+        <!--</template>-->
+      <!--</el-table-column>-->
+      <!--<el-table-column :label="$t('完成时间')" align="center" prop="endtime" width="100">-->
+      <!--<template slot-scope="scope">-->
+      <!--<span>{{ parseTime(scope.row.endtime, '{y}-{m}-{d}') }}</span>-->
+      <!--</template>-->
+      <!--</el-table-column>-->
+      <!--<el-table-column :label="$t('实施情况')" align="center" prop="trueState" :formatter="trueStateFormat" />-->
+      <!--<el-table-column :label="$t('变更性质')" align="center" prop="changeNature" :formatter="changeNatureFormat" />-->
+      <!--<el-table-column :label="$t('到期时间')" align="center" prop="overTime" width="100">-->
+      <!--<template slot-scope="scope">-->
+      <!--<span v-if="scope.row.overTime !== 'N.A.'">{{ parseTime(scope.row.overTime, '{y}-{m}-{d}') }}</span>-->
+      <!--<span v-if="scope.row.overTime === 'N.A.'">{{ scope.row.overTime }}</span>-->
+      <!--</template>-->
+      <!--</el-table-column>-->
+      <!--<el-table-column :label="$t('临时MOC状态')" align="center" prop="temporaryState" :formatter="temporaryStateFormat" />-->
+      <!--<el-table-column :label="$t('MC时间')" align="center" prop="mcTime" :show-overflow-tooltip="true" width="100"/>-->
+      <!--<el-table-column :label="$t('MC情况')" align="center" prop="mcDetail" :show-overflow-tooltip="true" width="100" :formatter="mcDetailFormat" />-->
+      <el-table-column :label="$t('备注')" align="center" prop="remarks" :show-overflow-tooltip="true" width="130" />
+      <!--<el-table-column :label="$t('风险等级')" align="center" prop="riskLevel" :formatter="riskLevelFormat" />-->
+      <!--<el-table-column :label="$t('EHS评估/审查')" align="center" width="130" prop="ehsCheck" :show-overflow-tooltip="true">-->
+        <!--<template slot-scope="scope">-->
+          <!--<span> {{scope.row.ehsCheck}}</span>-->
+          <!--<el-button icon="el-icon-folder" style="color:#6e96fa" v-if="scope.row.ehsCheck !== null" @click="handleDoc(scope.row , 'moc-ehsCheck')"  circle></el-button>-->
+        <!--</template>-->
+      <!--</el-table-column>-->
+      <!--<el-table-column :label="$t('培训')" align="center" width="130" prop="training" :show-overflow-tooltip="true">-->
+        <!--<template slot-scope="scope">-->
+          <!--<span> {{scope.row.training}}</span>-->
+          <!--<el-button icon="el-icon-folder" style="color:#6e96fa;" v-if="scope.row.training !== null" @click="handleDoc(scope.row , 'moc-training')"  circle></el-button>-->
+        <!--</template>-->
+      <!--</el-table-column>-->
+      <!--<el-table-column :label="$t('SOP更新')" align="center" prop="sopUpdate" :formatter="sopUpdateFormat" />-->
+      <!--<el-table-column :label="$t('PID更新')" align="center" prop="pidMaster" :formatter="pidMasterFormat" />-->
+      <!--<el-table-column :label="$t('文档更新')" align="center" prop="docUpdate" :formatter="docUpdateFormat" />-->
+      <!--<el-table-column label="PSSR" align="center" width="130" prop="pssr" :show-overflow-tooltip="true">-->
+        <!--<template slot-scope="scope">-->
+          <!--<span> {{scope.row.pssr}}</span>-->
+          <!--<el-button icon="el-icon-folder" style="color:#6e96fa;" v-if="scope.row.pssr !== null" @click="handleDoc(scope.row , 'moc-pssr')"  circle></el-button>-->
+        <!--</template>-->
+      <!--</el-table-column>-->
+      <!--<el-table-column :label="$t('PSSR编号')" align="center" prop="pssrNo" width="130" />-->
+      <!--<el-table-column :label="$t('通知单')" align="center" prop="noticeLetter" :show-overflow-tooltip="true"/>
+      <el-table-column :label="$t('工作单')" align="center" prop="workLetter" :show-overflow-tooltip="true"/>
+      <el-table-column :label="$t('CTE工作号')" align="center" prop="cteNo" :show-overflow-tooltip="true"/>
+      <el-table-column :label="$t('投资费用(RMB)')" align="center" prop="investCost" :show-overflow-tooltip="true"/>
+      <el-table-column :label="$t('类别')" align="center" prop="category" :formatter="categoryFormat" />
+      <el-table-column :label="$t('重要性')" align="center" prop="significance" :show-overflow-tooltip="true"/>
+      <el-table-column :label="$t('分类')" align="center" width="120" prop="classification" :show-overflow-tooltip="true"/>
+      <el-table-column :label="$t('仪表控制')" align="center" prop="dashControl" :show-overflow-tooltip="true"/>
+      <el-table-column :label="$t('预计完成时间')" align="center" prop="estimateEndtime" width="100">
+        <template slot-scope="scope">
+          <span>{{ parseTime(scope.row.estimateEndtime, '{y}-{m}-{d}') }}</span>
+        </template>
+      </el-table-column>
+      <el-table-column :label="$t('EHS审查数据库')" align="center" prop="ehsDb" :show-overflow-tooltip="true"/>
+      <el-table-column :label="$t('PSSR数据库')" align="center" prop="pssrDb" :show-overflow-tooltip="true"/>
+      <el-table-column :label="$t('CAPEX计划')" align="center" prop="capex" :show-overflow-tooltip="true"/>-->
+      <el-table-column :label="$t('操作')" align="center" fixed="right" width="120" class-name="small-padding fixed-width">
+        <template slot-scope="scope">
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-edit"
+            @click="handleUpdate(scope.row)"
+            v-hasPermi="['process:moc:edit']"
+          >{{ $t('修改') }}</el-button>
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-delete"
+            @click="handleDelete(scope.row)"
+            v-hasPermi="['process:moc:remove']"
+          >{{ $t('删除') }}</el-button>
+        </template>
+      </el-table-column>
+    </el-table>
+
+    <pagination
+      v-show="total>0"
+      :total="total"
+      :page.sync="queryParams.pageNum"
+      :limit.sync="queryParams.pageSize"
+      @pagination="getList"
+    />
+
+    <!-- 添加或修改MOC管理对话框 -->
+    <el-dialog v-dialogDrag :title="title" :visible.sync="open" width="500px" append-to-body>
+      <el-form ref="form" :model="form" :rules="rules" label-width="80px">
+        <!--<el-form-item :label="$t('装置名称')" prop="plantCode">-->
+        <!--<el-select v-model="form.plantCode" :placeholder="$t('请选择') + $t('装置名称')">-->
+        <!--<el-option-->
+        <!--v-for="dict in plantCodeOptions"-->
+        <!--:key="dict.dictValue"-->
+        <!--:label="dict.dictLabel"-->
+        <!--:value="dict.dictValue"-->
+        <!--&gt;</el-option>-->
+        <!--</el-select>-->
+        <!--</el-form-item>-->
+        <el-form-item :label="$t('MOC编号')" prop="mocNo">
+          <el-input v-model="form.mocNo" :placeholder="$t('请输入') + $t('MOC编号')" />
+        </el-form-item>
+        <el-form-item :label="$t('公司MOC编号')" prop="companyMocNo">
+          <el-input v-model="form.companyMocNo" :placeholder="$t('请输入') + $t('公司MOC编号')" />
+        </el-form-item>
+        <el-form-item :label="$t('工艺单元')" prop="processUnit">
+          <el-input v-model="form.processUnit" :placeholder="$t('请输入') + $t('工艺单元')" />
+        </el-form-item>
+        <el-form-item :label="$t('部门')" prop="department">
+          <el-input v-model="form.department" :placeholder="$t('请输入') + $t('部门')" />
+        </el-form-item>
+        <el-form-item :label="$t('泄露位置')" prop="leakLocation">
+          <el-input v-model="form.leakLocation" :placeholder="$t('请输入') + $t('泄露位置')" />
+        </el-form-item>
+        <!--<el-form-item :label="$t('项目号')" prop="projectNo">-->
+          <!--<el-input v-model="form.projectNo" :placeholder="$t('请输入') + $t('项目号')" />-->
+        <!--</el-form-item>-->
+        <!--<el-form-item :label="$t('区域')" prop="area">-->
+          <!--<el-select v-model="form.area" :placeholder="$t('请选择') + $t('区域')">-->
+            <!--<el-option-->
+              <!--v-for="dict in areaOptions"-->
+              <!--:key="dict.dictValue"-->
+              <!--:label="dict.dictLabel"-->
+              <!--:value="dict.dictValue"-->
+            <!--&gt;</el-option>-->
+          <!--</el-select>-->
+        <!--</el-form-item>-->
+        <el-form-item :label="$t('标题')" prop="title">
+          <el-input v-model="form.title" :placeholder="$t('请输入') + $t('标题')" />
+        </el-form-item>
+        <el-form-item :label="$t('操作压力 (MPaG)')" prop="pressure">
+          <el-input v-model="form.pressure" :placeholder="$t('请输入') + $t('操作压力')" />
+        </el-form-item>
+        <el-form-item :label="$t('操作温度 (℃)')" prop="temperature">
+          <el-input v-model="form.temperature" :placeholder="$t('请输入') + $t('操作温度')" />
+        </el-form-item>
+        <el-form-item :label="$t('泄露介质')" prop="leakFluid">
+          <el-input v-model="form.leakFluid" :placeholder="$t('请输入') + $t('泄露介质')" />
+        </el-form-item>
+        <el-form-item :label="$t('介质类型')" prop="materialType">
+          <el-input v-model="form.materialType" :placeholder="$t('请输入') + $t('介质类型')" />
+        </el-form-item>
+        <el-form-item :label="$t('方案日期')" prop="planDate">
+          <el-date-picker clearable size="small" style="width: 200px"
+          v-model="form.planDate"
+          type="date"
+          value-format="yyyy-MM-dd"
+          :placeholder="$t('请选择') + $t('方案日期')">
+          </el-date-picker>
+        </el-form-item>
+        <el-form-item :label="$t('堵漏日期')" prop="sealDate">
+          <el-date-picker clearable size="small" style="width: 200px"
+                          v-model="form.sealDate"
+                          type="date"
+                          value-format="yyyy-MM-dd"
+                          :placeholder="$t('请选择') + $t('堵漏日期')">
+          </el-date-picker>
+        </el-form-item>
+        <el-form-item :label="$t('第一次延期')" prop="extention1">
+          <el-date-picker clearable size="small" style="width: 200px"
+                          v-model="form.extention1"
+                          type="date"
+                          value-format="yyyy-MM-dd"
+                          :placeholder="$t('请选择') + $t('第一次延期')">
+          </el-date-picker>
+        </el-form-item>
+        <el-form-item :label="$t('第二次延期')" prop="extention2">
+          <el-date-picker clearable size="small" style="width: 200px"
+                          v-model="form.extention2"
+                          type="date"
+                          value-format="yyyy-MM-dd"
+                          :placeholder="$t('请选择') + $t('第二次延期')">
+          </el-date-picker>
+        </el-form-item>
+        <el-form-item :label="$t('第三次延期')" prop="extention3">
+          <el-date-picker clearable size="small" style="width: 200px"
+                          v-model="form.extention3"
+                          type="date"
+                          value-format="yyyy-MM-dd"
+                          :placeholder="$t('请选择') + $t('第三次延期')">
+          </el-date-picker>
+        </el-form-item>
+        <el-form-item :label="$t('第四次延期')" prop="extention4">
+          <el-date-picker clearable size="small" style="width: 200px"
+                          v-model="form.extention4"
+                          type="date"
+                          value-format="yyyy-MM-dd"
+                          :placeholder="$t('请选择') + $t('第四次延期')">
+          </el-date-picker>
+        </el-form-item>
+        <el-form-item :label="$t('第五次延期')" prop="extention5">
+          <el-date-picker clearable size="small" style="width: 200px"
+                          v-model="form.extention5"
+                          type="date"
+                          value-format="yyyy-MM-dd"
+                          :placeholder="$t('请选择') + $t('第五次延期')">
+          </el-date-picker>
+        </el-form-item>
+        <el-form-item :label="$t('第六次延期')" prop="extention6">
+          <el-date-picker clearable size="small" style="width: 200px"
+                          v-model="form.extention6"
+                          type="date"
+                          value-format="yyyy-MM-dd"
+                          :placeholder="$t('请选择') + $t('第六次延期')">
+          </el-date-picker>
+        </el-form-item>
+        <el-form-item :label="$t('第七次延期')" prop="extention7">
+          <el-date-picker clearable size="small" style="width: 200px"
+                          v-model="form.extention7"
+                          type="date"
+                          value-format="yyyy-MM-dd"
+                          :placeholder="$t('请选择') + $t('第七次延期')">
+          </el-date-picker>
+        </el-form-item>
+        <el-form-item :label="$t('第八次延期')" prop="extention8">
+          <el-date-picker clearable size="small" style="width: 200px"
+                          v-model="form.extention8"
+                          type="date"
+                          value-format="yyyy-MM-dd"
+                          :placeholder="$t('请选择') + $t('第八次延期')">
+          </el-date-picker>
+        </el-form-item>
+        <el-form-item :label="$t('第九次延期')" prop="extention9">
+          <el-date-picker clearable size="small" style="width: 200px"
+                          v-model="form.extention9"
+                          type="date"
+                          value-format="yyyy-MM-dd"
+                          :placeholder="$t('请选择') + $t('第九次延期')">
+          </el-date-picker>
+        </el-form-item>
+        <el-form-item :label="$t('卡具状态')" prop="status">
+          <el-input v-model="form.status" :placeholder="$t('卡具状态') + $t('介质类型')" />
+        </el-form-item>
+        <el-form-item :label="$t('到期时间')" prop="extention9">
+          <el-date-picker clearable size="small" style="width: 200px"
+                          v-model="form.expTime"
+                          type="date"
+                          value-format="yyyy-MM-dd"
+                          :placeholder="$t('请选择') + $t('到期时间')">
+          </el-date-picker>
+        </el-form-item>
+        <!--<el-form-item :label="$t('MOC类型')" prop="mocType">-->
+          <!--<el-select v-model="form.mocType" :placeholder="$t('请选择') + $t('MOC类型')">-->
+            <!--<el-option-->
+              <!--v-for="dict in mocTypeOptions"-->
+              <!--:key="dict.dictValue"-->
+              <!--:label="dict.dictLabel"-->
+              <!--:value="dict.dictValue"-->
+            <!--&gt;</el-option>-->
+          <!--</el-select>-->
+        <!--</el-form-item>-->
+        <!--<el-form-item :label="$t('负责人')" prop="owner">-->
+          <!--<el-input v-model="form.owner" :placeholder="$t('请输入') + $t('负责人')" />-->
+        <!--</el-form-item>-->
+        <!--<el-form-item :label="$t('申请时间')" prop="approveTime">-->
+          <!--<el-date-picker clearable size="small" style="width: 200px"-->
+                          <!--v-model="form.approveTime"-->
+                          <!--type="date"-->
+                          <!--value-format="yyyy-MM-dd"-->
+                          <!--:placeholder="$t('请选择') + $t('申请时间')">-->
+          <!--</el-date-picker>-->
+        <!--</el-form-item>-->
+        <!--<el-form-item :label="$t('MC时间')" prop="mcTime">-->
+          <!--<el-date-picker clearable size="small" style="width: 200px"-->
+                          <!--v-model="form.mcTime"-->
+                          <!--type="date"-->
+                          <!--value-format="yyyy-MM-dd"-->
+                          <!--:placeholder="$t('请选择') + $t('MC时间')">-->
+          <!--</el-date-picker>-->
+        <!--</el-form-item>-->
+        <!--<el-form-item :label="$t('MC情况')" prop="mcDetail">-->
+          <!--<el-select v-model="form.mcDetail" :placeholder="$t('请选择') + $t('MC情况')">-->
+            <!--<el-option-->
+              <!--v-for="dict in mcDetailOptions"-->
+              <!--:key="dict.dictValue"-->
+              <!--:label="dict.dictLabel"-->
+              <!--:value="dict.dictValue"-->
+            <!--&gt;</el-option>-->
+          <!--</el-select>-->
+        <!--</el-form-item>-->
+        <!--<el-form-item :label="$t('完成时间')" prop="endtime">-->
+        <!--<el-date-picker clearable size="small" style="width: 200px"-->
+        <!--v-model="form.endtime"-->
+        <!--type="date"-->
+        <!--value-format="yyyy-MM-dd"-->
+        <!--:placeholder="$t('请选择') + $t('完成时间')">-->
+        <!--</el-date-picker>-->
+        <!--</el-form-item>-->
+        <!--<el-form-item :label="$t('实施情况')" prop="trueState">-->
+        <!--<el-select v-model="form.trueState" :placeholder="$t('请选择') + $t('实施情况')" @change="changeTrueState($event)">-->
+        <!--<el-option-->
+        <!--v-for="dict in trueStateOptions"-->
+        <!--:key="dict.dictValue"-->
+        <!--:label="dict.dictLabel"-->
+        <!--:value="dict.dictValue"-->
+        <!--&gt;</el-option>-->
+        <!--</el-select>-->
+        <!--</el-form-item>-->
+        <!--<el-form-item :label="$t('变更性质')" prop="changeNature">-->
+        <!--<el-select v-model="form.changeNature" :placeholder="$t('请选择') + $t('变更性质')" @change="changeChangeNature($event)">-->
+        <!--<el-option-->
+        <!--v-for="dict in changeNatureOptions"-->
+        <!--:key="dict.dictValue"-->
+        <!--:label="dict.dictLabel"-->
+        <!--:value="dict.dictValue"-->
+        <!--&gt;</el-option>-->
+        <!--</el-select>-->
+        <!--</el-form-item>-->
+        <!--<el-form-item :label="$t('到期时间')" prop="overTime">-->
+        <!--<el-date-picker clearable size="small" style="width: 200px"-->
+        <!--v-model="form.overTime"-->
+        <!--type="date"-->
+        <!--value-format="yyyy-MM-dd"-->
+        <!--:placeholder="$t('请选择') + $t('到期时间')">-->
+        <!--</el-date-picker>-->
+        <!--</el-form-item>-->
+        <!--<el-form-item :label="$t('临时MOC状态')" prop="temporaryState">-->
+        <!--<el-select v-model="form.temporaryState" :placeholder="$t('请选择') + $t('临时MOC状态')">-->
+        <!--<el-option-->
+        <!--v-for="dict in temporaryStateOptions"-->
+        <!--:key="dict.dictValue"-->
+        <!--:label="dict.dictLabel"-->
+        <!--:value="dict.dictValue"-->
+        <!--&gt;</el-option>-->
+        <!--</el-select>-->
+        <!--</el-form-item>-->
+        <el-form-item :label="$t('备注')" prop="remarks">
+          <el-input v-model="form.remarks" type="textarea" :placeholder="$t('请输入') + $t('备注')" />
+        </el-form-item>
+        <!--<el-form-item :label="$t('风险等级')" prop="riskLevel">-->
+          <!--<el-select v-model="form.riskLevel" :placeholder="$t('请选择') + $t('风险等级')">-->
+            <!--<el-option-->
+              <!--v-for="dict in riskLevelOptions"-->
+              <!--:key="dict.dictValue"-->
+              <!--:label="dict.dictLabel"-->
+              <!--:value="dict.dictValue"-->
+            <!--&gt;</el-option>-->
+          <!--</el-select>-->
+        <!--</el-form-item>-->
+        <!--<el-form-item :label="$t('EHS评估/审查')" prop="ehsCheck">-->
+          <!--<el-date-picker clearable size="small" style="width: 200px"-->
+                          <!--v-model="form.ehsCheck"-->
+                          <!--type="date"-->
+                          <!--value-format="yyyy-MM-dd"-->
+                          <!--:placeholder="$t('请选择') + $t('EHS评估/审查')">-->
+          <!--</el-date-picker>-->
+        <!--</el-form-item>-->
+        <!--<el-form-item :label="$t('培训')" prop="training">-->
+          <!--<el-date-picker clearable size="small" style="width: 200px"-->
+                          <!--v-model="form.training"-->
+                          <!--type="date"-->
+                          <!--value-format="yyyy-MM-dd"-->
+                          <!--:placeholder="$t('请选择') + $t('培训')"-->
+                          <!--:picker-options="trainingDatePicker">-->
+          <!--</el-date-picker>-->
+        <!--</el-form-item>-->
+        <!--<el-form-item :label="$t('PID更新')" prop="pidMaster">-->
+          <!--<el-select v-model="form.pidMaster" :placeholder="$t('请选择') + $t('PID更新')">-->
+            <!--<el-option-->
+              <!--v-for="dict in pidMasterOptions"-->
+              <!--:key="dict.dictValue"-->
+              <!--:label="dict.dictLabel"-->
+              <!--:value="dict.dictValue"-->
+            <!--&gt;</el-option>-->
+          <!--</el-select>-->
+        <!--</el-form-item>-->
+        <!--<el-form-item :label="$t('SOP更新')" prop="sopUpdate">-->
+          <!--<el-select v-model="form.sopUpdate" :placeholder="$t('请选择') + $t('SOP更新')">-->
+            <!--<el-option-->
+              <!--v-for="dict in sopUpdateOptions"-->
+              <!--:key="dict.dictValue"-->
+              <!--:label="dict.dictLabel"-->
+              <!--:value="dict.dictValue"-->
+            <!--&gt;</el-option>-->
+          <!--</el-select>-->
+        <!--</el-form-item>-->
+        <!--<el-form-item :label="$t('文档更新')" prop="docUpdate">-->
+          <!--<el-select v-model="form.docUpdate" :placeholder="$t('请选择') + $t('文档更新')">-->
+            <!--<el-option-->
+              <!--v-for="dict in docUpdateOptions"-->
+              <!--:key="dict.dictValue"-->
+              <!--:label="dict.dictLabel"-->
+              <!--:value="dict.dictValue"-->
+            <!--&gt;</el-option>-->
+          <!--</el-select>-->
+        <!--</el-form-item>-->
+        <!--<el-form-item label="PSSR" prop="pssr">-->
+          <!--<el-date-picker clearable size="small" style="width: 200px"-->
+                          <!--v-model="form.pssr"-->
+                          <!--type="date"-->
+                          <!--value-format="yyyy-MM-dd"-->
+                          <!--:placeholder="$t('请选择') + 'PSSR'"-->
+                          <!--:picker-options="pssrDatePicker">-->
+          <!--</el-date-picker>-->
+        <!--</el-form-item>-->
+        <!--<el-form-item :label="$t('PSSR编号')" prop="pssrNo">-->
+          <!--<el-input v-model="form.pssrNo" :placeholder="$t('请输入') + $t('PSSR编号')" />-->
+        <!--</el-form-item>-->
+        <!--<el-form-item :label="$t('装置编号')" prop="plantNumber">
+          <el-input v-model="form.plantNumber" :placeholder="$t('请输入') + $t('装置编号')" />
+        </el-form-item>
+        <el-form-item :label="$t('通知单')" prop="noticeLetter">
+          <el-input v-model="form.noticeLetter" :placeholder="$t('请输入') + $t('通知单')" />
+        </el-form-item>
+        <el-form-item :label="$t('工作单')" prop="workLetter">
+          <el-input v-model="form.workLetter" :placeholder="$t('请输入') + $t('工作单')" />
+        </el-form-item>
+        <el-form-item :label="$t('CTE工作号')" prop="cteNo">
+          <el-input v-model="form.cteNo" :placeholder="$t('请输入') + $t('CTE工作号')" />
+        </el-form-item>
+        <el-form-item :label="$t('投资费用(RMB)')" prop="investCost">
+          <el-input v-model="form.investCost" :placeholder="$t('请输入') + $t('投资费用(RMB)')" />
+        </el-form-item>
+        <el-form-item :label="$t('类别')" prop="category">
+          <el-select v-model="form.category" :placeholder="$t('请选择') + $t('类别')">
+            <el-option
+              v-for="dict in categoryOptions"
+              :key="dict.dictValue"
+              :label="dict.dictLabel"
+              :value="dict.dictValue"
+            ></el-option>
+          </el-select>
+        </el-form-item>
+        <el-form-item :label="$t('重要性')" prop="significance">
+          <el-input v-model="form.significance" :placeholder="$t('请输入') + $t('重要性')" />
+        </el-form-item>
+        <el-form-item :label="$t('分类')" prop="classification">
+          <el-input v-model="form.classification" :placeholder="$t('请输入') + $t('分类')" />
+        </el-form-item>
+        <el-form-item :label="$t('仪表控制')" prop="dashControl">
+          <el-input v-model="form.dashControl" :placeholder="$t('请输入') + $t('仪表控制')" />
+        </el-form-item>
+        <el-form-item :label="$t('预计完成时间')" prop="estimateEndtime">
+          <el-date-picker clearable size="small" style="width: 200px"
+                          v-model="form.estimateEndtime"
+                          type="date"
+                          value-format="yyyy-MM-dd"
+                          :placeholder="$t('请选择') + $t('预计完成时间')">
+          </el-date-picker>
+        </el-form-item>
+        <el-form-item :label="$t('EHS审查数据库')" prop="ehsDb">
+          <el-input v-model="form.ehsDb" :placeholder="$t('请输入') + $t('EHS审查数据库')" />
+        </el-form-item>
+        <el-form-item :label="$t('PSSR数据库')" prop="pssrDb">
+          <el-input v-model="form.pssrDb" :placeholder="$t('请输入') + $t('PSSR数据库')" />
+        </el-form-item>
+        <el-form-item :label="$t('CAPEX计划')" prop="capex">
+          <el-input v-model="form.capex" :placeholder="$t('请输入') + $t('CAPEX计划')" />
+        </el-form-item>-->
+        <el-form-item :label="$t('归属部门')" prop="deptId">
+          <treeselect v-model="form.deptId" :options="deptOptions" :show-count="true" :placeholder="$t('请选择') + $t('归属部门')" />
+        </el-form-item>
+      </el-form>
+      <div slot="footer" class="dialog-footer">
+        <el-button type="primary" @click="submitForm">{{ $t('确 定') }}</el-button>
+        <el-button @click="cancel">{{ $t('取 消') }}</el-button>
+      </div>
+    </el-dialog>
+    <!-- 用户导入对话框 -->
+    <el-dialog v-dialogDrag :title="upload.title" :visible.sync="upload.open" width="400px" append-to-body>
+      <el-upload
+        ref="upload"
+        :limit="1"
+        accept=".xlsx, .xls"
+        :headers="upload.headers"
+        :action="upload.url"
+        :disabled="upload.isUploading"
+        :on-progress="handleFileUploadProgress"
+        :on-success="handleFileSuccess"
+        :auto-upload="false"
+        drag
+      >
+        <i class="el-icon-upload"></i>
+        <div class="el-upload__text">
+          {{ $t('将文件拖到此处,或') }}
+          <em>{{ $t('点击上传') }}</em>
+        </div>
+        <div class="el-upload__tip" slot="tip">
+          <!--<el-checkbox v-model="upload.updateSupport" />是否更新已经存在的用户数据-->
+          <el-link type="info" style="font-size:12px" @click="importTemplate">{{ $t('下载模板') }}</el-link>
+        </div>
+        <form ref="downloadFileForm" :action="upload.downloadAction" target="FORMSUBMIT">
+          <input name="type" :value="upload.type" hidden />
+        </form>
+        <div class="el-upload__tip" style="color:red" slot="tip">{{ $t('提示:仅允许导入“xls”或“xlsx”格式文件!') }}</div>
+      </el-upload>
+      <div slot="footer" class="dialog-footer">
+        <el-button type="primary" @click="submitFileForm">{{ $t('确 定') }}</el-button>
+        <el-button @click="upload.open = false">{{ $t('取 消') }}</el-button>
+      </div>
+    </el-dialog>
+    <!-- 报告附件对话框 -->
+    <el-dialog v-dialogDrag :title="doc.title" :visible.sync="doc.open" width="1000px" append-to-body >
+      <el-upload v-hasPermi="['training:trainingrecords:file']"
+                 ref="doc"
+                 :limit="50"
+                 :headers="doc.headers"
+                 :action="doc.url + '?pType=' + doc.pType + '&pId=' + doc.pId"
+                 :disabled="doc.isUploading"
+                 :on-progress="handleFileDocProgress"
+                 :on-success="handleFileDocSuccess"
+                 :auto-upload="true"
+                 drag
+      >
+        <i class="el-icon-upload"></i>
+        <div class="el-upload__text">
+          {{ $t('将文件拖到此处,或') }}
+          <em>{{ $t('点击上传') }}</em>
+        </div>
+      </el-upload>
+      <el-table :data="doc.commonfileList" border>
+        <el-table-column :label="$t('文件名')" align="center" prop="fileName" :show-overflow-tooltip="true">
+          <template slot-scope="scope">
+            <a  class="link-type"  @click="handleDownload(scope.row)">
+              <span>{{ scope.row.fileName }}</span>
+            </a>
+          </template>
+        </el-table-column>
+        <el-table-column :label="$t('大小(Kb)')" align="center" prop="fileSize" :show-overflow-tooltip="true" width="80" />
+        <el-table-column :label="$t('上传人')" align="center" prop="creator" :show-overflow-tooltip="true" width="120"/>
+        <el-table-column :label="$t('操作')" align="center" width="220" class-name="small-padding fixed-width">
+          <template slot-scope="scope">
+            <el-button
+              v-if="scope.row.fileName.endsWith('pdf')"
+              size="mini"
+              type="text"
+              icon="el-icon-view"
+              @click="handleSee(scope.row)"
+            >{{ $t('预览') }}</el-button>
+            <el-button v-hasPermi="['training:trainingrecords:file']"  type="text" size="small" v-if="scope.row.isEdit" @click="save(scope.row)">{{ $t('保存') }}</el-button>
+            <el-button type="text" size="small" v-if="scope.row.isEdit" @click="cancelFile(scope.row, scope.$index)">{{ $t('取消') }}</el-button>
+            <!--            <el-button v-hasPermi="['training:trainingrecords:file']" v-if="!scope.row.isEdit" @click="edit(scope.row)" icon="el-icon-edit" type="text" size="mini">编辑</el-button>-->
+            <el-button
+              size="mini"
+              type="text"
+              icon="el-icon-download"
+              @click="handleDownload(scope.row)"
+            >{{ $t('下载') }}</el-button>
+            <el-button
+              size="mini"
+              type="text"
+              icon="el-icon-delete"
+              @click="handleDeleteDoc(scope.row)"
+              v-hasPermi="['training:trainingrecords:file']"
+            >{{ $t('删除') }}</el-button>
+          </template>
+        </el-table-column>
+      </el-table>
+      <el-dialog v-dialogDrag :title="pdf.title" :visible.sync="pdf.open" width="1300px" append-to-body>
+        <div style="margin-top: -60px;float: right;margin-right: 40px;">
+          <el-button size="mini" type="text" @click="openPdf">{{$t('新页面打开PDF')}}</el-button></div>
+        <div style="margin-top: -30px">
+          <iframe :src="pdf.pdfUrl" frameborder="0" width="100%" height="700px"></iframe>
+        </div>
+      </el-dialog>
+      <div slot="footer" class="dialog-footer">
+        <!--        <el-button type="primary" @click="submitFileForm">{{ $t('确 定') }}</el-button>-->
+        <el-button @click="doc.open = false">{{ $t('返 回') }}</el-button>
+      </div>
+    </el-dialog>
+    <!-- MOC类型说明对话框 -->
+    <el-dialog v-dialogDrag :title="mocTypeInfo.title" :visible.sync="mocTypeInfo.open" width="1000px" append-to-body>
+      <el-image
+        style="width: 947px; height: 394px"
+        :src="require('@/assets/image/moc/mocTypeInfo.png')"
+        fit="fill"></el-image>
+      <div slot="footer" class="dialog-footer">
+        <el-button type="primary" @click="mocTypeInfo.open = false">{{ $t('确 定') }}</el-button>
+      </div>
+    </el-dialog>
+    <el-drawer
+      :title="$t('数据分析')"
+      size="600px"
+      :visible.sync="drawer"
+      :direction="direction">
+      <!--      <el-row style="padding-left: 20px;">-->
+      <!--      <el-form :model="chartParams" :inline="true"  label-width="68px">-->
+      <!--        <el-form-item :label="$t('年份')" label-width="50" prop="year">-->
+      <!--          <el-select v-model="chartParams.year" placeholder="请选择年份" clearable size="small">-->
+      <!--            <el-option-->
+      <!--              v-for="item in yearOption"-->
+      <!--              :key="item"-->
+      <!--              :label="item"-->
+      <!--              :value="item"-->
+      <!--            />-->
+      <!--          </el-select>-->
+      <!--        </el-form-item>-->
+      <!--        <el-form-item>-->
+      <!--          <el-button type="cyan" icon="el-icon-search" size="mini" @click="handleQuery">{{ $t('搜索') }}</el-button>-->
+      <!--        </el-form-item>-->
+      <!--      </el-form>-->
+      <!--      </el-row>-->
+      <el-row>
+        <el-col>
+          <el-card class="box-card" shadow="hover">
+            <div slot="header" class="clearfix">
+              <span>{{ $t('实施情况统计') }}</span>
+            </div>
+            <div class="text item">
+              <true-state-data> </true-state-data>
+            </div>
+          </el-card>
+        </el-col>
+      </el-row>
+      <el-row>
+        <el-col>
+          <el-card class="box-card" shadow="hover">
+            <div slot="header" class="clearfix">
+              <span>{{ $t('申请统计') }}</span>
+            </div>
+            <div class="text item">
+              <year-chart> </year-chart>
+            </div>
+          </el-card>
+        </el-col>
+      </el-row>
+      <el-row>
+        <el-col>
+          <el-card class="box-card" shadow="hover">
+            <div slot="header" class="clearfix">
+              <span>{{ $t('变更性质') +$t('空格')+ $t('统计') }}</span>
+            </div>
+            <div class="text item">
+              <change-data> </change-data>
+            </div>
+          </el-card>
+        </el-col>
+      </el-row>
+      <el-row>
+        <el-col>
+          <el-card class="box-card" shadow="hover">
+            <div slot="header" class="clearfix">
+              <span>{{ $t('类别') +$t('空格')+ $t('统计') }}</span>
+            </div>
+            <div class="text item">
+              <category-data> </category-data>
+            </div>
+          </el-card>
+        </el-col>
+      </el-row>
+      <el-row>
+        <el-col>
+          <el-card class="box-card" shadow="hover">
+            <div slot="header" class="clearfix">
+              <span>{{ $t('风险等级统计') }}</span>
+            </div>
+            <div class="text item">
+              <risk-data></risk-data>
+            </div>
+          </el-card>
+        </el-col>
+      </el-row>
+    </el-drawer>
+  </div>
 </template>
 
 <script>
-    export default {
-        name: "index.vue"
+  import { listPermanent, listTemporary, listAquifier, listFacility, listInterlock, getMoc, delMoc, addMoc, updateMoc, exportMoc } from "@/api/process/moc";
+  import { treeselect } from "@/api/system/dept";
+  import { getToken } from "@/utils/auth";
+  import Treeselect from "@riophae/vue-treeselect";
+  import "@riophae/vue-treeselect/dist/vue-treeselect.css";
+  // import YearChart from "./yearChart";
+  // import TrueStateData from "./trueStateData";
+  // import ChangeData from "./changeData";
+  // import CategoryData from "./categoryData";
+  // import RiskData from "./riskData";
+
+  import {addCommonfile, allFileList, delCommonfile, updateCommonfile} from "@/api/common/commonfile";
+
+  export default {
+    name: "Aquifier",
+    components: { Treeselect },
+    data() {
+      var validateDocUpdate = (rule, value, callback) => {
+        if (value == 1) {
+          if (this.form.pidMaster == 0 && this.form.sopUpdate == 0) {
+            return callback(new Error('PID/SOP未更新'));
+          } else {
+            return callback();
+          }
+        } else {
+          return callback();
+        }
+      };
+      return {
+        mocTypeInfo: {
+          open: false,
+          title: 'MOC类型说明'
+        },
+        drawer: false,
+        direction: 'rtl',
+        // 遮罩层
+        loading: true,
+        // 选中数组
+        ids: [],
+        // 非单个禁用
+        single: true,
+        // 非多个禁用
+        multiple: true,
+        // 显示搜索条件
+        showSearch: false,
+        // 总条数
+        total: 0,
+        // MOC管理表格数据
+        mocList: [],
+        // 弹出层标题
+        title: "",
+        // 部门树选项
+        deptOptions: undefined,
+        clientHeight:300,
+        // 是否显示弹出层
+        open: false,
+        // 装置字典
+        plantCodeOptions: [],
+        // 类别字典
+        categoryOptions: [],
+        // 区域字典
+        areaOptions: [],
+        // PID MASTER更新字典
+        pidMasterOptions: [],
+        // 临时MOC状态字典
+        temporaryStateOptions: [],
+        // SOP更新字典
+        sopUpdateOptions: [],
+        // 文件更新字典
+        docUpdateOptions:[],
+        // 实施情况字典
+        trueStateOptions: [],
+        // 变更性质字典
+        changeNatureOptions: [],
+        // 风险等级字典
+        riskLevelOptions: [],
+        // MOC类型字典
+        mocTypeOptions: [],
+        // MC情况字典
+        mcDetailOptions: [],
+        //时间选择限制
+        ehsCheckDate: '',
+        trainingDatePicker: this.pickerOptionsTraining(),
+        pssrDatePicker: this.pickerOptionsPssr(),
+        // 用户导入参数
+        upload: {
+          //下载模板请求地址
+          downloadAction: process.env.VUE_APP_BASE_API + '/common/template',
+          //下载模板类型
+          type: 'moc',
+          // 是否显示弹出层(用户导入)
+          open: false,
+          // 弹出层标题(用户导入)
+          title: "",
+          // 是否禁用上传
+          isUploading: false,
+          // 是否更新已经存在的用户数据
+          updateSupport: 0,
+          // 设置上传的请求头部
+          headers: { Authorization: "Bearer " + getToken() },
+          // 上传的地址
+          url: process.env.VUE_APP_BASE_API + "/process/moc/importData"
+        },
+        // 报告附件参数
+        doc: {
+          file: "",
+          // 是否显示弹出层(报告附件)
+          open: false,
+          // 弹出层标题(报告附件)
+          title: "附件",
+          // 是否禁用上传
+          isUploading: false,
+          // 是否更新已经存在的用户数据
+          updateSupport: 0,
+          // 报告附件上传位置编号
+          ids: 0,
+          // 设置上传的请求头部
+          headers: { Authorization: "Bearer " + getToken() },
+          // 上传的地址
+          url: process.env.VUE_APP_BASE_API + "/common/commonfile/uploadFile",
+          commonfileList: null,
+          queryParams: {
+            pId: null,
+            pType: 'moc'
+          },
+          pType: 'moc',
+          pId: null,
+          form: {}
+        },
+        pdf : {
+          title: '',
+          pdfUrl: '',
+          numPages: null,
+          open: false,
+          pageNum: 1,
+          pageTotalNum: 1,
+          loadedRatio: 0,
+        },
+        // 查询参数
+        queryParams: {
+          pageNum: 1,
+          pageSize: 20,
+          plantCode: null,
+          mocNo: null,
+          plantNumber: null,
+          noticeLetter: null,
+          workLetter: null,
+          cteNo: null,
+          investCost: null,
+          category: null,
+          significance: null,
+          classification: null,
+          area: null,
+          dashControl: null,
+          title: null,
+          owner: null,
+          approveTime: null,
+          estimateEndtime: null,
+          endtime: null,
+          trueState: null,
+          changeNature: null,
+          overTime: null,
+          riskLevel: null,
+          training: null,
+          pssr: null,
+          ehsCheck: null,
+          ehsDb: null,
+          pidMaster: null,
+          pssrDb: null,
+          capex: null,
+          remarks: null,
+          companyMocNo: null,
+          projectNo: null,
+          mocType: null,
+          mcTime: null,
+          mcDetail: null,
+          docUpdate: null,
+          pssrNo: null,
+          timeliness: null,
+          tempCategory: null,
+          expTime: null,
+          tempState: null,
+          location: null,
+          finishDate: null,
+          processUnit: null,
+          department: null,
+          leakLocation: null,
+          pressure: null,
+          temperature: null,
+          leakFluid: null,
+          materialType: null,
+          planDate: null,
+          sealDate: null,
+          extention1: null,
+          extention2: null,
+          extention3: null,
+          extention4: null,
+          extention5: null,
+          extention6: null,
+          extention7: null,
+          extention8: null,
+          extention9: null,
+          status: null,
+        },
+        chartParams: {
+          year : 2021
+        },
+        yearOption: [2020,2021],
+        // 表单参数
+        form: {},
+        // 表单校验
+        rules: {
+          mocNo: [
+            { required: true, message: this.$t('MOC编号') + this.$t('不能为空'), trigger: "change" }
+          ],
+          // companyMocNo: [
+          //   { required: true, message: this.$t('公司MOC编号') + this.$t('不能为空'), trigger: "change" }
+          // ],
+          // projectNo: [
+          //   { required: true, message: this.$t('项目号') + this.$t('不能为空'), trigger: "change" }
+          // ],
+          // area: [
+          //   { required: true, message: this.$t('区域') + this.$t('不能为空'), trigger: "change" }
+          // ],
+          // title: [
+          //   { required: true, message: this.$t('标题') + this.$t('不能为空'), trigger: "change" }
+          // ],
+          // mocType: [
+          //   { required: true, message: this.$t('MOC类型') + this.$t('不能为空'), trigger: "change" }
+          // ],
+          // owner: [
+          //   { required: true, message: this.$t('负责人') + this.$t('不能为空'), trigger: "change" }
+          // ],
+          // approveTime: [
+          //   { required: true, message: this.$t('申请时间') + this.$t('不能为空'), trigger: "change" }
+          // ],
+          // mcTime: [
+          //   { required: true, message: this.$t('MC时间') + this.$t('不能为空'), trigger: "change" }
+          // ],
+          // mcDetail: [
+          //   { required: true, message: this.$t('MC情况') + this.$t('不能为空'), trigger: "change" }
+          // ],
+          // remarks: [
+          //   { required: true, message: this.$t('备注') + this.$t('不能为空'), trigger: "change" }
+          // ],
+          // riskLevel: [
+          //   { required: true, message: this.$t('风险等级') + this.$t('不能为空'), trigger: "change" }
+          // ],
+          // ehsCheck: [
+          //   { required: true, message: this.$t('EHS评估/审查') + this.$t('不能为空'), trigger: "change" }
+          // ],
+          // training: [
+          //   { required: true, message: this.$t('培训') + this.$t('不能为空'), trigger: "change" }
+          // ],
+          // pidMaster: [
+          //   { required: true, message: this.$t('PID更新') + this.$t('不能为空'), trigger: "change" }
+          // ],
+          // sopUpdate: [
+          //   { required: true, message: this.$t('SOP更新') + this.$t('不能为空'), trigger: "change" }
+          // ],
+          docUpdate: [
+            // { required: true, message: this.$t('文档更新') + this.$t('不能为空'), trigger: "change" },
+            { validator: validateDocUpdate, trigger: 'change' }
+          ],
+          // pssr: [
+          //   { required: true, message: this.$t('PSSR') + this.$t('不能为空'), trigger: "change" }
+          // ],
+          // pssrNo: [
+          //   { required: true, message: this.$t('PSSR编号') + this.$t('不能为空'), trigger: "change" }
+          // ],
+          deptId: [
+            { required: true, message: this.$t('归属部门') + this.$t('不能为空'), trigger: "change" }
+          ],
+        },
+        // commonRules: {
+        //   plantCode: [
+        //     { required: true, message: this.$t('装置') + this.$t('不能为空'), trigger: "change" }
+        //   ],
+        //   trueState: [
+        //     { required: true, message: this.$t('实施情况') + this.$t('不能为空'), trigger: "change" }
+        //   ],
+        //   deptId: [
+        //     { required: true, message: this.$t('部门编号') + this.$t('不能为空'), trigger: "blur" }
+        //   ]
+        // },
+        // chooseRules: {
+        //   plantCode: [
+        //     { required: true, message: this.$t('装置') + this.$t('不能为空'), trigger: "change" }
+        //   ],
+        //   mocNo: [
+        //     { required: true, message: this.$t('MOC编号') + this.$t('不能为空'), trigger: "blur" }
+        //   ],
+        //   area: [
+        //     { required: true, message: this.$t('区域') + this.$t('不能为空'), trigger: "change" }
+        //   ],
+        //   title: [
+        //     { required: true, message: this.$t('标题') + this.$t('不能为空'), trigger: "blur" }
+        //   ],
+        //   owner: [
+        //     { required: true, message: this.$t('负责人') + this.$t('不能为空'), trigger: "blur" }
+        //   ],
+        //   approveTime: [
+        //     { required: true, message: this.$t('申请时间') + this.$t('不能为空'), trigger: "blur" }
+        //   ],
+        //   endtime: [
+        //     { required: true, message: this.$t('完成时间') + this.$t('不能为空'), trigger: "blur" }
+        //   ],
+        //   trueState: [
+        //     { required: true, message: this.$t('实施情况') + this.$t('不能为空'), trigger: "change" }
+        //   ],
+        //   overTime: [
+        //     { required: true, message: this.$t('到期时间') + this.$t('不能为空'), trigger: "blur" }
+        //   ],
+        //   riskLevel: [
+        //     { required: true, message: this.$t('风险等级') + this.$t('不能为空'), trigger: "change" }
+        //   ],
+        //   ehsCheck: [
+        //     { required: true, message: this.$t('EHS审查') + this.$t('不能为空'), trigger: "blur" }
+        //   ],
+        //   pidMaster: [
+        //     { required: true, message: this.$t('PID更新') + this.$t('不能为空'), trigger: "blur" }
+        //   ],
+        //   sopUpdate: [
+        //     { required: true, message: this.$t('SOP更新') + this.$t('不能为空'), trigger: "blur" }
+        //   ],
+        //   docUpdate: [
+        //     { required: true, message: this.$t('SOP更新') + this.$t('不能为空'), trigger: "blur" }
+        //   ],
+        //   deptId: [
+        //     { required: true, message: this.$t('部门编号') + this.$t('不能为空'), trigger: "blur" }
+        //   ]
+        // },
+        // temporaryRules: {
+        //   overTime: [
+        //     { required: true, message: this.$t('到期时间') + this.$t('不能为空'), trigger: "blur" }
+        //   ],
+        //   deptId: [
+        //     { required: true, message: this.$t('部门编号') + this.$t('不能为空'), trigger: "blur" }
+        //   ]
+        // },
+      };
+    },
+    watch: {
+      // 根据名称筛选部门树
+      deptName(val) {
+        this.$refs.tree.filter(val);
+      }
+    },
+    created() {
+      //设置表格高度对应屏幕高度
+      this.$nextTick(() => {
+        this.clientHeight = (document.body.clientHeight - 80) * 0.8
+      })
+      this.getList();
+      this.getTreeselect();
+      this.getDicts("MC_DETAIL").then(response => {
+        this.mcDetailOptions = response.data;
+      });
+      this.getDicts("MOC_TYPE").then(response => {
+        this.mocTypeOptions = response.data;
+      });
+      this.getDicts("PLANT_DIVIDE").then(response => {
+        this.plantCodeOptions = response.data;
+      });
+      this.getDicts("MOC_CATEGORY").then(response => {
+        this.categoryOptions = response.data;
+      });
+      this.getDicts("MOC_AREA").then(response => {
+        this.areaOptions = response.data;
+      });
+      this.getDicts("YES_NO_EN").then(response => {
+        this.pidMasterOptions = response.data;
+        this.sopUpdateOptions = response.data;
+        this.docUpdateOptions = response.data;
+      });
+      this.getDicts("MOC_TEMPORARYSTATE").then(response => {
+        this.temporaryStateOptions = response.data;
+      });
+      this.getDicts("MOC_STATE").then(response => {
+        this.trueStateOptions = response.data;
+      });
+      this.getDicts("MOC_CHANGE").then(response => {
+        this.changeNatureOptions = response.data;
+      });
+      this.getDicts("MOC_RISKLEVEL").then(response => {
+        this.riskLevelOptions = response.data;
+      });
+    },
+    methods: {
+      /** 查询MOC管理列表 */
+      getList() {
+        this.loading = true;
+        let _this = this
+        listAquifier(this.queryParams).then(response => {
+          this.mocList = response.rows;
+          this.mocList.forEach(function (value,key,arr) {
+            if (value.overTime == null) {
+              _this.mocList[key].overTime = "N.A."
+            }
+          });
+          this.total = response.total;
+          this.loading = false;
+        });
+      },
+      // 单元格样式
+      tableCellStyle( {row, column, rowIndex, columnIndex} ) {
+        let today = new Date(); // 当前时间
+        let expTime = new Date(row.expTime);
+        let difference = expTime.getTime() - today.getTime(); // 时间差
+        if (row.tempState == 0) { // 移除的数据
+          return "background-color: rgba(0, 255, 0, 0.2);";
+        } else if (row.expTime != null && row.expTime != '') {
+          if (difference <= 7 * 24 * 60 * 60 * 1000) {  // 到期时间 - 当前时间 <= 7
+            return "background-color: rgba(255, 0, 0, 0.2);";
+          } else if (difference >= 7 * 24 * 60 * 60 * 1000
+            && difference <= 14 * 24 * 60 * 60 * 1000) {  // 7 <= 到期时间 - 当前时间 <= 14
+            return "background-color: rgba(255, 255, 0, 0.2);";
+          }
+        }
+      },
+      //根据分数显示颜色提示
+      // tableCellStyle({ row, column, rowIndex, columnIndex }) {
+      //   if (columnIndex == 3 && row.trueState == 10){
+      //     return "color: rgba(45, 58, 79, 0.98) "
+      //   }else if (columnIndex == 3 && row.trueState == 12){
+      //     return "color: rgba(255, 26, 26, 0.98) "
+      //   }else if (columnIndex == 3 && row.trueState == 14){
+      //     return "color: rgba(95, 153, 248, 0.98) "
+      //   }
+      // },
+      /** 查询部门下拉树结构 */
+      getTreeselect() {
+        treeselect().then(response => {
+          this.deptOptions = response.data;
+        });
+      },
+      // 装置字典翻译
+      plantCodeFormat(row, column) {
+        return this.selectDictLabel(this.plantCodeOptions, row.plantCode);
+      },
+      // 类别字典翻译
+      categoryFormat(row, column) {
+        return this.selectDictLabel(this.categoryOptions, row.category);
+      },
+      // 实施情况字典翻译
+      trueStateFormat(row, column) {
+        return this.selectDictLabel(this.trueStateOptions, row.trueState);
+      },
+      // 变更性质字典翻译
+      changeNatureFormat(row, column) {
+        return this.selectDictLabel(this.changeNatureOptions, row.changeNature);
+      },
+      // 风险等级字典翻译
+      riskLevelFormat(row, column) {
+        return this.selectDictLabel(this.riskLevelOptions, row.riskLevel);
+      },
+      // 区域字典翻译
+      areaFormat(row, column) {
+        return this.selectDictLabel(this.areaOptions, row.area);
+      },
+      // PID MASTER更新字典翻译
+      pidMasterFormat(row, column) {
+        return this.selectDictLabel(this.pidMasterOptions, row.pidMaster);
+      },
+      // 临时MOC状态字典翻译
+      temporaryStateFormat(row, column) {
+        return this.selectDictLabel(this.temporaryStateOptions, row.temporaryState);
+      },
+      // SOP更新字典翻译
+      sopUpdateFormat(row, column) {
+        return this.selectDictLabel(this.sopUpdateOptions, row.sopUpdate);
+      },
+      // MC情况字典翻译
+      mcDetailFormat(row, column) {
+        return this.selectDictLabel(this.mcDetailOptions, row.mcDetail);
+      },
+      // MOC类型字典翻译
+      mocTypeFormat(row, column) {
+        return this.selectDictLabel(this.mocTypeOptions, row.mocType);
+      },
+      // 文件更新字典翻译
+      docUpdateFormat(row, column) {
+        return this.selectDictLabel(this.docUpdateOptions, row.docUpdate);
+      },
+      // 取消按钮
+      cancel() {
+        this.open = false;
+        this.reset();
+      },
+      // 表单重置
+      reset() {
+        this.form = {
+          id: null,
+          plantCode: null,
+          mocNo: null,
+          plantNumber: null,
+          noticeLetter: null,
+          workLetter: null,
+          cteNo: null,
+          investCost: null,
+          category: null,
+          significance: null,
+          classification: null,
+          area: null,
+          dashControl: null,
+          title: null,
+          owner: null,
+          approveTime: null,
+          estimateEndtime: null,
+          endtime: null,
+          trueState: null,
+          changeNature: null,
+          overTime: null,
+          riskLevel: null,
+          training: null,
+          pssr: null,
+          ehsCheck: null,
+          ehsDb: null,
+          pidMaster: null,
+          pssrDb: null,
+          capex: null,
+          delFlag: null,
+          createrCode: null,
+          createdate: null,
+          updaterCode: null,
+          updatedate: null,
+          deptId: null,
+          remarks: null,
+          temporaryState: null,
+          sopUpdate: null
+        };
+        this.resetForm("form");
+      },
+      // 限制时间范围
+      pickerOptionsTraining() {
+        const self = this
+        return {
+          disabledDate(time){
+            return time.getTime() < new Date(self.form.ehsCheck).getTime()
+          }
+        }
+      },
+      pickerOptionsPssr() {
+        const self = this
+        return {
+          disabledDate(time){
+            if (self.form.training != null) {
+              return time.getTime() < new Date(self.form.training).getTime()
+            }else {
+              return time.getTime() < new Date(self.form.ehsCheck).getTime()
+            }
+          }
+        }
+      },
+      /** 搜索按钮操作 */
+      handleQuery() {
+        this.queryParams.pageNum = 1;
+        this.getList();
+      },
+      /** 重置按钮操作 */
+      resetQuery() {
+        this.resetForm("queryForm");
+        this.handleQuery();
+      },
+      // 多选框选中数据
+      handleSelectionChange(selection) {
+        this.ids = selection.map(item => item.id)
+        this.single = selection.length!==1
+        this.multiple = !selection.length
+      },
+      /** 新增按钮操作 */
+      handleAdd() {
+        this.reset();
+        this.open = true;
+        this.title = this.$t('新增') + " " + this.$t('MOC管理');
+      },
+      //实施情况Finished变更
+      changeTrueState(val) {
+        if (val == 10) {
+          // this.rules = this.chooseRules
+        }else {
+          this.$refs['form'].clearValidate();
+          // this.rules = this.commonRules
+        }
+      },
+      changeChangeNature(val) {
+        if (val == 10) {
+          // this.rules = this.temporaryRules
+        }else if (val = 12) {
+          this.$refs['form'].clearValidate();
+          this.form.temporaryState = "14";
+          this.form.overTime = "";
+          // this.rules = this.commonRules
+        }
+      },
+      //根据分数显示颜色提示
+      tableCellClassName({ row, column, rowIndex, columnIndex }) {
+        if (columnIndex == 13){
+          return this.changeColor(row.isEhsCheck, row.ehsCheck)
+        }
+        if (columnIndex == 14){
+          return this.changeColor(row.isTraining, row.training)
+        }
+        if (columnIndex == 15){
+          return this.changeColor(row.isPssr, row.pssr)
+        }
+      },
+      changeColor (value, dateValue) {
+        if (value !== "1" && dateValue !== null){
+          return 'cellMoc'
+        }
+      },
+      /** 修改按钮操作 */
+      handleUpdate(row) {
+        this.reset();
+        // this.rules = this.commonRules
+        const id = row.id || this.ids
+        getMoc(id).then(response => {
+          this.form = response.data;
+          this.open = true;
+          this.title = this.$t('修改') + this.$t('MOC管理');
+        });
+      },
+      /** 提交按钮 */
+      submitForm() {
+        this.$refs["form"].validate(valid => {
+          if (valid) {
+            if (this.form.trueState == "10") {
+              if (this.form.mocNo != null && this.form.plantNumber != null && this.form.category != null && this.form.significance != null && this.form.classification != null
+                && this.form.area != null && this.form.title != null && this.form.owner != null && this.form.approveTime != null && this.form.estimateEndtime != null
+                && this.form.endtime != null && this.form.changeNature != null && this.form.riskLevel != null && this.form.training != null && this.form.pssr != null) {
+                if (this.form.id != null) {
+                  updateMoc(this.form).then(response => {
+                    this.msgSuccess(this.$t('修改成功'));
+                    this.open = false;
+                    this.getList();
+                  });
+                } else {
+                  this.form.timeliness = 2;
+                  this.form.tempCategory = 1;
+                  addMoc(this.form).then(response => {
+                    this.msgSuccess(this.$t('新增成功'));
+                    this.open = false;
+                    this.getList();
+                  });
+                }
+              } else {
+                this.msgError(this.$t('存在必填项未填,实施情况修改Finished失败'));
+              }
+            }else {
+              if (this.form.id != null) {
+                updateMoc(this.form).then(response => {
+                  this.msgSuccess(this.$t('修改成功'));
+                  this.open = false;
+                  this.getList();
+                });
+              } else {
+                this.form.timeliness = 2;
+                this.form.tempCategory = 1;
+                addMoc(this.form).then(response => {
+                  this.msgSuccess(this.$t('新增成功'));
+                  this.open = false;
+                  this.getList();
+                });
+              }
+            }
+          }
+        });
+      },
+      /** 删除按钮操作 */
+      handleDelete(row) {
+        const ids = row.id || this.ids;
+        this.$confirm(this.$t('是否确认删除?'), this.$t('警告'), {
+          confirmButtonText: this.$t('确定'),
+          cancelButtonText: this.$t('取消'),
+          type: "warning"
+        }).then(function() {
+          return delMoc(ids);
+        }).then(() => {
+          this.getList();
+          this.msgSuccess(this.$t('删除成功'));
+        })
+      },
+      /** 导出按钮操作 */
+      handleExport() {
+        const queryParams = this.queryParams;
+        this.$confirm(this.$t('是否确认导出所有MOC管理数据项?'), this.$t('警告'), {
+          confirmButtonText: this.$t('确定'),
+          cancelButtonText: this.$t('取消'),
+          type: "warning"
+        }).then(function() {
+          return exportMoc(queryParams);
+        }).then(response => {
+          this.download(response.msg);
+        })
+      },
+      /** 导入按钮操作 */
+      handleImport() {
+        this.upload.title = this.$t('用户导入');
+        this.upload.open = true;
+      },
+      /** 下载模板操作 */
+      importTemplate() {
+        this.$refs['downloadFileForm'].submit()
+      },
+      // 文件上传中处理
+      handleFileUploadProgress(event, file, fileList) {
+        this.upload.isUploading = true;
+      },
+      // 文件上传成功处理
+      handleFileSuccess(response, file, fileList) {
+        this.upload.open = false;
+        this.upload.isUploading = false;
+        this.$refs.upload.clearFiles();
+        if (response.data[0] != null) {
+          this.$alert(this.$t('成功导入') + response.msg + this.$t('条数据') + "," + this.$t('第') + response.data + this.$t('行数据出现错误导入失败')+"。", this.$t('导入结果'), { dangerouslyUseHTMLString: true });
+        }else {
+          this.$alert(this.$t('成功导入') + response.msg + this.$t('条数据'), this.$t('导入结果'), { dangerouslyUseHTMLString: true });
+        }
+        this.getList();
+      },
+      // 提交上传文件
+      submitFileForm() {
+        this.$refs.upload.submit();
+      },
+      //数据分析
+      handleData(){
+        var now = new Date();
+        var year = now.getFullYear(); //得到年份
+        this.yearOption = [year-2 , year-1 ,year]
+        this.drawer = true
+      },
+      /** 报告附件按钮操作 */
+      handleDoc(row , fileType) {
+        this.doc.pType = fileType
+        this.doc.queryParams.pType = fileType
+        this.doc.id = row.id;
+        this.doc.title = row.title;
+        this.doc.open = true;
+        this.doc.queryParams.pId = row.id
+        this.doc.pId = row.id
+        this.getFileList()
+        this.$nextTick(() => {
+          this.$refs.doc.clearFiles()
+        })
+      },
+      getFileList (){
+        allFileList(this.doc.queryParams).then(response => {
+          response.forEach(element => {
+            element["isEdit"] = false
+          });
+          response.forEach(element => {
+            element["isAdd"] = false
+          });
+          this.doc.commonfileList = response;
+        });
+      },
+      //附件上传中处理
+      handleFileDocProgress(event, file, fileList) {
+        this.doc.file = file;
+        this.doc.isUploading = true;
+      },
+      //附件上传成功处理
+      handleFileDocSuccess(response, file, fileList) {
+        this.doc.isUploading = false;
+        this.$alert(response.msg, this.$t('导入结果'), { dangerouslyUseHTMLString: true });
+        this.getFileList()
+      },
+      // 文件下载处理
+      handleDownload(row) {
+        var name = row.fileName;
+        var url = row.fileUrl;
+        var suffix = url.substring(url.lastIndexOf("."), url.length);
+        const a = document.createElement('a')
+        a.setAttribute('download', name)
+        a.setAttribute('target', '_blank')
+        a.setAttribute('href', process.env.VUE_APP_BASE_API + url)
+        a.click()
+      },
+      //pdf预览
+      openPdf(){
+        window.open(this.pdf.pdfUrl);//path是文件的全路径地址
+      },
+      handleSee (row){
+        this.pdf.open =true
+        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
+      },
+      // 取消
+      cancelFile(row, index) {
+        // 如果是新增的数据
+        if (row.isAdd) {
+          this.doc.commonfileList.splice(index, 1)
+        } else {
+          // 不是新增的数据  还原数据
+          for (const i in row.oldRow) {
+            row[i] = row.oldRow[i]
+          }
+          row.isEdit = false
+        }
+      },
+      edit(row) {
+        // 备份原始数据
+        row['oldRow'] = JSON.parse(JSON.stringify(row));
+        this.$nextTick(() => {
+          row.isEdit = true;
+        })
+      },
+      save(row) {
+        row.isEdit = false;
+        var that = this;
+        that.loading = true;
+        this.form = row;
+        if (row.isAdd == true) {
+          addCommonfile(this.form).then(response => {
+            this.msgSuccess(this.$t('新增成功'));
+            this.open = false;
+            this.getList();
+          });
+        }else {
+          updateCommonfile(this.form).then(response => {
+            this.msgSuccess(this.$t('修改成功'));
+            this.open = false;
+            this.getList();
+          });
+        }
+      },
+      /** 删除按钮操作 */
+      handleDeleteDoc(row) {
+        const ids = row.id || this.ids;
+        this.$confirm(this.$t('是否确认删除?'), this.$t('警告'), {
+          confirmButtonText: this.$t('确定'),
+          cancelButtonText: this.$t('取消'),
+          type: "warning"
+        }).then(function() {
+          return delCommonfile(ids);
+        }).then(() => {
+          this.getFileList()
+          this.msgSuccess(this.$t('删除成功'));
+        })
+      },
     }
+  };
 </script>
+<style>
+  #moc-type:hover{
+    cursor: pointer;
+  }
+  .text {
+    font-size: 14px;
+  }
+  .item {
+    margin-bottom: 18px;
+  }
+  .clearfix {
+    color: #1e1e1e;
+  }
+  .clearfix:before,
+  .clearfix:after {
+    display: table;
+    content: "";
+  }
+  .clearfix:after {
+    clear: both
+  }
 
-<style scoped>
-
+  .box-card {
+    width: 100%;
+  }
+  .el-drawer__body {
+    overflow: auto;
+  }
+  .el-drawer__container ::-webkit-scrollbar {
+    display: none;
+  }
 </style>

+ 8 - 8
ui/src/views/process/moc/permanentMoc/index.vue

@@ -251,14 +251,14 @@
           <!--v-hasPermi="['process:moc:export']"-->
         <!--&gt;{{ $t('导出') }}</el-button>-->
       <!--</el-col>-->
-      <el-col :span="1.5">
-        <el-button
-          type="primary"
-          icon="el-icon-s-data"
-          size="mini"
-          @click="handleData"
-        >{{ $t('数据分析') }}</el-button>
-      </el-col>
+      <!--<el-col :span="1.5">-->
+        <!--<el-button-->
+          <!--type="primary"-->
+          <!--icon="el-icon-s-data"-->
+          <!--size="mini"-->
+          <!--@click="handleData"-->
+        <!--&gt;{{ $t('数据分析') }}</el-button>-->
+      <!--</el-col>-->
 	  <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
     </el-row>
 

+ 1654 - 5
ui/src/views/process/moc/summary/index.vue

@@ -1,13 +1,1662 @@
 <template>
-    <div>汇总</div>
+  <div class="app-container-list">
+    <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
+      <el-form-item :label="$t('MOC编号')" label-width="50" prop="mocNo">
+        <el-input
+          v-model="queryParams.mocNo"
+          :placeholder="$t('请输入') + $t('MOC编号')"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item :label="$t('公司MOC编号')" label-width="50" prop="companyMocNo">
+        <el-input
+          v-model="queryParams.companyMocNo"
+          :placeholder="$t('请输入') + $t('公司MOC编号')"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item :label="$t('项目号')" label-width="50" prop="projectNo">
+        <el-input
+          v-model="queryParams.projectNo"
+          :placeholder="$t('请输入') + $t('项目号')"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item :label="$t('区域')" prop="area">
+        <el-select v-model="queryParams.area" :placeholder="$t('请选择') + $t('区域')">
+          <el-option
+            v-for="dict in areaOptions"
+            :key="dict.dictValue"
+            :label="dict.dictLabel"
+            :value="dict.dictValue"
+          ></el-option>
+        </el-select>
+      </el-form-item>
+      <el-form-item :label="$t('标题')" prop="title">
+        <el-input
+          v-model="queryParams.title"
+          :placeholder="$t('请输入') + $t('标题')"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item :label="$t('MOC类型')" prop="mocType">
+        <el-select v-model="queryParams.mocType" :placeholder="$t('请选择') + $t('MOC类型')">
+          <el-option
+            v-for="dict in areaOptions"
+            :key="dict.dictValue"
+            :label="dict.dictLabel"
+            :value="dict.dictValue"
+          ></el-option>
+        </el-select>
+      </el-form-item>
+      <el-form-item :label="$t('负责人')" prop="owner">
+        <el-input
+          v-model="queryParams.owner"
+          :placeholder="$t('请输入') + $t('负责人')"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item :label="$t('申请时间')" prop="approveTime">
+        <el-date-picker clearable size="small" style="width: 200px"
+                        v-model="queryParams.approveTime"
+                        type="date"
+                        value-format="yyyy-MM-dd"
+                        :placeholder="$t('请选择') + $t('申请时间')">
+        </el-date-picker>
+      </el-form-item>
+      <el-form-item :label="$t('MC时间')" prop="mcTime">
+        <el-date-picker clearable size="small" style="width: 200px"
+                        v-model="queryParams.mcTime"
+                        type="date"
+                        value-format="yyyy-MM-dd"
+                        :placeholder="$t('请选择') + $t('MC时间')">
+        </el-date-picker>
+      </el-form-item>
+      <el-form-item :label="$t('MC情况')" prop="mcDetail">
+        <el-input
+          v-model="queryParams.mcDetail"
+          :placeholder="$t('请输入') + $t('MC情况')"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item :label="$t('备注')" prop="remarks">
+        <el-input
+          v-model="queryParams.remarks"
+          :placeholder="$t('请输入') + $t('备注')"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item :label="$t('风险等级')" prop="riskLevel">
+        <el-input
+          v-model="queryParams.riskLevel"
+          :placeholder="$t('请输入') + $t('风险等级')"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item :label="$t('EHS评估/审查')" prop="ehsCheck">
+        <el-date-picker clearable size="small" style="width: 200px"
+                        v-model="queryParams.ehsCheck"
+                        type="date"
+                        value-format="yyyy-MM-dd"
+                        :placeholder="$t('请选择') + $t('EHS评估/审查')">
+        </el-date-picker>
+      </el-form-item>
+      <el-form-item :label="$t('培训')" prop="training">
+        <el-date-picker clearable size="small" style="width: 200px"
+                        v-model="queryParams.training"
+                        type="date"
+                        value-format="yyyy-MM-dd"
+                        :placeholder="$t('请选择') + $t('培训')"
+                        :picker-options="trainingDatePicker">
+        </el-date-picker>
+      </el-form-item>
+      <el-form-item :label="$t('PID更新')" prop="pidMaster">
+        <el-select v-model="queryParams.pidMaster" :placeholder="$t('请选择') + $t('PID更新')">
+          <el-option
+            v-for="dict in pidMasterOptions"
+            :key="dict.dictValue"
+            :label="dict.dictLabel"
+            :value="dict.dictValue"
+          ></el-option>
+        </el-select>
+      </el-form-item>
+      <!--<el-form-item :label="$t('SOP更新')" prop="sopUpdate">-->
+        <!--<el-select v-model="queryParams.sopUpdate" :placeholder="$t('请选择') + $t('SOP更新')">-->
+          <!--<el-option-->
+            <!--v-for="dict in sopUpdateOptions"-->
+            <!--:key="dict.dictValue"-->
+            <!--:label="dict.dictLabel"-->
+            <!--:value="dict.dictValue"-->
+          <!--&gt;</el-option>-->
+        <!--</el-select>-->
+      <!--</el-form-item>-->
+      <!--<el-form-item :label="$t('文档更新')" prop="docUpdate">-->
+        <!--<el-select v-model="queryParams.docUpdate" :placeholder="$t('请选择') + $t('文档更新')">-->
+          <!--<el-option-->
+            <!--v-for="dict in docUpdateOptions"-->
+            <!--:key="dict.dictValue"-->
+            <!--:label="dict.dictLabel"-->
+            <!--:value="dict.dictValue"-->
+          <!--&gt;</el-option>-->
+        <!--</el-select>-->
+      <!--</el-form-item>-->
+      <el-form-item label="PSSR" prop="pssr">
+        <el-date-picker clearable size="small" style="width: 200px"
+                        v-model="queryParams.pssr"
+                        type="date"
+                        value-format="yyyy-MM-dd"
+                        :placeholder="$t('请选择') + 'PSSR'"
+                        :picker-options="pssrDatePicker">
+        </el-date-picker>
+      </el-form-item>
+      <el-form-item :label="$t('PSSR编号')" prop="pssrNo">
+        <el-input v-model="queryParams.pssrNo" :placeholder="$t('请输入') + $t('PSSR编号')" />
+      </el-form-item>
+      <!--<el-form-item :label="$t('CTE工作号')" label-width="120" prop="cteNo">-->
+      <!--<el-input-->
+      <!--v-model="queryParams.cteNo"-->
+      <!--:placeholder="$t('请输入') + $t('CTE工作号')"-->
+      <!--clearable-->
+      <!--size="small"-->
+      <!--@keyup.enter.native="handleQuery"-->
+      <!--/>-->
+      <!--</el-form-item>-->
+      <!--<el-form-item :label="$t('实施情况')" prop="trueState" label-width="150">-->
+      <!--<el-select v-model="queryParams.trueState" :placeholder="$t('请选择') + $t('实施情况')" clearable size="small">-->
+      <!--<el-option-->
+      <!--v-for="dict in trueStateOptions"-->
+      <!--:key="dict.dictValue"-->
+      <!--:label="dict.dictLabel"-->
+      <!--:value="dict.dictValue"-->
+      <!--/>-->
+      <!--</el-select>-->
+      <!--</el-form-item>-->
+      <!--<el-form-item :label="$t('变更性质')" prop="changeNature" label-width="150">-->
+      <!--<el-select v-model="queryParams.changeNature" :placeholder="$t('请选择') + $t('变更性质')" clearable size="small">-->
+      <!--<el-option-->
+      <!--v-for="dict in changeNatureOptions"-->
+      <!--:key="dict.dictValue"-->
+      <!--:label="dict.dictLabel"-->
+      <!--:value="dict.dictValue"-->
+      <!--/>-->
+      <!--</el-select>-->
+      <!--</el-form-item>-->
+      <el-form-item>
+        <el-button type="cyan" icon="el-icon-search" size="mini" @click="handleQuery">{{ $t('搜索') }}</el-button>
+        <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">{{ $t('重置') }}</el-button>
+      </el-form-item>
+    </el-form>
+
+    <el-row :gutter="10" class="mb8">
+      <!--<el-col :span="1.5">-->
+        <!--<el-button-->
+          <!--type="primary"-->
+          <!--icon="el-icon-plus"-->
+          <!--size="mini"-->
+          <!--@click="handleAdd"-->
+          <!--v-hasPermi="['process:moc:add']"-->
+        <!--&gt;{{ $t('新增') }}</el-button>-->
+      <!--</el-col>-->
+      <!--<el-col :span="1.5">-->
+        <!--<el-button-->
+          <!--type="success"-->
+          <!--icon="el-icon-edit"-->
+          <!--size="mini"-->
+          <!--:disabled="single"-->
+          <!--@click="handleUpdate"-->
+          <!--v-hasPermi="['process:moc:edit']"-->
+        <!--&gt;{{ $t('修改') }}</el-button>-->
+      <!--</el-col>-->
+      <!--<el-col :span="1.5">-->
+        <!--<el-button-->
+          <!--type="danger"-->
+          <!--icon="el-icon-delete"-->
+          <!--size="mini"-->
+          <!--:disabled="multiple"-->
+          <!--@click="handleDelete"-->
+          <!--v-hasPermi="['process:moc:remove']"-->
+        <!--&gt;{{ $t('删除') }}</el-button>-->
+      </el-col>
+      <!--<el-col :span="1.5">-->
+      <!--<el-button-->
+      <!--type="info"-->
+      <!--icon="el-icon-upload2"-->
+      <!--size="mini"-->
+      <!--@click="handleImport"-->
+      <!--v-hasPermi="['process:moc:edit']"-->
+      <!--&gt;{{ $t('导入') }}</el-button>-->
+      <!--</el-col>-->
+      <!--<el-col :span="1.5">-->
+      <!--<el-button-->
+      <!--type="warning"-->
+      <!--icon="el-icon-download"-->
+      <!--size="mini"-->
+      <!--@click="handleExport"-->
+      <!--v-hasPermi="['process:moc:export']"-->
+      <!--&gt;{{ $t('导出') }}</el-button>-->
+      <!--</el-col>-->
+      <!--<el-col :span="1.5">-->
+        <!--<el-button-->
+          <!--type="primary"-->
+          <!--icon="el-icon-s-data"-->
+          <!--size="mini"-->
+          <!--@click="handleData"-->
+        <!--&gt;{{ $t('数据分析') }}</el-button>-->
+      <!--</el-col>-->
+      <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
+    </el-row>
+
+    <el-table v-loading="loading" :data="mocList" @selection-change="handleSelectionChange" :cell-style="tableCellStyle" :cell-class-name="tableCellClassName" :height="clientHeight" border>
+      <el-table-column type="selection" width="55" align="center" />
+      <el-table-column :label="$t('MOC编号')" align="center" width="120" prop="mocNo" :show-overflow-tooltip="true"/>
+      <!--<el-table-column :label="$t('装置编号')" align="center" width="120" prop="plantNumber" :show-overflow-tooltip="true"/>-->
+      <el-table-column :label="$t('公司MOC编号')" align="center" width="120" prop="companyMocNo" :show-overflow-tooltip="true"/>
+      <el-table-column :label="$t('项目号')" align="center" width="120" prop="projectNo" :show-overflow-tooltip="true"/>
+      <el-table-column :label="$t('区域')" align="center" prop="area" :formatter="areaFormat" />
+      <el-table-column :label="$t('标题')" align="center" width="320" prop="title" :show-overflow-tooltip="true"/>
+      <el-table-column prop="mocType" label="":show-overflow-tooltip="true" :formatter="mocTypeFormat" width="120">
+        <template slot="header">
+          MOC类型
+          <span
+            @click="mocTypeInfo.open = true"
+            id="moc-type">
+            <i class="el-icon-question"></i>
+          </span>
+        </template>
+      </el-table-column>
+      <el-table-column :label="$t('负责人')" align="center" prop="owner" :show-overflow-tooltip="true"/>
+      <el-table-column :label="$t('申请时间')" align="center" prop="approveTime" width="100">
+        <template slot-scope="scope">
+          <span>{{ parseTime(scope.row.approveTime, '{y}-{m}-{d}') }}</span>
+        </template>
+      </el-table-column>
+      <!--<el-table-column :label="$t('完成时间')" align="center" prop="endtime" width="100">-->
+      <!--<template slot-scope="scope">-->
+      <!--<span>{{ parseTime(scope.row.endtime, '{y}-{m}-{d}') }}</span>-->
+      <!--</template>-->
+      <!--</el-table-column>-->
+      <!--<el-table-column :label="$t('实施情况')" align="center" prop="trueState" :formatter="trueStateFormat" />-->
+      <!--<el-table-column :label="$t('变更性质')" align="center" prop="changeNature" :formatter="changeNatureFormat" />-->
+      <!--<el-table-column :label="$t('到期时间')" align="center" prop="overTime" width="100">-->
+      <!--<template slot-scope="scope">-->
+      <!--<span v-if="scope.row.overTime !== 'N.A.'">{{ parseTime(scope.row.overTime, '{y}-{m}-{d}') }}</span>-->
+      <!--<span v-if="scope.row.overTime === 'N.A.'">{{ scope.row.overTime }}</span>-->
+      <!--</template>-->
+      <!--</el-table-column>-->
+      <!--<el-table-column :label="$t('临时MOC状态')" align="center" prop="temporaryState" :formatter="temporaryStateFormat" />-->
+      <el-table-column :label="$t('MC时间')" align="center" prop="mcTime" :show-overflow-tooltip="true" width="100"/>
+      <el-table-column :label="$t('MC情况')" align="center" prop="mcDetail" :show-overflow-tooltip="true" width="100" :formatter="mcDetailFormat" />
+      <el-table-column :label="$t('备注')" align="center" prop="remarks" :show-overflow-tooltip="true" width="130" />
+      <el-table-column :label="$t('风险等级')" align="center" prop="riskLevel" :formatter="riskLevelFormat" />
+      <el-table-column :label="$t('EHS评估/审查')" align="center" width="130" prop="ehsCheck" :show-overflow-tooltip="true">
+        <template slot-scope="scope">
+          <span> {{scope.row.ehsCheck}}</span>
+          <el-button icon="el-icon-folder" style="color:#6e96fa" v-if="scope.row.ehsCheck !== null" @click="handleDoc(scope.row , 'moc-ehsCheck')"  circle></el-button>
+        </template>
+      </el-table-column>
+      <el-table-column :label="$t('培训')" align="center" width="130" prop="training" :show-overflow-tooltip="true">
+        <template slot-scope="scope">
+          <span> {{scope.row.training}}</span>
+          <el-button icon="el-icon-folder" style="color:#6e96fa;" v-if="scope.row.training !== null" @click="handleDoc(scope.row , 'moc-training')"  circle></el-button>
+        </template>
+      </el-table-column>
+      <!--<el-table-column :label="$t('SOP更新')" align="center" prop="sopUpdate" :formatter="sopUpdateFormat" />-->
+      <!--<el-table-column :label="$t('PID更新')" align="center" prop="pidMaster" :formatter="pidMasterFormat" />-->
+      <!--<el-table-column :label="$t('文档更新')" align="center" prop="docUpdate" :formatter="docUpdateFormat" />-->
+      <el-table-column label="PSSR" align="center" width="130" prop="pssr" :show-overflow-tooltip="true">
+        <template slot-scope="scope">
+          <span> {{scope.row.pssr}}</span>
+          <el-button icon="el-icon-folder" style="color:#6e96fa;" v-if="scope.row.pssr !== null" @click="handleDoc(scope.row , 'moc-pssr')"  circle></el-button>
+        </template>
+      </el-table-column>
+      <el-table-column :label="$t('PSSR编号')" align="center" prop="pssrNo" width="130" />
+      <!--<el-table-column :label="$t('通知单')" align="center" prop="noticeLetter" :show-overflow-tooltip="true"/>
+      <el-table-column :label="$t('工作单')" align="center" prop="workLetter" :show-overflow-tooltip="true"/>
+      <el-table-column :label="$t('CTE工作号')" align="center" prop="cteNo" :show-overflow-tooltip="true"/>
+      <el-table-column :label="$t('投资费用(RMB)')" align="center" prop="investCost" :show-overflow-tooltip="true"/>
+      <el-table-column :label="$t('类别')" align="center" prop="category" :formatter="categoryFormat" />
+      <el-table-column :label="$t('重要性')" align="center" prop="significance" :show-overflow-tooltip="true"/>
+      <el-table-column :label="$t('分类')" align="center" width="120" prop="classification" :show-overflow-tooltip="true"/>
+      <el-table-column :label="$t('仪表控制')" align="center" prop="dashControl" :show-overflow-tooltip="true"/>
+      <el-table-column :label="$t('预计完成时间')" align="center" prop="estimateEndtime" width="100">
+        <template slot-scope="scope">
+          <span>{{ parseTime(scope.row.estimateEndtime, '{y}-{m}-{d}') }}</span>
+        </template>
+      </el-table-column>
+      <el-table-column :label="$t('EHS审查数据库')" align="center" prop="ehsDb" :show-overflow-tooltip="true"/>
+      <el-table-column :label="$t('PSSR数据库')" align="center" prop="pssrDb" :show-overflow-tooltip="true"/>
+      <el-table-column :label="$t('CAPEX计划')" align="center" prop="capex" :show-overflow-tooltip="true"/>-->
+      <!--<el-table-column :label="$t('操作')" align="center" fixed="right" width="120" class-name="small-padding fixed-width">-->
+        <!--<template slot-scope="scope">-->
+          <!--<el-button-->
+            <!--size="mini"-->
+            <!--type="text"-->
+            <!--icon="el-icon-edit"-->
+            <!--@click="handleUpdate(scope.row)"-->
+            <!--v-hasPermi="['process:moc:edit']"-->
+          <!--&gt;{{ $t('修改') }}</el-button>-->
+          <!--<el-button-->
+            <!--size="mini"-->
+            <!--type="text"-->
+            <!--icon="el-icon-delete"-->
+            <!--@click="handleDelete(scope.row)"-->
+            <!--v-hasPermi="['process:moc:remove']"-->
+          <!--&gt;{{ $t('删除') }}</el-button>-->
+        <!--</template>-->
+      <!--</el-table-column>-->
+    </el-table>
+
+    <pagination
+      v-show="total>0"
+      :total="total"
+      :page.sync="queryParams.pageNum"
+      :limit.sync="queryParams.pageSize"
+      @pagination="getList"
+    />
+
+    <!-- 添加或修改MOC管理对话框 -->
+    <el-dialog v-dialogDrag :title="title" :visible.sync="open" width="500px" append-to-body>
+      <el-form ref="form" :model="form" :rules="rules" label-width="80px">
+        <!--<el-form-item :label="$t('装置名称')" prop="plantCode">-->
+        <!--<el-select v-model="form.plantCode" :placeholder="$t('请选择') + $t('装置名称')">-->
+        <!--<el-option-->
+        <!--v-for="dict in plantCodeOptions"-->
+        <!--:key="dict.dictValue"-->
+        <!--:label="dict.dictLabel"-->
+        <!--:value="dict.dictValue"-->
+        <!--&gt;</el-option>-->
+        <!--</el-select>-->
+        <!--</el-form-item>-->
+        <el-form-item :label="$t('MOC编号')" prop="mocNo">
+          <el-input v-model="form.mocNo" :placeholder="$t('请输入') + $t('MOC编号')" />
+        </el-form-item>
+        <el-form-item :label="$t('公司MOC编号')" prop="companyMocNo">
+          <el-input v-model="form.companyMocNo" :placeholder="$t('请输入') + $t('公司MOC编号')" />
+        </el-form-item>
+        <el-form-item :label="$t('项目号')" prop="projectNo">
+          <el-input v-model="form.projectNo" :placeholder="$t('请输入') + $t('项目号')" />
+        </el-form-item>
+        <el-form-item :label="$t('区域')" prop="area">
+          <el-select v-model="form.area" :placeholder="$t('请选择') + $t('区域')">
+            <el-option
+              v-for="dict in areaOptions"
+              :key="dict.dictValue"
+              :label="dict.dictLabel"
+              :value="dict.dictValue"
+            ></el-option>
+          </el-select>
+        </el-form-item>
+        <el-form-item :label="$t('标题')" prop="title">
+          <el-input v-model="form.title" :placeholder="$t('请输入') + $t('标题')" />
+        </el-form-item>
+        <el-form-item :label="$t('MOC类型')" prop="mocType">
+          <el-select v-model="form.mocType" :placeholder="$t('请选择') + $t('MOC类型')">
+            <el-option
+              v-for="dict in mocTypeOptions"
+              :key="dict.dictValue"
+              :label="dict.dictLabel"
+              :value="dict.dictValue"
+            ></el-option>
+          </el-select>
+        </el-form-item>
+        <el-form-item :label="$t('负责人')" prop="owner">
+          <el-input v-model="form.owner" :placeholder="$t('请输入') + $t('负责人')" />
+        </el-form-item>
+        <el-form-item :label="$t('申请时间')" prop="approveTime">
+          <el-date-picker clearable size="small" style="width: 200px"
+                          v-model="form.approveTime"
+                          type="date"
+                          value-format="yyyy-MM-dd"
+                          :placeholder="$t('请选择') + $t('申请时间')">
+          </el-date-picker>
+        </el-form-item>
+        <el-form-item :label="$t('MC时间')" prop="mcTime">
+          <el-date-picker clearable size="small" style="width: 200px"
+                          v-model="form.mcTime"
+                          type="date"
+                          value-format="yyyy-MM-dd"
+                          :placeholder="$t('请选择') + $t('MC时间')">
+          </el-date-picker>
+        </el-form-item>
+        <el-form-item :label="$t('MC情况')" prop="mcDetail">
+          <el-select v-model="form.mcDetail" :placeholder="$t('请选择') + $t('MC情况')">
+            <el-option
+              v-for="dict in mcDetailOptions"
+              :key="dict.dictValue"
+              :label="dict.dictLabel"
+              :value="dict.dictValue"
+            ></el-option>
+          </el-select>
+        </el-form-item>
+        <!--<el-form-item :label="$t('完成时间')" prop="endtime">-->
+        <!--<el-date-picker clearable size="small" style="width: 200px"-->
+        <!--v-model="form.endtime"-->
+        <!--type="date"-->
+        <!--value-format="yyyy-MM-dd"-->
+        <!--:placeholder="$t('请选择') + $t('完成时间')">-->
+        <!--</el-date-picker>-->
+        <!--</el-form-item>-->
+        <!--<el-form-item :label="$t('实施情况')" prop="trueState">-->
+        <!--<el-select v-model="form.trueState" :placeholder="$t('请选择') + $t('实施情况')" @change="changeTrueState($event)">-->
+        <!--<el-option-->
+        <!--v-for="dict in trueStateOptions"-->
+        <!--:key="dict.dictValue"-->
+        <!--:label="dict.dictLabel"-->
+        <!--:value="dict.dictValue"-->
+        <!--&gt;</el-option>-->
+        <!--</el-select>-->
+        <!--</el-form-item>-->
+        <!--<el-form-item :label="$t('变更性质')" prop="changeNature">-->
+        <!--<el-select v-model="form.changeNature" :placeholder="$t('请选择') + $t('变更性质')" @change="changeChangeNature($event)">-->
+        <!--<el-option-->
+        <!--v-for="dict in changeNatureOptions"-->
+        <!--:key="dict.dictValue"-->
+        <!--:label="dict.dictLabel"-->
+        <!--:value="dict.dictValue"-->
+        <!--&gt;</el-option>-->
+        <!--</el-select>-->
+        <!--</el-form-item>-->
+        <!--<el-form-item :label="$t('到期时间')" prop="overTime">-->
+        <!--<el-date-picker clearable size="small" style="width: 200px"-->
+        <!--v-model="form.overTime"-->
+        <!--type="date"-->
+        <!--value-format="yyyy-MM-dd"-->
+        <!--:placeholder="$t('请选择') + $t('到期时间')">-->
+        <!--</el-date-picker>-->
+        <!--</el-form-item>-->
+        <!--<el-form-item :label="$t('临时MOC状态')" prop="temporaryState">-->
+        <!--<el-select v-model="form.temporaryState" :placeholder="$t('请选择') + $t('临时MOC状态')">-->
+        <!--<el-option-->
+        <!--v-for="dict in temporaryStateOptions"-->
+        <!--:key="dict.dictValue"-->
+        <!--:label="dict.dictLabel"-->
+        <!--:value="dict.dictValue"-->
+        <!--&gt;</el-option>-->
+        <!--</el-select>-->
+        <!--</el-form-item>-->
+        <el-form-item :label="$t('备注')" prop="remarks">
+          <el-input v-model="form.remarks" type="textarea" :placeholder="$t('请输入') + $t('备注')" />
+        </el-form-item>
+        <el-form-item :label="$t('风险等级')" prop="riskLevel">
+          <el-select v-model="form.riskLevel" :placeholder="$t('请选择') + $t('风险等级')">
+            <el-option
+              v-for="dict in riskLevelOptions"
+              :key="dict.dictValue"
+              :label="dict.dictLabel"
+              :value="dict.dictValue"
+            ></el-option>
+          </el-select>
+        </el-form-item>
+        <el-form-item :label="$t('EHS评估/审查')" prop="ehsCheck">
+          <el-date-picker clearable size="small" style="width: 200px"
+                          v-model="form.ehsCheck"
+                          type="date"
+                          value-format="yyyy-MM-dd"
+                          :placeholder="$t('请选择') + $t('EHS评估/审查')">
+          </el-date-picker>
+        </el-form-item>
+        <el-form-item :label="$t('培训')" prop="training">
+          <el-date-picker clearable size="small" style="width: 200px"
+                          v-model="form.training"
+                          type="date"
+                          value-format="yyyy-MM-dd"
+                          :placeholder="$t('请选择') + $t('培训')"
+                          :picker-options="trainingDatePicker">
+          </el-date-picker>
+        </el-form-item>
+        <el-form-item :label="$t('PID更新')" prop="pidMaster">
+          <el-select v-model="form.pidMaster" :placeholder="$t('请选择') + $t('PID更新')">
+            <el-option
+              v-for="dict in pidMasterOptions"
+              :key="dict.dictValue"
+              :label="dict.dictLabel"
+              :value="dict.dictValue"
+            ></el-option>
+          </el-select>
+        </el-form-item>
+        <!--<el-form-item :label="$t('SOP更新')" prop="sopUpdate">-->
+          <!--<el-select v-model="form.sopUpdate" :placeholder="$t('请选择') + $t('SOP更新')">-->
+            <!--<el-option-->
+              <!--v-for="dict in sopUpdateOptions"-->
+              <!--:key="dict.dictValue"-->
+              <!--:label="dict.dictLabel"-->
+              <!--:value="dict.dictValue"-->
+            <!--&gt;</el-option>-->
+          <!--</el-select>-->
+        <!--</el-form-item>-->
+        <!--<el-form-item :label="$t('文档更新')" prop="docUpdate">-->
+          <!--<el-select v-model="form.docUpdate" :placeholder="$t('请选择') + $t('文档更新')">-->
+            <!--<el-option-->
+              <!--v-for="dict in docUpdateOptions"-->
+              <!--:key="dict.dictValue"-->
+              <!--:label="dict.dictLabel"-->
+              <!--:value="dict.dictValue"-->
+            <!--&gt;</el-option>-->
+          <!--</el-select>-->
+        <!--</el-form-item>-->
+        <el-form-item label="PSSR" prop="pssr">
+          <el-date-picker clearable size="small" style="width: 200px"
+                          v-model="form.pssr"
+                          type="date"
+                          value-format="yyyy-MM-dd"
+                          :placeholder="$t('请选择') + 'PSSR'"
+                          :picker-options="pssrDatePicker">
+          </el-date-picker>
+        </el-form-item>
+        <el-form-item :label="$t('PSSR编号')" prop="pssrNo">
+          <el-input v-model="form.pssrNo" :placeholder="$t('请输入') + $t('PSSR编号')" />
+        </el-form-item>
+        <!--<el-form-item :label="$t('装置编号')" prop="plantNumber">
+          <el-input v-model="form.plantNumber" :placeholder="$t('请输入') + $t('装置编号')" />
+        </el-form-item>
+        <el-form-item :label="$t('通知单')" prop="noticeLetter">
+          <el-input v-model="form.noticeLetter" :placeholder="$t('请输入') + $t('通知单')" />
+        </el-form-item>
+        <el-form-item :label="$t('工作单')" prop="workLetter">
+          <el-input v-model="form.workLetter" :placeholder="$t('请输入') + $t('工作单')" />
+        </el-form-item>
+        <el-form-item :label="$t('CTE工作号')" prop="cteNo">
+          <el-input v-model="form.cteNo" :placeholder="$t('请输入') + $t('CTE工作号')" />
+        </el-form-item>
+        <el-form-item :label="$t('投资费用(RMB)')" prop="investCost">
+          <el-input v-model="form.investCost" :placeholder="$t('请输入') + $t('投资费用(RMB)')" />
+        </el-form-item>
+        <el-form-item :label="$t('类别')" prop="category">
+          <el-select v-model="form.category" :placeholder="$t('请选择') + $t('类别')">
+            <el-option
+              v-for="dict in categoryOptions"
+              :key="dict.dictValue"
+              :label="dict.dictLabel"
+              :value="dict.dictValue"
+            ></el-option>
+          </el-select>
+        </el-form-item>
+        <el-form-item :label="$t('重要性')" prop="significance">
+          <el-input v-model="form.significance" :placeholder="$t('请输入') + $t('重要性')" />
+        </el-form-item>
+        <el-form-item :label="$t('分类')" prop="classification">
+          <el-input v-model="form.classification" :placeholder="$t('请输入') + $t('分类')" />
+        </el-form-item>
+        <el-form-item :label="$t('仪表控制')" prop="dashControl">
+          <el-input v-model="form.dashControl" :placeholder="$t('请输入') + $t('仪表控制')" />
+        </el-form-item>
+        <el-form-item :label="$t('预计完成时间')" prop="estimateEndtime">
+          <el-date-picker clearable size="small" style="width: 200px"
+                          v-model="form.estimateEndtime"
+                          type="date"
+                          value-format="yyyy-MM-dd"
+                          :placeholder="$t('请选择') + $t('预计完成时间')">
+          </el-date-picker>
+        </el-form-item>
+        <el-form-item :label="$t('EHS审查数据库')" prop="ehsDb">
+          <el-input v-model="form.ehsDb" :placeholder="$t('请输入') + $t('EHS审查数据库')" />
+        </el-form-item>
+        <el-form-item :label="$t('PSSR数据库')" prop="pssrDb">
+          <el-input v-model="form.pssrDb" :placeholder="$t('请输入') + $t('PSSR数据库')" />
+        </el-form-item>
+        <el-form-item :label="$t('CAPEX计划')" prop="capex">
+          <el-input v-model="form.capex" :placeholder="$t('请输入') + $t('CAPEX计划')" />
+        </el-form-item>-->
+        <el-form-item :label="$t('归属部门')" prop="deptId">
+          <treeselect v-model="form.deptId" :options="deptOptions" :show-count="true" :placeholder="$t('请选择') + $t('归属部门')" />
+        </el-form-item>
+      </el-form>
+      <div slot="footer" class="dialog-footer">
+        <el-button type="primary" @click="submitForm">{{ $t('确 定') }}</el-button>
+        <el-button @click="cancel">{{ $t('取 消') }}</el-button>
+      </div>
+    </el-dialog>
+    <!-- 用户导入对话框 -->
+    <el-dialog v-dialogDrag :title="upload.title" :visible.sync="upload.open" width="400px" append-to-body>
+      <el-upload
+        ref="upload"
+        :limit="1"
+        accept=".xlsx, .xls"
+        :headers="upload.headers"
+        :action="upload.url"
+        :disabled="upload.isUploading"
+        :on-progress="handleFileUploadProgress"
+        :on-success="handleFileSuccess"
+        :auto-upload="false"
+        drag
+      >
+        <i class="el-icon-upload"></i>
+        <div class="el-upload__text">
+          {{ $t('将文件拖到此处,或') }}
+          <em>{{ $t('点击上传') }}</em>
+        </div>
+        <div class="el-upload__tip" slot="tip">
+          <!--<el-checkbox v-model="upload.updateSupport" />是否更新已经存在的用户数据-->
+          <el-link type="info" style="font-size:12px" @click="importTemplate">{{ $t('下载模板') }}</el-link>
+        </div>
+        <form ref="downloadFileForm" :action="upload.downloadAction" target="FORMSUBMIT">
+          <input name="type" :value="upload.type" hidden />
+        </form>
+        <div class="el-upload__tip" style="color:red" slot="tip">{{ $t('提示:仅允许导入“xls”或“xlsx”格式文件!') }}</div>
+      </el-upload>
+      <div slot="footer" class="dialog-footer">
+        <el-button type="primary" @click="submitFileForm">{{ $t('确 定') }}</el-button>
+        <el-button @click="upload.open = false">{{ $t('取 消') }}</el-button>
+      </div>
+    </el-dialog>
+    <!-- 报告附件对话框 -->
+    <el-dialog v-dialogDrag :title="doc.title" :visible.sync="doc.open" width="1000px" append-to-body >
+      <!--<el-upload v-hasPermi="['training:trainingrecords:file']"-->
+                 <!--ref="doc"-->
+                 <!--:limit="50"-->
+                 <!--:headers="doc.headers"-->
+                 <!--:action="doc.url + '?pType=' + doc.pType + '&pId=' + doc.pId"-->
+                 <!--:disabled="doc.isUploading"-->
+                 <!--:on-progress="handleFileDocProgress"-->
+                 <!--:on-success="handleFileDocSuccess"-->
+                 <!--:auto-upload="true"-->
+                 <!--drag-->
+      <!--&gt;-->
+        <!--<i class="el-icon-upload"></i>-->
+        <!--<div class="el-upload__text">-->
+          <!--{{ $t('将文件拖到此处,或') }}-->
+          <!--<em>{{ $t('点击上传') }}</em>-->
+        <!--</div>-->
+      <!--</el-upload>-->
+      <el-table :data="doc.commonfileList" border>
+        <el-table-column :label="$t('文件名')" align="center" prop="fileName" :show-overflow-tooltip="true">
+          <template slot-scope="scope">
+            <a  class="link-type"  @click="handleDownload(scope.row)">
+              <span>{{ scope.row.fileName }}</span>
+            </a>
+          </template>
+        </el-table-column>
+        <el-table-column :label="$t('大小(Kb)')" align="center" prop="fileSize" :show-overflow-tooltip="true" width="80" />
+        <el-table-column :label="$t('上传人')" align="center" prop="creator" :show-overflow-tooltip="true" width="120"/>
+        <!--<el-table-column :label="$t('操作')" align="center" width="220" class-name="small-padding fixed-width">-->
+          <!--<template slot-scope="scope">-->
+            <!--<el-button-->
+              <!--v-if="scope.row.fileName.endsWith('pdf')"-->
+              <!--size="mini"-->
+              <!--type="text"-->
+              <!--icon="el-icon-view"-->
+              <!--@click="handleSee(scope.row)"-->
+            <!--&gt;{{ $t('预览') }}</el-button>-->
+            <!--<el-button v-hasPermi="['training:trainingrecords:file']"  type="text" size="small" v-if="scope.row.isEdit" @click="save(scope.row)">{{ $t('保存') }}</el-button>-->
+            <!--<el-button type="text" size="small" v-if="scope.row.isEdit" @click="cancelFile(scope.row, scope.$index)">{{ $t('取消') }}</el-button>-->
+            <!--&lt;!&ndash;            <el-button v-hasPermi="['training:trainingrecords:file']" v-if="!scope.row.isEdit" @click="edit(scope.row)" icon="el-icon-edit" type="text" size="mini">编辑</el-button>&ndash;&gt;-->
+            <!--<el-button-->
+              <!--size="mini"-->
+              <!--type="text"-->
+              <!--icon="el-icon-download"-->
+              <!--@click="handleDownload(scope.row)"-->
+            <!--&gt;{{ $t('下载') }}</el-button>-->
+            <!--<el-button-->
+              <!--size="mini"-->
+              <!--type="text"-->
+              <!--icon="el-icon-delete"-->
+              <!--@click="handleDeleteDoc(scope.row)"-->
+              <!--v-hasPermi="['training:trainingrecords:file']"-->
+            <!--&gt;{{ $t('删除') }}</el-button>-->
+          <!--</template>-->
+        <!--</el-table-column>-->
+      </el-table>
+      <el-dialog v-dialogDrag :title="pdf.title" :visible.sync="pdf.open" width="1300px" append-to-body>
+        <div style="margin-top: -60px;float: right;margin-right: 40px;">
+          <el-button size="mini" type="text" @click="openPdf">{{$t('新页面打开PDF')}}</el-button></div>
+        <div style="margin-top: -30px">
+          <iframe :src="pdf.pdfUrl" frameborder="0" width="100%" height="700px"></iframe>
+        </div>
+      </el-dialog>
+      <div slot="footer" class="dialog-footer">
+        <!--        <el-button type="primary" @click="submitFileForm">{{ $t('确 定') }}</el-button>-->
+        <el-button @click="doc.open = false">{{ $t('返 回') }}</el-button>
+      </div>
+    </el-dialog>
+    <!-- MOC类型说明对话框 -->
+    <el-dialog v-dialogDrag :title="mocTypeInfo.title" :visible.sync="mocTypeInfo.open" width="1000px" append-to-body>
+      <el-image
+        style="width: 947px; height: 394px"
+        :src="require('@/assets/image/moc/mocTypeInfo.png')"
+        fit="fill"></el-image>
+      <div slot="footer" class="dialog-footer">
+        <el-button type="primary" @click="mocTypeInfo.open = false">{{ $t('确 定') }}</el-button>
+      </div>
+    </el-dialog>
+    <el-drawer
+      :title="$t('数据分析')"
+      size="600px"
+      :visible.sync="drawer"
+      :direction="direction">
+      <!--      <el-row style="padding-left: 20px;">-->
+      <!--      <el-form :model="chartParams" :inline="true"  label-width="68px">-->
+      <!--        <el-form-item :label="$t('年份')" label-width="50" prop="year">-->
+      <!--          <el-select v-model="chartParams.year" placeholder="请选择年份" clearable size="small">-->
+      <!--            <el-option-->
+      <!--              v-for="item in yearOption"-->
+      <!--              :key="item"-->
+      <!--              :label="item"-->
+      <!--              :value="item"-->
+      <!--            />-->
+      <!--          </el-select>-->
+      <!--        </el-form-item>-->
+      <!--        <el-form-item>-->
+      <!--          <el-button type="cyan" icon="el-icon-search" size="mini" @click="handleQuery">{{ $t('搜索') }}</el-button>-->
+      <!--        </el-form-item>-->
+      <!--      </el-form>-->
+      <!--      </el-row>-->
+      <el-row>
+        <el-col>
+          <el-card class="box-card" shadow="hover">
+            <div slot="header" class="clearfix">
+              <span>{{ $t('实施情况统计') }}</span>
+            </div>
+            <div class="text item">
+              <true-state-data> </true-state-data>
+            </div>
+          </el-card>
+        </el-col>
+      </el-row>
+      <el-row>
+        <el-col>
+          <el-card class="box-card" shadow="hover">
+            <div slot="header" class="clearfix">
+              <span>{{ $t('申请统计') }}</span>
+            </div>
+            <div class="text item">
+              <year-chart> </year-chart>
+            </div>
+          </el-card>
+        </el-col>
+      </el-row>
+      <el-row>
+        <el-col>
+          <el-card class="box-card" shadow="hover">
+            <div slot="header" class="clearfix">
+              <span>{{ $t('变更性质') +$t('空格')+ $t('统计') }}</span>
+            </div>
+            <div class="text item">
+              <change-data> </change-data>
+            </div>
+          </el-card>
+        </el-col>
+      </el-row>
+      <el-row>
+        <el-col>
+          <el-card class="box-card" shadow="hover">
+            <div slot="header" class="clearfix">
+              <span>{{ $t('类别') +$t('空格')+ $t('统计') }}</span>
+            </div>
+            <div class="text item">
+              <category-data> </category-data>
+            </div>
+          </el-card>
+        </el-col>
+      </el-row>
+      <el-row>
+        <el-col>
+          <el-card class="box-card" shadow="hover">
+            <div slot="header" class="clearfix">
+              <span>{{ $t('风险等级统计') }}</span>
+            </div>
+            <div class="text item">
+              <risk-data></risk-data>
+            </div>
+          </el-card>
+        </el-col>
+      </el-row>
+    </el-drawer>
+  </div>
 </template>
 
 <script>
-    export default {
-        name: "index.vue"
+  import { list, listPermanent, listTemporary, listAquifier, listFacility, listInterlock, getMoc, delMoc, addMoc, updateMoc, exportMoc } from "@/api/process/moc";
+  import { treeselect } from "@/api/system/dept";
+  import { getToken } from "@/utils/auth";
+  import Treeselect from "@riophae/vue-treeselect";
+  import "@riophae/vue-treeselect/dist/vue-treeselect.css";
+  // import YearChart from "./yearChart";
+  // import TrueStateData from "./trueStateData";
+  // import ChangeData from "./changeData";
+  // import CategoryData from "./categoryData";
+  // import RiskData from "./riskData";
+
+  import {addCommonfile, allFileList, delCommonfile, updateCommonfile} from "@/api/common/commonfile";
+
+  export default {
+    name: "Summary",
+    components: { Treeselect },
+    data() {
+      var validateDocUpdate = (rule, value, callback) => {
+        if (value == 1) {
+          if (this.form.pidMaster == 0 && this.form.sopUpdate == 0) {
+            return callback(new Error('PID/SOP未更新'));
+          } else {
+            return callback();
+          }
+        } else {
+          return callback();
+        }
+      };
+      return {
+        mocTypeInfo: {
+          open: false,
+          title: 'MOC类型说明'
+        },
+        drawer: false,
+        direction: 'rtl',
+        // 遮罩层
+        loading: true,
+        // 选中数组
+        ids: [],
+        // 非单个禁用
+        single: true,
+        // 非多个禁用
+        multiple: true,
+        // 显示搜索条件
+        showSearch: false,
+        // 总条数
+        total: 0,
+        // MOC管理表格数据
+        mocList: [],
+        // 弹出层标题
+        title: "",
+        // 部门树选项
+        deptOptions: undefined,
+        clientHeight:300,
+        // 是否显示弹出层
+        open: false,
+        // 装置字典
+        plantCodeOptions: [],
+        // 类别字典
+        categoryOptions: [],
+        // 区域字典
+        areaOptions: [],
+        // PID MASTER更新字典
+        pidMasterOptions: [],
+        // 临时MOC状态字典
+        temporaryStateOptions: [],
+        // SOP更新字典
+        sopUpdateOptions: [],
+        // 文件更新字典
+        docUpdateOptions:[],
+        // 实施情况字典
+        trueStateOptions: [],
+        // 变更性质字典
+        changeNatureOptions: [],
+        // 风险等级字典
+        riskLevelOptions: [],
+        // MOC类型字典
+        mocTypeOptions: [],
+        // MC情况字典
+        mcDetailOptions: [],
+        //时间选择限制
+        ehsCheckDate: '',
+        trainingDatePicker: this.pickerOptionsTraining(),
+        pssrDatePicker: this.pickerOptionsPssr(),
+        // 用户导入参数
+        upload: {
+          //下载模板请求地址
+          downloadAction: process.env.VUE_APP_BASE_API + '/common/template',
+          //下载模板类型
+          type: 'moc',
+          // 是否显示弹出层(用户导入)
+          open: false,
+          // 弹出层标题(用户导入)
+          title: "",
+          // 是否禁用上传
+          isUploading: false,
+          // 是否更新已经存在的用户数据
+          updateSupport: 0,
+          // 设置上传的请求头部
+          headers: { Authorization: "Bearer " + getToken() },
+          // 上传的地址
+          url: process.env.VUE_APP_BASE_API + "/process/moc/importData"
+        },
+        // 报告附件参数
+        doc: {
+          file: "",
+          // 是否显示弹出层(报告附件)
+          open: false,
+          // 弹出层标题(报告附件)
+          title: "附件",
+          // 是否禁用上传
+          isUploading: false,
+          // 是否更新已经存在的用户数据
+          updateSupport: 0,
+          // 报告附件上传位置编号
+          ids: 0,
+          // 设置上传的请求头部
+          headers: { Authorization: "Bearer " + getToken() },
+          // 上传的地址
+          url: process.env.VUE_APP_BASE_API + "/common/commonfile/uploadFile",
+          commonfileList: null,
+          queryParams: {
+            pId: null,
+            pType: 'moc'
+          },
+          pType: 'moc',
+          pId: null,
+          form: {}
+        },
+        pdf : {
+          title: '',
+          pdfUrl: '',
+          numPages: null,
+          open: false,
+          pageNum: 1,
+          pageTotalNum: 1,
+          loadedRatio: 0,
+        },
+        // 查询参数
+        queryParams: {
+          pageNum: 1,
+          pageSize: 20,
+          plantCode: null,
+          mocNo: null,
+          plantNumber: null,
+          noticeLetter: null,
+          workLetter: null,
+          cteNo: null,
+          investCost: null,
+          category: null,
+          significance: null,
+          classification: null,
+          area: null,
+          dashControl: null,
+          title: null,
+          owner: null,
+          approveTime: null,
+          estimateEndtime: null,
+          endtime: null,
+          trueState: null,
+          changeNature: null,
+          overTime: null,
+          riskLevel: null,
+          training: null,
+          pssr: null,
+          ehsCheck: null,
+          ehsDb: null,
+          pidMaster: null,
+          pssrDb: null,
+          capex: null,
+          remarks: null,
+          companyMocNo: null,
+          projectNo: null,
+          mocType: null,
+          mcTime: null,
+          mcDetail: null,
+          docUpdate: null,
+          pssrNo: null,
+          timeliness: null,
+          tempCategory: null,
+          expTime: null,
+          tempState: null,
+          location: null,
+          finishDate: null,
+        },
+        chartParams: {
+          year : 2021
+        },
+        yearOption: [2020,2021],
+        // 表单参数
+        form: {},
+        // 表单校验
+        rules: {
+          mocNo: [
+            { required: true, message: this.$t('MOC编号') + this.$t('不能为空'), trigger: "change" }
+          ],
+          // companyMocNo: [
+          //   { required: true, message: this.$t('公司MOC编号') + this.$t('不能为空'), trigger: "change" }
+          // ],
+          // projectNo: [
+          //   { required: true, message: this.$t('项目号') + this.$t('不能为空'), trigger: "change" }
+          // ],
+          // area: [
+          //   { required: true, message: this.$t('区域') + this.$t('不能为空'), trigger: "change" }
+          // ],
+          // title: [
+          //   { required: true, message: this.$t('标题') + this.$t('不能为空'), trigger: "change" }
+          // ],
+          // mocType: [
+          //   { required: true, message: this.$t('MOC类型') + this.$t('不能为空'), trigger: "change" }
+          // ],
+          // owner: [
+          //   { required: true, message: this.$t('负责人') + this.$t('不能为空'), trigger: "change" }
+          // ],
+          // approveTime: [
+          //   { required: true, message: this.$t('申请时间') + this.$t('不能为空'), trigger: "change" }
+          // ],
+          // mcTime: [
+          //   { required: true, message: this.$t('MC时间') + this.$t('不能为空'), trigger: "change" }
+          // ],
+          // mcDetail: [
+          //   { required: true, message: this.$t('MC情况') + this.$t('不能为空'), trigger: "change" }
+          // ],
+          // remarks: [
+          //   { required: true, message: this.$t('备注') + this.$t('不能为空'), trigger: "change" }
+          // ],
+          // riskLevel: [
+          //   { required: true, message: this.$t('风险等级') + this.$t('不能为空'), trigger: "change" }
+          // ],
+          // ehsCheck: [
+          //   { required: true, message: this.$t('EHS评估/审查') + this.$t('不能为空'), trigger: "change" }
+          // ],
+          // training: [
+          //   { required: true, message: this.$t('培训') + this.$t('不能为空'), trigger: "change" }
+          // ],
+          // pidMaster: [
+          //   { required: true, message: this.$t('PID更新') + this.$t('不能为空'), trigger: "change" }
+          // ],
+          // sopUpdate: [
+          //   { required: true, message: this.$t('SOP更新') + this.$t('不能为空'), trigger: "change" }
+          // ],
+          docUpdate: [
+            // { required: true, message: this.$t('文档更新') + this.$t('不能为空'), trigger: "change" },
+            { validator: validateDocUpdate, trigger: 'change' }
+          ],
+          // pssr: [
+          //   { required: true, message: this.$t('PSSR') + this.$t('不能为空'), trigger: "change" }
+          // ],
+          // pssrNo: [
+          //   { required: true, message: this.$t('PSSR编号') + this.$t('不能为空'), trigger: "change" }
+          // ],
+          deptId: [
+            { required: true, message: this.$t('归属部门') + this.$t('不能为空'), trigger: "change" }
+          ],
+        },
+        // commonRules: {
+        //   plantCode: [
+        //     { required: true, message: this.$t('装置') + this.$t('不能为空'), trigger: "change" }
+        //   ],
+        //   trueState: [
+        //     { required: true, message: this.$t('实施情况') + this.$t('不能为空'), trigger: "change" }
+        //   ],
+        //   deptId: [
+        //     { required: true, message: this.$t('部门编号') + this.$t('不能为空'), trigger: "blur" }
+        //   ]
+        // },
+        // chooseRules: {
+        //   plantCode: [
+        //     { required: true, message: this.$t('装置') + this.$t('不能为空'), trigger: "change" }
+        //   ],
+        //   mocNo: [
+        //     { required: true, message: this.$t('MOC编号') + this.$t('不能为空'), trigger: "blur" }
+        //   ],
+        //   area: [
+        //     { required: true, message: this.$t('区域') + this.$t('不能为空'), trigger: "change" }
+        //   ],
+        //   title: [
+        //     { required: true, message: this.$t('标题') + this.$t('不能为空'), trigger: "blur" }
+        //   ],
+        //   owner: [
+        //     { required: true, message: this.$t('负责人') + this.$t('不能为空'), trigger: "blur" }
+        //   ],
+        //   approveTime: [
+        //     { required: true, message: this.$t('申请时间') + this.$t('不能为空'), trigger: "blur" }
+        //   ],
+        //   endtime: [
+        //     { required: true, message: this.$t('完成时间') + this.$t('不能为空'), trigger: "blur" }
+        //   ],
+        //   trueState: [
+        //     { required: true, message: this.$t('实施情况') + this.$t('不能为空'), trigger: "change" }
+        //   ],
+        //   overTime: [
+        //     { required: true, message: this.$t('到期时间') + this.$t('不能为空'), trigger: "blur" }
+        //   ],
+        //   riskLevel: [
+        //     { required: true, message: this.$t('风险等级') + this.$t('不能为空'), trigger: "change" }
+        //   ],
+        //   ehsCheck: [
+        //     { required: true, message: this.$t('EHS审查') + this.$t('不能为空'), trigger: "blur" }
+        //   ],
+        //   pidMaster: [
+        //     { required: true, message: this.$t('PID更新') + this.$t('不能为空'), trigger: "blur" }
+        //   ],
+        //   sopUpdate: [
+        //     { required: true, message: this.$t('SOP更新') + this.$t('不能为空'), trigger: "blur" }
+        //   ],
+        //   docUpdate: [
+        //     { required: true, message: this.$t('SOP更新') + this.$t('不能为空'), trigger: "blur" }
+        //   ],
+        //   deptId: [
+        //     { required: true, message: this.$t('部门编号') + this.$t('不能为空'), trigger: "blur" }
+        //   ]
+        // },
+        // temporaryRules: {
+        //   overTime: [
+        //     { required: true, message: this.$t('到期时间') + this.$t('不能为空'), trigger: "blur" }
+        //   ],
+        //   deptId: [
+        //     { required: true, message: this.$t('部门编号') + this.$t('不能为空'), trigger: "blur" }
+        //   ]
+        // },
+      };
+    },
+    watch: {
+      // 根据名称筛选部门树
+      deptName(val) {
+        this.$refs.tree.filter(val);
+      }
+    },
+    created() {
+      //设置表格高度对应屏幕高度
+      this.$nextTick(() => {
+        this.clientHeight = (document.body.clientHeight - 80) * 0.8
+      })
+      this.getList();
+      this.getTreeselect();
+      this.getDicts("MC_DETAIL").then(response => {
+        this.mcDetailOptions = response.data;
+      });
+      this.getDicts("MOC_TYPE").then(response => {
+        this.mocTypeOptions = response.data;
+      });
+      this.getDicts("PLANT_DIVIDE").then(response => {
+        this.plantCodeOptions = response.data;
+      });
+      this.getDicts("MOC_CATEGORY").then(response => {
+        this.categoryOptions = response.data;
+      });
+      this.getDicts("MOC_AREA").then(response => {
+        this.areaOptions = response.data;
+      });
+      this.getDicts("YES_NO_EN").then(response => {
+        this.pidMasterOptions = response.data;
+        this.sopUpdateOptions = response.data;
+        this.docUpdateOptions = response.data;
+      });
+      this.getDicts("MOC_TEMPORARYSTATE").then(response => {
+        this.temporaryStateOptions = response.data;
+      });
+      this.getDicts("MOC_STATE").then(response => {
+        this.trueStateOptions = response.data;
+      });
+      this.getDicts("MOC_CHANGE").then(response => {
+        this.changeNatureOptions = response.data;
+      });
+      this.getDicts("MOC_RISKLEVEL").then(response => {
+        this.riskLevelOptions = response.data;
+      });
+    },
+    methods: {
+      /** 查询MOC管理列表 */
+      getList() {
+        this.loading = true;
+        let _this = this
+        list(this.queryParams).then(response => {
+          this.mocList = response.rows;
+          this.mocList.forEach(function (value,key,arr) {
+            if (value.overTime == null) {
+              _this.mocList[key].overTime = "N.A."
+            }
+          });
+          this.total = response.total;
+          this.loading = false;
+        });
+      },
+      //根据分数显示颜色提示
+      tableCellStyle({ row, column, rowIndex, columnIndex }) {
+        if (columnIndex == 3 && row.trueState == 10){
+          return "color: rgba(45, 58, 79, 0.98) "
+        }else if (columnIndex == 3 && row.trueState == 12){
+          return "color: rgba(255, 26, 26, 0.98) "
+        }else if (columnIndex == 3 && row.trueState == 14){
+          return "color: rgba(95, 153, 248, 0.98) "
+        }
+      },
+      /** 查询部门下拉树结构 */
+      getTreeselect() {
+        treeselect().then(response => {
+          this.deptOptions = response.data;
+        });
+      },
+      // 装置字典翻译
+      plantCodeFormat(row, column) {
+        return this.selectDictLabel(this.plantCodeOptions, row.plantCode);
+      },
+      // 类别字典翻译
+      categoryFormat(row, column) {
+        return this.selectDictLabel(this.categoryOptions, row.category);
+      },
+      // 实施情况字典翻译
+      trueStateFormat(row, column) {
+        return this.selectDictLabel(this.trueStateOptions, row.trueState);
+      },
+      // 变更性质字典翻译
+      changeNatureFormat(row, column) {
+        return this.selectDictLabel(this.changeNatureOptions, row.changeNature);
+      },
+      // 风险等级字典翻译
+      riskLevelFormat(row, column) {
+        return this.selectDictLabel(this.riskLevelOptions, row.riskLevel);
+      },
+      // 区域字典翻译
+      areaFormat(row, column) {
+        return this.selectDictLabel(this.areaOptions, row.area);
+      },
+      // PID MASTER更新字典翻译
+      pidMasterFormat(row, column) {
+        return this.selectDictLabel(this.pidMasterOptions, row.pidMaster);
+      },
+      // 临时MOC状态字典翻译
+      temporaryStateFormat(row, column) {
+        return this.selectDictLabel(this.temporaryStateOptions, row.temporaryState);
+      },
+      // SOP更新字典翻译
+      sopUpdateFormat(row, column) {
+        return this.selectDictLabel(this.sopUpdateOptions, row.sopUpdate);
+      },
+      // MC情况字典翻译
+      mcDetailFormat(row, column) {
+        return this.selectDictLabel(this.mcDetailOptions, row.mcDetail);
+      },
+      // MOC类型字典翻译
+      mocTypeFormat(row, column) {
+        return this.selectDictLabel(this.mocTypeOptions, row.mocType);
+      },
+      // 文件更新字典翻译
+      docUpdateFormat(row, column) {
+        return this.selectDictLabel(this.docUpdateOptions, row.docUpdate);
+      },
+      // 取消按钮
+      cancel() {
+        this.open = false;
+        this.reset();
+      },
+      // 表单重置
+      reset() {
+        this.form = {
+          id: null,
+          plantCode: null,
+          mocNo: null,
+          plantNumber: null,
+          noticeLetter: null,
+          workLetter: null,
+          cteNo: null,
+          investCost: null,
+          category: null,
+          significance: null,
+          classification: null,
+          area: null,
+          dashControl: null,
+          title: null,
+          owner: null,
+          approveTime: null,
+          estimateEndtime: null,
+          endtime: null,
+          trueState: null,
+          changeNature: null,
+          overTime: null,
+          riskLevel: null,
+          training: null,
+          pssr: null,
+          ehsCheck: null,
+          ehsDb: null,
+          pidMaster: null,
+          pssrDb: null,
+          capex: null,
+          delFlag: null,
+          createrCode: null,
+          createdate: null,
+          updaterCode: null,
+          updatedate: null,
+          deptId: null,
+          remarks: null,
+          temporaryState: null,
+          sopUpdate: null
+        };
+        this.resetForm("form");
+      },
+      // 限制时间范围
+      pickerOptionsTraining() {
+        const self = this
+        return {
+          disabledDate(time){
+            return time.getTime() < new Date(self.form.ehsCheck).getTime()
+          }
+        }
+      },
+      pickerOptionsPssr() {
+        const self = this
+        return {
+          disabledDate(time){
+            if (self.form.training != null) {
+              return time.getTime() < new Date(self.form.training).getTime()
+            }else {
+              return time.getTime() < new Date(self.form.ehsCheck).getTime()
+            }
+          }
+        }
+      },
+      /** 搜索按钮操作 */
+      handleQuery() {
+        this.queryParams.pageNum = 1;
+        this.getList();
+      },
+      /** 重置按钮操作 */
+      resetQuery() {
+        this.resetForm("queryForm");
+        this.handleQuery();
+      },
+      // 多选框选中数据
+      handleSelectionChange(selection) {
+        this.ids = selection.map(item => item.id)
+        this.single = selection.length!==1
+        this.multiple = !selection.length
+      },
+      /** 新增按钮操作 */
+      handleAdd() {
+        this.reset();
+        this.open = true;
+        this.title = this.$t('新增') + " " + this.$t('MOC管理');
+      },
+      //实施情况Finished变更
+      changeTrueState(val) {
+        if (val == 10) {
+          // this.rules = this.chooseRules
+        }else {
+          this.$refs['form'].clearValidate();
+          // this.rules = this.commonRules
+        }
+      },
+      changeChangeNature(val) {
+        if (val == 10) {
+          // this.rules = this.temporaryRules
+        }else if (val = 12) {
+          this.$refs['form'].clearValidate();
+          this.form.temporaryState = "14";
+          this.form.overTime = "";
+          // this.rules = this.commonRules
+        }
+      },
+      //根据分数显示颜色提示
+      tableCellClassName({ row, column, rowIndex, columnIndex }) {
+        if (columnIndex == 13){
+          return this.changeColor(row.isEhsCheck, row.ehsCheck)
+        }
+        if (columnIndex == 14){
+          return this.changeColor(row.isTraining, row.training)
+        }
+        if (columnIndex == 15){
+          return this.changeColor(row.isPssr, row.pssr)
+        }
+      },
+      changeColor (value, dateValue) {
+        if (value !== "1" && dateValue !== null){
+          return 'cellMoc'
+        }
+      },
+      /** 修改按钮操作 */
+      handleUpdate(row) {
+        this.reset();
+        // this.rules = this.commonRules
+        const id = row.id || this.ids
+        getMoc(id).then(response => {
+          this.form = response.data;
+          this.open = true;
+          this.title = this.$t('修改') + this.$t('MOC管理');
+        });
+      },
+      /** 提交按钮 */
+      submitForm() {
+        this.$refs["form"].validate(valid => {
+          if (valid) {
+            if (this.form.trueState == "10") {
+              if (this.form.mocNo != null && this.form.plantNumber != null && this.form.category != null && this.form.significance != null && this.form.classification != null
+                && this.form.area != null && this.form.title != null && this.form.owner != null && this.form.approveTime != null && this.form.estimateEndtime != null
+                && this.form.endtime != null && this.form.changeNature != null && this.form.riskLevel != null && this.form.training != null && this.form.pssr != null) {
+                if (this.form.id != null) {
+                  updateMoc(this.form).then(response => {
+                    this.msgSuccess(this.$t('修改成功'));
+                    this.open = false;
+                    this.getList();
+                  });
+                } else {
+                  this.form.timeliness = 1;
+                  addMoc(this.form).then(response => {
+                    this.msgSuccess(this.$t('新增成功'));
+                    this.open = false;
+                    this.getList();
+                  });
+                }
+              } else {
+                this.msgError(this.$t('存在必填项未填,实施情况修改Finished失败'));
+              }
+            }else {
+              if (this.form.id != null) {
+                updateMoc(this.form).then(response => {
+                  this.msgSuccess(this.$t('修改成功'));
+                  this.open = false;
+                  this.getList();
+                });
+              } else {
+                this.form.timeliness = 1;
+                addMoc(this.form).then(response => {
+                  this.msgSuccess(this.$t('新增成功'));
+                  this.open = false;
+                  this.getList();
+                });
+              }
+            }
+          }
+        });
+      },
+      /** 删除按钮操作 */
+      handleDelete(row) {
+        const ids = row.id || this.ids;
+        this.$confirm(this.$t('是否确认删除?'), this.$t('警告'), {
+          confirmButtonText: this.$t('确定'),
+          cancelButtonText: this.$t('取消'),
+          type: "warning"
+        }).then(function() {
+          return delMoc(ids);
+        }).then(() => {
+          this.getList();
+          this.msgSuccess(this.$t('删除成功'));
+        })
+      },
+      /** 导出按钮操作 */
+      handleExport() {
+        const queryParams = this.queryParams;
+        this.$confirm(this.$t('是否确认导出所有MOC管理数据项?'), this.$t('警告'), {
+          confirmButtonText: this.$t('确定'),
+          cancelButtonText: this.$t('取消'),
+          type: "warning"
+        }).then(function() {
+          return exportMoc(queryParams);
+        }).then(response => {
+          this.download(response.msg);
+        })
+      },
+      /** 导入按钮操作 */
+      handleImport() {
+        this.upload.title = this.$t('用户导入');
+        this.upload.open = true;
+      },
+      /** 下载模板操作 */
+      importTemplate() {
+        this.$refs['downloadFileForm'].submit()
+      },
+      // 文件上传中处理
+      handleFileUploadProgress(event, file, fileList) {
+        this.upload.isUploading = true;
+      },
+      // 文件上传成功处理
+      handleFileSuccess(response, file, fileList) {
+        this.upload.open = false;
+        this.upload.isUploading = false;
+        this.$refs.upload.clearFiles();
+        if (response.data[0] != null) {
+          this.$alert(this.$t('成功导入') + response.msg + this.$t('条数据') + "," + this.$t('第') + response.data + this.$t('行数据出现错误导入失败')+"。", this.$t('导入结果'), { dangerouslyUseHTMLString: true });
+        }else {
+          this.$alert(this.$t('成功导入') + response.msg + this.$t('条数据'), this.$t('导入结果'), { dangerouslyUseHTMLString: true });
+        }
+        this.getList();
+      },
+      // 提交上传文件
+      submitFileForm() {
+        this.$refs.upload.submit();
+      },
+      //数据分析
+      handleData(){
+        var now = new Date();
+        var year = now.getFullYear(); //得到年份
+        this.yearOption = [year-2 , year-1 ,year]
+        this.drawer = true
+      },
+      /** 报告附件按钮操作 */
+      handleDoc(row , fileType) {
+        this.doc.pType = fileType
+        this.doc.queryParams.pType = fileType
+        this.doc.id = row.id;
+        this.doc.title = row.title;
+        this.doc.open = true;
+        this.doc.queryParams.pId = row.id
+        this.doc.pId = row.id
+        this.getFileList()
+        this.$nextTick(() => {
+          this.$refs.doc.clearFiles()
+        })
+      },
+      getFileList (){
+        allFileList(this.doc.queryParams).then(response => {
+          response.forEach(element => {
+            element["isEdit"] = false
+          });
+          response.forEach(element => {
+            element["isAdd"] = false
+          });
+          this.doc.commonfileList = response;
+        });
+      },
+      //附件上传中处理
+      handleFileDocProgress(event, file, fileList) {
+        this.doc.file = file;
+        this.doc.isUploading = true;
+      },
+      //附件上传成功处理
+      handleFileDocSuccess(response, file, fileList) {
+        this.doc.isUploading = false;
+        this.$alert(response.msg, this.$t('导入结果'), { dangerouslyUseHTMLString: true });
+        this.getFileList()
+      },
+      // 文件下载处理
+      handleDownload(row) {
+        var name = row.fileName;
+        var url = row.fileUrl;
+        var suffix = url.substring(url.lastIndexOf("."), url.length);
+        const a = document.createElement('a')
+        a.setAttribute('download', name)
+        a.setAttribute('target', '_blank')
+        a.setAttribute('href', process.env.VUE_APP_BASE_API + url)
+        a.click()
+      },
+      //pdf预览
+      openPdf(){
+        window.open(this.pdf.pdfUrl);//path是文件的全路径地址
+      },
+      handleSee (row){
+        this.pdf.open =true
+        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
+      },
+      // 取消
+      cancelFile(row, index) {
+        // 如果是新增的数据
+        if (row.isAdd) {
+          this.doc.commonfileList.splice(index, 1)
+        } else {
+          // 不是新增的数据  还原数据
+          for (const i in row.oldRow) {
+            row[i] = row.oldRow[i]
+          }
+          row.isEdit = false
+        }
+      },
+      edit(row) {
+        // 备份原始数据
+        row['oldRow'] = JSON.parse(JSON.stringify(row));
+        this.$nextTick(() => {
+          row.isEdit = true;
+        })
+      },
+      save(row) {
+        row.isEdit = false;
+        var that = this;
+        that.loading = true;
+        this.form = row;
+        if (row.isAdd == true) {
+          addCommonfile(this.form).then(response => {
+            this.msgSuccess(this.$t('新增成功'));
+            this.open = false;
+            this.getList();
+          });
+        }else {
+          updateCommonfile(this.form).then(response => {
+            this.msgSuccess(this.$t('修改成功'));
+            this.open = false;
+            this.getList();
+          });
+        }
+      },
+      /** 删除按钮操作 */
+      handleDeleteDoc(row) {
+        const ids = row.id || this.ids;
+        this.$confirm(this.$t('是否确认删除?'), this.$t('警告'), {
+          confirmButtonText: this.$t('确定'),
+          cancelButtonText: this.$t('取消'),
+          type: "warning"
+        }).then(function() {
+          return delCommonfile(ids);
+        }).then(() => {
+          this.getFileList()
+          this.msgSuccess(this.$t('删除成功'));
+        })
+      },
     }
+  };
 </script>
+<style>
+  #moc-type:hover{
+    cursor: pointer;
+  }
+  .text {
+    font-size: 14px;
+  }
+  .item {
+    margin-bottom: 18px;
+  }
+  .clearfix {
+    color: #1e1e1e;
+  }
+  .clearfix:before,
+  .clearfix:after {
+    display: table;
+    content: "";
+  }
+  .clearfix:after {
+    clear: both
+  }
 
-<style scoped>
-
+  .box-card {
+    width: 100%;
+  }
+  .el-drawer__body {
+    overflow: auto;
+  }
+  .el-drawer__container ::-webkit-scrollbar {
+    display: none;
+  }
 </style>