index.vue 22 KB

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