fix 标准化活动节点类型
This commit is contained in:
@@ -268,10 +268,10 @@ export const StandardProperty = {
|
||||
|
||||
// 标准化活动类型
|
||||
export const StandardizedActivityType = new EsEnums({
|
||||
rootNode: { text: '根节点', value: '1' },
|
||||
secondLevelBidCommittee: { text: '分标委', value: '2' },
|
||||
workingTeam: { text: '工作组', value: '3' },
|
||||
fourLevelBiddingCommittee: { text: '分标委', value: '4' }
|
||||
rootNode: { text: '总标委', value: 'ROOT' },
|
||||
secondLevelBidCommittee: { text: '委员会', value: 'WYH' },
|
||||
workingTeam: { text: '分标委', value: 'FBW' },
|
||||
fourLevelBiddingCommittee: { text: '工作组', value: 'GROUP' }
|
||||
})
|
||||
|
||||
// 支付状态
|
||||
|
||||
+17
-6
@@ -29,11 +29,10 @@
|
||||
<a-form-item :labelCol="labelCol"
|
||||
:wrapperCol="wrapperCol"
|
||||
:label="$t('businessSupport.standardizationActivity.nodeTypes')">
|
||||
<a-input :placeholder="$t('pleaseEnter') + $t('businessSupport.standardizationActivity.nodeTypes')"
|
||||
@change="event => event.target.value = event.target.value.trim()"
|
||||
:maxLength="50"
|
||||
disabled
|
||||
v-decorator="['standardizationType', validatorRules.standardizationType]" />
|
||||
<j-dict-select-tag :placeholder="$t('pleaseSelect') + $t('businessSupport.standardizationActivity.nodeTypes')"
|
||||
v-decorator="['standardizationType', validatorRules.standardizationType]"
|
||||
disabled
|
||||
dict-code="standardization_type" />
|
||||
</a-form-item>
|
||||
<!--编号-->
|
||||
<a-form-item :labelCol="labelCol"
|
||||
@@ -220,7 +219,19 @@ export default {
|
||||
this.title = this.$t('newlyAdded')
|
||||
this.visible = true
|
||||
this.disabled = false
|
||||
record.standardizationType = StandardizedActivityType.secondLevelBidCommittee.text
|
||||
switch (record.level) {
|
||||
case 1:
|
||||
record.standardizationType = StandardizedActivityType.secondLevelBidCommittee.value
|
||||
break
|
||||
case 2:
|
||||
record.standardizationType = StandardizedActivityType.workingTeam.value
|
||||
break
|
||||
case 3:
|
||||
record.standardizationType = StandardizedActivityType.fourLevelBiddingCommittee.value
|
||||
break
|
||||
default:
|
||||
break
|
||||
}
|
||||
this.model = Object.assign({}, record)
|
||||
this.$nextTick(() => {
|
||||
this.form.setFieldsValue(this.model)
|
||||
|
||||
@@ -75,7 +75,7 @@ export default {
|
||||
{
|
||||
title: this.$t('businessSupport.standardizationActivity.nodeTypes'),
|
||||
width: 100,
|
||||
dataIndex: 'standardizationType'
|
||||
dataIndex: 'standardizationType_dictText'
|
||||
},
|
||||
// 编号
|
||||
{
|
||||
@@ -206,4 +206,4 @@ export default {
|
||||
<style scoped lang="less">
|
||||
@import '~@assets/less/common.less';
|
||||
|
||||
</style>
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user