index.vue 22 KB

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