| | |
| | | @refresh-change="refreshChange" |
| | | @on-load="onLoad" |
| | | > |
| | | |
| | | <template slot-scope="{ type, size, row }" |
| | | slot="menu"> |
| | | |
| | | <el-button icon="el-icon-edit" |
| | | :size="size" |
| | | :type="type" |
| | | @click.stop="payTheFees(row)">审核 |
| | | </el-button> |
| | | </template> |
| | | <template slot-scope="{ row }" |
| | | slot="examinationType"> |
| | | {{row.examinationType=="1"?"正常":row.examinationType=="2"?"异常":"正常"}} |
| | | </template> |
| | | <template slot-scope="{ row }" |
| | | slot="auditStatus"> |
| | | {{row.auditStatus==1?"审核通过":row.auditStatus==2?"审核不通过":"待审核"}} |
| | | </template> |
| | | </avue-crud> |
| | | </basic-container> |
| | | </template> |
| | |
| | | getList, |
| | | getListJSON, |
| | | } from "@/api/qualificationExamination/signQualificationExamination"; |
| | | import { |
| | | update |
| | | } from "@/api/apply/apply"; |
| | | import { mapGetters } from "vuex"; |
| | | |
| | | export default { |
| | |
| | | editBtn: false, |
| | | addBtn: false, |
| | | selection: true, |
| | | menu: false, |
| | | menu: true, |
| | | |
| | | align: "center", |
| | | height: "auto", |
| | |
| | | { |
| | | label: "审查状态", |
| | | prop: "examinationType", |
| | | slot:true, |
| | | // // display: false, |
| | | // width: 200, |
| | | // labelWidth: 120, |
| | |
| | | // labelWidth: 120, |
| | | // overHidden: true, |
| | | }, |
| | | // { |
| | | // label: "审查结果", |
| | | // prop: "results", |
| | | // // // display: false, |
| | | // // width: 200, |
| | | // // labelWidth: 120, |
| | | // // overHidden: true, |
| | | // }, |
| | | { |
| | | label: "审核状态", |
| | | prop: "auditStatus", |
| | | slot:true, |
| | | // // display: false, |
| | | // width: 200, |
| | | // labelWidth: 120, |
| | | // overHidden: true, |
| | | }, |
| | | ], |
| | | // group: [ |
| | | // { |
| | |
| | | } |
| | | ); |
| | | }, |
| | | payTheFees (row) { |
| | | console.log(row) |
| | | this.$confirm("请确认是否审核通过?", { |
| | | confirmButtonText: "审核通过", |
| | | cancelButtonText: "审核不通过", |
| | | type: "warning", |
| | | }) |
| | | .then(() => { |
| | | var data ={ |
| | | id:row.id, |
| | | auditStatus:1 |
| | | } |
| | | return update(data).then(() => { |
| | | this.onLoad(this.page); |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!", |
| | | }); |
| | | }); |
| | | }) |
| | | .catch(() => { |
| | | var data ={ |
| | | id:row.id, |
| | | auditStatus:2 |
| | | } |
| | | return update(data).then(() => { |
| | | this.onLoad(this.page); |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!", |
| | | }); |
| | | }); |
| | | }); |
| | | }, |
| | | rowUpdates(row, index, done, loading) { |
| | | // console.log(42342); |
| | | update(row).then( |