|
@@ -166,7 +166,7 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
- <view class="container" style="border-bottom: 1px solid #f8f8f8;" v-if="objValue.value=='调压柜'">
|
|
|
+ <view class="container" style="border-bottom: 1px solid #f8f8f8;">
|
|
|
<view class="uni-common-mt" style="width: 100%;">
|
|
|
<text class="uni-title uni-common-pl">施工内容</text>
|
|
|
<view style="width: 100%;box-sizing: border-box;">
|
|
@@ -179,7 +179,7 @@
|
|
|
</view>
|
|
|
|
|
|
|
|
|
- <view v-for="(a,index) in czggslList" :key="index" class="num-style">
|
|
|
+ <view v-for="(a,index) in czggslList" :key="index" class="num-style" v-if="objValue.value!='调压柜'">
|
|
|
<view class="container" style="border-bottom: 1px solid #f8f8f8;">
|
|
|
<view>
|
|
|
材质
|
|
@@ -421,7 +421,7 @@
|
|
|
Submitengineering,
|
|
|
getengineeringNameList,
|
|
|
getEngineeringDetails,
|
|
|
- getEngineeringHistoryList,
|
|
|
+ getEngineeringHistoryList2,
|
|
|
} from '@/api/common'
|
|
|
import {
|
|
|
getToken
|
|
@@ -980,10 +980,10 @@
|
|
|
this.$modal.msg('请选择工程名称')
|
|
|
return
|
|
|
}
|
|
|
- getEngineeringHistoryList(this.enginId, this.objValue.value).then(response => {
|
|
|
+ getEngineeringHistoryList2(this.enginId, this.objValue.value).then(response => {
|
|
|
|
|
|
this.historyList = response.data
|
|
|
- if (response.data.zEngineeringNodeBo.zEngineeringInfoBoList != null) {
|
|
|
+ if (response.data.zEngineeringNodeBo != null) {
|
|
|
this.$refs.refShare.handleShowShare();
|
|
|
} else {
|
|
|
this.$modal.msg("暂无历史信息")
|
|
@@ -1004,38 +1004,41 @@
|
|
|
return
|
|
|
}
|
|
|
|
|
|
+ if (this.objValue.value != '调压柜') {
|
|
|
|
|
|
- try {
|
|
|
- this.czggslList.forEach((list) => {
|
|
|
- if (this.isEmpty(list.cz.id)) {
|
|
|
- this.$modal.msg('材质不能为空')
|
|
|
|
|
|
|
|
|
- throw new Error('End Loop')
|
|
|
+ try {
|
|
|
+ this.czggslList.forEach((list) => {
|
|
|
+ if (this.isEmpty(list.cz.id)) {
|
|
|
+ this.$modal.msg('材质不能为空')
|
|
|
|
|
|
- }
|
|
|
- if (this.isEmpty(list.gg.id)) {
|
|
|
- this.$modal.msg('规格不能为空')
|
|
|
- throw new Error('End Loop')
|
|
|
|
|
|
- }
|
|
|
+ throw new Error('End Loop')
|
|
|
|
|
|
- if (this.isEmpty(list.sl.inputIntegerNumberValue)) {
|
|
|
- this.$modal.msg("请输入米数")
|
|
|
- throw new Error('End Loop')
|
|
|
- }
|
|
|
+ }
|
|
|
+ if (this.isEmpty(list.gg.id)) {
|
|
|
+ this.$modal.msg('规格不能为空')
|
|
|
+ throw new Error('End Loop')
|
|
|
|
|
|
+ }
|
|
|
|
|
|
+ if (this.isEmpty(list.sl.inputIntegerNumberValue)) {
|
|
|
+ this.$modal.msg("请输入米数")
|
|
|
+ throw new Error('End Loop')
|
|
|
+ }
|
|
|
|
|
|
- })
|
|
|
- } catch (e) {
|
|
|
- if (e.message === 'End Loop') throw e
|
|
|
- }
|
|
|
|
|
|
|
|
|
+ })
|
|
|
+ } catch (e) {
|
|
|
+ if (e.message === 'End Loop') throw e
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
if (this.objValue.value == '调压柜') {
|
|
|
|
|
|
- if (this.imgDtljArr.length <= 0) {
|
|
|
+ if (this.imgBoxArr.length <= 0) {
|
|
|
this.$modal.msg('请上传调压箱名牌照片')
|
|
|
return
|
|
|
}
|
|
@@ -1066,15 +1069,17 @@
|
|
|
return
|
|
|
}
|
|
|
this.zEngineeringMaterialBo = [];
|
|
|
- this.czggslList.forEach((list) => {
|
|
|
- this.zEngineeringMaterialBo.push({
|
|
|
- materialQuality: list.cz.id,
|
|
|
- specifications: list.gg.id,
|
|
|
- number: list.sl.inputIntegerNumberValue + (list.sl.inputDecimalNumberValue == '' ?
|
|
|
- '' : "." + list.sl.inputDecimalNumberValue)
|
|
|
+ if (this.objValue.value != '调压柜') {
|
|
|
+ this.czggslList.forEach((list) => {
|
|
|
+ this.zEngineeringMaterialBo.push({
|
|
|
+ materialQuality: list.cz.id,
|
|
|
+ specifications: list.gg.id,
|
|
|
+ number: list.sl.inputIntegerNumberValue + (list.sl.inputDecimalNumberValue ==
|
|
|
+ '' ?
|
|
|
+ '' : "." + list.sl.inputDecimalNumberValue)
|
|
|
+ })
|
|
|
})
|
|
|
- })
|
|
|
-
|
|
|
+ }
|
|
|
|
|
|
let param = {
|
|
|
//files: this.fileArr, //文件
|
|
@@ -1098,6 +1103,12 @@
|
|
|
type: '工业工程', // 写死
|
|
|
zEngineeringInfoBo: {
|
|
|
//engInfoId: this.infonId,
|
|
|
+ remark: this.projectContent, //施工内容
|
|
|
+ boxBrand: this.imgBoxArr,
|
|
|
+ stonePowder: this.imgSfhtArr,
|
|
|
+ lightning: this.imgFljdArr,
|
|
|
+ bottomLeg: this.imgDtljArr,
|
|
|
+ groundHardening: this.imgHldmyhArr,
|
|
|
constructTime: this.time, //施工时间
|
|
|
zEngiineeringPhotoBoList: this.imgArr, //照片集合
|
|
|
zEngineeringMaterialBo: this.zEngineeringMaterialBo // 用料对象
|