PrintTaskManage.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749
  1. <template>
  2. <div class="print-task-manage">
  3. <div class="part-box part-box-filter">
  4. <el-form ref="FilterForm" label-position="left" label-width="85px" inline>
  5. <template v-if="checkPrivilege('condition', 'condition')">
  6. <el-form-item label="学期:">
  7. <semester-select
  8. v-model.trim="filter.semesterId"
  9. placeholder="学期"
  10. default-select
  11. ></semester-select>
  12. </el-form-item>
  13. <el-form-item label="考试:">
  14. <exam-select
  15. v-model="filter.examId"
  16. :semester-id="filter.semesterId"
  17. default-select
  18. @default-selected="search"
  19. ></exam-select>
  20. </el-form-item>
  21. <el-form-item label="印刷计划:">
  22. <print-plan-select
  23. v-model.trim="filter.printPlanId"
  24. placeholder="印刷计划"
  25. clearable
  26. :semester-id="filter.semesterId"
  27. :exam-id="filter.examId"
  28. @change="printPlanChange"
  29. ></print-plan-select>
  30. </el-form-item>
  31. <el-form-item label="课程(代码):" label-width="110px">
  32. <course-select
  33. v-model.trim="filter.courseCode"
  34. :semester-id="filter.semesterId"
  35. :exam-id="filter.examId"
  36. :print-plan-id="filter.printPlanId"
  37. placeholder="课程(代码)"
  38. clearable
  39. ></course-select>
  40. </el-form-item>
  41. <el-form-item label="试卷编号:">
  42. <paper-number-select
  43. ref="PaperNumberSelect"
  44. v-model="filter.paperNumber"
  45. :semester-id="filter.semesterId"
  46. :exam-id="filter.examId"
  47. :print-plan-id="filter.printPlanId"
  48. :course-code="filter.courseCode"
  49. placeholder="试卷编号"
  50. clearable
  51. ></paper-number-select>
  52. </el-form-item>
  53. <el-form-item label="印刷室:">
  54. <print-room-select
  55. v-model.trim="filter.printHouseId"
  56. placeholder="印刷室"
  57. clearable
  58. ></print-room-select>
  59. </el-form-item>
  60. <el-form-item label="印刷状态:">
  61. <status-select
  62. v-model="filter.status"
  63. type="EXAM_DETAIL_STATUS_ENUM"
  64. placeholder="印刷状态"
  65. style="width: 120px"
  66. clearable
  67. >
  68. </status-select>
  69. </el-form-item>
  70. <el-form-item label="考点:" label-width="55px">
  71. <place-select
  72. v-model.trim="filter.examPlace"
  73. :print-plan-id="filter.printPlanId"
  74. placeholder="考点"
  75. clearable
  76. ></place-select>
  77. </el-form-item>
  78. <el-form-item label="考场:" label-width="55px">
  79. <room-select
  80. v-model.trim="filter.examRoom"
  81. :print-plan-id="filter.printPlanId"
  82. placeholder="考场"
  83. clearable
  84. ></room-select>
  85. </el-form-item>
  86. <el-form-item label="考试日期:">
  87. <el-date-picker
  88. v-model="createTime"
  89. type="daterange"
  90. :picker-options="pickerOptions"
  91. range-separator="至"
  92. start-placeholder="考试开始日期"
  93. end-placeholder="考试结束日期"
  94. value-format="timestamp"
  95. align="right"
  96. unlink-panels
  97. >
  98. </el-date-picker>
  99. </el-form-item>
  100. <el-form-item label="打印时间:">
  101. <el-date-picker
  102. v-model="printTime"
  103. type="datetimerange"
  104. :picker-options="pickerOptions"
  105. range-separator="至"
  106. start-placeholder="打印开始时间"
  107. end-placeholder="打印结束时间"
  108. value-format="timestamp"
  109. align="right"
  110. unlink-panels
  111. >
  112. </el-date-picker>
  113. </el-form-item>
  114. </template>
  115. <el-form-item label-width="0px">
  116. <el-button
  117. v-if="checkPrivilege('button', 'select')"
  118. type="primary"
  119. @click="search"
  120. >查询</el-button
  121. >
  122. </el-form-item>
  123. </el-form>
  124. <div class="box-justify">
  125. <div></div>
  126. <div>
  127. <el-button
  128. v-if="checkPrivilege('button', 'BatchEnd')"
  129. icon="el-icon-finished"
  130. type="success"
  131. :disabled="searchfilter.status !== 'WAITING'"
  132. @click="toBatchCancelOrSubmit('finish')"
  133. >
  134. 批量完成
  135. </el-button>
  136. <el-button
  137. v-if="checkPrivilege('button', 'BatchEnd')"
  138. icon="el-icon-bottom-left"
  139. type="danger"
  140. :disabled="searchfilter.status !== 'WAITING'"
  141. @click="toBatchCancelOrSubmit('cancel')"
  142. >
  143. 批量撤回
  144. </el-button>
  145. <el-button
  146. v-if="checkPrivilege('button', 'BatchEnd')"
  147. icon="el-icon-top-right"
  148. type="primary"
  149. :disabled="searchfilter.status !== 'READY'"
  150. @click="toBatchCancelOrSubmit('submit')"
  151. >
  152. 批量提交
  153. </el-button>
  154. <el-button
  155. v-if="checkPrivilege('button', 'BatchDownload')"
  156. icon="el-icon-download"
  157. type="primary"
  158. :disabled="loading"
  159. @click="toExport"
  160. >
  161. 批量下载PDF
  162. </el-button>
  163. <el-button
  164. v-if="checkPrivilege('button', 'BatchDownload')"
  165. type="primary"
  166. icon="el-icon-s-order"
  167. @click="toDataTask"
  168. >下载结果查询</el-button
  169. >
  170. </div>
  171. </div>
  172. </div>
  173. <div class="part-box part-box-pad box-justify">
  174. <p>
  175. <span class="mr-4"
  176. >科次总计:<i class="color-primary">{{ totalInfo.totalSubjects }}</i>
  177. 科次</span
  178. >
  179. <span class="mr-4"
  180. >试卷总计:<i class="color-primary">{{ totalInfo.paperCount }}</i>
  181. 套</span
  182. >
  183. <span class="mr-4"
  184. >卷袋总计:<i class="color-primary">{{ totalInfo.packageCount }}</i>
  185. 个</span
  186. >
  187. <span
  188. >总印量:<i class="color-primary">{{
  189. totalInfo.paperPages + totalInfo.cardPages
  190. }}</i>
  191. 张</span
  192. >
  193. <span
  194. >(试卷:<i class="color-primary">{{ totalInfo.paperPages }}</i>
  195. 张,</span
  196. >
  197. <span
  198. >题卡:<i class="color-primary">{{ totalInfo.cardPages }}</i>
  199. 张)</span
  200. >
  201. </p>
  202. <p>
  203. <span
  204. >剩余印量:<i class="color-danger">{{
  205. totalInfo.paperPagesLeft + totalInfo.cardPagesLeft
  206. }}</i>
  207. 张</span
  208. >
  209. <span
  210. >(试卷:<i class="color-danger">{{ totalInfo.paperPagesLeft }}</i>
  211. 张,</span
  212. >
  213. <span
  214. >题卡:<i class="color-danger">{{ totalInfo.cardPagesLeft }}</i>
  215. 张)</span
  216. >
  217. </p>
  218. </div>
  219. <div class="part-box part-box-pad">
  220. <el-table
  221. ref="TableList"
  222. :data="dataList"
  223. @selection-change="handleSelectionChange"
  224. >
  225. <el-table-column
  226. type="selection"
  227. fixed="left"
  228. width="55"
  229. align="center"
  230. ></el-table-column>
  231. <el-table-column
  232. type="index"
  233. label="序号"
  234. width="60"
  235. :index="indexMethod"
  236. ></el-table-column>
  237. <!-- <el-table-column
  238. prop="semesterName"
  239. label="学期"
  240. min-width="200"
  241. ></el-table-column>
  242. <el-table-column
  243. prop="examName"
  244. label="考试"
  245. min-width="160"
  246. ></el-table-column> -->
  247. <el-table-column
  248. prop="printPlanName"
  249. label="印刷计划"
  250. min-width="200"
  251. ></el-table-column>
  252. <el-table-column
  253. prop="courseNameCode"
  254. label="课程(代码)"
  255. min-width="200"
  256. >
  257. </el-table-column>
  258. <el-table-column
  259. prop="paperNumber"
  260. label="试卷编号"
  261. min-width="160"
  262. ></el-table-column>
  263. <el-table-column
  264. prop="examDate"
  265. label="考试日期"
  266. width="100"
  267. ></el-table-column>
  268. <el-table-column
  269. prop="examTime"
  270. label="考试时间"
  271. width="100"
  272. ></el-table-column>
  273. <el-table-column
  274. prop="packageCode"
  275. label="卷袋编号"
  276. min-width="160"
  277. ></el-table-column>
  278. <el-table-column
  279. prop="examPlace"
  280. label="考点"
  281. min-width="160"
  282. ></el-table-column>
  283. <el-table-column
  284. prop="examRoom"
  285. label="考场"
  286. min-width="160"
  287. ></el-table-column>
  288. <el-table-column
  289. prop="printHouseName"
  290. label="印刷室"
  291. min-width="100"
  292. ></el-table-column>
  293. <!-- <el-table-column
  294. prop="singlePagesA3"
  295. label="单科次准印量A3(页)"
  296. width="80"
  297. ></el-table-column> -->
  298. <el-table-column
  299. prop="totalSubjects"
  300. label="科次"
  301. width="80"
  302. ></el-table-column>
  303. <!-- <el-table-column
  304. prop="pagesA3"
  305. label="A3准印量小计(页)"
  306. width="80"
  307. ></el-table-column>
  308. <el-table-column
  309. prop="pagesA4"
  310. label="A4准印量小计(页)"
  311. width="80"
  312. ></el-table-column> -->
  313. <el-table-column prop="statusDisplay" label="印刷状态" width="80">
  314. </el-table-column>
  315. <el-table-column prop="validate" label="是否校验" width="80">
  316. <span slot-scope="scope">{{ scope.row.validate ? "是" : "否" }}</span>
  317. </el-table-column>
  318. <el-table-column prop="printStartTime" label="打印开始时间" width="150">
  319. <span slot-scope="scope">{{
  320. scope.row.printStartTime | timestampFilter
  321. }}</span>
  322. </el-table-column>
  323. <el-table-column prop="printEndTime" label="打印完成时间" width="150">
  324. <span slot-scope="scope">{{
  325. scope.row.printEndTime | timestampFilter
  326. }}</span>
  327. </el-table-column>
  328. <el-table-column prop="normal" label="任务状态" width="80">
  329. <span slot-scope="scope">{{
  330. scope.row.normal ? "正常" : "作废"
  331. }}</span>
  332. </el-table-column>
  333. <el-table-column
  334. class-name="action-column"
  335. label="操作"
  336. width="160"
  337. fixed="right"
  338. >
  339. <template slot-scope="scope">
  340. <el-button
  341. v-if="
  342. checkPrivilege('link', 'download') &&
  343. (scope.row.status === 'READY' ||
  344. scope.row.status === 'WAITING' ||
  345. scope.row.status === 'PRINTING' ||
  346. scope.row.status === 'FINISH' ||
  347. scope.row.status === 'CANCEL')
  348. "
  349. class="btn-primary"
  350. type="text"
  351. @click="toActionPdf(scope.row, 'view')"
  352. >预览</el-button
  353. >
  354. <el-button
  355. v-if="
  356. checkPrivilege('link', 'createpdf') &&
  357. (scope.row.status === 'READY' ||
  358. scope.row.status === 'CANCEL' ||
  359. !scope.row.normal)
  360. "
  361. class="btn-primary"
  362. type="text"
  363. @click="toActionPdf(scope.row, 'build')"
  364. >重新生成</el-button
  365. >
  366. <el-button
  367. v-if="
  368. scope.row.status === 'READY' && checkPrivilege('link', 'submit')
  369. "
  370. class="btn-primary"
  371. type="text"
  372. @click="toSubmit(scope.row)"
  373. >提交</el-button
  374. >
  375. <!-- <el-button
  376. v-if="scope.row.status === 'PRINTING'"
  377. class="btn-primary"
  378. type="text"
  379. @click="toResubmit(scope.row)"
  380. >重新提交</el-button> -->
  381. <el-button
  382. v-if="
  383. scope.row.status === 'WAITING' && checkPrivilege('link', 'end')
  384. "
  385. class="btn-danger"
  386. type="text"
  387. @click="toCancel(scope.row)"
  388. >撤回</el-button
  389. >
  390. <el-button
  391. v-if="
  392. (scope.row.status === 'END' || scope.row.status === 'FINISH') &&
  393. checkPrivilege('link', 'normal')
  394. "
  395. :class="scope.row.normal ? 'btn-danger' : 'btn-primary'"
  396. type="text"
  397. @click="toNormal(scope.row)"
  398. >{{ scope.row.normal ? "作废" : "恢复" }}</el-button
  399. >
  400. <!-- <el-button
  401. class="btn-primary"
  402. type="text"
  403. @click="toPreview(scope.row)"
  404. >查看印品模板</el-button> -->
  405. </template>
  406. </el-table-column>
  407. </el-table>
  408. <div class="part-page">
  409. <el-pagination
  410. background
  411. layout="total, sizes, prev, pager, next, jumper"
  412. :pager-count="5"
  413. :current-page="current"
  414. :total="total"
  415. :page-size="size"
  416. @current-change="toPage"
  417. @size-change="pageSizeChange"
  418. >
  419. </el-pagination>
  420. </div>
  421. </div>
  422. <!-- PreviewPrintTaskTemplate-->
  423. <preview-print-task-template
  424. :instance="curTask"
  425. ref="PreviewPrintTaskTemplate"
  426. ></preview-print-task-template>
  427. <!-- pdf-view -->
  428. <el-dialog
  429. class="pdf-view-dialog"
  430. :visible.sync="padViewDialogVisible"
  431. title="请选择PDF类型"
  432. top="10vh"
  433. width="600px"
  434. :close-on-click-modal="false"
  435. :close-on-press-escape="false"
  436. append-to-body
  437. >
  438. <div class="text-center">
  439. <el-button
  440. v-if="actionType === 'build'"
  441. size="large"
  442. @click="actionPdf({ type: undefined })"
  443. >全部</el-button
  444. >
  445. <el-button
  446. v-for="item in pdfList"
  447. :key="item.name"
  448. type="primary"
  449. size="large"
  450. @click="actionPdf(item)"
  451. >{{ item.type | printPdfTypeFilter }}</el-button
  452. >
  453. </div>
  454. <div slot="footer"></div>
  455. </el-dialog>
  456. <!-- data-task-dialog -->
  457. <data-task-dialog
  458. v-if="checkPrivilege('button', 'BatchDownload')"
  459. ref="DataTaskDialog"
  460. task-type="PRINT_PDF_DOWNLOAD"
  461. ></data-task-dialog>
  462. </div>
  463. </template>
  464. <script>
  465. import {
  466. printTaskListPage,
  467. submitPrintTask,
  468. resubmitPrintTask,
  469. cancelPrintTask,
  470. batchCancelPrintTask,
  471. printTaskTotalInfo,
  472. getPrintTaskPdf,
  473. downloadPrintTaskPdf,
  474. rebuildPrintTaskPdf,
  475. printTaskNormal,
  476. } from "../api";
  477. import { PRINT_TASK_STATUS } from "@/constants/enumerate";
  478. import pickerOptions from "@/constants/datePickerOptions";
  479. import { parseTimeRangeDateAndTime } from "@/plugins/utils";
  480. import PreviewPrintTaskTemplate from "../components/PreviewPrintTaskTemplate";
  481. export default {
  482. name: "print-task-manage",
  483. components: { PreviewPrintTaskTemplate },
  484. data() {
  485. return {
  486. filter: {
  487. semesterId: "",
  488. examId: "",
  489. printPlanId: "",
  490. printHouseId: "",
  491. status: "",
  492. courseCode: "",
  493. paperNumber: "",
  494. examPlace: "",
  495. examRoom: "",
  496. examStartTime: "",
  497. examEndTime: "",
  498. printStartTime: "",
  499. printEndTime: "",
  500. },
  501. searchfilter: {},
  502. current: 1,
  503. size: this.GLOBAL.pageSize,
  504. total: 0,
  505. totalInfo: {},
  506. dataList: [],
  507. curRow: {},
  508. multipleSelection: [],
  509. PRINT_TASK_STATUS,
  510. loading: false,
  511. // view-pdf
  512. padViewDialogVisible: false,
  513. pdfList: [],
  514. actionType: "view",
  515. // view-template
  516. curTask: {},
  517. // date-picker
  518. createTime: [],
  519. printTime: [],
  520. pickerOptions,
  521. };
  522. },
  523. mounted() {
  524. // this.search();
  525. },
  526. methods: {
  527. async getList() {
  528. if (!this.checkPrivilege("list", "list")) return;
  529. const datas = {
  530. ...this.filter,
  531. pageNumber: this.current,
  532. pageSize: this.size,
  533. };
  534. if (this.createTime) {
  535. datas.examStartTime = this.createTime[0];
  536. datas.examEndTime = this.createTime[1];
  537. }
  538. if (this.printTime) {
  539. datas.printStartTime = this.printTime[0];
  540. datas.printEndTime = this.printTime[1];
  541. }
  542. const data = await printTaskListPage(datas);
  543. this.dataList = data.records.map((item) => {
  544. const { date, time } = parseTimeRangeDateAndTime(
  545. item.examStartTime,
  546. item.examEndTime
  547. );
  548. item.examDate = date || "--";
  549. item.examTime = time || "--";
  550. return item;
  551. });
  552. this.total = data.total;
  553. this.searchfilter = { ...this.filter };
  554. },
  555. toPage(page) {
  556. this.current = page;
  557. this.getList();
  558. this.multipleSelection = [];
  559. },
  560. search() {
  561. this.toPage(1);
  562. this.getTotalInfo();
  563. },
  564. printPlanChange() {
  565. this.filter.paperNumber = "";
  566. this.filter.courseCode = "";
  567. this.filter.examRoom = "";
  568. this.filter.examPlace = "";
  569. },
  570. async getTotalInfo() {
  571. const datas = {
  572. ...this.filter,
  573. pageNumber: this.current,
  574. pageSize: this.size,
  575. };
  576. if (this.createTime) {
  577. datas.examStartTime = this.createTime[0];
  578. datas.examEndTime = this.createTime[1];
  579. }
  580. const data = await printTaskTotalInfo(datas);
  581. this.totalInfo = data || {};
  582. },
  583. handleSelectionChange(val) {
  584. this.multipleSelection = val.map((item) => item.examDetailId);
  585. },
  586. toPreview(row) {
  587. this.curTask = row;
  588. this.$refs.PreviewPrintTaskTemplate.open();
  589. },
  590. toSubmit(row) {
  591. this.$confirm("确定提交该印刷任务吗?", "提示", {
  592. type: "warning",
  593. })
  594. .then(async () => {
  595. const data = await submitPrintTask(row.examDetailId);
  596. if (!data) return;
  597. this.$message.success("提交成功!");
  598. this.getList();
  599. })
  600. .catch(() => {});
  601. },
  602. toResubmit(row) {
  603. this.$confirm("确定重新提交该印刷任务吗?", "提示", {
  604. type: "warning",
  605. })
  606. .then(async () => {
  607. const data = await resubmitPrintTask({
  608. id: row.examDetailId,
  609. printPlanId: row.printPlanId,
  610. });
  611. if (!data) return;
  612. this.$message.success("提交成功!");
  613. this.getList();
  614. })
  615. .catch(() => {});
  616. },
  617. toCancel(row) {
  618. this.$confirm("确定撤回该印刷任务的提交吗?", "提示", {
  619. type: "warning",
  620. })
  621. .then(async () => {
  622. const data = await cancelPrintTask(row.examDetailId);
  623. if (!data) return;
  624. this.$message.success("撤回成功!");
  625. this.getList();
  626. })
  627. .catch(() => {});
  628. },
  629. toBatchCancelOrSubmit(type) {
  630. const name = type === "submit" ? "提交" : "撤回";
  631. if (!this.multipleSelection.length) {
  632. this.$message.error(`请选择要${name}的记录!`);
  633. return;
  634. }
  635. this.$confirm(`确定${name}选中的印刷任务的提交吗?`, "提示", {
  636. type: "warning",
  637. })
  638. .then(async () => {
  639. const data = await batchCancelPrintTask(
  640. this.multipleSelection.join(),
  641. type
  642. );
  643. if (!data) return;
  644. this.$message.success("操作成功!");
  645. this.getList();
  646. })
  647. .catch(() => {});
  648. },
  649. async toActionPdf(row, actionType) {
  650. this.curTask = row;
  651. this.actionType = actionType;
  652. this.pdfList = [];
  653. let result = true;
  654. const data = await getPrintTaskPdf(row.examDetailId).catch(() => {
  655. result = false;
  656. });
  657. if (!result) return;
  658. if (!data || !data.length) {
  659. this.$message.error("当前任务pdf还未生成好,请稍后再试!");
  660. return;
  661. }
  662. if (data.length === 1) {
  663. this.actionPdf(data[0]);
  664. } else {
  665. this.pdfList = data;
  666. this.padViewDialogVisible = true;
  667. }
  668. },
  669. actionPdf(item) {
  670. if (this.actionType === "view") {
  671. this.viewPdf(item);
  672. } else {
  673. this.rebuildPdf(item);
  674. }
  675. },
  676. async rebuildPdf(item) {
  677. const action = await this.$confirm(
  678. `确定要重新生成该印刷任务PDF吗?`,
  679. "提示",
  680. {
  681. type: "warning",
  682. }
  683. ).catch(() => {});
  684. if (action !== "confirm") return;
  685. const res = await rebuildPrintTaskPdf(
  686. this.curTask.examDetailId,
  687. item.type
  688. );
  689. if (!res) return;
  690. this.$message.success("操作成功!");
  691. this.padViewDialogVisible = false;
  692. this.getList();
  693. },
  694. viewPdf(item) {
  695. window.open(item.url);
  696. // this.padViewDialogVisible = false;
  697. },
  698. async toExport() {
  699. if (this.loading) return;
  700. if (!this.multipleSelection.length) {
  701. this.$message.error("请选择要下载的记录!");
  702. return;
  703. }
  704. this.loading = true;
  705. const data = await downloadPrintTaskPdf(this.multipleSelection).catch(
  706. () => {}
  707. );
  708. this.loading = false;
  709. if (!data) return;
  710. this.$message.success("文件下载任务提交成功!");
  711. },
  712. toDataTask() {
  713. this.$refs.DataTaskDialog.open();
  714. },
  715. async toNormal(row) {
  716. const typeName = row.normal ? "作废" : "恢复";
  717. const action = await this.$confirm(
  718. `确定${typeName}该印刷任务吗?`,
  719. "提示",
  720. {
  721. type: "warning",
  722. }
  723. ).catch(() => {});
  724. if (action !== "confirm") return;
  725. const data = await printTaskNormal({
  726. id: row.examDetailId,
  727. normal: !row.normal,
  728. });
  729. if (!data) return;
  730. row.normal = !row.normal;
  731. this.$message.success("撤回成功!");
  732. },
  733. },
  734. };
  735. </script>