|
@@ -77,7 +77,7 @@
|
|
|
|
|
|
<span
|
|
<span
|
|
style="color: blue;font-size: 14px; display: flex;justify-content:flex-end; margin-right: 10px;"
|
|
style="color: blue;font-size: 14px; display: flex;justify-content:flex-end; margin-right: 10px;"
|
|
- @click="history">历史</span>
|
|
|
|
|
|
+ @click="history">恢复暂存</span>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
<view class="container" style="border-bottom: 1px solid #f8f8f8;">
|
|
<view class="container" style="border-bottom: 1px solid #f8f8f8;">
|
|
@@ -217,7 +217,7 @@
|
|
|
|
|
|
|
|
|
|
<view class="action-btn" v-show="reviewStatus!='1'">
|
|
<view class="action-btn" v-show="reviewStatus!='1'">
|
|
- <button @click="submit" class="btn cu-btn block bg-blue lg round">确认上传</button>
|
|
|
|
|
|
+ <button @click="submit" class="btn cu-btn block bg-blue lg round">{{submitTitle}}</button>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
<bottom-sheet ref="refShare" :data="historyList"></bottom-sheet>
|
|
<bottom-sheet ref="refShare" :data="historyList"></bottom-sheet>
|
|
@@ -248,6 +248,7 @@
|
|
addTearOldPipe,
|
|
addTearOldPipe,
|
|
getRoomProjectList,
|
|
getRoomProjectList,
|
|
getRoomProjectId,
|
|
getRoomProjectId,
|
|
|
|
+ getLowerStaging,
|
|
} from '@/api/common';
|
|
} from '@/api/common';
|
|
import {
|
|
import {
|
|
getToken
|
|
getToken
|
|
@@ -265,6 +266,7 @@
|
|
Authorization: "Bearer " + getToken()
|
|
Authorization: "Bearer " + getToken()
|
|
},
|
|
},
|
|
type: '',
|
|
type: '',
|
|
|
|
+ submitTitle: '暂存',
|
|
open: false,
|
|
open: false,
|
|
reviewStatus: '', //是否可以点击
|
|
reviewStatus: '', //是否可以点击
|
|
objValue: '', //上一页面传过来的值 新增接口用
|
|
objValue: '', //上一页面传过来的值 新增接口用
|
|
@@ -407,15 +409,18 @@
|
|
// else if (this.isEmpty(this.inputIntegerNumberValue)) {
|
|
// else if (this.isEmpty(this.inputIntegerNumberValue)) {
|
|
// this.$modal.msg("请输入米数")
|
|
// this.$modal.msg("请输入米数")
|
|
// }
|
|
// }
|
|
- else if (this.imgArr0.length <= 0) {
|
|
|
|
- this.$modal.msg("请上传沟上部分照片")
|
|
|
|
- } else if (this.imgArr1.length <= 0) {
|
|
|
|
- this.$modal.msg("请上传开挖前照片")
|
|
|
|
- } else if (this.imgArr2.length <= 0) {
|
|
|
|
- this.$modal.msg("请上传下沟照片")
|
|
|
|
- } else if (this.imgArr3.length <= 0) {
|
|
|
|
- this.$modal.msg("请上传回填照片")
|
|
|
|
- } else {
|
|
|
|
|
|
+ else if (this.imgArr0.length <= 0 && this.imgArr1.length <= 0 && this.imgArr2.length <= 0 && this.imgArr3
|
|
|
|
+ .length <= 0) {
|
|
|
|
+ this.$modal.msg("请上传照片")
|
|
|
|
+ }
|
|
|
|
+ // else if (this.imgArr1.length <= 0) {
|
|
|
|
+ // this.$modal.msg("请上传开挖前照片")
|
|
|
|
+ // } else if (this.imgArr2.length <= 0) {
|
|
|
|
+ // this.$modal.msg("请上传下沟照片")
|
|
|
|
+ // } else if (this.imgArr3.length <= 0) {
|
|
|
|
+ // this.$modal.msg("请上传回填照片")
|
|
|
|
+ // }
|
|
|
|
+ else {
|
|
|
|
|
|
|
|
|
|
uni.showLoading()
|
|
uni.showLoading()
|
|
@@ -587,6 +592,13 @@
|
|
} else if (type == 3) {
|
|
} else if (type == 3) {
|
|
_this.imgArr3.push(data.data.url)
|
|
_this.imgArr3.push(data.data.url)
|
|
}
|
|
}
|
|
|
|
+ if (_this.imgArr0.length > 0 && _this.imgArr1
|
|
|
|
+ .length > 0 && _this.imgArr2.length > 0 &&
|
|
|
|
+ _this.imgArr3.length > 0) {
|
|
|
|
+ _this.submitTitle = '确认上传'
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
_this.$modal.msg('上传成功!')
|
|
_this.$modal.msg('上传成功!')
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -712,23 +724,23 @@
|
|
//根据楼栋ID 获取单元数据
|
|
//根据楼栋ID 获取单元数据
|
|
this.DYValue = ''; //重置单元数据
|
|
this.DYValue = ''; //重置单元数据
|
|
|
|
|
|
- if (!this.isEmpty(this.projectValue.dictValue)) {
|
|
|
|
- //选完 判断 工程周期
|
|
|
|
- this.getStatus();
|
|
|
|
|
|
+ // if (!this.isEmpty(this.projectValue.dictValue)) {
|
|
|
|
+ // //选完 判断 工程周期
|
|
|
|
+ // this.getStatus();
|
|
|
|
|
|
- }
|
|
|
|
|
|
+ // }
|
|
getUnitList(item.id).then(res => {
|
|
getUnitList(item.id).then(res => {
|
|
this.DYList = res.data
|
|
this.DYList = res.data
|
|
})
|
|
})
|
|
} else if (this.type == 'dy') {
|
|
} else if (this.type == 'dy') {
|
|
this.DYValue = item;
|
|
this.DYValue = item;
|
|
|
|
|
|
- if (!this.isEmpty(this.projectValue.dictValue)) {
|
|
|
|
|
|
+ // if (!this.isEmpty(this.projectValue.dictValue)) {
|
|
|
|
|
|
- //选完 判断 工程周期
|
|
|
|
- this.getStatus();
|
|
|
|
|
|
+ // //选完 判断 工程周期
|
|
|
|
+ // this.getStatus();
|
|
|
|
|
|
- }
|
|
|
|
|
|
+ // }
|
|
}
|
|
}
|
|
|
|
|
|
},
|
|
},
|
|
@@ -758,39 +770,41 @@
|
|
this.$modal.msg("请选择楼栋")
|
|
this.$modal.msg("请选择楼栋")
|
|
return
|
|
return
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+ if (this.isEmpty(this.positionKey)) {
|
|
|
|
+ this.$modal.msg("请选择施工位置")
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if (this.isEmpty(this.inputNumberValue)) {
|
|
|
|
+ this.$modal.msg("请输入施工位置")
|
|
|
|
+ return
|
|
|
|
+ }
|
|
let param = {
|
|
let param = {
|
|
areaId: this.XQValue.id, // 小区id
|
|
areaId: this.XQValue.id, // 小区id
|
|
buildingId: this.LDValue.id, // 楼宇id
|
|
buildingId: this.LDValue.id, // 楼宇id
|
|
unitId: this.isEmpty(this.DYValue.id) ? '' : this.DYValue.id, // 单元id
|
|
unitId: this.isEmpty(this.DYValue.id) ? '' : this.DYValue.id, // 单元id
|
|
- enginCycle: this.projectValue.dictValue, // 工程周期
|
|
|
|
- enginType: this.objValue.enginType, //写死 上一页面传过来的 新建/旧改
|
|
|
|
- enginClassification: this.objValue.enginClassification, //写死 上一页面传过来的 //室内 - 庭院 - 架空
|
|
|
|
- }
|
|
|
|
- getRoomProjectId(param).then(res => {
|
|
|
|
-
|
|
|
|
- if (res.code == '200') {
|
|
|
|
-
|
|
|
|
- if (res.data != null) {
|
|
|
|
-
|
|
|
|
- getRoomProjectList(res.data.id, this.objValue.enginClassValue).then(
|
|
|
|
- res => {
|
|
|
|
-
|
|
|
|
- this.historyList = res.data
|
|
|
|
- if (res.data.zEngineeringNodeBo != null) {
|
|
|
|
- this.showHistoryList();
|
|
|
|
- } else {
|
|
|
|
- this.$modal.msg("暂无历史信息")
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- })
|
|
|
|
|
|
+ direction: this.positionKey,
|
|
|
|
+ number: this.inputNumberValue,
|
|
|
|
|
|
|
|
+ }
|
|
|
|
+ getLowerStaging(param).then(res => {
|
|
|
|
+ if (res.data != null) {
|
|
|
|
+ if (res.data.zEngineeringNodeBo != null) {
|
|
|
|
+ this.imgArr0 = res.data.zEngineeringNodeBo.zEngineeringInfoBoList[0]
|
|
|
|
+ .onTheDitch;
|
|
|
|
+ this.imgArr1 = res.data.zEngineeringNodeBo.zEngineeringInfoBoList[0]
|
|
|
|
+ .beforeBottom;
|
|
|
|
+ this.imgArr2 = res.data.zEngineeringNodeBo.zEngineeringInfoBoList[0]
|
|
|
|
+ .legBackfilling;
|
|
|
|
+ this.imgArr3 = res.data.zEngineeringNodeBo.zEngineeringInfoBoList[0]
|
|
|
|
+ .inferiorSulcus;
|
|
} else {
|
|
} else {
|
|
- this.$modal.msg("暂无工程信息")
|
|
|
|
|
|
+ this.$modal.msg("暂无数据")
|
|
}
|
|
}
|
|
|
|
+
|
|
} else {
|
|
} else {
|
|
- this.$modal.msg(res.msg)
|
|
|
|
|
|
+ this.$modal.msg("暂无数据")
|
|
}
|
|
}
|
|
|
|
+
|
|
})
|
|
})
|
|
},
|
|
},
|
|
showHistoryList() {
|
|
showHistoryList() {
|