specGl-hisReform.vue 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  1. <template>
  2. <el-dialog :title="$t('改造记录')" :visible.sync="visible" width="1200px" append-to-body>
  3. <el-table v-loading="loading" ref="reTable" :data="specHiGlList" :height="clientHeight" border>
  4. <el-table-column :label="$t('装置')" align="center" fixed="left" prop="plantCode" :show-overflow-tooltip="true"/>
  5. <el-table-column :label="$t('单元')" align="center" fixed="left" prop="unit" :show-overflow-tooltip="true"/>
  6. <!-- <el-table-column :label="$t('状态')" align="center" fixed="left" prop="status" :formatter="statusFormat" />-->
  7. <!-- <el-table-column :label="$t('申请状态')" align="center" fixed="left" prop="approveStatus" :formatter="approveStatusFormat" />-->
  8. <el-table-column :label="$t('装置维修组')" align="center" fixed="left" prop="plantMaint" :show-overflow-tooltip="true"/>
  9. <el-table-column :label="$t('装置维修工程师')" align="center" fixed="left" prop="engineer" :show-overflow-tooltip="true"/>
  10. <el-table-column :label="$t('位号')" align="center" fixed="left" prop="devno" :show-overflow-tooltip="true"/>
  11. <el-table-column :label="$t('设备名称')" align="center" prop="devname" :show-overflow-tooltip="true"/>
  12. <el-table-column :label="$t('型号')" align="center" prop="model" :show-overflow-tooltip="true"/>
  13. <el-table-column :label="$t('使用证号码')" align="center" prop="useno" :show-overflow-tooltip="true"/>
  14. <el-table-column :label="$t('注册编号')" align="center" prop="regno" :show-overflow-tooltip="true"/>
  15. <el-table-column :label="$t('制造单位')" align="center" prop="createUnit" :show-overflow-tooltip="true"/>
  16. <el-table-column :label="$t('燃烧方式')" align="center" prop="burnMode" :show-overflow-tooltip="true"/>
  17. <el-table-column :label="$t('水处理方式')" align="center" prop="waterMode" :show-overflow-tooltip="true"/>
  18. <el-table-column :label="$t('燃烧种类')" align="center" prop="burnKind" :show-overflow-tooltip="true"/>
  19. <el-table-column :label="$t('额定出力')" align="center" prop="ratedPower" :show-overflow-tooltip="true"/>
  20. <el-table-column :label="$t('设计温度')+'℃'" align="center" prop="desTemp" :show-overflow-tooltip="true"/>
  21. <el-table-column :label="$t('操作温度')+'℃'" align="center" prop="optTemp" :show-overflow-tooltip="true"/>
  22. <el-table-column :label="$t('设计压力')+'MPa(G)'" align="center" prop="desPressure" :show-overflow-tooltip="true"/>
  23. <el-table-column :label="$t('操作压力')+'MPa(G)'" align="center" prop="optPressure" :show-overflow-tooltip="true"/>
  24. <el-table-column :label="$t('投用日期')" align="center" prop="submitdate" width="100">
  25. <template slot-scope="scope">
  26. <span>{{ parseTime(scope.row.submitdate, '{y}-{m}-{d}') }}</span>
  27. </template>
  28. </el-table-column>
  29. <el-table-column :label="$t('检测单位')" align="center" prop="checkUnit" :show-overflow-tooltip="true"/>
  30. <el-table-column :label="$t('本次内部检验日期')" align="center" prop="warnDate" width="100">
  31. <template slot-scope="scope">
  32. <span>{{ parseTime(scope.row.warnDate, '{y}-{m}-{d}') }}</span>
  33. </template>
  34. </el-table-column>
  35. <el-table-column :label="$t('内部检查结论')" align="center" prop="checkConclusion" :show-overflow-tooltip="true"/>
  36. <el-table-column :label="$t('内部检验报告编号')" align="center" prop="reportNo" :show-overflow-tooltip="true"/>
  37. <el-table-column :label="$t('下次内部检验日期')" align="center" prop="nextWarnDate" width="100">
  38. <template slot-scope="scope">
  39. <span>{{ parseTime(scope.row.nextWarnDate, '{y}-{m}-{d}') }}</span>
  40. </template>
  41. </el-table-column>
  42. <el-table-column :label="$t('本次外部检测日期')" align="center" prop="outWarnDate" width="100">
  43. <template slot-scope="scope">
  44. <span>{{ parseTime(scope.row.outWarnDate, '{y}-{m}-{d}') }}</span>
  45. </template>
  46. </el-table-column>
  47. <el-table-column :label="$t('外部检验结论')" align="center" prop="outCheckConclusion" :show-overflow-tooltip="true"/>
  48. <el-table-column :label="$t('外部检验报告编号')" align="center" prop="outReportNo" :show-overflow-tooltip="true"/>
  49. <el-table-column :label="$t('下次外部检测日期')" align="center" prop="outNextWarnDate" width="100">
  50. <template slot-scope="scope">
  51. <span>{{ parseTime(scope.row.outNextWarnDate, '{y}-{m}-{d}') }}</span>
  52. </template>
  53. </el-table-column>
  54. <el-table-column :label="$t('备注')" align="center" prop="remarks" :show-overflow-tooltip="true"/>
  55. <el-table-column :label="$t('创建时间')" align="center" prop="createdate" width="100">
  56. <template slot-scope="scope">
  57. <span>{{ parseTime(scope.row.createdate, '{y}-{m}-{d}') }}</span>
  58. </template>
  59. </el-table-column>
  60. </el-table>
  61. </el-dialog>
  62. </template>
  63. <script>
  64. import {getSpecGlByReform} from "@/api/sems/specGl";
  65. import { getToken } from "@/utils/auth";
  66. import "@riophae/vue-treeselect/dist/vue-treeselect.css";
  67. export default {
  68. name: "specGl-hisReform",
  69. data() {
  70. return {
  71. specHiGlList: [],
  72. devType: null,
  73. // 遮罩层
  74. loading: true,
  75. visible: false,
  76. // 选中数组
  77. ids: [],
  78. // 非单个禁用
  79. single: true,
  80. // 非多个禁用
  81. multiple: true,
  82. // 显示搜索条件
  83. showSearch: false,
  84. // 总条数
  85. total: 0,
  86. // 特种设备检验记录表格数据
  87. checkList: [],
  88. // 弹出层标题
  89. title: "",
  90. // 部门树选项
  91. deptOptions: undefined,
  92. clientHeight:300,
  93. // 是否显示弹出层
  94. open: false,
  95. // 用户导入参数
  96. upload: {
  97. // 是否显示弹出层(用户导入)
  98. open: false,
  99. // 弹出层标题(用户导入)
  100. title: "",
  101. // 是否禁用上传
  102. isUploading: false,
  103. // 是否更新已经存在的用户数据
  104. updateSupport: 0,
  105. // 设置上传的请求头部
  106. headers: { Authorization: "Bearer " + getToken() },
  107. // 上传的地址
  108. url: process.env.VUE_APP_BASE_API + "/sems/check/importData"
  109. },
  110. // 查询参数
  111. queryParams: {
  112. pageNum: 1,
  113. pageSize: 20,
  114. createrCode: null,
  115. createdate: null,
  116. updaterCode: null,
  117. updatedate: null,
  118. checkUnit: null,
  119. warnDate: null,
  120. nextWarnDate: null,
  121. reportNo: null,
  122. yearWarnDate: null,
  123. checkConclusion: null,
  124. yearNextWarnDate: null,
  125. yearReportNo: null,
  126. outWarnDate: null,
  127. outNextWarnDate: null,
  128. outCheckConclusion: null,
  129. outReportNo: null,
  130. devId: null,
  131. devType: null,
  132. safeClass: null
  133. },
  134. // 表单参数
  135. form: {},
  136. // 表单校验
  137. rules: {
  138. }
  139. };
  140. },
  141. watch: {
  142. // // 根据名称筛选部门树
  143. // deptName(val) {
  144. // this.$refs.tree.filter(val);
  145. // }
  146. },
  147. created() {
  148. //设置表格高度对应屏幕高度
  149. this.$nextTick(() => {
  150. this.clientHeight = document.body.clientHeight -250
  151. })
  152. },
  153. methods: {
  154. init(row) {
  155. this.visible = true
  156. this.queryParams.devId = row.id
  157. // this.queryParams.devType = type
  158. // this.devType = type
  159. // console.log(this.devType)
  160. this.loading = true;
  161. this.$nextTick(() => {
  162. console.log(this.queryParams)
  163. getSpecGlByReform(row.id).then(response => {
  164. this.specHiGlList = response.data;
  165. this.$nextTick(() => {
  166. this.$refs.reTable.doLayout(); // 解决表格错位
  167. });
  168. this.loading = false;
  169. });
  170. })
  171. },
  172. // 状态字典翻译
  173. statusFormat(row, column) {
  174. return this.selectDictLabel(this.statusOptions, row.status);
  175. },
  176. // 申请状态字典翻译
  177. approveStatusFormat(row, column) {
  178. return this.selectDictLabel(this.approveStatusOptions, row.approveStatus);
  179. },
  180. }
  181. }
  182. </script>
  183. <style scoped>
  184. </style>