Browse Source

fix:提交给的单位必须是审计单位

main
buaixuexideshitongxue 3 weeks ago
parent
commit
a1dade1965
  1. 6
      src/components/reportAudit/start.vue
  2. 2
      src/views/report/edit/controlPrice.vue

6
src/components/reportAudit/start.vue

@ -7,7 +7,7 @@
import useCatchStore from "@/stores/modules/catch"; import useCatchStore from "@/stores/modules/catch";
import useUserStore from "@/stores/modules/user"; import useUserStore from "@/stores/modules/user";
const userStore = useUserStore(); const userStore = useUserStore();
const props = defineProps(['dialog','reportId','nextNode','message',"isWarning","isCityAudit","reportProject", 'currentNode']) const props = defineProps(['dialog','reportId','nextNode','message',"isWarning","isCityAudit","reportProject", 'currentNode', 'auditUnitId'])
const emits = defineEmits(['submitFeedback',"closeFun"]) const emits = defineEmits(['submitFeedback',"closeFun"])
import { getDictValue } from "@/utils/util"; import { getDictValue } from "@/utils/util";
import { saveLastChoice, loadLastChoice } from '@/utils/lastChoice'; import { saveLastChoice, loadLastChoice } from '@/utils/lastChoice';
@ -93,6 +93,10 @@
} }
const submitFun = async ()=>{ const submitFun = async ()=>{
if (props.auditUnitId && formData.value.approverUnitId !== props.auditUnitId) {
feedback.msgWarning("办理单位必须与审计单位一致!");
return;
}
debugger debugger
await auditForm.value.validate(); await auditForm.value.validate();
await feedback.confirm("是否确认通过?"); await feedback.confirm("是否确认通过?");

2
src/views/report/edit/controlPrice.vue

@ -1475,7 +1475,7 @@ function hasAuditAttachment() {
<report-file :preview="preview" :activeFile="actionRow" @closeFile="closeFile"/> <report-file :preview="preview" :activeFile="actionRow" @closeFile="closeFile"/>
<report-audit @submitFeedback="submitFeedback" @closeFun="closeAudit" :reportId="formData.project.id" :isCityAudit="isCityAudit" <report-audit @submitFeedback="submitFeedback" @closeFun="closeAudit" :reportId="formData.project.id" :isCityAudit="isCityAudit"
:dialog="dialog" :currentNode="formData.project.node"/> :dialog="dialog" :currentNode="formData.project.node" :auditUnitId="formData.project.auditUnitId"/>
<report-audit-finish @submitFeedback="submitFeedback" @closeFun="closeAudit" :node="formData.project.node" <report-audit-finish @submitFeedback="submitFeedback" @closeFun="closeAudit" :node="formData.project.node"
:reportId="formData.project.id" :dialog="finishDialog" :isAudit="true"></report-audit-finish> :reportId="formData.project.id" :dialog="finishDialog" :isAudit="true"></report-audit-finish>
<report-audit-reject @submitFeedback="submitFeedback" @closeFun="closeAudit" :node="formData.project.node" <report-audit-reject @submitFeedback="submitFeedback" @closeFun="closeAudit" :node="formData.project.node"

Loading…
Cancel
Save