| | |
| | | checkfund, |
| | | listbypower, |
| | | addFundSharedInfo, |
| | | TotalcalculationFn |
| | | TotalcalculationFn, |
| | | validateExpertFee |
| | | } from "@/api/project/fund"; |
| | | import { |
| | | onelistFunds, |
| | |
| | | checkmaterials: [ |
| | | { |
| | | value: 1, |
| | | label: "材料待审核" |
| | | label: "待审核" |
| | | }, |
| | | { |
| | | value: 2, |
| | | label: "审查通过等待邮寄纸质材料" |
| | | label: "审查通过等待纸质材料" |
| | | }, |
| | | { |
| | | value: 3, |
| | |
| | | this.$modal.msgError("请选择审核结论!"); |
| | | return; |
| | | } |
| | | |
| | | // 审核“通过”前:先做专家劳务费 9 条费用控制校验(与后端拦截同口径) |
| | | if (checkfundobj.flowconclusion == 1) { |
| | | validateExpertFee({ id: this.form.id }).then(valid => { |
| | | const errors = (valid && valid.errors) || []; |
| | | const warnings = (valid && valid.warnings) || []; |
| | | if (warnings.length > 0) { |
| | | this.$modal.msgWarning(warnings.join(";")); |
| | | } |
| | | if (errors.length > 0) { |
| | | this.$modal.msgError("不能审核通过:" + errors.join(";")); |
| | | return; |
| | | } |
| | | this.doCheckfund(checkfundobj); |
| | | }); |
| | | return; |
| | | } |
| | | // 不通过:无需校验限额 |
| | | this.doCheckfund(checkfundobj); |
| | | }, |
| | | doCheckfund(checkfundobj) { |
| | | checkfund(checkfundobj).then(res => { |
| | | if (res.code == 200) { |
| | | this.reset(); |
| | |
| | | this.getlistbypower(); |
| | | this.dialogOpen = false; |
| | | } else { |
| | | if (res.msg) { |
| | | this.$modal.msgError("操作失误"); |
| | | } else { |
| | | this.$modal.msgError(res.msg); |
| | | } |
| | | // 后端返回的具体原因(如超限额)优先展示 |
| | | this.$modal.msgError(res.msg || "操作失误"); |
| | | } |
| | | }); |
| | | }, |