[update] 标准化发起流程修改

This commit is contained in:
lideqin
2023-12-15 10:09:44 +08:00
parent a696d33673
commit 27d6824de8
2 changed files with 15 additions and 2 deletions
@@ -392,6 +392,7 @@ export default {
param.dataList = data.dataSource
param.flowUser = personnelObj
let func
this.loading = true
if (this.$route.query.taskId) {
// 有taskId说明是驳回的提交
func = standardizationInitAgree
@@ -445,13 +446,14 @@ export default {
if (this.loading) return
// 流程审批信息校验
this.approvalInfoForm.validateFields((approvalErr, approvalValues) => {
const data = this.$refs.baseInfoFormRef.getDataValidate()
const data = this.$refs.baseInfoRef.getDataValidate()
if (!approvalErr && data) {
// 只有表格
const param = {}
param.common = approvalValues
param.common.taskId = this.$route.query.taskId
param.dataList = data.dataSource
this.loading = true
standardizationInitAgree(param).then(res => {
if (res.success) {
this.$message.success(res.message)
@@ -473,13 +475,14 @@ export default {
this.approvalInfoForm.setFieldsValue({ commitText: '同意' })
}
this.approvalInfoForm.validateFields((err, values) => {
const data = this.$refs.baseInfoFormRef.getDataValidate()
const data = this.$refs.baseInfoRef.getDataValidate()
if (!err && data) {
// 只有表格
const param = {}
param.common = values
param.common.taskId = this.$route.query.taskId
param.dataList = data.dataSource
this.loading = true
standardizationInitAgree(param).then(res => {
if (res.success) {
this.$message.success(res.message)
@@ -823,11 +823,21 @@ export default {
if (!this.formInline.applicationType) {
this.formInline.applicationType = this.ApplicationCategory.INITIATION.value
}
if (this.formInline.enStandardSystem && this.formInline.enStandardSystem.length > 0) {
this.formInline.enStandardSystem = this.formInline.enStandardSystem ? this.formInline.enStandardSystem.split(',').map(item => {
return { value: item }
}) : []
}
},
look (record) {
this.visible = true
this.model = Object.assign({}, record)
this.formInline = Object.assign({}, record)
if (this.formInline.enStandardSystem && this.formInline.enStandardSystem.length > 0) {
this.formInline.enStandardSystem = this.formInline.enStandardSystem ? this.formInline.enStandardSystem.split(',').map(item => {
return { value: item }
}) : []
}
this.disabled = true
},
// 获取标准体系下拉框数据