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