|
@@ -249,6 +249,7 @@
|
|
getRoomProjectList,
|
|
getRoomProjectList,
|
|
getRoomProjectId,
|
|
getRoomProjectId,
|
|
getLowerStaging,
|
|
getLowerStaging,
|
|
|
|
+ putHistory,
|
|
} from '@/api/common';
|
|
} from '@/api/common';
|
|
import {
|
|
import {
|
|
getToken
|
|
getToken
|
|
@@ -296,6 +297,12 @@
|
|
loading: false,
|
|
loading: false,
|
|
historyList: {}, //历史数据
|
|
historyList: {}, //历史数据
|
|
inputNumberValue: '',
|
|
inputNumberValue: '',
|
|
|
|
+ isEdit: false,
|
|
|
|
+ nodeId: '',
|
|
|
|
+ NodeBoId: '',
|
|
|
|
+ InfoId: '',
|
|
|
|
+ MaterialBoId: '',
|
|
|
|
+
|
|
// inputIntegerNumberValue: '',
|
|
// inputIntegerNumberValue: '',
|
|
// inputDecimalNumberValue: '',
|
|
// inputDecimalNumberValue: '',
|
|
}
|
|
}
|
|
@@ -425,6 +432,7 @@
|
|
|
|
|
|
uni.showLoading()
|
|
uni.showLoading()
|
|
let param = {
|
|
let param = {
|
|
|
|
+ id: this.nodeId,
|
|
district: this.XZQValue.dictValue,
|
|
district: this.XZQValue.dictValue,
|
|
areaId: this.XQValue.id,
|
|
areaId: this.XQValue.id,
|
|
buildingId: this.LDValue.id,
|
|
buildingId: this.LDValue.id,
|
|
@@ -434,8 +442,10 @@
|
|
.enginClassification, //写死 上一页面传过来的 //室内 - 庭院 - 架空
|
|
.enginClassification, //写死 上一页面传过来的 //室内 - 庭院 - 架空
|
|
enginCycle: this.projectValue.dictValue, //工程周期
|
|
enginCycle: this.projectValue.dictValue, //工程周期
|
|
zEngineeringNodeBo: {
|
|
zEngineeringNodeBo: {
|
|
|
|
+ id: this.NodeBoId,
|
|
type: this.objValue.enginClassValue, //写死 上一页面传过来的 (拆旧管等 字典值)
|
|
type: this.objValue.enginClassValue, //写死 上一页面传过来的 (拆旧管等 字典值)
|
|
zEngineeringInfoBo: {
|
|
zEngineeringInfoBo: {
|
|
|
|
+ id: this.InfoId,
|
|
constructTime: this.time, //施工时间
|
|
constructTime: this.time, //施工时间
|
|
onTheDitch: this.imgArr0, //照片集合
|
|
onTheDitch: this.imgArr0, //照片集合
|
|
beforeBottom: this.imgArr1, //照片集合
|
|
beforeBottom: this.imgArr1, //照片集合
|
|
@@ -443,6 +453,7 @@
|
|
inferiorSulcus: this.imgArr3, //照片集合
|
|
inferiorSulcus: this.imgArr3, //照片集合
|
|
constructAddre: this.positionKey,
|
|
constructAddre: this.positionKey,
|
|
zEngineeringMaterialBo: [{
|
|
zEngineeringMaterialBo: [{
|
|
|
|
+ id: this.MaterialBoId,
|
|
number: this.inputNumberValue, //米数
|
|
number: this.inputNumberValue, //米数
|
|
remark: this.projectContent, //施工内容
|
|
remark: this.projectContent, //施工内容
|
|
}]
|
|
}]
|
|
@@ -451,21 +462,40 @@
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
- addTearOldPipe(param).then(res => {
|
|
|
|
- uni.hideLoading()
|
|
|
|
- if (res.code == '200') {
|
|
|
|
- uni.showToast({
|
|
|
|
- title: res.msg,
|
|
|
|
- icon: 'none',
|
|
|
|
- //显示持续时间为 3秒
|
|
|
|
- duration: 2000
|
|
|
|
- });
|
|
|
|
- setTimeout(function() {
|
|
|
|
- uni.navigateBack();
|
|
|
|
- }, 1000)
|
|
|
|
|
|
+ if (this.isEdit) {
|
|
|
|
+ //修改
|
|
|
|
+ putHistory(param).then(res => {
|
|
|
|
+ uni.hideLoading()
|
|
|
|
+ if (res.code == '200') {
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: res.msg,
|
|
|
|
+ icon: 'none',
|
|
|
|
+ //显示持续时间为 3秒
|
|
|
|
+ duration: 2000
|
|
|
|
+ });
|
|
|
|
+ setTimeout(function() {
|
|
|
|
+ uni.navigateBack();
|
|
|
|
+ }, 1000)
|
|
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ } else {
|
|
|
|
+ addTearOldPipe(param).then(res => {
|
|
|
|
+ uni.hideLoading()
|
|
|
|
+ if (res.code == '200') {
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: res.msg,
|
|
|
|
+ icon: 'none',
|
|
|
|
+ //显示持续时间为 3秒
|
|
|
|
+ duration: 2000
|
|
|
|
+ });
|
|
|
|
+ setTimeout(function() {
|
|
|
|
+ uni.navigateBack();
|
|
|
|
+ }, 1000)
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
//提交接口执行逻辑
|
|
//提交接口执行逻辑
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -789,6 +819,12 @@
|
|
getLowerStaging(param).then(res => {
|
|
getLowerStaging(param).then(res => {
|
|
if (res.data != null) {
|
|
if (res.data != null) {
|
|
if (res.data.zEngineeringNodeBo != null) {
|
|
if (res.data.zEngineeringNodeBo != null) {
|
|
|
|
+ this.nodeId = res.data.id;
|
|
|
|
+ this.NodeBoId = res.data.zEngineeringNodeBo.id;
|
|
|
|
+ this.InfoId = res.data.zEngineeringNodeBo.zEngineeringInfoBoList[0].id,
|
|
|
|
+ this.MaterialBoId = res.data.zEngineeringNodeBo.zEngineeringInfoBoList[0]
|
|
|
|
+ .zEngineeringMaterialBo[0].id,
|
|
|
|
+ this.isEdit = true;
|
|
this.imgArr0 = res.data.zEngineeringNodeBo.zEngineeringInfoBoList[0]
|
|
this.imgArr0 = res.data.zEngineeringNodeBo.zEngineeringInfoBoList[0]
|
|
.onTheDitch;
|
|
.onTheDitch;
|
|
this.imgArr1 = res.data.zEngineeringNodeBo.zEngineeringInfoBoList[0]
|
|
this.imgArr1 = res.data.zEngineeringNodeBo.zEngineeringInfoBoList[0]
|
|
@@ -798,10 +834,12 @@
|
|
this.imgArr3 = res.data.zEngineeringNodeBo.zEngineeringInfoBoList[0]
|
|
this.imgArr3 = res.data.zEngineeringNodeBo.zEngineeringInfoBoList[0]
|
|
.inferiorSulcus;
|
|
.inferiorSulcus;
|
|
} else {
|
|
} else {
|
|
|
|
+ this.isEdit = false;
|
|
this.$modal.msg("暂无数据")
|
|
this.$modal.msg("暂无数据")
|
|
}
|
|
}
|
|
|
|
|
|
} else {
|
|
} else {
|
|
|
|
+ this.isEdit = false;
|
|
this.$modal.msg("暂无数据")
|
|
this.$modal.msg("暂无数据")
|
|
}
|
|
}
|
|
|
|
|