index.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666
  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="单元号" prop="unit">
  5. <el-input
  6. v-model="queryParams.unit"
  7. placeholder="请输入单元号"
  8. clearable
  9. size="small"
  10. @keyup.enter.native="handleQuery"
  11. />
  12. </el-form-item>
  13. <el-form-item label="P&ID图号" prop="pidNo">
  14. <el-input
  15. v-model="queryParams.pidNo"
  16. placeholder="请输入P&ID图号"
  17. clearable
  18. size="small"
  19. @keyup.enter.native="handleQuery"
  20. />
  21. </el-form-item>
  22. <el-form-item label="呼吸阀位号" prop="devNo">
  23. <el-input
  24. v-model="queryParams.devNo"
  25. placeholder="请输入呼吸阀位号"
  26. clearable
  27. size="small"
  28. @keyup.enter.native="handleQuery"
  29. />
  30. </el-form-item>
  31. <el-form-item>
  32. <el-button type="cyan" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
  33. <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
  34. </el-form-item>
  35. </el-form>
  36. <el-row :gutter="10" class="mb8">
  37. <el-col :span="1.5">
  38. <el-button
  39. type="primary"
  40. icon="el-icon-plus"
  41. size="mini"
  42. @click="handleAdd"
  43. v-hasPermi="['pssr:safetyBreath:add']"
  44. v-if="isApprove==0"
  45. >新增
  46. </el-button>
  47. </el-col>
  48. <el-col :span="1.5">
  49. <el-button
  50. type="success"
  51. icon="el-icon-edit"
  52. size="mini"
  53. :disabled="single"
  54. @click="handleUpdate"
  55. v-hasPermi="['pssr:safetyBreath:edit']"
  56. v-if="isApprove==0"
  57. >修改
  58. </el-button>
  59. </el-col>
  60. <el-col :span="1.5">
  61. <el-button
  62. type="danger"
  63. icon="el-icon-delete"
  64. size="mini"
  65. :disabled="multiple"
  66. @click="handleDelete"
  67. v-hasPermi="['pssr:safetyBreath:remove']"
  68. v-if="isApprove==0"
  69. >删除
  70. </el-button>
  71. </el-col>
  72. <el-col :span="1.5">
  73. <el-button
  74. type="info"
  75. icon="el-icon-upload2"
  76. size="mini"
  77. @click="handleImport"
  78. v-hasPermi="['pssr:safetyBreath:edit']"
  79. v-if="isApprove==0"
  80. >导入
  81. </el-button>
  82. </el-col>
  83. <el-col :span="1.5">
  84. <el-button
  85. type="warning"
  86. icon="el-icon-download"
  87. size="mini"
  88. @click="handleExport"
  89. v-hasPermi="['pssr:safetyBreath:export']"
  90. v-if="isApprove==0"
  91. >导出
  92. </el-button>
  93. </el-col>
  94. <el-col :span="1.5">
  95. <el-button
  96. type="success"
  97. icon="el-icon-s-promotion"
  98. size="mini"
  99. @click="handleApprove"
  100. v-if="isApprove==0"
  101. v-hasPermi="['pssr:safetyBreath:edit']"
  102. >发起审批
  103. </el-button>
  104. </el-col>
  105. <el-col :span="1.5">
  106. <el-button
  107. type="primary"
  108. icon="el-icon-check"
  109. size="mini"
  110. v-if="isApprove==4||isApprove==5"
  111. @click="handleConfirmApprove"
  112. v-hasPermi="['pssr:safetyBreath:edit']"
  113. >确认
  114. </el-button>
  115. </el-col>
  116. <el-col :span="1.5">
  117. <el-button
  118. type="danger"
  119. icon="el-icon-refresh-left"
  120. size="mini"
  121. v-if="isApprove==2"
  122. :disabled="multiple"
  123. @click="handleTurnDown"
  124. v-hasPermi="['pssr:safetyBreath:edit']"
  125. >驳回
  126. </el-button>
  127. </el-col>
  128. <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
  129. </el-row>
  130. <div style="width: 100%;text-align: center;margin-bottom: 15px">
  131. <h2>呼吸阀检查清单</h2>
  132. <br>
  133. <span>检查内容:所有的呼吸阀是否已经校验,是否在有效期内,并确认安装位置是否正确,是否投用,核对呼吸阀校验压力和设定压力是否一致,是(√),否(×),如有不符合要求的立即联系负责人整改。</span>
  134. </div>
  135. <el-table v-loading="loading" :data="safetyBreathList" @selection-change="handleSelectionChange"
  136. :height="clientHeight" border>
  137. <el-table-column type="selection" width="55" align="center"/>
  138. <el-table-column label="审批状态" align="center" prop="approveStatus" width="105">
  139. <template slot-scope="scope">
  140. <el-tag v-if="scope.row.approveStatus==0">未审批</el-tag>
  141. <el-tag v-if="scope.row.approveStatus==1" type="warning">待确认</el-tag>
  142. <el-tag v-if="scope.row.approveStatus==3" type="success">已确认1</el-tag>
  143. <el-tag v-if="scope.row.approveStatus==2" type="success">已确认2</el-tag>
  144. </template>
  145. </el-table-column>
  146. <el-table-column label="单元号" align="center" prop="unit" :show-overflow-tooltip="true" width="120"/>
  147. <el-table-column label="P&ID图号" align="center" prop="pidNo" :show-overflow-tooltip="true" width="120"/>
  148. <el-table-column label="呼吸阀位号" align="center" prop="devNo" :show-overflow-tooltip="true" width="120"/>
  149. <el-table-column label="已经校验(是/否)" align="center" prop="verify" :show-overflow-tooltip="true" width="180"/>
  150. <el-table-column label="在有效期内(是/否)" align="center" prop="inValidity" :show-overflow-tooltip="true" width="180"/>
  151. <el-table-column label="安装位置" align="center" prop="installLocation" :show-overflow-tooltip="true"
  152. width="180"/>
  153. <el-table-column label="安装位置准确(是/否)" align="center" prop="installAccuracy" :show-overflow-tooltip="true"
  154. width="180"/>
  155. <el-table-column label="投用(是/否)" align="center" prop="putUse" :show-overflow-tooltip="true" width="180"/>
  156. <el-table-column label="设定压力(Kpa)" align="center" prop="setPressure" :show-overflow-tooltip="true" width="180"/>
  157. <el-table-column label="校验压力与设定压力一致(是/否)" align="center" prop="uniformPressure"
  158. :show-overflow-tooltip="true" width="230"/>
  159. <el-table-column label="确认人1" align="center" prop="confirmer1" :show-overflow-tooltip="true" width="120">
  160. <template slot-scope="scope">
  161. <span>{{ userFormat(scope.row.confirmer1) }}</span>
  162. </template>
  163. </el-table-column>
  164. <el-table-column label="确认人2" align="center" prop="confirmer2" :show-overflow-tooltip="true" width="120">
  165. <template slot-scope="scope">
  166. <span>{{ userFormat(scope.row.confirmer2) }}</span>
  167. </template>
  168. </el-table-column>
  169. <el-table-column label="时间" align="center" prop="confirmationTime" :show-overflow-tooltip="true" width="120">
  170. <template slot-scope="scope">
  171. <span>{{ parseTime(scope.row.confirmationDate, '{y}-{m}-{d}') }}</span>
  172. </template>
  173. </el-table-column>
  174. <el-table-column label="备注" align="center" prop="remarks" :show-overflow-tooltip="true" width="120"/>
  175. <el-table-column label="操作" align="center" fixed="right" v-if="isApprove==0" width="120"
  176. class-name="small-padding fixed-width">
  177. <template slot-scope="scope">
  178. <el-button
  179. size="mini"
  180. type="text"
  181. icon="el-icon-folder"
  182. v-if="scope.row.approveStatus!=2"
  183. @click="handleDoc(scope.row)"
  184. >附件
  185. </el-button>
  186. <el-button
  187. size="mini"
  188. type="text"
  189. icon="el-icon-edit"
  190. @click="handleUpdate(scope.row)"
  191. v-hasPermi="['pssr:safetyBreath:edit']"
  192. >修改
  193. </el-button>
  194. <el-button
  195. size="mini"
  196. type="text"
  197. icon="el-icon-delete"
  198. @click="handleDelete(scope.row)"
  199. v-hasPermi="['pssr:safetyBreath:remove']"
  200. >删除
  201. </el-button>
  202. </template>
  203. </el-table-column>
  204. </el-table>
  205. <pagination
  206. v-show="total>0"
  207. :total="total"
  208. :page.sync="queryParams.pageNum"
  209. :limit.sync="queryParams.pageSize"
  210. @pagination="getList"
  211. />
  212. <!-- 添加或修改安全设施-呼吸阀对话框 -->
  213. <el-dialog :close-on-click-modal="false" :title="title" :visible.sync="open" width="500px" append-to-body>
  214. <el-form ref="form" :model="form" :rules="rules" label-width="80px">
  215. <el-form-item label="单元号" prop="unit">
  216. <el-input v-model="form.unit" placeholder="请输入单元号"/>
  217. </el-form-item>
  218. <el-form-item label="P&ID图号" prop="pidNo">
  219. <el-input v-model="form.pidNo" placeholder="请输入P&ID图号"/>
  220. </el-form-item>
  221. <el-form-item label="呼吸阀位号" prop="devNo">
  222. <el-input v-model="form.devNo" placeholder="请输入呼吸阀位号"/>
  223. </el-form-item>
  224. <el-form-item label="已经校验" prop="verify">
  225. <el-input v-model="form.verify" placeholder="请输入已经校验"/>
  226. </el-form-item>
  227. <el-form-item label="在有效期内" prop="inValidity">
  228. <el-input v-model="form.inValidity" placeholder="请输入在有效期内"/>
  229. </el-form-item>
  230. <el-form-item label="安装位置" prop="installLocation">
  231. <el-input v-model="form.installLocation" placeholder="请输入安装位置"/>
  232. </el-form-item>
  233. <el-form-item label="安装位置准确" prop="installAccuracy">
  234. <el-input v-model="form.installAccuracy" placeholder="请输入安装位置准确"/>
  235. </el-form-item>
  236. <el-form-item label="投用(是/否)" prop="putUse">
  237. <el-input v-model="form.putUse" placeholder="请输入投用(是/否)"/>
  238. </el-form-item>
  239. <el-form-item label="设定压力" prop="setPressure">
  240. <el-input v-model="form.setPressure" placeholder="请输入设定压力"/>
  241. </el-form-item>
  242. <el-form-item label="校验压力与设定压力一致" prop="uniformPressure">
  243. <el-input v-model="form.uniformPressure" placeholder="请输入校验压力与设定压力一致"/>
  244. </el-form-item>
  245. <el-form-item label="确认人1" prop="confirmer1">
  246. <el-select v-model="form.confirmer1" filterable placeholder="请选择确认人1">
  247. <el-option v-for="user in userOptions"
  248. :label="user.nickName"
  249. :value="user.userId+''"
  250. :key="user.userId"/>
  251. </el-select>
  252. </el-form-item>
  253. <el-form-item label="确认人2" prop="confirmer2">
  254. <el-select v-model="form.confirmer2" filterable placeholder="请选择确认人2">
  255. <el-option v-for="user in userOptions"
  256. :label="user.nickName"
  257. :value="user.userId+''"
  258. :key="user.userId"/>
  259. </el-select>
  260. </el-form-item>
  261. <el-form-item label="备注" prop="remarks">
  262. <el-input v-model="form.remarks" placeholder="请输入备注"/>
  263. </el-form-item>
  264. </el-form>
  265. <div slot="footer" class="dialog-footer">
  266. <el-button type="primary" @click="submitForm">确 定</el-button>
  267. <el-button @click="cancel">取 消</el-button>
  268. </div>
  269. </el-dialog>
  270. <!-- 用户导入对话框 -->
  271. <el-dialog :close-on-click-modal="false" :title="upload.title" :visible.sync="upload.open" width="400px"
  272. append-to-body>
  273. <el-upload
  274. ref="upload"
  275. :limit="1"
  276. accept=".xlsx, .xls"
  277. :headers="upload.headers"
  278. :action="upload.url + '?updateSupport=' + upload.updateSupport"
  279. :disabled="upload.isUploading"
  280. :on-progress="handleFileUploadProgress"
  281. :on-success="handleFileSuccess"
  282. :auto-upload="false"
  283. drag
  284. >
  285. <i class="el-icon-upload"></i>
  286. <div class="el-upload__text">
  287. 将文件拖到此处,或
  288. <em>点击上传</em>
  289. </div>
  290. <div class="el-upload__tip" slot="tip">
  291. <el-checkbox v-model="upload.updateSupport"/>
  292. 是否更新已经存在的用户数据
  293. <el-link type="info" style="font-size:12px" @click="importTemplate">下载模板</el-link>
  294. </div>
  295. <div class="el-upload__tip" style="color:red" slot="tip">提示:仅允许导入“xls”或“xlsx”格式文件!</div>
  296. </el-upload>
  297. <div slot="footer" class="dialog-footer">
  298. <el-button type="primary" @click="submitFileForm">确 定</el-button>
  299. <el-button @click="upload.open = false">取 消</el-button>
  300. </div>
  301. </el-dialog>
  302. <!-- 附件对话框 -->
  303. <el-dialog v-dialogDrag :close-on-click-modal="false" :visible.sync="doc.open" append-to-body title="现场照片"
  304. width="1000px">
  305. <el-image v-for="file in doc.fileList" :key="file.id" :src="file.fileUrl" lazy></el-image>
  306. </el-dialog>
  307. </div>
  308. </template>
  309. <script>
  310. import {
  311. addSafetyBreath,
  312. delSafetyBreath,
  313. exportSafetyBreath,
  314. getSafetyBreath,
  315. importTemplate,
  316. listSafetyBreath,
  317. updateSafetyBreath
  318. } from "@/api/pssr/safetyBreath";
  319. import {treeselect} from "@/api/system/dept";
  320. import {getToken} from "@/utils/auth";
  321. import Treeselect from "@riophae/vue-treeselect";
  322. import "@riophae/vue-treeselect/dist/vue-treeselect.css";
  323. import {listUserNoPage} from "@/api/system/user";
  324. import {doApprove} from "@/api/pssr/approve";
  325. import {handleConfirmBreath, handleTurnDownBreath} from "@/api/pssr/safety";
  326. export default {
  327. dicts: ['pssr_approve_status'],
  328. name: "SafetyBreath",
  329. components: {Treeselect},
  330. props: {
  331. subId: {
  332. type: Number,
  333. default: 0
  334. },
  335. isApprove: {
  336. type: Number,
  337. default: 0
  338. },
  339. },
  340. data() {
  341. return {
  342. doc: {
  343. file: "",
  344. // 是否显示弹出层(报告附件)
  345. open: false,
  346. fileList: [],
  347. queryParams: {
  348. itemId: null,
  349. subId: this.subId,
  350. forShort: 'aqss-bh'
  351. },
  352. },
  353. userOptions: [],
  354. // 遮罩层
  355. loading: true,
  356. // 选中数组
  357. ids: [],
  358. // 非单个禁用
  359. single: true,
  360. // 非多个禁用
  361. multiple: true,
  362. // 显示搜索条件
  363. showSearch: false,
  364. // 总条数
  365. total: 0,
  366. // 安全设施-呼吸阀表格数据
  367. safetyBreathList: [],
  368. // 弹出层标题
  369. title: "",
  370. // 部门树选项
  371. deptOptions: undefined,
  372. clientHeight: 300,
  373. // 是否显示弹出层
  374. open: false,
  375. // 用户导入参数
  376. upload: {
  377. // 是否显示弹出层(用户导入)
  378. open: false,
  379. // 弹出层标题(用户导入)
  380. title: "",
  381. // 是否禁用上传
  382. isUploading: false,
  383. // 是否更新已经存在的用户数据
  384. updateSupport: 0,
  385. // 设置上传的请求头部
  386. headers: {Authorization: "Bearer " + getToken()},
  387. // 上传的地址
  388. url: process.env.VUE_APP_BASE_API + "/pssr/safetyBreath/importData"
  389. },
  390. // 查询参数
  391. queryParams: {
  392. pageNum: 1,
  393. pageSize: 20,
  394. subId: this.subId,
  395. approveId: null,
  396. unit: null,
  397. pidNo: null,
  398. devNo: null,
  399. verify: null,
  400. inValidity: null,
  401. installLocation: null,
  402. installAccuracy: null,
  403. setPressure: null,
  404. uniformPressure: null,
  405. confirmer1: null,
  406. confirmer2: null,
  407. confirmationTime: null,
  408. createrCode: null,
  409. createdate: null,
  410. updaterCode: null,
  411. updatedate: null,
  412. deptId: null,
  413. remarks: null
  414. },
  415. // 表单参数
  416. form: {},
  417. // 表单校验
  418. rules: {}
  419. };
  420. },
  421. watch: {
  422. // 根据名称筛选部门树
  423. deptName(val) {
  424. this.$refs.tree.filter(val);
  425. }
  426. },
  427. created() {
  428. //设置表格高度对应屏幕高度
  429. this.$nextTick(() => {
  430. this.clientHeight = document.body.clientHeight - 380
  431. })
  432. this.getList();
  433. this.getTreeselect();
  434. listUserNoPage({}).then(res => {
  435. this.userOptions = res.data
  436. });
  437. },
  438. methods: {
  439. /** 查询安全设施-呼吸阀列表 */
  440. getList() {
  441. this.loading = true;
  442. listSafetyBreath(this.queryParams).then(response => {
  443. this.safetyBreathList = response.rows;
  444. this.total = response.total;
  445. this.loading = false;
  446. });
  447. },
  448. /** 查询部门下拉树结构 */
  449. getTreeselect() {
  450. treeselect().then(response => {
  451. this.deptOptions = response.data;
  452. });
  453. },
  454. // 取消按钮
  455. cancel() {
  456. this.open = false;
  457. this.reset();
  458. },
  459. // 表单重置
  460. reset() {
  461. this.form = {
  462. id: null,
  463. subId: this.subId,
  464. approveId: null,
  465. unit: null,
  466. pidNo: null,
  467. devNo: null,
  468. verify: null,
  469. inValidity: null,
  470. installLocation: null,
  471. installAccuracy: null,
  472. setPressure: null,
  473. uniformPressure: null,
  474. confirmer1: null,
  475. confirmer2: null,
  476. confirmationTime: null,
  477. delFlag: null,
  478. createrCode: null,
  479. createdate: null,
  480. updaterCode: null,
  481. updatedate: null,
  482. deptId: null,
  483. remarks: null
  484. };
  485. this.resetForm("form");
  486. },
  487. /** 搜索按钮操作 */
  488. handleQuery() {
  489. this.queryParams.pageNum = 1;
  490. this.getList();
  491. },
  492. /** 重置按钮操作 */
  493. resetQuery() {
  494. this.resetForm("queryForm");
  495. this.handleQuery();
  496. },
  497. // 多选框选中数据
  498. handleSelectionChange(selection) {
  499. this.ids = selection.map(item => item.id)
  500. this.single = selection.length !== 1
  501. this.multiple = !selection.length
  502. },
  503. /** 新增按钮操作 */
  504. handleAdd() {
  505. this.reset();
  506. this.open = true;
  507. this.title = "添加安全设施-呼吸阀";
  508. },
  509. /** 修改按钮操作 */
  510. handleUpdate(row) {
  511. this.reset();
  512. const id = row.id || this.ids
  513. getSafetyBreath(id).then(response => {
  514. this.form = response.data;
  515. this.open = true;
  516. this.title = "修改安全设施-呼吸阀";
  517. });
  518. },
  519. /** 提交按钮 */
  520. submitForm() {
  521. this.$refs["form"].validate(valid => {
  522. if (valid) {
  523. if (this.form.id != null) {
  524. updateSafetyBreath(this.form).then(response => {
  525. this.msgSuccess("修改成功");
  526. this.open = false;
  527. this.getList();
  528. });
  529. } else {
  530. addSafetyBreath(this.form).then(response => {
  531. this.msgSuccess("新增成功");
  532. this.open = false;
  533. this.getList();
  534. });
  535. }
  536. }
  537. });
  538. },
  539. /** 删除按钮操作 */
  540. handleDelete(row) {
  541. const ids = row.id || this.ids;
  542. this.$confirm('是否确认删除?', "警告", {
  543. confirmButtonText: "确定",
  544. cancelButtonText: "取消",
  545. type: "warning"
  546. }).then(function () {
  547. return delSafetyBreath(ids);
  548. }).then(() => {
  549. this.getList();
  550. this.msgSuccess("删除成功");
  551. })
  552. },
  553. /** 导出按钮操作 */
  554. handleExport() {
  555. const queryParams = this.queryParams;
  556. this.$confirm('是否确认导出所有安全设施-呼吸阀数据项?', "警告", {
  557. confirmButtonText: "确定",
  558. cancelButtonText: "取消",
  559. type: "warning"
  560. }).then(function () {
  561. return exportSafetyBreath(queryParams);
  562. }).then(response => {
  563. this.download(response.msg);
  564. })
  565. },
  566. /** 导入按钮操作 */
  567. handleImport() {
  568. this.upload.title = "用户导入";
  569. this.upload.open = true;
  570. },
  571. /** 下载模板操作 */
  572. importTemplate() {
  573. importTemplate().then(response => {
  574. this.download(response.msg);
  575. });
  576. },
  577. // 文件上传中处理
  578. handleFileUploadProgress(event, file, fileList) {
  579. this.upload.isUploading = true;
  580. },
  581. // 文件上传成功处理
  582. handleFileSuccess(response, file, fileList) {
  583. this.upload.open = false;
  584. this.upload.isUploading = false;
  585. this.$refs.upload.clearFiles();
  586. this.$alert(response.msg, "导入结果", {dangerouslyUseHTMLString: true});
  587. this.getList();
  588. },
  589. // 提交上传文件
  590. submitFileForm() {
  591. this.$refs.upload.submit();
  592. },
  593. /** 报告附件按钮操作 */
  594. handleDoc(row) {
  595. this.doc.fileList=[]
  596. this.doc.open = true;
  597. this.doc.queryParams.itemId = row.id
  598. this.getFileList()
  599. },
  600. getFileList() {
  601. listFile(this.doc.queryParams).then(response => {
  602. this.doc.fileList = response.rows;
  603. this.doc.fileList.forEach(item => {
  604. item.fileUrl = process.env.VUE_APP_BASE_API + item.fileUrl;
  605. });
  606. });
  607. },
  608. //发起审批
  609. handleApprove() {
  610. doApprove(this.subId).then(res => {
  611. this.msgSuccess("已发起确认流程");
  612. this.getList();
  613. })
  614. },
  615. /** 确认按钮操作*/
  616. handleConfirmApprove() {
  617. let data = {
  618. ids: this.ids,
  619. subId: this.subId,
  620. taskType: this.isApprove
  621. }
  622. handleConfirmBreath(data).then(res => {
  623. this.msgSuccess("确认成功");
  624. this.getList()
  625. this.$emit('refreshHisList');
  626. })
  627. },
  628. handleTurnDown(val) {
  629. this.$prompt('请输入驳回原因', '提示', {
  630. confirmButtonText: '确认驳回',
  631. cancelButtonText: '取消',
  632. }).then(({value}) => {
  633. let data = {
  634. ids: this.ids,
  635. subId: this.subId,
  636. remarks: value
  637. }
  638. handleTurnDownBreath(data).then(res => {
  639. this.msgSuccess("驳回成功");
  640. })
  641. }).catch(() => {
  642. this.$message({
  643. type: 'info',
  644. message: '取消驳回'
  645. });
  646. });
  647. },
  648. userFormat(userId) {
  649. for (let item of this.userOptions) {
  650. if (item.userId == userId) {
  651. return item.nickName
  652. }
  653. }
  654. },
  655. }
  656. };
  657. </script>