|
@@ -162,13 +162,13 @@
|
|
|
<view>
|
|
|
原因
|
|
|
</view>
|
|
|
- <view v-if="this.isEmpty(this.reasonValue.id)" style="margin-top: 10;"
|
|
|
+ <view v-if="this.isEmpty(this.reasonValue.dictValue)" style="margin-top: 10;"
|
|
|
@click="pickerShow('reason')">
|
|
|
<span style="color: darkgray;">请选择原因</span>
|
|
|
<image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
|
|
|
</view>
|
|
|
<view v-else class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('reason')">
|
|
|
- <span style="color: black;">{{reasonValue.name}}</span>
|
|
|
+ <span style="color: black;">{{reasonValue.dictLabel}}</span>
|
|
|
<image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
|
|
|
</view>
|
|
|
|
|
@@ -216,7 +216,7 @@
|
|
|
getAreaList,
|
|
|
getBuildingList,
|
|
|
getUnitList,
|
|
|
- addTearOldPipe,
|
|
|
+ AddNotInstalled,
|
|
|
getRoomProjectList,
|
|
|
getRoomProjectId,
|
|
|
getHousesList,
|
|
@@ -273,7 +273,7 @@
|
|
|
|
|
|
this.objValue = JSON.parse(decodeURIComponent(options.params));
|
|
|
|
|
|
-
|
|
|
+
|
|
|
uni.setNavigationBarTitle({
|
|
|
title: '未安装'
|
|
|
})
|
|
@@ -316,7 +316,7 @@
|
|
|
this.$modal.msg("请选择房间")
|
|
|
return;
|
|
|
}
|
|
|
- if (this.isEmpty(this.reasonValue.id)) {
|
|
|
+ if (this.isEmpty(this.reasonValue.dictValue)) {
|
|
|
this.$modal.msg("请选择原因")
|
|
|
return;
|
|
|
}
|
|
@@ -326,25 +326,24 @@
|
|
|
}
|
|
|
uni.showLoading()
|
|
|
let param = {
|
|
|
+
|
|
|
+
|
|
|
district: this.XZQValue.dictValue,
|
|
|
areaId: this.XQValue.id,
|
|
|
+ areaName: this.XQValue.name,
|
|
|
+ buildingName: this.LDValue.name,
|
|
|
buildingId: this.LDValue.id,
|
|
|
- unitId: this.isEmpty(this.DYValue.id) ? '' : this.DYValue.id,
|
|
|
- enginType: this.objValue.enginType, //写死 上一页面传过来的
|
|
|
- enginClassification: this.objValue
|
|
|
- .enginClassification, //写死 上一页面传过来的 //室内 - 庭院 - 架空
|
|
|
- enginCycle: this.projectValue.dictValue, //工程周期
|
|
|
- zEngineeringNodeBo: {
|
|
|
- type: this.objValue.enginClassValue, //写死 上一页面传过来的 (拆旧管等 字典值)
|
|
|
- zEngineeringInfoBo: {
|
|
|
- constructTime: this.time,
|
|
|
- zEngiineeringPhotoBoList: this.imgArr, //照片集合
|
|
|
- }
|
|
|
- }
|
|
|
+ houseId: this.FJValue.id,
|
|
|
+ houseName: this.FJValue.name,
|
|
|
+ unitId: this.DYValue.id,
|
|
|
+ unitName: this.DYValue.name,
|
|
|
+ type: this.reasonValue.dictValue,
|
|
|
+ remark: this.specificReasonsValue,
|
|
|
+
|
|
|
|
|
|
}
|
|
|
|
|
|
- addTearOldPipe(param).then(res => {
|
|
|
+ AddNotInstalled(param).then(res => {
|
|
|
uni.hideLoading()
|
|
|
if (res.code == '200') {
|
|
|
uni.showToast({
|
|
@@ -359,7 +358,6 @@
|
|
|
|
|
|
}
|
|
|
})
|
|
|
- //提交接口执行逻辑
|
|
|
|
|
|
},
|
|
|
|
|
@@ -414,6 +412,11 @@
|
|
|
this.open = true;
|
|
|
this.selectList = this.FJList;
|
|
|
}
|
|
|
+ } else if (e == 'reason') {
|
|
|
+ this.openDict = true;
|
|
|
+ getDicts("not_installed_type").then(response => {
|
|
|
+ this.dictOptions = response.data;
|
|
|
+ });
|
|
|
}
|
|
|
|
|
|
},
|
|
@@ -426,9 +429,12 @@
|
|
|
this.XQValue = ''; //重置小区数据
|
|
|
this.LDValue = ''; //重置楼栋数据
|
|
|
this.DYValue = ''; //重置单元数据
|
|
|
+ this.FJValue = '';
|
|
|
getAreaList(item.dictValue).then(res => {
|
|
|
this.XQList = res.data;
|
|
|
})
|
|
|
+ } else if (this.type == 'reason') {
|
|
|
+ this.reasonValue = item;
|
|
|
}
|
|
|
|
|
|
},
|
|
@@ -440,6 +446,7 @@
|
|
|
//根据小区id 获取楼栋数据
|
|
|
this.LDValue = ''; //重置楼栋数据
|
|
|
this.DYValue = ''; //重置单元数据
|
|
|
+ this.FJValue = '';
|
|
|
this.administrative = item.administrative;
|
|
|
getBuildingList(item.id).then(res => {
|
|
|
this.LDList = res.data
|
|
@@ -448,6 +455,7 @@
|
|
|
this.LDValue = item;
|
|
|
//根据楼栋ID 获取单元数据
|
|
|
this.DYValue = ''; //重置单元数据
|
|
|
+ this.FJValue = '';
|
|
|
getUnitList(item.id).then(res => {
|
|
|
this.DYList = res.data
|
|
|
})
|