|
@@ -117,17 +117,28 @@
|
|
<image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
|
|
<image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <view class="container" style="border-bottom: 1px solid #f8f8f8;">
|
|
|
|
|
|
+ <!-- <view class="container" style="border-bottom: 1px solid #f8f8f8;">
|
|
|
|
|
|
<text>数量</text>
|
|
<text>数量</text>
|
|
<input class="uni-input" type="number" v-model="a.sl" placeholder="请填写数量" maxlength="11"
|
|
<input class="uni-input" type="number" v-model="a.sl" placeholder="请填写数量" maxlength="11"
|
|
style="margin-left: 10px;text-align: right;"></input>
|
|
style="margin-left: 10px;text-align: right;"></input>
|
|
<image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
|
|
<image :src="loadImgSrc('icon_right.png')" class="to-right-icon"></image>
|
|
|
|
+ </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="a.sl.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="a.sl.inputDecimalNumberValue" maxlength="1"
|
|
|
|
+ style="text-align: center; border: 1px solid #00aaff; border-radius: 20rpx;"></input>
|
|
</view>
|
|
</view>
|
|
<button v-if="index!=0" @click="this.czggslList.splice(index,1)" class="sc-btn">删除</button>
|
|
<button v-if="index!=0" @click="this.czggslList.splice(index,1)" class="sc-btn">删除</button>
|
|
</view>
|
|
</view>
|
|
- <button @click="this.czggslList.push({cz:{id: '',name: ''},gg:{id: '',name: ''},sl:''})"
|
|
|
|
- class="tj-btn">添加</button>
|
|
|
|
|
|
+ <button @click="this.czggslList.push({cz:{id: '',name: ''},gg:{id: '',name: ''},sl: {
|
|
|
|
+ inputIntegerNumberValue: '',
|
|
|
|
+ inputDecimalNumberValue: ''
|
|
|
|
+ }})" class="tj-btn">添加</button>
|
|
|
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
@@ -256,7 +267,10 @@
|
|
id: '',
|
|
id: '',
|
|
name: ''
|
|
name: ''
|
|
},
|
|
},
|
|
- sl: ''
|
|
|
|
|
|
+ sl: {
|
|
|
|
+ inputIntegerNumberValue: '',
|
|
|
|
+ inputDecimalNumberValue: ''
|
|
|
|
+ }
|
|
}, ],
|
|
}, ],
|
|
type: '',
|
|
type: '',
|
|
reviewStatus: '', //是否可以点击
|
|
reviewStatus: '', //是否可以点击
|
|
@@ -761,28 +775,35 @@
|
|
throw new Error('End Loop')
|
|
throw new Error('End Loop')
|
|
|
|
|
|
}
|
|
}
|
|
- if (this.isEmpty(list.sl)) {
|
|
|
|
- this.$modal.msg('数量不能为空')
|
|
|
|
|
|
+ // if (this.isEmpty(list.sl)) {
|
|
|
|
+ // 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')
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
})
|
|
})
|
|
} catch (e) {
|
|
} catch (e) {
|
|
if (e.message === 'End Loop') throw e
|
|
if (e.message === 'End Loop') throw e
|
|
}
|
|
}
|
|
this.zEngineeringMaterialBo = [];
|
|
this.zEngineeringMaterialBo = [];
|
|
this.czggslList.forEach((list) => {
|
|
this.czggslList.forEach((list) => {
|
|
- this.zEngineeringMaterialBo.push({
|
|
|
|
- materialQuality: list.cz.id,
|
|
|
|
- specifications: list.gg.id,
|
|
|
|
- number: list.sl
|
|
|
|
- })
|
|
|
|
|
|
+ this.zEngineeringMaterialBo.push({
|
|
|
|
+ materialQuality: list.cz.id,
|
|
|
|
+ specifications: list.gg.id,
|
|
|
|
+ number: list.sl.inputIntegerNumberValue + (list.sl.inputDecimalNumberValue == '' ?
|
|
|
|
+ '' : "." + list.sl.inputDecimalNumberValue)
|
|
})
|
|
})
|
|
|
|
+ })
|
|
|
|
|
|
|
|
+
|
|
if (this.imgGuanArr.length <= 0) {
|
|
if (this.imgGuanArr.length <= 0) {
|
|
this.$modal.msg('请上传管上皮深度测量照片')
|
|
this.$modal.msg('请上传管上皮深度测量照片')
|
|
return
|
|
return
|