|
@@ -18,17 +18,18 @@
|
|
<view class="tit-text">
|
|
<view class="tit-text">
|
|
材 质
|
|
材 质
|
|
</view>
|
|
</view>
|
|
- <view v-if="value.zEngineeringMaterialBo[0].isNew==false">
|
|
|
|
|
|
+ <block v-if="value.zEngineeringMaterialBo[0].isNew==false">
|
|
<view class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('cz',key)">
|
|
<view class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('cz',key)">
|
|
<span
|
|
<span
|
|
- style="color: black;">{{value.zEngineeringMaterialBo[0].materialQualityName==''?'请选择材质':value.zEngineeringMaterialBo[0].materialQualityName}}</span>
|
|
|
|
|
|
+ style="color: black;">{{value.zEngineeringMaterialBo[0].materialQuality==''?'请选择材质':value.zEngineeringMaterialBo[0].materialQualityName}}</span>
|
|
|
|
|
|
</view>
|
|
</view>
|
|
- </view>
|
|
|
|
|
|
+ </block>
|
|
<view v-else>
|
|
<view v-else>
|
|
- <input class="uni-input" type="text"
|
|
|
|
|
|
+ <input class="uni-input" type="text" maxlength="50"
|
|
|
|
+ @change="setInfoBo(key,$event.target.value,'cz')"
|
|
v-model="value.zEngineeringMaterialBo[0].materialQualityName" placeholder="请输入材质"
|
|
v-model="value.zEngineeringMaterialBo[0].materialQualityName" placeholder="请输入材质"
|
|
- style="margin-left: 10px;text-align: right;border: 1px solid #00aaff; border-radius: 20rpx;"></input>
|
|
|
|
|
|
+ style="margin-left: 10px;text-align: right;border: 1px solid #00aaff; border-radius: 20rpx; padding-right: 15rpx;"></input>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="uni-media-list-text-top" style="border-bottom: 1px solid #f8f8f8;">
|
|
<view class="uni-media-list-text-top" style="border-bottom: 1px solid #f8f8f8;">
|
|
@@ -36,17 +37,18 @@
|
|
<view class="tit-text">
|
|
<view class="tit-text">
|
|
规 格
|
|
规 格
|
|
</view>
|
|
</view>
|
|
- <view v-if="value.zEngineeringMaterialBo[0].isNew==false">
|
|
|
|
|
|
+ <block v-if="value.zEngineeringMaterialBo[0].isNew==false">
|
|
<view class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('gg',key)">
|
|
<view class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('gg',key)">
|
|
<span
|
|
<span
|
|
- style="color: black;">{{value.zEngineeringMaterialBo[0].specificationsName==''?'请选择规格':value.zEngineeringMaterialBo[0].specificationsName}}</span>
|
|
|
|
|
|
+ style="color: black;">{{value.zEngineeringMaterialBo[0].specifications==''?'请选择规格':value.zEngineeringMaterialBo[0].specificationsName}}</span>
|
|
|
|
|
|
</view>
|
|
</view>
|
|
- </view>
|
|
|
|
|
|
+ </block>
|
|
<view v-else>
|
|
<view v-else>
|
|
- <input class="uni-input" type="text"
|
|
|
|
|
|
+ <input class="uni-input" type="text" maxlength="50"
|
|
|
|
+ @change="setInfoBo(key,$event.target.value,'gg')"
|
|
v-model="value.zEngineeringMaterialBo[0].specificationsName" placeholder="请输入规格"
|
|
v-model="value.zEngineeringMaterialBo[0].specificationsName" placeholder="请输入规格"
|
|
- style="margin-left: 10px;text-align: right;border: 1px solid #00aaff; border-radius: 20rpx;"></input>
|
|
|
|
|
|
+ style="margin-left: 10px;text-align: right;border: 1px solid #00aaff; border-radius: 20rpx;padding-right: 15rpx;"></input>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
@@ -118,7 +120,7 @@
|
|
import {
|
|
import {
|
|
getHistoryInfrastructureDetails,
|
|
getHistoryInfrastructureDetails,
|
|
getEnginMaterialQualityList,
|
|
getEnginMaterialQualityList,
|
|
- PutTopPipeWork,
|
|
|
|
|
|
+ PutInfrastructure,
|
|
getEnginSpecificationsList,
|
|
getEnginSpecificationsList,
|
|
} from '@/api/common'
|
|
} from '@/api/common'
|
|
export default {
|
|
export default {
|
|
@@ -343,11 +345,18 @@
|
|
})
|
|
})
|
|
},
|
|
},
|
|
showPhoto(index, arr) {
|
|
showPhoto(index, arr) {
|
|
|
|
+ let newArr = [];
|
|
|
|
+ arr.forEach((item, index) => {
|
|
|
|
+ if (item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg' ||
|
|
|
|
+ item.substring(item.length - 4) == 'jpeg') {
|
|
|
|
+ newArr.push(item)
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+
|
|
uni.previewImage({
|
|
uni.previewImage({
|
|
current: index,
|
|
current: index,
|
|
- urls: arr,
|
|
|
|
|
|
+ urls: newArr,
|
|
})
|
|
})
|
|
-
|
|
|
|
},
|
|
},
|
|
//关闭弹窗
|
|
//关闭弹窗
|
|
close(e) {
|
|
close(e) {
|
|
@@ -358,6 +367,17 @@
|
|
getIntegerPart(numStr, i) {
|
|
getIntegerPart(numStr, i) {
|
|
return numStr.toString().split('.')[i] == undefined ? '0' : numStr.toString().split('.')[i];
|
|
return numStr.toString().split('.')[i] == undefined ? '0' : numStr.toString().split('.')[i];
|
|
},
|
|
},
|
|
|
|
+
|
|
|
|
+ setInfoBo(key, str, type) {
|
|
|
|
+ if (type == 'cz') {
|
|
|
|
+ this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[key].zEngineeringMaterialBo[0].materialQuality = str;
|
|
|
|
+ this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[key].zEngineeringMaterialBo[0].materialQualityName = str;
|
|
|
|
+ }else{
|
|
|
|
+ this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[key].zEngineeringMaterialBo[0].specifications = str;
|
|
|
|
+ this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[key].zEngineeringMaterialBo[0].specificationsName = str;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ },
|
|
setInfoBoNumber(key, number, i) {
|
|
setInfoBoNumber(key, number, i) {
|
|
let Ynumber = this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[key].zEngineeringMaterialBo[0]
|
|
let Ynumber = this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[key].zEngineeringMaterialBo[0]
|
|
.number;
|
|
.number;
|
|
@@ -466,8 +486,12 @@
|
|
let isSubmit = true;
|
|
let isSubmit = true;
|
|
this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList.forEach((res) => {
|
|
this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList.forEach((res) => {
|
|
if (res.createBy == this.$user.state.name) {
|
|
if (res.createBy == this.$user.state.name) {
|
|
|
|
+ if (res.zEngineeringMaterialBo[0].materialQuality == '') {
|
|
|
|
+ this.$modal.msg("请选择材质或输入材质");
|
|
|
|
+ isSubmit = false;
|
|
|
|
+ }
|
|
if (res.zEngineeringMaterialBo[0].specifications == '') {
|
|
if (res.zEngineeringMaterialBo[0].specifications == '') {
|
|
- this.$modal.msg("请选择规格");
|
|
|
|
|
|
+ this.$modal.msg("请选择规格或输入规格");
|
|
isSubmit = false;
|
|
isSubmit = false;
|
|
}
|
|
}
|
|
if (res.zEngineeringMaterialBo[0].number == '') {
|
|
if (res.zEngineeringMaterialBo[0].number == '') {
|
|
@@ -490,7 +514,7 @@
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
|
|
- PutTopPipeWork(this.dataJson).then(
|
|
|
|
|
|
+ PutInfrastructure(this.dataJson).then(
|
|
|
|
|
|
response => {
|
|
response => {
|
|
if (response.code == '200') {
|
|
if (response.code == '200') {
|