feat: There is no way the buss

This commit is contained in:
super_liu
2021-08-25 10:55:51 +08:00
parent c26b78acda
commit 6b89c5f430
@@ -775,7 +775,19 @@
</el-col>
<el-col :span="12">
<el-form-item label="体系类别" prop="TXLBBUSS">
<el-input v-model="standForm.TXLBBUSS" clearable placeholder="请输入体系类别"></el-input>
<el-input v-model="standForm.TXLBBUSS" placeholder="选择体系类别" @click.native="choiceZRRTxlbBuss('TXLBBUSS', '体系类别', standForm.TXLBBUSS)"></el-input>
<tree-select-new
width = "800"
:key="keyBuss"
:multiple=false
:lazy=false
:check-strictly= true
:modalShowFlag="modalShowFlagBuss"
:drawerTitle="drawerTitle"
:show-checkBox="showCheckBox"
:data="standSystemBussOptions"
:defaultProps="defaultProps" :checkedKeys="defaultCheckedKeys"
:nodeKey="nodeKey" @popoverHide="popoverBuss"></tree-select-new>
</el-form-item>
</el-col>
</el-row>
@@ -1126,6 +1138,7 @@ export default {
modalShowFlag2: false, // drawer开关
modalShowFlag3: false, // drawer开关
modalShowFlag4: false, // drawer开关
modalShowFlagBuss: false, // drawer开关
url:'',
urlChild:'',
drawerTitle: '', //drawer标题
@@ -1151,6 +1164,7 @@ export default {
key1:2,
key2:3,
key3:4,
keyBuss:5,
nodeKey: 'id',
defaultCheckedKeys: [],
nodeKeyCode: 'code',
@@ -1302,6 +1316,7 @@ export default {
// 国家/地区
countryOptions: [],
standSystemOptions: [], // 标准体系
standSystemBussOptions: [], // 企标体系
busVppsOptions: [], // 车系体系架构
busVppsChildOptions: [], // 车系体系架构子集合
modelOptions: [], // 模块体系架构
@@ -1390,11 +1405,19 @@ export default {
// 国内外标准
const inlandList = data['INLAND_STAND'] || []
const foreignList = data['FOREIGN_STAND'] || []
const bussList = data['BUSS'] || []
const foreignFilterList = foreignList.filter ( item => item.attrField === 'GXHBQ' || item.attrField === 'ZBJBD' || item.attrField === 'KWJ' || item.attrField === 'TXLB');
this.formFieldListStandData = this.formFieldListStandData.concat(inlandList).concat(foreignFilterList);
const bussFilterList = bussList.filter ( item => item.attrField !== 'QCDW' && item.attrField !== 'XGLC');
this.formFieldListStandData = this.formFieldListStandData.concat(inlandList).concat(foreignFilterList).concat(bussFilterList);
console.log(this.formFieldListStandData)
}
}, e => {})
},
choiceZRRTxlbBuss (type, title, id) {
this.drawerTitle = title
this.modalShowFlagBuss = true
this.keyBuss++
},
choiceZRR1 (type, title, id) {
this.drawerTitle = title
this.modalShowFlag1 = true
@@ -1427,6 +1450,17 @@ export default {
this.urlChild="sarModelTree/childByList"
this.key3++
},
popoverBuss (checkedIds, checkedData,isShow,isLoadChild,topId) {
if(checkedData) {
if(checkedData.length > 0){
this.standForm.TXLBBUSS = checkedData.map(item => item.menuName).join(",")
}else {
this.standForm.TXLBBUSS = checkedData.menuName
}
}
this.modalShowFlagBuss = false
this.$forceUpdate()
},
popoverHideModel (checkedIds, checkedData,isShow,isLoadChild,topId) {
if(checkedData) {
if(checkedData.length > 0){
@@ -1784,7 +1818,7 @@ export default {
const formFieldList = this.formFieldListStandData
const sarStandAttrObj = {}
formFieldList.forEach((item) => {
const attrField = item.attrField.toLowerCase();
const attrField = this.selectIndex === 'INLAND_STAND' ? item.attrField.toLowerCase() : item.attrField;
const value = nowStandForm[attrField]
// 时间格式处理
if (item.attrType === 'DATE_PICKER' && value) {
@@ -2407,6 +2441,7 @@ export default {
this.standNatureOptions = res.data.SARPROPERTY // 标准性质
this.standStateOptions = res.data.WBZTCLASS // 文本状态
this.standSystemOptions = res.data.BZTXCLASS // 标准体系
this.standSystemBussOptions = res.data.TXLBBUSS // 企标体系
this.applyArcticOptions = res.data.ENERGYTYPES // 根据需求文档,产品类别对应标准属性中的“适用车型”
this.categoryOptions = res.data.NYLXCLASS // 能源类型
this.applyAuthOptions = res.data.SYRZCLASS // 适用认证