|
@@ -55,7 +55,7 @@
|
|
|
<el-form-item
|
|
|
:prop="i.materialQuality"
|
|
|
:class="enginType != '基建工程' && enginType != '民用工程' ? 'labelWidth' : '' "
|
|
|
- label="材质"
|
|
|
+ :label="activeNames == '阀管' ? '灶具管厂家': '材质'"
|
|
|
v-show="i.materialQuality != null"
|
|
|
label-width="95px"
|
|
|
>
|
|
@@ -63,7 +63,7 @@
|
|
|
<!-- <el-input v-model="item.materialQuality" placeholder="请输入材质" style="width: 100%"/>-->
|
|
|
<el-select v-model="i.materialQuality" placeholder="请选择材质" style="width: 100%" @change="getEnginSpecificationsList(i, index,idx)" :disabled="status == 'read-only' ">
|
|
|
<el-option
|
|
|
- v-for="e in materialQualityList"
|
|
|
+ v-for="e in (activeNames == '阀管' ?materialQualityList_zjg:materialQualityList)"
|
|
|
:key="e.id"
|
|
|
:label="e.name"
|
|
|
:value="e.id"
|
|
@@ -142,10 +142,10 @@
|
|
|
<!-- <el-input v-model="item.materialQuality" placeholder="请输入材质" style="width: 100%"/>-->
|
|
|
<el-select v-model="i.corrosionLevel" placeholder="请选择腐蚀等级" style="width: 100%" :disabled="status == 'read-only' ">
|
|
|
<el-option
|
|
|
- v-for="e in corrosionLevelList"
|
|
|
- :key="e.dictValue"
|
|
|
- :label="e.dictLabel"
|
|
|
- :value="e.dictValue"
|
|
|
+ v-for="e in materialQualityList"
|
|
|
+ :key="e.id"
|
|
|
+ :label="e.name"
|
|
|
+ :value="e.id"
|
|
|
></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
@@ -177,10 +177,10 @@
|
|
|
<!-- <el-input v-model="item.materialQuality" placeholder="请输入材质" style="width: 100%"/>-->
|
|
|
<el-select v-model="i.selfClosingValveType" placeholder="请选择自闭阀类型" style="width: 100%" :disabled="status == 'read-only' ">
|
|
|
<el-option
|
|
|
- v-for="e in dict.type.self_closing_valve_type"
|
|
|
- :key="e.value"
|
|
|
- :label="e.label"
|
|
|
- :value="e.value"
|
|
|
+ v-for="e in materialQualityList_zjg"
|
|
|
+ :key="e.id"
|
|
|
+ :label="e.name"
|
|
|
+ :value="e.id"
|
|
|
></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
@@ -194,10 +194,10 @@
|
|
|
<!-- <el-input v-model="item.materialQuality" placeholder="请输入材质" style="width: 100%"/>-->
|
|
|
<el-select v-model="i.brand" placeholder="请选择品牌" style="width: 100%" :disabled="status == 'read-only' ">
|
|
|
<el-option
|
|
|
- v-for="e in dict.type.brand"
|
|
|
- :key="e.value"
|
|
|
- :label="e.label"
|
|
|
- :value="e.value"
|
|
|
+ v-for="e in materialQualityList"
|
|
|
+ :key="e.id"
|
|
|
+ :label="e.name"
|
|
|
+ :value="e.id"
|
|
|
></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
@@ -416,6 +416,8 @@ export default {
|
|
|
props: ['currentCollapses','nodeDetailType','enginType','status','zEngineeringNodeBo'],
|
|
|
data() {
|
|
|
return {
|
|
|
+ enginSort:'',
|
|
|
+ enginNode:'',
|
|
|
currentDicts: [], // 当前类型工程节点项
|
|
|
dialogVisible: false,
|
|
|
activeNames: '',
|
|
@@ -431,7 +433,8 @@ export default {
|
|
|
}
|
|
|
],
|
|
|
nodesource:'',// 审核状态option
|
|
|
- corrosionLevelList:[], // 腐蚀等级option
|
|
|
+ materialQualityList_zbf:[], // 自闭阀option
|
|
|
+ materialQualityList_zjg:[], // 灶具管option
|
|
|
materialQualityList:[], // 材质
|
|
|
specificationsList:[], // 规格
|
|
|
materialComponList:[],
|
|
@@ -476,11 +479,6 @@ export default {
|
|
|
console.log('规格',res.data)
|
|
|
this.corrosionLevelListAll = res.data
|
|
|
})
|
|
|
- // 获取腐蚀等级
|
|
|
- getDictType({dictType:'corrosion_level'}).then(res => {
|
|
|
- console.log('腐蚀等级',res)
|
|
|
- this.corrosionLevelList = res.data
|
|
|
- })
|
|
|
|
|
|
},
|
|
|
mounted() {
|
|
@@ -616,6 +614,27 @@ export default {
|
|
|
},
|
|
|
// 查看历史
|
|
|
open(dicts, type = null,currentStatus = null,kind = null,title= null) {
|
|
|
+ let data = {enginType:this.enginType}
|
|
|
+ if (this.enginSort !== undefined){
|
|
|
+ data['enginSort'] = this.enginSort
|
|
|
+ data['enginNode'] = this.enginNode
|
|
|
+ }
|
|
|
+ // 腐蚀等级
|
|
|
+ data.enginStep = this.activeNames;
|
|
|
+ if(this.activeNames == '阀管'){
|
|
|
+ data.nameType = "自闭阀厂家";
|
|
|
+ getEnginMaterialQualityList(data).then(res => {
|
|
|
+ this.materialQualityList_zbf = res.data
|
|
|
+ })
|
|
|
+ data.nameType = "灶具管厂家";
|
|
|
+ getEnginMaterialQualityList(data).then(res => {
|
|
|
+ this.materialQualityList_zjg = res.data
|
|
|
+ })
|
|
|
+ }
|
|
|
+ getEnginMaterialQualityList(data).then(res => {
|
|
|
+ this.materialQualityList = res.data
|
|
|
+ })
|
|
|
+
|
|
|
this.currentStatus = currentStatus
|
|
|
this.titleName = title
|
|
|
this.checkingVisible = false
|