[update] 企标立项变更流程-制定最后一个节点企标编号变为可编辑,且不和流程名称联动
This commit is contained in:
@@ -1061,6 +1061,8 @@ export default {
|
||||
if (!this.approvalInfoForm.getFieldValue('commitText')) {
|
||||
this.approvalInfoForm.setFieldsValue({ commitText: '同意' })
|
||||
}
|
||||
let haveErr = false
|
||||
const arr = []
|
||||
const param = {} // 需要传给后端的数据
|
||||
this.approvalInfoForm.validateFields((err, values) => {
|
||||
if (this.formInline.projectType === this.ProjectType.RESPONSIBLE_DEPT_CHANGE.value && this.currentNode === 6) {
|
||||
@@ -1074,12 +1076,37 @@ export default {
|
||||
param.flowUser = { newMainDraftUserLeaderLeader: this.$refs.changeBaseInfo.formInline.newMainDraftingUnitResponsiblePerson }
|
||||
}
|
||||
})
|
||||
} else if (this.formInline.projectType === this.ProjectType.ENACT.value && this.currentNode === 6) {
|
||||
// 是立项-制定,并且是最后一个节点(标准化审批)
|
||||
this.$refs.approvalBaseInfo.$refs.ruleForm.validate(approvalBaseValid => {
|
||||
if (approvalBaseValid && !err) {
|
||||
const params = Object.assign({}, this.formInline, this.$refs.approvalBaseInfo.formInline)
|
||||
// 企标体系处理成逗号分隔
|
||||
params.enStandardSystem = params.enStandardSystem.map(item => item.value).join(',')
|
||||
// 处理隶属工作组
|
||||
if (params.workGroup) {
|
||||
params.workGroup_dictText = params.workGroup.label
|
||||
params.workGroup = params.workGroup.value
|
||||
}
|
||||
arr.push(params)
|
||||
param.dataList = arr
|
||||
param.common = Object.assign({}, values)
|
||||
param.common.taskId = this.$route.query.taskId
|
||||
haveErr = false
|
||||
} else {
|
||||
haveErr = true
|
||||
}
|
||||
})
|
||||
} else {
|
||||
if (!err) {
|
||||
param.common = Object.assign({}, values)
|
||||
param.common.taskId = this.$route.query.taskId
|
||||
}
|
||||
}
|
||||
if (haveErr) {
|
||||
this.switchValue = 'base'
|
||||
return
|
||||
}
|
||||
this.loading = true
|
||||
enterprisePlanApprovalAgree(param).then(res => {
|
||||
if (res.success) {
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
<a-input class="box-input"
|
||||
v-model="formInline.newEnStandardNo"
|
||||
:maxLength="50"
|
||||
disabled
|
||||
:disabled="currentNode !== 6"
|
||||
:placeholder="$t('pleaseEnter')+$t('workCenter.enterpriseInitChangePlan.enterpriseStandardNum')" />
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
@@ -644,6 +644,11 @@ export default {
|
||||
type: Boolean,
|
||||
required: false,
|
||||
default: false
|
||||
},
|
||||
currentNode: {
|
||||
type: Number,
|
||||
required: false,
|
||||
default: 1
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
|
||||
Reference in New Issue
Block a user