| | |
| | | getdownloadBX, |
| | | addorupdateFund, |
| | | ManualCalculation, |
| | | getdetailsByItemId |
| | | getdetailsByItemId, |
| | | listbypower |
| | | } from "@/api/project/fund"; |
| | | |
| | | import { |
| | |
| | | "sys_professionaltitle" |
| | | ], |
| | | |
| | | data() { |
| | | data() { |
| | | // 自定义身份证号校验器 |
| | | const validateIdCard = (rule, value, callback) => { |
| | | // 1. 如果为空,交给 required 规则去处理,这里直接放行 |
| | |
| | | flowconclusion: null, |
| | | fundid: null |
| | | }, |
| | | // 连续审批:待审批单据列表 |
| | | pendingList: [], |
| | | |
| | | // 查询参数 |
| | | queryParams: { |
| | |
| | | handleCheck() { |
| | | this.isopen = 0; |
| | | this.reset(); |
| | | // 重置审批信息,避免上一单的审批结果带入下一单 |
| | | this.checkObj = { |
| | | flowlevelone: null, |
| | | flowconclusion: null, |
| | | fundid: null |
| | | }; |
| | | // 连续审批:加载当前业务类型下的待审批列表 |
| | | this.getPendingList(); |
| | | |
| | | getFund(this.curId).then(response => { |
| | | this.form = response.data; |
| | |
| | | |
| | | this.Savenow(); |
| | | console.log("保存并审批"); |
| | | }, |
| | | |
| | | // 连续审批:获取当前业务类型下的待审批列表 |
| | | getPendingList() { |
| | | return listbypower({ |
| | | pageNum: 1, |
| | | pageSize: 1000, |
| | | CHECKFLAG: 1, |
| | | APPLYTYPE: this.businessType |
| | | }) |
| | | .then(res => { |
| | | this.pendingList = res.rows || []; |
| | | }) |
| | | .catch(() => { |
| | | this.pendingList = []; |
| | | }); |
| | | }, |
| | | |
| | | // 连续审批:审批完成后询问是否继续审批下一单 |
| | | continueOrExit() { |
| | | // 重新拉取待审批列表(当前单据已审批完成被移出列表) |
| | | this.getPendingList().then(() => { |
| | | const list = this.pendingList || []; |
| | | const next = list[0] || null; |
| | | if (next) { |
| | | this.$confirm("审批已完成,是否继续审批下一张待审批单据?", "提示", { |
| | | confirmButtonText: "继续审批", |
| | | cancelButtonText: "返回列表", |
| | | type: "info" |
| | | }) |
| | | .then(() => { |
| | | // 在当前页面直接加载下一张待审批单据 |
| | | this.curId = next.id; |
| | | this.handleCheck(); |
| | | // 同步更新地址栏,避免刷新后回到上一单 |
| | | this.$router |
| | | .replace({ |
| | | path: this.$route.path, |
| | | query: { |
| | | id: next.id, |
| | | businessType: this.businessType, |
| | | operationType: "check" |
| | | } |
| | | }) |
| | | .catch(() => {}); |
| | | }) |
| | | .catch(() => { |
| | | this.exitToPage(); |
| | | }); |
| | | } else { |
| | | this.$modal.msgSuccess("已无待审批单据,返回列表"); |
| | | this.exitToPage(); |
| | | } |
| | | }); |
| | | }, |
| | | |
| | | // 返回列表页 |
| | | exitToPage() { |
| | | this.$store.dispatch("tagsView/delView", this.$route); |
| | | this.$router.go(-1); |
| | | }, |
| | | |
| | | // 取消按钮 |
| | |
| | | //关闭窗口 |
| | | this.$modal.closeLoading(); |
| | | this.$modal.msgSuccess("审核完成!"); |
| | | this.$store.dispatch("tagsView/delView", this.$route); |
| | | this.$router.go(-1); |
| | | // 连续审批:询问是否继续审批下一单 |
| | | this.continueOrExit(); |
| | | } else { |
| | | this.$modal.closeLoading(); |
| | | |