fix 81062

This commit is contained in:
danshihao
2024-01-19 17:42:39 +08:00
parent a0c306aeff
commit 5e439359e5
3 changed files with 59 additions and 40 deletions
@@ -261,10 +261,22 @@ export default {
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.baseInfoForm.initData(this.formInfo) this.$refs.baseInfoForm.initData(this.formInfo)
}) })
} else {
// 非强制撤回调接口查数据
this.getFormInfo()
} }
} else { } else {
// 非草稿调用接口拿数据回显 // 非草稿调用接口查数据
getInspectRectifyDataById({ projectId }).then(res => { this.getFormInfo()
}
}
}).finally(() => {
this.loading = false
})
},
// 获取业务数据
getFormInfo () {
getInspectRectifyDataById({ projectId: this.projectId }).then(res => {
if (res.success) { if (res.success) {
const data = res.result || {} const data = res.result || {}
this.formInfo = data this.formInfo = data
@@ -273,11 +285,6 @@ export default {
}) })
} }
}) })
}
}
}).finally(() => {
this.loading = false
})
}, },
// 获取人员信息 // 获取人员信息
getPersonInfo (isValidate = true) { getPersonInfo (isValidate = true) {
@@ -357,9 +357,21 @@ export default {
standardNumbers: data.standardNumbers, standardNumbers: data.standardNumbers,
applyDetail: data.applyDetail applyDetail: data.applyDetail
}) })
} else {
// 非强制撤回调接口查数据
this.getFormInfo()
} }
} else { } else {
// 非草稿获取业务数据 // 非草稿调用接口查数据
this.getFormInfo()
}
}
}).finally(() => {
this.loading = false
})
},
// 获取业务表单信息
getFormInfo () {
getPermissionApplyDataById({ projectId: this.projectId }).then(res => { getPermissionApplyDataById({ projectId: this.projectId }).then(res => {
if (res.success) { if (res.success) {
const data = res.result || {} const data = res.result || {}
@@ -367,8 +379,6 @@ export default {
// 发起节点的表格和审批节点的表格,哪个存在回显哪个的数据 // 发起节点的表格和审批节点的表格,哪个存在回显哪个的数据
this.$refs.baseInfoTable && this.$refs.baseInfoTable.setData(list) this.$refs.baseInfoTable && this.$refs.baseInfoTable.setData(list)
this.$refs.applyPermissionTable && this.$refs.applyPermissionTable.setData(list) this.$refs.applyPermissionTable && this.$refs.applyPermissionTable.setData(list)
// 保存并回显表单信息
this.info = cloneDeep(data)
this.formInfo = data this.formInfo = data
this.baseInfoForm.setFieldsValue({ this.baseInfoForm.setFieldsValue({
expirationDate: data.expirationDate, expirationDate: data.expirationDate,
@@ -378,11 +388,6 @@ export default {
}) })
} }
}) })
}
}
}).finally(() => {
this.loading = false
})
}, },
// 获取人员信息 // 获取人员信息
getPersonInfo (isValidate = true) { getPersonInfo (isValidate = true) {
@@ -286,9 +286,21 @@ export default {
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.baseInfoForm.initData(this.formInfo) this.$refs.baseInfoForm.initData(this.formInfo)
}) })
} else {
// 非强制撤回调接口查数据
this.getFormInfo()
} }
} else { } else {
// 非草稿获取业务数据 // 非草稿调用接口查数据
this.getFormInfo()
}
}
}).finally(() => {
this.loading = false
})
},
// 获取表单业务数据
getFormInfo () {
getPostMeetingManageDataById({ projectId: this.projectId }).then(res => { getPostMeetingManageDataById({ projectId: this.projectId }).then(res => {
if (res.success) { if (res.success) {
const data = res.result || {} const data = res.result || {}
@@ -299,11 +311,6 @@ export default {
}) })
} }
}) })
}
}
}).finally(() => {
this.loading = false
})
}, },
// 获取人员信息 // 获取人员信息
getPersonInfo (isValidate = true) { getPersonInfo (isValidate = true) {