|
@@ -250,10 +250,13 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="container" style="border-bottom: 1px solid #f8f8f8;">
|
|
|
-
|
|
|
- <text>数 量</text>
|
|
|
- <input class="uni-input" type="number" v-model="inputNumberValue" placeholder="请填写数量"
|
|
|
- maxlength="11" style="margin-left: 10px;text-align: right;"></input>
|
|
|
+ <text>米 数</text>
|
|
|
+ <!-- style="margin-left: 10px;text-align: right;" -->
|
|
|
+ <input class="uni-input" type="number" v-model="inputIntegerNumberValue" maxlength="6"
|
|
|
+ style="text-align: center; border: 1px solid #00aaff; border-radius: 20rpx;"></input>
|
|
|
+ <text style="font-weight:bold;margin-left: 10px;margin-right: 10px;">.</text>
|
|
|
+ <input class="uni-input" type="number" v-model="inputDecimalNumberValue" maxlength="1"
|
|
|
+ style="text-align: center; border: 1px solid #00aaff; border-radius: 20rpx;"></input>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -285,7 +288,7 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
-
|
|
|
+
|
|
|
</view>
|
|
|
</view>
|
|
|
<!--表后管-->
|
|
@@ -329,10 +332,13 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="container" style="border-bottom: 1px solid #f8f8f8;">
|
|
|
-
|
|
|
- <text>数 量</text>
|
|
|
- <input class="uni-input" type="number" v-model="inputNumberValue" placeholder="请填写数量"
|
|
|
- maxlength="11" style="margin-left: 10px;text-align: right;"></input>
|
|
|
+ <text>米 数</text>
|
|
|
+ <!-- style="margin-left: 10px;text-align: right;" -->
|
|
|
+ <input class="uni-input" type="number" v-model="inputIntegerNumberValue" maxlength="6"
|
|
|
+ style="text-align: center; border: 1px solid #00aaff; border-radius: 20rpx;"></input>
|
|
|
+ <text style="font-weight:bold;margin-left: 10px;margin-right: 10px;">.</text>
|
|
|
+ <input class="uni-input" type="number" v-model="inputDecimalNumberValue" maxlength="1"
|
|
|
+ style="text-align: center; border: 1px solid #00aaff; border-radius: 20rpx;"></input>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -408,10 +414,13 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="container" style="border-bottom: 1px solid #f8f8f8;">
|
|
|
-
|
|
|
- <text>数 量</text>
|
|
|
- <input class="uni-input" type="number" v-model="inputNumberValue" placeholder="请填写数量"
|
|
|
- maxlength="11" style="margin-left: 10px;text-align: right;"></input>
|
|
|
+ <text>米 数</text>
|
|
|
+ <!-- style="margin-left: 10px;text-align: right;" -->
|
|
|
+ <input class="uni-input" type="number" v-model="inputIntegerNumberValue" maxlength="6"
|
|
|
+ style="text-align: center; border: 1px solid #00aaff; border-radius: 20rpx;"></input>
|
|
|
+ <text style="font-weight:bold;margin-left: 10px;margin-right: 10px;">.</text>
|
|
|
+ <input class="uni-input" type="number" v-model="inputDecimalNumberValue" maxlength="1"
|
|
|
+ style="text-align: center; border: 1px solid #00aaff; border-radius: 20rpx;"></input>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -497,7 +506,9 @@
|
|
|
imgArr: [],
|
|
|
XQValue: {},
|
|
|
XZQValue: {},
|
|
|
- projectValue: {'dictValue':'1'},
|
|
|
+ projectValue: {
|
|
|
+ 'dictValue': '0'
|
|
|
+ },
|
|
|
LevelValue: {},
|
|
|
LDValue: {},
|
|
|
DYValue: {},
|
|
@@ -517,6 +528,8 @@
|
|
|
loading: false,
|
|
|
isCheck: true, //是否按照施工图纸施工
|
|
|
inputNumberValue: '',
|
|
|
+ inputIntegerNumberValue: '',
|
|
|
+ inputDecimalNumberValue: '',
|
|
|
title: '',
|
|
|
historyList: {} //历史数据
|
|
|
|
|
@@ -1006,14 +1019,20 @@
|
|
|
this.onsubmit();
|
|
|
}
|
|
|
} else if (this.objValue.enginClassValue == '立杠') {
|
|
|
- //立杠 判断 材质 规格 数量
|
|
|
+ //立杠 判断 材质 规格 米数
|
|
|
if (this.isEmpty(this.materialValue.id)) {
|
|
|
this.$modal.msg("请选择材质")
|
|
|
} else if (this.isEmpty(this.specificationValue.id)) {
|
|
|
this.$modal.msg("请选择规格")
|
|
|
- } else if (this.isEmpty(this.inputNumberValue)) {
|
|
|
- this.$modal.msg("请输入数量")
|
|
|
+ } else if (this.isEmpty(this.inputIntegerNumberValue)) {
|
|
|
+ this.$modal.msg("请输入米数")
|
|
|
} else {
|
|
|
+
|
|
|
+ if (this.isEmpty(this.inputDecimalNumberValue)) {
|
|
|
+ this.inputNumberValue = this.inputIntegerNumberValue;
|
|
|
+ } else {
|
|
|
+ this.inputNumberValue = this.inputIntegerNumberValue + "." + this.inputDecimalNumberValue;
|
|
|
+ }
|
|
|
this.onsubmit();
|
|
|
}
|
|
|
} else if (this.objValue.enginClassValue == '挂表') {
|
|
@@ -1025,13 +1044,13 @@
|
|
|
}
|
|
|
|
|
|
} else if (this.objValue.enginClassValue == '表后管') {
|
|
|
- //表后管 判断 材质 规格 数量 (为必须有一张照片和一个视频)
|
|
|
+ //表后管 判断 材质 规格 米数 (为必须有一张照片和一个视频)
|
|
|
if (this.isEmpty(this.materialValue.id)) {
|
|
|
this.$modal.msg("请选择材质")
|
|
|
} else if (this.isEmpty(this.specificationValue.id)) {
|
|
|
this.$modal.msg("请选择规格")
|
|
|
- } else if (this.isEmpty(this.inputNumberValue)) {
|
|
|
- this.$modal.msg("请输入数量")
|
|
|
+ } else if (this.isEmpty(this.inputIntegerNumberValue)) {
|
|
|
+ this.$modal.msg("请输入米数")
|
|
|
} else if (this.imgArr.length <= 0) {
|
|
|
this.$modal.msg('请上传照片或视频')
|
|
|
} else if (this.loading == false) {
|
|
@@ -1045,6 +1064,11 @@
|
|
|
|
|
|
if (hasImage && hasVideo) {
|
|
|
//表后管 特殊 提交
|
|
|
+ if (this.isEmpty(this.inputDecimalNumberValue)) {
|
|
|
+ this.inputNumberValue = this.inputIntegerNumberValue;
|
|
|
+ } else {
|
|
|
+ this.inputNumberValue = this.inputIntegerNumberValue + "." + this.inputDecimalNumberValue;
|
|
|
+ }
|
|
|
let param = {
|
|
|
district: this.XZQValue.dictValue,
|
|
|
areaId: this.XQValue.id,
|
|
@@ -1064,7 +1088,7 @@
|
|
|
zEngineeringMaterialBo: [{
|
|
|
materialQuality: this.materialValue.id, //材质
|
|
|
specifications: this.specificationValue.id, //规格
|
|
|
- number: this.inputNumberValue //数量
|
|
|
+ number: this.inputNumberValue //米数
|
|
|
}]
|
|
|
}
|
|
|
}
|
|
@@ -1087,7 +1111,7 @@
|
|
|
}
|
|
|
}
|
|
|
} else if (this.objValue.enginClassValue == '阀管') {
|
|
|
- //阀管 判断 材质 规格 数量
|
|
|
+ //阀管 判断 材质 规格 米数
|
|
|
if (this.isEmpty(this.doorValue.dictValue)) {
|
|
|
this.$modal.msg("请选择上门类型")
|
|
|
} else if (this.isEmpty(this.SelfClosValve.dictValue)) {
|
|
@@ -1096,9 +1120,15 @@
|
|
|
this.$modal.msg("请选择材质")
|
|
|
} else if (this.isEmpty(this.specificationValue.id)) {
|
|
|
this.$modal.msg("请选择规格")
|
|
|
- } else if (this.isEmpty(this.inputNumberValue)) {
|
|
|
- this.$modal.msg("请输入数量")
|
|
|
+ } else if (this.isEmpty(this.inputIntegerNumberValue)) {
|
|
|
+ this.$modal.msg("请输入米数")
|
|
|
} else {
|
|
|
+
|
|
|
+ if (this.isEmpty(this.inputDecimalNumberValue)) {
|
|
|
+ this.inputNumberValue = this.inputIntegerNumberValue;
|
|
|
+ } else {
|
|
|
+ this.inputNumberValue = this.inputIntegerNumberValue + "." + this.inputDecimalNumberValue;
|
|
|
+ }
|
|
|
this.onsubmit();
|
|
|
}
|
|
|
}
|
|
@@ -1159,7 +1189,7 @@
|
|
|
|
|
|
zEngineeringMaterialBo: [{
|
|
|
brand: this.brandValue.dictValue, //品牌
|
|
|
- // number: this.inputNumberValue //数量
|
|
|
+ // number: this.inputNumberValue //米数
|
|
|
}]
|
|
|
}
|
|
|
}
|
|
@@ -1186,7 +1216,7 @@
|
|
|
zEngineeringMaterialBo: [{
|
|
|
materialQuality: this.materialValue.id, //材质
|
|
|
specifications: this.specificationValue.id, //规格
|
|
|
- number: this.inputNumberValue //数量
|
|
|
+ number: this.inputNumberValue //米数
|
|
|
}]
|
|
|
}
|
|
|
}
|
|
@@ -1213,7 +1243,7 @@
|
|
|
|
|
|
zEngineeringMaterialBo: [{
|
|
|
brand: this.brandValue.dictValue, //品牌
|
|
|
- //number: this.inputNumberValue //数量
|
|
|
+ //number: this.inputNumberValue //米数
|
|
|
}]
|
|
|
}
|
|
|
}
|
|
@@ -1241,7 +1271,7 @@
|
|
|
selfClosingValveType: this.SelfClosValve.dictValue, //自闭阀类型
|
|
|
materialQuality: this.materialValue.id, //材质
|
|
|
specifications: this.specificationValue.id, //规格
|
|
|
- number: this.inputNumberValue //数量
|
|
|
+ number: this.inputNumberValue //米数
|
|
|
}]
|
|
|
}
|
|
|
}
|