[update] 修改bug80048
This commit is contained in:
@@ -91,6 +91,7 @@
|
|||||||
<a-select v-if="formInline.applicationCategory === ApplicationCategory.INITIATION.value"
|
<a-select v-if="formInline.applicationCategory === ApplicationCategory.INITIATION.value"
|
||||||
v-model="formInline.projectType"
|
v-model="formInline.projectType"
|
||||||
:disabled="disabled || categoryTypeDisabled"
|
:disabled="disabled || categoryTypeDisabled"
|
||||||
|
@change="projectTypeChange"
|
||||||
:placeholder="$t('pleaseSelect')+$t('workCenter.enterpriseInitChangePlan.itemCategory')">
|
:placeholder="$t('pleaseSelect')+$t('workCenter.enterpriseInitChangePlan.itemCategory')">
|
||||||
<a-select-option :value="ProjectType.ENACT.value">{{ $t('workCenter.enterpriseInitChangePlan.formulate') }}</a-select-option>
|
<a-select-option :value="ProjectType.ENACT.value">{{ $t('workCenter.enterpriseInitChangePlan.formulate') }}</a-select-option>
|
||||||
<a-select-option :value="ProjectType.MODIFY.value">{{ $t('workCenter.enterpriseInitChangePlan.revise') }}</a-select-option>
|
<a-select-option :value="ProjectType.MODIFY.value">{{ $t('workCenter.enterpriseInitChangePlan.revise') }}</a-select-option>
|
||||||
@@ -637,11 +638,13 @@ export default {
|
|||||||
if (this.formInline.projectType) {
|
if (this.formInline.projectType) {
|
||||||
this.formInline.projectType = undefined
|
this.formInline.projectType = undefined
|
||||||
}
|
}
|
||||||
|
// 清空流程名称
|
||||||
|
this.processInfoForm.resetFields(['prcName'])
|
||||||
},
|
},
|
||||||
// 项目类别改变
|
// 项目类别改变
|
||||||
projectTypeChange (value) {
|
projectTypeChange (value) {
|
||||||
console.log(value, this.formInline.applicationCategory)
|
console.log(value, this.formInline.applicationCategory)
|
||||||
if (value) {
|
if (value && this.formInline.applicationCategory === ApplicationCategory.CHANGE.value) {
|
||||||
if (value === ProjectType.RESPONSIBLE_DEPT_CHANGE.value) {
|
if (value === ProjectType.RESPONSIBLE_DEPT_CHANGE.value) {
|
||||||
// 是责任部门变更
|
// 是责任部门变更
|
||||||
this.resetPersonInfoStructure('3')
|
this.resetPersonInfoStructure('3')
|
||||||
@@ -650,6 +653,8 @@ export default {
|
|||||||
this.resetPersonInfoStructure('2')
|
this.resetPersonInfoStructure('2')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// 清空流程名称
|
||||||
|
this.processInfoForm.resetFields(['prcName'])
|
||||||
},
|
},
|
||||||
// 选择用户得到用户名
|
// 选择用户得到用户名
|
||||||
userSelectNameChange (value, fieldName) {
|
userSelectNameChange (value, fieldName) {
|
||||||
|
|||||||
@@ -44,6 +44,7 @@
|
|||||||
v-model="formInline.newEnStandardName"
|
v-model="formInline.newEnStandardName"
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
:maxLength="200"
|
:maxLength="200"
|
||||||
|
@blur="newEnStandardNameBlur"
|
||||||
@change="event => event.target.value = event.target.value.trim()"
|
@change="event => event.target.value = event.target.value.trim()"
|
||||||
:placeholder="$t('pleaseEnter')+$t('workCenter.enterpriseInitChangePlan.enterpriseStandardName')" />
|
:placeholder="$t('pleaseEnter')+$t('workCenter.enterpriseInitChangePlan.enterpriseStandardName')" />
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
@@ -169,6 +170,7 @@
|
|||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
v-model="formInline.newEnStandardName"
|
v-model="formInline.newEnStandardName"
|
||||||
:maxLength="200"
|
:maxLength="200"
|
||||||
|
@blur="newEnStandardNameBlur"
|
||||||
@change="event => event.target.value = event.target.value.trim()"
|
@change="event => event.target.value = event.target.value.trim()"
|
||||||
:placeholder="$t('pleaseEnter')+$t('workCenter.enterpriseInitChangePlan.newEnterpriseStandardName')" />
|
:placeholder="$t('pleaseEnter')+$t('workCenter.enterpriseInitChangePlan.newEnterpriseStandardName')" />
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
@@ -660,10 +662,6 @@ export default {
|
|||||||
// 原企标编号改变,新企标编号随之改变
|
// 原企标编号改变,新企标编号随之改变
|
||||||
'formInline.originEnStandardNo' (value) {
|
'formInline.originEnStandardNo' (value) {
|
||||||
this.getEnStandardNo()
|
this.getEnStandardNo()
|
||||||
},
|
|
||||||
// 企标名称,企标名称修改流程名称需要自动更改
|
|
||||||
'formInline.newEnStandardName' (value) {
|
|
||||||
this.returnProcessName()
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@@ -873,6 +871,10 @@ export default {
|
|||||||
decadeCodeChange (value) {
|
decadeCodeChange (value) {
|
||||||
this.getEnStandardNo()
|
this.getEnStandardNo()
|
||||||
},
|
},
|
||||||
|
newEnStandardNameBlur (value) {
|
||||||
|
// 企标名称,企标名称修改流程名称需要自动更改
|
||||||
|
this.returnProcessName()
|
||||||
|
},
|
||||||
// 返回流程名称
|
// 返回流程名称
|
||||||
returnProcessName () {
|
returnProcessName () {
|
||||||
const processName = (this.formInline.newEnStandardNo || '') + '-' + (this.formInline.newEnStandardName || '') + '-' + '立项'
|
const processName = (this.formInline.newEnStandardNo || '') + '-' + (this.formInline.newEnStandardName || '') + '-' + '立项'
|
||||||
|
|||||||
Reference in New Issue
Block a user