[update] 标准化发起流程修改
This commit is contained in:
+5
-2
@@ -392,6 +392,7 @@ export default {
|
|||||||
param.dataList = data.dataSource
|
param.dataList = data.dataSource
|
||||||
param.flowUser = personnelObj
|
param.flowUser = personnelObj
|
||||||
let func
|
let func
|
||||||
|
this.loading = true
|
||||||
if (this.$route.query.taskId) {
|
if (this.$route.query.taskId) {
|
||||||
// 有taskId说明是驳回的提交
|
// 有taskId说明是驳回的提交
|
||||||
func = standardizationInitAgree
|
func = standardizationInitAgree
|
||||||
@@ -445,13 +446,14 @@ export default {
|
|||||||
if (this.loading) return
|
if (this.loading) return
|
||||||
// 流程审批信息校验
|
// 流程审批信息校验
|
||||||
this.approvalInfoForm.validateFields((approvalErr, approvalValues) => {
|
this.approvalInfoForm.validateFields((approvalErr, approvalValues) => {
|
||||||
const data = this.$refs.baseInfoFormRef.getDataValidate()
|
const data = this.$refs.baseInfoRef.getDataValidate()
|
||||||
if (!approvalErr && data) {
|
if (!approvalErr && data) {
|
||||||
// 只有表格
|
// 只有表格
|
||||||
const param = {}
|
const param = {}
|
||||||
param.common = approvalValues
|
param.common = approvalValues
|
||||||
param.common.taskId = this.$route.query.taskId
|
param.common.taskId = this.$route.query.taskId
|
||||||
param.dataList = data.dataSource
|
param.dataList = data.dataSource
|
||||||
|
this.loading = true
|
||||||
standardizationInitAgree(param).then(res => {
|
standardizationInitAgree(param).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
@@ -473,13 +475,14 @@ export default {
|
|||||||
this.approvalInfoForm.setFieldsValue({ commitText: '同意' })
|
this.approvalInfoForm.setFieldsValue({ commitText: '同意' })
|
||||||
}
|
}
|
||||||
this.approvalInfoForm.validateFields((err, values) => {
|
this.approvalInfoForm.validateFields((err, values) => {
|
||||||
const data = this.$refs.baseInfoFormRef.getDataValidate()
|
const data = this.$refs.baseInfoRef.getDataValidate()
|
||||||
if (!err && data) {
|
if (!err && data) {
|
||||||
// 只有表格
|
// 只有表格
|
||||||
const param = {}
|
const param = {}
|
||||||
param.common = values
|
param.common = values
|
||||||
param.common.taskId = this.$route.query.taskId
|
param.common.taskId = this.$route.query.taskId
|
||||||
param.dataList = data.dataSource
|
param.dataList = data.dataSource
|
||||||
|
this.loading = true
|
||||||
standardizationInitAgree(param).then(res => {
|
standardizationInitAgree(param).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
|
|||||||
+10
@@ -823,11 +823,21 @@ export default {
|
|||||||
if (!this.formInline.applicationType) {
|
if (!this.formInline.applicationType) {
|
||||||
this.formInline.applicationType = this.ApplicationCategory.INITIATION.value
|
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) {
|
look (record) {
|
||||||
this.visible = true
|
this.visible = true
|
||||||
this.model = Object.assign({}, record)
|
this.model = Object.assign({}, record)
|
||||||
this.formInline = 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
|
this.disabled = true
|
||||||
},
|
},
|
||||||
// 获取标准体系下拉框数据
|
// 获取标准体系下拉框数据
|
||||||
|
|||||||
Reference in New Issue
Block a user