feat : 需求汇总年度计划审批前置流程选择

This commit is contained in:
clay
2024-07-24 00:28:42 +08:00
parent 1194f04eb6
commit fe8ca80452
4 changed files with 72 additions and 22 deletions

View File

@@ -21,6 +21,7 @@
:data="detailData"
:processViewer="commonProvessViewer"
:fileListShow="fileListShow"
:preProcessShow="preProcessShow"
v-model:value="auditOpinion"/>
<ApprovalDetail type="execute"
v-if="showActive == '40'&&!editShow"
@@ -28,6 +29,7 @@
:data="detailData"
:processViewer="commonProvessViewer"
:fileListShow="fileListShow"
:preProcessShow="preProcessShow"
v-model:value="auditOpinion"/>
<ApprovalDetail type="archivist"
v-if="showActive == '50'&&!editShow"
@@ -35,12 +37,14 @@
:data="detailData"
:processViewer="commonProvessViewer"
:fileListShow="fileListShow"
:preProcessShow="preProcessShow"
v-model:value="auditOpinion"/>
<project-apply :title="applyTitle"
v-if="editShow"
:mode="mode"
:step="showActive"
:data="detailData"
:preProcessShow="preProcessShow"
:formData="detailData.formData"/>
</template>
</steps>
@@ -64,6 +68,7 @@ const applyTitle = ref('filing')
const loading = ref(false)
const processStore = useProcessStore()
const fileListShow = ref('READ')
const preProcessShow = ref('READ')
const mode = ref('')
const currentStep = ref()
const auditOpinion = ref('')
@@ -89,6 +94,7 @@ const getAllInfo = async (state) => {
try {
detailShow.value = false
fileListShow.value = 'READ'
preProcessShow.value = 'READ'
commonProvessViewer.value = false
const {data, code, msg} = await getMapProjectStateInfo(route.query.projectId, state)
if (code === 1000) {
@@ -108,6 +114,9 @@ const getAllInfo = async (state) => {
if (data.formPermMap && data.formPermMap["fileList"]) {
fileListShow.value = data.formPermMap["fileList"].perm
}
if (data.formPermMap && data.formPermMap["preProcess"]) {
preProcessShow.value = data.formPermMap["preProcess"].perm
}
})
changeModel(state, mode.value)
loading.close()

View File

@@ -99,6 +99,15 @@ const formPermsLoadMosr = (oldPermMap, perms) => {
perm: nowNode.value.type === "ROOT" ? "E" : "R"
});
}
if (perm.id === 'preProcess'){
formPerms.value.push({
id: perm.id, //todo ,id 就是字段名称
title: perm.title,
required: perm.required,
perm: 'H'
});
}
}
})
}