|
@@ -180,13 +180,15 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="uni-list">
|
|
|
- <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>
|
|
|
- </view>
|
|
|
+
|
|
|
+ <view class="container" style="border-bottom: 1px solid #f8f8f8;">
|
|
|
+ <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>
|
|
@@ -283,6 +285,8 @@
|
|
|
specificationValue: {}, //规格
|
|
|
materialValue: {}, //材质
|
|
|
inputNumberValue: '',
|
|
|
+ inputIntegerNumberValue: '',
|
|
|
+ inputDecimalNumberValue: '',
|
|
|
projectName: '', //工程名称
|
|
|
gcdzValue: '', //工程地址
|
|
|
jsdwValue: '', //建设单位
|
|
@@ -718,8 +722,8 @@
|
|
|
return
|
|
|
}
|
|
|
}
|
|
|
- if (this.isEmpty(this.inputNumberValue)) {
|
|
|
- this.$modal.msg("请输入数量")
|
|
|
+ if (this.isEmpty(this.inputIntegerNumberValue)) {
|
|
|
+ this.$modal.msg("请输入米数")
|
|
|
return
|
|
|
}
|
|
|
if (this.imgArr.length <= 0) {
|
|
@@ -730,6 +734,13 @@
|
|
|
this.$modal.msg('照片或视频未上传完毕,无法提交!')
|
|
|
return
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+ if (this.isEmpty(this.inputDecimalNumberValue)) {
|
|
|
+ this.inputNumberValue = this.inputIntegerNumberValue;
|
|
|
+ } else {
|
|
|
+ this.inputNumberValue = this.inputIntegerNumberValue + "." + this.inputDecimalNumberValue;
|
|
|
+ }
|
|
|
if (this.isNew) {
|
|
|
//新增
|
|
|
this.zEngineeringMaterialBo.push({
|