index.vue 21 KB

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