index.vue 42 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182
  1. <template>
  2. <div class="app-container">
  3. <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
  4. <el-form-item :label="$t('关键字')" prop="searchValue" label-width="50">
  5. <el-input
  6. v-model="queryParams.searchValue"
  7. :placeholder="$t('请输入') + $t('关键字')"
  8. clearable
  9. size="small"
  10. @keyup.enter.native="handleQuery"
  11. />
  12. </el-form-item>
  13. <el-form-item :label="$t('装置')" prop="plantCode" label-width="50">
  14. <el-input
  15. v-model="queryParams.plantCode"
  16. :placeholder="$t('请输入') +$t('装置名称')"
  17. clearable
  18. size="small"
  19. @keyup.enter.native="handleQuery"
  20. />
  21. </el-form-item>
  22. <el-form-item :label="$t('单元')" prop="unit" label-width="50">
  23. <el-input
  24. v-model="queryParams.unit"
  25. :placeholder="$t('请输入') + $t('单元')"
  26. clearable
  27. size="small"
  28. @keyup.enter.native="handleQuery"
  29. />
  30. </el-form-item>
  31. <el-form-item :label="$t('设备名称')" prop="devname" label-width="50">
  32. <el-input
  33. v-model="queryParams.devname"
  34. :placeholder="$t('请输入') + $t('设备名称')"
  35. clearable
  36. size="small"
  37. @keyup.enter.native="handleQuery"
  38. />
  39. </el-form-item>
  40. <el-form-item :label="$t('位号')" prop="devno" label-width="50">
  41. <el-input
  42. v-model="queryParams.devno"
  43. :placeholder="$t('请输入') + $t('位号')"
  44. clearable
  45. size="small"
  46. @keyup.enter.native="handleQuery"
  47. />
  48. </el-form-item>
  49. <el-form-item :label="$t('预警等级')" prop="ALARM_LEVEL" label-width="50">
  50. <el-select v-model="queryParams.warnFlag" clearable placeholder="请选择">
  51. <el-option
  52. v-for="item in filterList"
  53. :key="item.value"
  54. :label="item.text"
  55. :value="item.value">
  56. <div>
  57. <span v-if="item.value==1" style="width:45px;height:30px; float: left;background-color:#ffff00"> </span>
  58. <span v-if="item.value==1" style=" float: right; color: #121010 ; font-size: 16px">{{ item.text }}</span>
  59. <span v-if="item.value==2" style="width:45px;height:30px; float: left;background-color:#ff9900 "></span>
  60. <span v-if="item.value==2" style=" float: right; color: #121010 ; font-size: 16px">{{ item.text }}</span>
  61. <span v-if="item.value==3" style="width:45px;height:30px; float: left;background-color:#FF4500;"> </span>
  62. <span v-if="item.value==3" style=" float: right; color: #121010 ; font-size: 16px">{{ item.text }}</span>
  63. </div>
  64. </el-option>
  65. </el-select>
  66. </el-form-item>
  67. <el-form-item :label="$t('申请状态')" prop="approveStatus" label-width="50">
  68. <el-select v-model="queryParams.approveStatus" :placeholder="$t('请选择') + $t('申请状态')" clearable size="small">
  69. <el-option
  70. v-for="dict in approveStatusOptions"
  71. :key="dict.dictValue"
  72. :label="dict.dictLabel"
  73. :value="dict.dictValue"
  74. />
  75. </el-select>
  76. </el-form-item>
  77. <el-form-item :label="$t('重复数据')" prop="isRepeat" label-width="50">
  78. <el-radio v-model="queryParams.isRepeat" label="1">全部数据</el-radio>
  79. <el-radio v-model="queryParams.isRepeat" label="2">重复数据</el-radio>
  80. </el-form-item>
  81. <el-form-item>
  82. <el-button type="cyan" icon="el-icon-search" size="mini" @click="handleQuery">{{ $t('搜索') }}</el-button>
  83. <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">{{ $t('重置') }}</el-button>
  84. </el-form-item>
  85. </el-form>
  86. <el-row :gutter="10" class="mb8">
  87. <el-col :span="1.5">
  88. <el-button
  89. type="primary"
  90. icon="el-icon-plus"
  91. size="mini"
  92. @click="handleAdd"
  93. v-hasPermi="['sems:specDt:add']"
  94. >{{ $t('新增') }}
  95. </el-button>
  96. </el-col>
  97. <el-col :span="1.5">
  98. <el-button
  99. type="success"
  100. icon="el-icon-edit"
  101. size="mini"
  102. :disabled="single"
  103. @click="handleUpdate"
  104. v-hasPermi="['sems:specDt:edit']"
  105. >{{ $t('修改') }}
  106. </el-button>
  107. </el-col>
  108. <el-col :span="1.5">
  109. <el-button
  110. type="success"
  111. icon="el-icon-edit"
  112. size="mini"
  113. :disabled="multiple"
  114. @click="handleBatch"
  115. v-hasPermi="['sems:specDt:edit']"
  116. >{{ $t('批量') + $t('修改') }}
  117. </el-button>
  118. </el-col>
  119. <el-col :span="1.5">
  120. <el-button
  121. type="danger"
  122. icon="el-icon-delete"
  123. size="mini"
  124. :disabled="multiple"
  125. @click="handleDelete"
  126. v-hasPermi="['sems:specDt:remove']"
  127. >{{ $t('删除') }}
  128. </el-button>
  129. </el-col>
  130. <el-col :span="1.5">
  131. <el-button
  132. type="success"
  133. size="mini"
  134. :disabled="multiple"
  135. @click="addAprrove('',devType)"
  136. >{{ $t('提交申请') }}
  137. </el-button>
  138. </el-col>
  139. <el-col :span="1.5">
  140. <el-button
  141. type="info"
  142. icon="el-icon-upload2"
  143. size="mini"
  144. @click="handleImport"
  145. v-hasPermi="['sems:specDt:edit']"
  146. >{{ $t('导入') }}
  147. </el-button>
  148. </el-col>
  149. <el-col :span="1.5">
  150. <el-button
  151. type="warning"
  152. icon="el-icon-download"
  153. size="mini"
  154. @click="handleExport"
  155. v-hasPermi="['sems:specDt:export']"
  156. >{{ $t('导出') }}
  157. </el-button>
  158. </el-col>
  159. <el-col :span="1.5">
  160. <el-button
  161. type="primary"
  162. icon="el-icon-download"
  163. size="mini"
  164. @click="inspectionInformation = true"
  165. v-hasPermi="['sems:specDt:add']"
  166. >{{ $t('检验更新') }}
  167. </el-button>
  168. </el-col>
  169. <el-col :span="1.5">
  170. <el-button
  171. type="danger"
  172. icon="el-icon-delete"
  173. size="mini"
  174. @click="handleDup"
  175. v-hasPermi="['system:plant:remove']"
  176. >{{ $t('数据去重') }}
  177. </el-button>
  178. </el-col>
  179. <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
  180. </el-row>
  181. <el-table v-loading="loading" ref="deviceTable" :data="specDtList" @selection-change="handleSelectionChange"
  182. :height="clientHeight" :row-key="row => { return row.id }" border :cell-style="tableCellStyle"
  183. @sort-change="sortList">
  184. <el-table-column type="selection" width="55" :reserve-selection="true" align="center" fixed="left"/>
  185. <el-table-column :label="$t('装置')" align="center" fixed="left" prop="plantCode" :show-overflow-tooltip="true"/>
  186. <el-table-column :label="$t('单元')" align="center" fixed="left" prop="unit" :show-overflow-tooltip="true"/>
  187. <el-table-column :label="$t('档案号')" align="center" fixed="left" prop="docno" :show-overflow-tooltip="true"/>
  188. <el-table-column :label="$t('使用部门')" align="center" fixed="left" prop="useDept" :show-overflow-tooltip="true"/>
  189. <el-table-column :label="$t('装置维修组')" align="center" fixed="left" prop="plantMaint"
  190. :show-overflow-tooltip="true"/>
  191. <el-table-column :label="$t('名称')" align="center" fixed="left" prop="devname" width="130"
  192. :show-overflow-tooltip="true"/>
  193. <el-table-column :label="$t('设备代码')" align="center" fixed="left" prop="regno" width="100"
  194. :show-overflow-tooltip="true"/>
  195. <el-table-column :label="$t('型号')" align="center" fixed="left" prop="model" :show-overflow-tooltip="true"/>
  196. <el-table-column :label="$t('状态')" align="center" fixed="left" prop="status" :formatter="statusFormat"/>
  197. <el-table-column :label="$t('申请状态')" align="center" fixed="left" prop="approveStatus"
  198. :formatter="approveStatusFormat"/>
  199. <el-table-column :label="$t('额定载重量')+'(kg)'" align="center" prop="capacity" :show-overflow-tooltip="true"/>
  200. <el-table-column :label="$t('层站数')" align="center" prop="floor" :show-overflow-tooltip="true"/>
  201. <el-table-column :label="$t('制造单位')" align="center" prop="createUnit" :show-overflow-tooltip="true"/>
  202. <el-table-column :label="$t('使用地点')" align="center" prop="location" :show-overflow-tooltip="true"/>
  203. <el-table-column :label="$t('初检日期')" align="center" prop="firstWarnDate" width="100">
  204. <template slot-scope="scope">
  205. <span>{{ parseTime(scope.row.firstWarnDate, '{y}-{m}-{d}') }}</span>
  206. </template>
  207. </el-table-column>
  208. <el-table-column :label="$t('检验日期')" align="center" prop="warnDate" width="100">
  209. <template slot-scope="scope">
  210. <span>{{ parseTime(scope.row.warnDate, '{y}-{m}-{d}') }}</span>
  211. </template>
  212. </el-table-column>
  213. <el-table-column :label="$t('检验单位')" align="center" prop="checkUnit" :show-overflow-tooltip="true"/>
  214. <el-table-column :label="$t('报告编号')" align="center" prop="reportNo" :show-overflow-tooltip="true"/>
  215. <el-table-column :label="$t('下次检验日期')" align="center" prop="nextWarnDate" width="100" sortable="custom">
  216. <template slot-scope="scope">
  217. <span>{{ parseTime(scope.row.nextWarnDate, '{y}-{m}-{d}') }}</span>
  218. </template>
  219. </el-table-column>
  220. <el-table-column :label="$t('定期检验结论')" align="center" prop="perTestConclusion" :show-overflow-tooltip="true"/>
  221. <el-table-column :label="$t('备注')" align="center" prop="remarks" :show-overflow-tooltip="true"/>
  222. <el-table-column :label="$t('备注2')" align="center" prop="remarks2" :render-header="remarksHeader" :show-overflow-tooltip="true"/>
  223. <el-table-column :label="$t('操作')" align="center" fixed="right" width="140"
  224. class-name="small-padding fixed-width">
  225. <template slot-scope="scope">
  226. <el-button
  227. type="text"
  228. size="mini"
  229. @click="addAprrove(scope.row,devType)"
  230. >{{ $t('提交申请') }}
  231. </el-button>
  232. <el-button v-if="scope.row.approveTime != null" type="text" size="small"
  233. @click="hisApprove(scope.row,devType)">
  234. {{ $t('申请记录') }}
  235. </el-button>
  236. <br>
  237. <el-button
  238. style="margin-left: 0px"
  239. type="text"
  240. size="mini"
  241. @click="checkList(scope.row,devType)"
  242. >{{ $t('检验记录') }}
  243. </el-button>
  244. <el-button
  245. v-if="scope.row.hiFlag!= 0"
  246. type="text"
  247. size="mini"
  248. @click="hisReform(scope.row)"
  249. >{{ $t('改造记录') }}
  250. </el-button>
  251. </template>
  252. </el-table-column>
  253. </el-table>
  254. <pagination
  255. v-show="total>0"
  256. :total="total"
  257. :page-sizes="[20,100,300,500]"
  258. :page.sync="queryParams.pageNum"
  259. :limit.sync="queryParams.pageSize"
  260. @pagination="getList"
  261. />
  262. <!-- 添加或修改特种设备电梯台账对话框 -->
  263. <el-dialog :close-on-click-modal="false" v-dialogDrag :title="title" :visible.sync="open" width="75%" append-to-body>
  264. <el-form ref="form" :model="form" :rules="rules" label-width="130px">
  265. <el-row>
  266. <el-col :span="6">
  267. <el-form-item :label="$t('装置')" prop="plantCode">
  268. <el-select v-model="form.plantCode" :placeholder="$t('请选择')+ $t('装置')" filterable clearable size="small"
  269. v-bind:disabled="dataForm == 1">
  270. <el-option
  271. v-for="dict in plantOptions"
  272. :key="dict.name"
  273. :label="dict.name"
  274. :value="dict.name"
  275. />
  276. </el-select>
  277. </el-form-item>
  278. </el-col>
  279. <el-col :span="6">
  280. <el-form-item :label="$t('单元')" prop="unit">
  281. <el-input v-model="form.unit" :placeholder="$t('请选择')+ $t('单元')"/>
  282. </el-form-item>
  283. </el-col>
  284. <el-col :span="12">
  285. <el-form-item :label="$t('档案号')" prop="docno">
  286. <el-input v-model="form.docno" :placeholder="$t('请输入')+ $t('档案号')"/>
  287. </el-form-item>
  288. </el-col>
  289. </el-row>
  290. <el-row>
  291. <el-col :span="12">
  292. <el-form-item :label="$t('使用部门')" prop="useDept">
  293. <el-input v-model="form.useDept" :placeholder="$t('请输入')+ $t('使用部门')"/>
  294. </el-form-item>
  295. </el-col>
  296. <el-col :span="12">
  297. <el-form-item :label="$t('装置维修组')" prop="plantMaint">
  298. <el-select v-model="form.plantMaint" :placeholder="$t('请选择')+ $t('装置维修组')" filterable clearable
  299. size="small">
  300. <el-option
  301. v-for="dict in plantMaintOptions"
  302. :key="dict.dictValue"
  303. :label="dict.dictValue"
  304. :value="dict.dictValue"
  305. />
  306. </el-select>
  307. </el-form-item>
  308. </el-col>
  309. </el-row>
  310. <el-row>
  311. <el-col :span="12">
  312. <el-form-item :label="$t('设备名称')" prop="devname">
  313. <el-input v-model="form.devname" :placeholder="$t('请输入') + $t('设备名称')"/>
  314. </el-form-item>
  315. </el-col>
  316. <el-col :span="12">
  317. <el-form-item :label="$t('设备代码')+ '(无设备代码填注册代码)'" prop="regno">
  318. <el-input v-model="form.regno" v-bind:disabled="dataForm == 1" :placeholder="$t('请输入') + $t('设备代码')"/>
  319. </el-form-item>
  320. </el-col>
  321. </el-row>
  322. <el-row>
  323. <el-col :span="12">
  324. <el-form-item :label="$t('型号')" prop="model">
  325. <el-input v-model="form.model" :placeholder="$t('请输入') + $t('型号')"/>
  326. </el-form-item>
  327. </el-col>
  328. <el-col :span="12">
  329. <el-form-item :label="$t('额定载重量')+'(kg)'" prop="capacity">
  330. <el-input v-model="form.capacity" :placeholder="$t('请输入') + $t('额定载重量')+'(kg)'"/>
  331. </el-form-item>
  332. </el-col>
  333. </el-row>
  334. <el-row>
  335. <el-col :span="12">
  336. <el-form-item :label="$t('层站数')" prop="floor">
  337. <el-input v-model="form.floor" :placeholder="$t('请输入') + $t('层站数')"/>
  338. </el-form-item>
  339. </el-col>
  340. <el-col :span="12">
  341. <el-form-item :label="$t('制造单位')" prop="createUnit">
  342. <el-input v-model="form.createUnit" :placeholder="$t('请输入') + $t('制造单位')"/>
  343. </el-form-item>
  344. </el-col>
  345. </el-row>
  346. <el-row>
  347. <el-col :span="12">
  348. <el-form-item :label="$t('使用地点')" prop="location">
  349. <el-input v-model="form.location" :placeholder="$t('请输入') + $t('使用地点')"/>
  350. </el-form-item>
  351. </el-col>
  352. <el-col :span="12">
  353. <el-form-item :label="$t('维保承包商')" prop="maintContractor">
  354. <el-input v-model="form.maintContractor" :placeholder="$t('请输入') + $t('维保承包商')"/>
  355. </el-form-item>
  356. </el-col>
  357. </el-row>
  358. <el-row>
  359. <el-col :span="12">
  360. <el-form-item :label="$t('初检日期')" prop="firstWarnDate">
  361. <el-date-picker clearable size="small" style="width: 200px"
  362. v-model="form.firstWarnDate"
  363. type="date"
  364. value-format="yyyy-MM-dd"
  365. :placeholder="$t('请选择') + $t('初检日期')">
  366. </el-date-picker>
  367. </el-form-item>
  368. </el-col>
  369. <el-col :span="12">
  370. <el-form-item :label="$t('检验日期')" prop="warnDate">
  371. <el-date-picker clearable size="small" style="width: 200px"
  372. v-model="form.warnDate"
  373. type="date"
  374. value-format="yyyy-MM-dd"
  375. :placeholder="$t('请选择') + $t('上次年检时间')">
  376. </el-date-picker>
  377. </el-form-item>
  378. </el-col>
  379. </el-row>
  380. <el-row>
  381. <el-col :span="12">
  382. <el-form-item :label="$t('检验单位')" prop="checkUnit">
  383. <el-input v-model="form.checkUnit" :placeholder="$t('请输入') + $t('检验单位')"/>
  384. </el-form-item>
  385. </el-col>
  386. <el-col :span="12">
  387. <el-form-item :label="$t('报告编号')" prop="reportNo">
  388. <el-input v-model="form.reportNo" :placeholder="$t('请输入') + $t('报告编号')"/>
  389. </el-form-item>
  390. </el-col>
  391. </el-row>
  392. <el-row>
  393. <el-col :span="12">
  394. <el-form-item :label="$t('下次检验日期')" prop="nextWarnDate">
  395. <el-date-picker clearable size="small" style="width: 200px"
  396. v-model="form.nextWarnDate"
  397. type="date"
  398. value-format="yyyy-MM-dd"
  399. :placeholder="$t('请选择') + $t('下次检验日期')">
  400. </el-date-picker>
  401. </el-form-item>
  402. </el-col>
  403. <el-col :span="12">
  404. <el-form-item :label="$t('备注')" prop="remarks">
  405. <el-input v-model="form.remarks" :placeholder="$t('请输入') + $t('备注')"/>
  406. </el-form-item>
  407. </el-col>
  408. </el-row>
  409. <el-row>
  410. <el-col :span="12">
  411. <el-form-item :label="$t('定期检验结论')" prop="perTestConclusion">
  412. <el-input v-model="form.perTestConclusion" type="textarea" :placeholder="$t('请输入')+ $t('定期检验结论')"/>
  413. </el-form-item>
  414. </el-col>
  415. <el-col :span="12">
  416. <el-form-item v-if="dataForm == 0" :label="$t('确认人')" prop="wxjl">
  417. <el-select v-model="form.wxjl" :placeholder="$t('请选择')+ $t('装置维修经理')" filterable clearable size="small">
  418. <el-option
  419. v-for="dict in wxjlList"
  420. :key="dict.userId"
  421. :label="dict.nickName"
  422. :value="dict.userId"
  423. />
  424. </el-select>
  425. </el-form-item>
  426. </el-col>
  427. </el-row>
  428. <el-row>
  429. <el-col :span="12">
  430. <el-form-item :label="$t('备注2')" prop="remarks2">
  431. <el-input v-model="form.remarks2" :placeholder="$t('请输入') + $t('备注2')"/>
  432. </el-form-item>
  433. </el-col>
  434. </el-row>
  435. </el-form>
  436. <div slot="footer" class="dialog-footer">
  437. <el-button type="primary" @click="submitForm">{{ $t('确 定') }}</el-button>
  438. <el-button @click="cancel">{{ $t('取 消') }}</el-button>
  439. </div>
  440. </el-dialog>
  441. <!-- 批量修改 -->
  442. <el-dialog :close-on-click-modal="false" v-dialogDrag :title="title" :visible.sync="openBatch" width="50%" append-to-body>
  443. <el-form ref="form" :model="form" label-width="160px">
  444. <el-form-item>
  445. <h3>已选择 {{ ids.length }} 条数据 </h3>
  446. </el-form-item>
  447. <el-form-item :label="$t('装置维修工程师')" prop="engineer">
  448. <el-input v-model="form.engineer" :placeholder="$t('请输入')+ $t('装置维修工程师')"/>
  449. </el-form-item>
  450. <el-form-item :label="$t('备注')" prop="remarks">
  451. <el-input v-model="form.remarks" type="textarea" :placeholder="$t('请输入')+ $t('内容')"/>
  452. </el-form-item>
  453. <el-form-item :label="$t('备注2')" prop="remarks2">
  454. <el-input v-model="form.remarks2" type="textarea" :placeholder="$t('请输入')+ $t('内容')"/>
  455. </el-form-item>
  456. </el-form>
  457. <div slot="footer" class="dialog-footer">
  458. <el-button type="primary" @click="submitFormBatch">{{ $t('确 定') }}</el-button>
  459. <el-button @click="cancelBatch">{{ $t('取 消') }}</el-button>
  460. </div>
  461. </el-dialog>
  462. <!-- 用户导入对话框 -->
  463. <el-dialog :close-on-click-modal="false" v-dialogDrag :title="upload.title" :visible.sync="upload.open" width="400px" append-to-body>
  464. <div style="margin-bottom: 20px;">
  465. {{ $t('确认人') }}
  466. <el-select v-model="upload.submitData.wxjl" :placeholder="$t('请选择')+ $t('装置维修经理')" filterable clearable
  467. size="small">
  468. <el-option
  469. v-for="dict in wxjlList"
  470. :key="dict.userId"
  471. :label="dict.nickName"
  472. :value="dict.userId"
  473. />
  474. </el-select>
  475. </div>
  476. <el-upload
  477. ref="upload"
  478. :limit="1"
  479. accept=".xlsx, .xls"
  480. :data="upload.submitData"
  481. :headers="upload.headers"
  482. :action="upload.url + '?updateSupport=' + upload.updateSupport"
  483. :disabled="upload.isUploading"
  484. :on-progress="handleFileUploadProgress"
  485. :on-success="handleFileSuccess"
  486. :auto-upload="false"
  487. drag
  488. >
  489. <i class="el-icon-upload"></i>
  490. <div class="el-upload__text">
  491. {{ $t('将文件拖到此处,或') }}
  492. <em>{{ $t('点击上传') }}</em>
  493. </div>
  494. <div class="el-upload__tip" slot="tip">
  495. <!-- <el-checkbox v-model="upload.updateSupport" />{{ $t('是否更新已经存在的用户数据') }}-->
  496. <el-link type="info" style="font-size:12px" @click="importTemplate">{{ $t('下载模板') }}</el-link>
  497. </div>
  498. <form ref="downloadFileForm" :action="upload.downloadAction" target="FORMSUBMIT">
  499. <input name="type" :value="upload.type" hidden/>
  500. </form>
  501. <div class="el-upload__tip" style="color:red" slot="tip">{{ $t('提示:仅允许导入“xls”或“xlsx”格式文件!') }}</div>
  502. <div class="el-upload__tip" style="color:red" slot="tip"> Excel单元格式为文本格式 </div>
  503. </el-upload>
  504. <div slot="footer" class="dialog-footer">
  505. <a v-if="waitSubmit" style="margin-right: 300px">{{ $t('正在导入...') }}</a>
  506. <el-button type="primary" @click="submitFileForm"
  507. v-loading.fullscreen.lock="fullscreenLoading">{{ $t('确 定') }}
  508. </el-button>
  509. <el-button @click="upload.open = false">{{ $t('取 消') }}</el-button>
  510. </div>
  511. </el-dialog>
  512. <form ref="downloadDevForm" :action="downloadDevAction" target="FORMSUBMIT">
  513. <input name="devType" v-model="devType" hidden/>
  514. <input name="ids" v-model="ids" hidden/>
  515. <input name="downloadType" v-model="downloadType" hidden/>
  516. </form>
  517. <el-dialog :close-on-click-modal="false" :title="$t('检验更新')" width="30%" :visible.sync="inspectionInformation">
  518. <el-form ref="dateform" label-width="120px">
  519. <el-form-item>
  520. <span>{{ $t('已选择') }} {{ dataListSelections.length }}</span>
  521. </el-form-item>
  522. <el-form-item>
  523. <el-button type="primary" :disabled="dataListSelections.length <= 0" @click="downloadDev(2)">
  524. {{ $t('downloadSelect') }}
  525. </el-button>
  526. </el-form-item>
  527. <el-upload
  528. class="upload-demo"
  529. drag
  530. ref="upload"
  531. :limit="5"
  532. :show-file-list="false"
  533. :on-success="handleFileSuccess"
  534. :auto-upload="true"
  535. :headers="upload.headers"
  536. :action="uploadUrl(2)"
  537. multiple>
  538. <i class="el-icon-upload"></i>
  539. <div class="el-upload__text">{{ $t('文件') }}<em>{{ $t('点击上传') }}</em></div>
  540. <div class="el-upload__tip" slot="tip">{{ $t('仅支持excel格式') }}</div>
  541. </el-upload>
  542. </el-form>
  543. <div slot="footer" class="dialog-footer">
  544. <el-button @click="inspectionInformation = false">{{ $t('返回') }}</el-button>
  545. </div>
  546. </el-dialog>
  547. <el-dialog :close-on-click-modal="false" v-dialogDrag :title="modifyTitle" :visible.sync="modifyVisible" width="550px" append-to-body>
  548. <el-form ref="modifyForm" :model="modifyForm" :rules="modifyRules">
  549. <el-form-item :label="$t('确认人')" prop="wxjl">
  550. <el-select v-model="modifyForm.wxjl" :placeholder="$t('请选择')+ $t('装置维修经理')" filterable clearable size="small">
  551. <el-option
  552. v-for="dict in wxjlList"
  553. :key="dict.userId"
  554. :label="dict.nickName"
  555. :value="dict.userId"
  556. />
  557. </el-select>
  558. </el-form-item>
  559. </el-form>
  560. <el-button type="primary" @click="submitModofyForm">{{ $t('提交') }}</el-button>
  561. </el-dialog>
  562. <add-approve v-if="addAprroveVisible" ref="addApprove" @refreshDataList="getList"></add-approve>
  563. <his-approve v-if="hisAprroveVisible" ref="hisApprove" @refreshDataList="getList"></his-approve>
  564. <his-check v-if="hisCheckVisible" ref="hisCheck" @refreshDataList="getList"></his-check>
  565. <HisReform v-if="hisReformVisible" ref="hisReformList"></HisReform>
  566. </div>
  567. </template>
  568. <script>
  569. import {
  570. addSpecDt,
  571. duplicate,
  572. exportSpecDt,
  573. getSpecDt,
  574. listSpecDt,
  575. updateSpecDt,
  576. exportSpecList,
  577. updateSpecDtBatch
  578. } from "@/api/sems/specDt";
  579. import {treeselect} from "@/api/system/dept";
  580. import {getToken} from "@/utils/auth";
  581. import Treeselect from "@riophae/vue-treeselect";
  582. import "@riophae/vue-treeselect/dist/vue-treeselect.css";
  583. import AddApprove from "../approve/tapprove-add"
  584. import {mylistPlant} from "@/api/system/plant";
  585. import HisApprove from "../approve/tapprove-his"
  586. import HisCheck from "../check/check"
  587. import {listPostUser} from "@/api/system/user";
  588. import {addModify} from "@/api/sems/his/modify";
  589. import HisReform from "./specDt-hisReform";
  590. import {updateSpecDzsbBatch} from "@/api/sems/specDzsb";
  591. export default {
  592. name: "SpecDt",
  593. components: {Treeselect, AddApprove, HisApprove, HisCheck, HisReform},
  594. data() {
  595. return {
  596. filterList: [], //删选的list
  597. fullscreenLoading: false,
  598. waitSubmit: false,
  599. hisReformVisible: false,
  600. dataForm: 0,
  601. devType: 5,
  602. // 遮罩层
  603. loading: true,
  604. addAprroveVisible: false,
  605. hisAprroveVisible: false,
  606. hisCheckVisible: false,
  607. inspectionInformation: false,
  608. downloadType: '',
  609. downloadDevAction: process.env.VUE_APP_BASE_API + '/common/download/exportDevList',
  610. modifyTitle: this.$t('设备修改申请'),
  611. modifyVisible: false,
  612. // 选中数组
  613. ids: [],
  614. dataListSelections: [],
  615. // 非单个禁用
  616. single: true,
  617. // 非多个禁用
  618. multiple: true,
  619. // 显示搜索条件
  620. showSearch: false,
  621. // 总条数
  622. total: 0,
  623. // 特种设备电梯台账表格数据
  624. specDtList: [],
  625. // 弹出层标题
  626. title: "",
  627. // 部门树选项
  628. deptOptions: undefined,
  629. clientHeight: 300,
  630. // 是否显示弹出层
  631. open: false,
  632. openBatch: false,
  633. // 状态字典
  634. statusOptions: [],
  635. // 申请状态字典
  636. approveStatusOptions: [],
  637. plantOptions: [],
  638. plantMaintOptions: [],
  639. wxjlList: [],
  640. // 用户导入参数
  641. upload: {
  642. downloadAction: process.env.VUE_APP_BASE_API + '/common/template',
  643. // 是否显示弹出层(用户导入)
  644. type: "specDt",
  645. // 是否显示弹出层(用户导入)
  646. open: false,
  647. // 弹出层标题(用户导入)
  648. title: "",
  649. // 是否禁用上传
  650. isUploading: false,
  651. // 是否更新已经存在的用户数据
  652. updateSupport: 0,
  653. // 设置上传的请求头部
  654. headers: {Authorization: "Bearer " + getToken()},
  655. // 上传的地址
  656. url: process.env.VUE_APP_BASE_API + "/sems/specDt/importData",
  657. submitData: {wxjl: null}
  658. },
  659. // 查询参数
  660. queryParams: {
  661. searchValue: null,
  662. pageNum: 1,
  663. pageSize: 20,
  664. orderByColumn: null,
  665. isAsc: null,
  666. plantCode: null,
  667. unit: null,
  668. devname: null,
  669. devno: null,
  670. status: 1,
  671. },
  672. // 表单参数
  673. form: {},
  674. modifyForm: {},
  675. // 表单校验
  676. rules: {
  677. plantCode: [
  678. {required: true, message: this.$t('装置名称') + this.$t('不能为空'), trigger: "blur"}
  679. ],
  680. wxjl: [
  681. {required: true, message: this.$t('维修经理') + this.$t('不能为空'), trigger: "blur"}
  682. ],
  683. },
  684. modifyRules: {
  685. wxjl: [
  686. {required: true, message: this.$t('维修经理') + this.$t('不能为空'), trigger: "blur"}
  687. ],
  688. }
  689. };
  690. },
  691. watch: {
  692. // 根据名称筛选部门树
  693. deptName(val) {
  694. this.$refs.tree.filter(val);
  695. }
  696. },
  697. created() {
  698. //设置表格高度对应屏幕高度
  699. this.$nextTick(() => {
  700. this.clientHeight = document.body.clientHeight - 250
  701. })
  702. this.getList();
  703. this.getTreeselect();
  704. this.getDicts("spec_dev_status").then(response => {
  705. this.statusOptions = response.data;
  706. });
  707. //预警等级字典
  708. this.getDicts("WARNING_SELE").then(response => {
  709. for (let i = 0; i < response.data.length; i++) {
  710. let items = {
  711. text: '',
  712. value: ''
  713. };
  714. items.value = response.data[i].dictValue;
  715. items.text = response.data[i].dictLabel;
  716. this.filterList.push(items);
  717. }
  718. });
  719. this.getDicts("spec_approve_status").then(response => {
  720. for (let i = 0; i < response.data.length; i++) {
  721. if (!["5", "6", "7", "8", "16", "17"].includes(response.data[i].dictValue)) {
  722. this.approveStatusOptions.push(response.data[i])
  723. }
  724. }
  725. });
  726. let plantParams = {
  727. pType: 1
  728. }
  729. mylistPlant(plantParams).then(response => {
  730. this.plantOptions = response.data;
  731. });
  732. this.getDicts("SPEC_PLANT_MAINT").then(response => {
  733. this.plantMaintOptions = response.data;
  734. });
  735. this.queryParams.postCode = 'wxjl'
  736. listPostUser(this.queryParams).then(response => {
  737. this.wxjlList = response;
  738. });
  739. },
  740. methods: {
  741. /** 查询特种设备电梯台账列表 */
  742. getList() {
  743. this.loading = true;
  744. listSpecDt(this.queryParams).then(response => {
  745. this.specDtList = response.rows;
  746. this.total = response.total;
  747. this.$nextTick(() => {
  748. this.$refs.deviceTable.doLayout(); // 解决表格错位
  749. });
  750. this.loading = false;
  751. });
  752. },
  753. /** 查询部门下拉树结构 */
  754. getTreeselect() {
  755. treeselect().then(response => {
  756. this.deptOptions = response.data;
  757. });
  758. },
  759. // 状态字典翻译
  760. statusFormat(row, column) {
  761. return this.selectDictLabel(this.statusOptions, row.status);
  762. },
  763. // 申请状态字典翻译
  764. approveStatusFormat(row, column) {
  765. return this.selectDictLabel(this.approveStatusOptions, row.approveStatus);
  766. },
  767. // 取消按钮
  768. cancel() {
  769. this.open = false;
  770. this.reset();
  771. },
  772. // 表单重置
  773. reset() {
  774. this.form = {
  775. id: null,
  776. plantCode: null,
  777. unit: null,
  778. devname: null,
  779. devno: null,
  780. createdate: null,
  781. submitdate: null,
  782. status: 1,
  783. delFlag: null,
  784. createrCode: null,
  785. createrDate: null,
  786. updaterCode: null,
  787. updaterDate: null,
  788. deptId: null,
  789. remarks: null,
  790. remarks2: null,
  791. perTestConclusion: null,
  792. approveStatus: 0,
  793. regno: null,
  794. useno: null,
  795. warnDate: null,
  796. warnCycle: null,
  797. nextWarnDate: null,
  798. warnFlag: null,
  799. model: null,
  800. capacity: null,
  801. floor: null,
  802. createUnit: null,
  803. maintContractor: null,
  804. location: null,
  805. checkStrategy: null,
  806. firstWarnDate: null,
  807. checkUnit: null,
  808. docno: null,
  809. approveTime: null,
  810. changeTime: null,
  811. reportNo: null,
  812. wxjl: null
  813. };
  814. this.dataForm = 0;
  815. this.resetForm("form");
  816. },
  817. /** 搜索按钮操作 */
  818. handleQuery() {
  819. this.queryParams.pageNum = 1;
  820. this.getList();
  821. },
  822. /** 重置按钮操作 */
  823. resetQuery() {
  824. this.resetForm("queryForm");
  825. this.handleQuery();
  826. },
  827. // 多选框选中数据
  828. handleSelectionChange(selection) {
  829. this.ids = selection.map(item => item.id)
  830. this.single = selection.length !== 1
  831. this.multiple = !selection.length
  832. this.dataListSelections = selection
  833. },
  834. /** 新增按钮操作 */
  835. handleAdd() {
  836. this.reset();
  837. this.open = true;
  838. this.title = this.$t('添加') + this.$t('特种设备电梯台账');
  839. },
  840. /** 修改按钮操作 */
  841. handleUpdate(row) {
  842. this.reset();
  843. const id = row.id || this.ids
  844. var rows = this.dataListSelections.map(item => {
  845. return item
  846. })
  847. for (let i = 0; i < rows.length; i++) {
  848. if (rows[i].approveStatus != 0) {
  849. this.$alert(this.$t('当前设备正在申请中,无法修改'), this.$t('提示'), {
  850. type: 'warning'
  851. })
  852. return
  853. }
  854. }
  855. this.dataForm = 1;
  856. getSpecDt(id).then(response => {
  857. this.form = response.data;
  858. this.open = true;
  859. this.title = this.$t('修改') + this.$t('特种设备电梯台账');
  860. });
  861. },
  862. /** 去重按钮操作 */
  863. handleDup() {
  864. this.$confirm(this.$t('是否确认删除?'), this.$t('警告'), {
  865. confirmButtonText: this.$t('确定'),
  866. cancelButtonText: this.$t('取消'),
  867. type: "warning"
  868. }).then(function () {
  869. return duplicate();
  870. }).then(() => {
  871. this.getList();
  872. this.msgSuccess(this.$t('删除成功'));
  873. })
  874. },
  875. /** 提交按钮 */
  876. submitForm() {
  877. this.$refs["form"].validate(valid => {
  878. if (valid) {
  879. if (this.form.id != null) {
  880. updateSpecDt(this.form).then(response => {
  881. this.msgSuccess(this.$t('修改成功'));
  882. this.open = false;
  883. this.getList();
  884. });
  885. /*updateSpecDtPre(this.form).then(response => {
  886. this.open = false;
  887. this.getList();
  888. this.modifyForm.hisId = response.data
  889. this.modifyForm.devId = this.form.id
  890. this.modifyForm.devType = this.devType
  891. this.modifyForm.approveType = 1
  892. this.modifyVisible = true
  893. this.modifyTitle = this.$t('设备修改申请')
  894. this.queryParams.postCode = 'wxjl'
  895. listPostUser(this.queryParams).then(response => {
  896. this.wxjlList = response;
  897. });
  898. });*/
  899. } else {
  900. addSpecDt(this.form).then(response => {
  901. this.msgSuccess(this.$t('新增成功'));
  902. this.open = false;
  903. this.getList();
  904. });
  905. }
  906. }
  907. });
  908. },
  909. handleBatch(){
  910. this.reset();
  911. this.title = this.$t('修改') + this.$t('特种设备电梯台账');
  912. this.openBatch = true
  913. },
  914. submitFormBatch(){
  915. this.$refs["form"].validate(valid => {
  916. if (valid) {
  917. this.form.ids = this.ids
  918. updateSpecDtBatch(this.form).then(response => {
  919. this.msgSuccess("修改成功");
  920. this.open = false;
  921. this.getList();
  922. });
  923. }
  924. });
  925. },
  926. /** 删除按钮操作 */
  927. handleDelete(row) {
  928. const ids = row.id || this.ids;
  929. var rows = this.dataListSelections.map(item => {
  930. return item
  931. })
  932. for (let i = 0; i < rows.length; i++) {
  933. if (rows[i].approveStatus != 0) {
  934. this.$alert(this.$t('当前设备正在申请中,无法修改'), this.$t('提示'), {
  935. type: 'warning'
  936. })
  937. return
  938. }
  939. }
  940. for (let i = 0; i < rows.length; i++) {
  941. if (i == 0) {
  942. this.modifyForm.devId = rows[i].id
  943. } else {
  944. this.modifyForm.devId += ',' + rows[i].id
  945. }
  946. }
  947. this.open = false;
  948. this.getList();
  949. this.modifyForm.hisId = 2
  950. this.modifyForm.devType = this.devType
  951. this.modifyForm.approveType = 2
  952. this.modifyVisible = true
  953. this.modifyTitle = this.$t('设备删除申请')
  954. this.queryParams.postCode = 'wxjl'
  955. listPostUser(this.queryParams).then(response => {
  956. this.wxjlList = response;
  957. });
  958. // this.$confirm(this.$t('是否确认删除?'), this.$t('警告'), {
  959. // confirmButtonText: this.$t('确定'),
  960. // cancelButtonText: this.$t('取消'),
  961. // type: "warning"
  962. // }).then(function() {
  963. // return delSpecDt(ids);
  964. // }).then(() => {
  965. // this.getList();
  966. // this.msgSuccess(this.$t('删除成功'));
  967. // })
  968. },
  969. /** 导出按钮操作 */
  970. handleExport() {
  971. const queryParams = this.queryParams;
  972. this.$confirm(this.$t('是否确认导出所有特种设备电梯台账数据项?'), this.$t('警告'), {
  973. confirmButtonText: this.$t('确定'),
  974. cancelButtonText: this.$t('取消'),
  975. type: "warning"
  976. }).then(function () {
  977. return exportSpecDt(queryParams);
  978. }).then(response => {
  979. this.download(response.msg);
  980. })
  981. },
  982. /** 导入按钮操作 */
  983. handleImport() {
  984. this.upload.title = this.$t('用户导入');
  985. this.upload.open = true;
  986. },
  987. /** 下载模板操作 */
  988. importTemplate() {
  989. this.$refs['downloadFileForm'].submit()
  990. },
  991. // 文件上传中处理
  992. handleFileUploadProgress(event, file, fileList) {
  993. this.waitSubmit = true;
  994. this.upload.isUploading = true;
  995. },
  996. // 文件上传成功处理
  997. handleFileSuccess(response, file, fileList) {
  998. this.waitSubmit = false;
  999. this.upload.open = false;
  1000. this.upload.isUploading = false;
  1001. this.$refs.upload.clearFiles();
  1002. this.fullscreenLoading = false;
  1003. if (response.data.length > 0) {
  1004. let failrow = ''
  1005. for (let i = 0; i < response.data.length; i++) {
  1006. failrow += response.data[i] + ','
  1007. }
  1008. this.$alert(this.$t('导入成功条数:') + response.msg + '<br>' + this.$t('失败行数:') + failrow, this.$t('导入结果'), {dangerouslyUseHTMLString: true});
  1009. } else {
  1010. this.$alert(this.$t('导入成功条数:') + response.msg, this.$t('导入结果'), {dangerouslyUseHTMLString: true});
  1011. }
  1012. this.getList();
  1013. },
  1014. // 提交上传文件
  1015. submitFileForm() {
  1016. if (!this.upload.submitData.wxjl) {
  1017. this.$alert('请选择确认人', this.$t('提示'), {
  1018. type: 'warning'
  1019. })
  1020. return
  1021. }
  1022. this.$refs.upload.submit();
  1023. this.fullscreenLoading = true;
  1024. },
  1025. addAprrove(row, type) {
  1026. var rows = row ? [row] : this.dataListSelections.map(item => {
  1027. return item
  1028. })
  1029. for (let i = 0; i < rows.length; i++) {
  1030. if (rows[i].approveStatus != 0) {
  1031. this.$alert(this.$t('当前设备正在申请中,无法重复申请'), this.$t('提示'), {
  1032. type: 'warning'
  1033. })
  1034. return
  1035. }
  1036. }
  1037. this.addAprroveVisible = true
  1038. console.log(rows)
  1039. console.log(type)
  1040. this.$nextTick(() => {
  1041. this.$refs.addApprove.init(rows, type)
  1042. })
  1043. },
  1044. hisApprove(row, type) {
  1045. this.hisAprroveVisible = true
  1046. this.$nextTick(() => {
  1047. this.$refs.hisApprove.init(row, type)
  1048. })
  1049. },
  1050. checkList(row, type) {
  1051. this.hisCheckVisible = true
  1052. this.$nextTick(() => {
  1053. this.$refs.hisCheck.init(row, type)
  1054. })
  1055. },
  1056. hisReform(row) {
  1057. this.hisReformVisible = true
  1058. this.$nextTick(() => {
  1059. this.$refs.hisReformList.init(row);
  1060. })
  1061. },
  1062. //导出excel
  1063. downloadDev(type) {
  1064. var rows = this.dataListSelections.map(item => {
  1065. return item.id
  1066. })
  1067. const queryParams = {ids: null};
  1068. queryParams.ids = rows.join()
  1069. exportSpecList(queryParams).then(response => {
  1070. this.download(response.msg);
  1071. })
  1072. // var rows = this.dataListSelections.map(item => {
  1073. // return item.id
  1074. // })
  1075. // this.ids = rows
  1076. // if (type == 1){
  1077. // this.downloadType = 1
  1078. // }else if (type == 2){
  1079. // this.downloadType = 2
  1080. // }
  1081. // this.$nextTick(() => {
  1082. // this.$refs['downloadDevForm'].submit()
  1083. // })
  1084. },
  1085. uploadUrl(uploadType) {
  1086. return process.env.VUE_APP_BASE_API + "/sems/specDt/updateData"
  1087. },
  1088. submitModofyForm() {
  1089. this.$refs["modifyForm"].validate(valid => {
  1090. if (valid) {
  1091. addModify(this.modifyForm).then(response => {
  1092. this.msgSuccess(this.$t('提交成功'));
  1093. this.modifyVisible = false
  1094. this.getList();
  1095. });
  1096. }
  1097. })
  1098. },
  1099. //位号颜色变换
  1100. tableCellStyle({row, column, rowIndex, columnIndex}) {
  1101. if (columnIndex == 5 && row.isRepeat == 1) {
  1102. return "color:rgba(255, 26, 26, 0.98);"
  1103. }
  1104. if (row.warnFlag == 1) {
  1105. return "background-color:rgba(255, 255,153, 0.5);"
  1106. }
  1107. if (row.warnFlag == 2) {
  1108. return "background-color:rgba(255, 180, 68, 0.5);"
  1109. }
  1110. if (row.warnFlag == 3) {
  1111. return "background-color:rgba(255, 68,68, 0.5);"
  1112. }
  1113. },
  1114. //element表格排序
  1115. sortList(val) {
  1116. var sort = "asc";
  1117. let sortTip = val.order
  1118. this.queryParams.isAsc = sort;
  1119. this.queryParams.orderByColumn = val.prop;
  1120. if (sortTip === 'descending') {
  1121. sort = 'desc' // 降序
  1122. } else if (sortTip === 'ascending') {
  1123. sort = 'asc' // 升序
  1124. } else if (sortTip === null) {
  1125. this.queryParams.isAsc = null;
  1126. this.queryParams.orderByColumn = null;
  1127. }
  1128. this.loading = true;
  1129. listSpecDt(this.queryParams).then(response => {
  1130. this.specDtList = response.rows;
  1131. this.total = response.total;
  1132. this.$nextTick(() => {
  1133. this.$refs.deviceTable.doLayout(); // 解决表格错位
  1134. });
  1135. this.loading = false;
  1136. });
  1137. },
  1138. //备注
  1139. remarksHeader(h, {column, $index}) {
  1140. return [
  1141. column.label,
  1142. h(
  1143. "el-tooltip",
  1144. {
  1145. props: {
  1146. content: (function () {
  1147. return '如报告未到备注在此处'
  1148. })(),
  1149. placement: "top"
  1150. }
  1151. },
  1152. [
  1153. h("span", {
  1154. class: {
  1155. "el-icon-question": true,
  1156. "report-headerTips": true
  1157. }
  1158. })
  1159. ]
  1160. )
  1161. ]
  1162. },
  1163. }
  1164. };
  1165. </script>