ソースを参照

修复米数tosting bug

zhanghongrui 8 ヶ月 前
コミット
48c86ef334

+ 3 - 1
pages/oldrenovation/courtyard/courtyard.vue

@@ -1059,7 +1059,9 @@
 
 				},
 				getIntegerPart(numStr, i) {
-					return numStr.toString().split('.')[i] == undefined ? '0' : numStr.toString().split('.')[i];
+					if (numStr != null && numStr != undefined && numStr != '') {
+						return numStr.toString().split('.')[i] == undefined ? '0' : numStr.toString().split('.')[i];
+					}
 				},
 				showHistoryList() {
 					this.$refs.refShare.handleShowShare();

+ 3 - 1
pages/oldrenovation/indoor/indoor.vue

@@ -1788,7 +1788,9 @@
 				},
 
 				getIntegerPart(numStr, i) {
-					return numStr.toString().split('.')[i] == undefined ? '0' : numStr.toString().split('.')[i];
+					if (numStr != null && numStr != undefined && numStr != '') {
+						return numStr.toString().split('.')[i] == undefined ? '0' : numStr.toString().split('.')[i];
+					}
 				},
 				setInfoBoNumber(key, number, i) {
 					let Ynumber = this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[key].zEngineeringMaterialBo[0]

+ 3 - 1
pages/oldrenovation/overhead/newoverhead.vue

@@ -976,7 +976,9 @@
 					})
 				},
 				getIntegerPart(numStr, i) {
-					return numStr.toString().split('.')[i] == undefined ? '0' : numStr.toString().split('.')[i];
+					if (numStr != null && numStr != undefined && numStr != '') {
+						return numStr.toString().split('.')[i] == undefined ? '0' : numStr.toString().split('.')[i];
+					}
 				},
 				showHistoryList() {
 					this.$refs.refShare.handleShowShare();

+ 50 - 98
pages/statistics/historyDetailMunicipal.vue

@@ -1,13 +1,11 @@
 <template>
 	<scroll-view>
-		<view class="uni-media-list" v-for="(value, key) in dataJson.zEngineeringNodeBo.zEngineeringInfoBoList"
-			:key="key" v-if="isEdit(value)">
+		<view class="uni-media-list" v-for="(value, key) in dataJson.zEngineeringNodeBo.zEngineeringInfoBoList" :key="key" v-if="isEdit(value)">
 
 			<view class="uni-media-list-body">
 				<view>
 					<view class="uni-media-list-text-top" v-if="value.zEngineeringReviewBo!=null">
-						<view class="tit-text"
-							v-if="value.zEngineeringReviewBo.reviewStatus==''||value.zEngineeringReviewBo==null">未审核
+						<view class="tit-text" v-if="value.zEngineeringReviewBo.reviewStatus==''||value.zEngineeringReviewBo==null">未审核
 						</view>
 						<view class="tit-text" v-if="value.zEngineeringReviewBo.reviewStatus=='0'" style="color: red;">
 							未通过</view>
@@ -24,9 +22,7 @@
 							<text class="tit-text" style=" font-size: 13px;color:
 									#000;margin-top: 5px;">施工内容:</text>
 							<view style="width: 100%;box-sizing: border-box;">
-								<textarea class="textarea" maxlength="255" placeholder-style="padding: 10rpx;"
-									style="width: 100%;height: 100%;border: 1rpx solid #cccccc; border-radius: 15rpx;padding: 10rpx;line-height:normal;"
-									auto-height :value="value.remark"
+								<textarea class="textarea" maxlength="255" placeholder-style="padding: 10rpx;" style="width: 100%;height: 100%;border: 1rpx solid #cccccc; border-radius: 15rpx;padding: 10rpx;line-height:normal;" auto-height :value="value.remark"
 									@blur="bindTextAreaBlur($event.target.value,key)"></textarea>
 							</view>
 						</view>
@@ -38,20 +34,16 @@
 							<view class="uni-media-list-text-top" style=" ">
 								<view class="tit-text">材质:</view>
 
-								<view class="uni-list-cell-db" style="margin-top: 10;"
-									@click="pickerShow('cz',key,index)">
-									<span
-										style="color: black;">{{a.materialQualityName==''?'请选择材质':a.materialQualityName}}</span>
+								<view class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('cz',key,index)">
+									<span style="color: black;">{{a.materialQualityName==''?'请选择材质':a.materialQualityName}}</span>
 
 								</view>
 							</view>
 
 							<view class="uni-media-list-text-top" style=" ">
 								<view class="tit-text">规格:</view>
-								<view class="uni-list-cell-db" style="margin-top: 10;"
-									@click="pickerShow('gg',key,index)">
-									<span
-										style="color: black;">{{a.specificationsName==''?'请选择规格':a.specificationsName}}</span>
+								<view class="uni-list-cell-db" style="margin-top: 10;" @click="pickerShow('gg',key,index)">
+									<span style="color: black;">{{a.specificationsName==''?'请选择规格':a.specificationsName}}</span>
 
 								</view>
 							</view>
@@ -59,14 +51,10 @@
 							<view class="uni-media-list-text-top" style="border-bottom: 1px solid #f8f8f8;">
 								<text class="tit-text">米 数</text>
 								<view style="display: flex; justify-content: right; width: 70%;">
-									<input class="uni-input" type="number" :value="getIntegerPart(a.number,0)"
-										@change="setInfoBoNumber(key,index,$event.target.value,0)" maxlength="6"
-										style="text-align: center; border: 1px solid #00aaff; border-radius: 20rpx;"></input>
+									<input class="uni-input" type="number" :value="getIntegerPart(a.number,0)" @change="setInfoBoNumber(key,index,$event.target.value,0)" 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" :value="getIntegerPart(a.number,1)"
-										@change="setInfoBoNumber(key,index,$event.target.value,1)" maxlength="1"
-										style="text-align: center; border: 1px solid #00aaff; border-radius: 20rpx;"></input>
+									<input class="uni-input" type="number" :value="getIntegerPart(a.number,1)" @change="setInfoBoNumber(key,index,$event.target.value,1)" maxlength="1" style="text-align: center; border: 1px solid #00aaff; border-radius: 20rpx;"></input>
 								</view>
 							</view>
 							<button v-if="index!=0" @click="btnDel(key,index)" class="sc-btn">删除</button>
@@ -82,22 +70,17 @@
 
 
 					<view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px;">
-						<image :src="loadImgSrc('updateimg.png')" mode=""
-							style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; " @click="choose('other',key)">
+						<image :src="loadImgSrc('updateimg.png')" mode="" style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; " @click="choose('other',key)">
 						</image>
-						<view v-for="(item,index) in value.zEngiineeringPhotoBoList" :key="index"
-							style="position: relative;">
-							<view
-								v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg'  || item.substring(item.length - 3) == 'jpeg'">
-								<image :src="item" mode="" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;"
-									@click="showPhoto(index,value.zEngiineeringPhotoBoList)">
+						<view v-for="(item,index) in value.zEngiineeringPhotoBoList" :key="index" style="position: relative;">
+							<view v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg'  || item.substring(item.length - 3) == 'jpeg'">
+								<image :src="item" mode="" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;" @click="showPhoto(index,value.zEngiineeringPhotoBoList)">
 								</image>
 							</view>
 							<view v-else>
 								<video :src="item" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;"></video>
 							</view>
-							<view @click="removeht(index,key,'other')"
-								style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
+							<view @click="removeht(index,key,'other')" style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
 								<image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
 								</image>
 							</view>
@@ -114,22 +97,17 @@
 					</view>
 
 					<view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px;">
-						<image :src="loadImgSrc('updateimg.png')" mode=""
-							style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; " @click="choose('htq',key)">
+						<image :src="loadImgSrc('updateimg.png')" mode="" style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; " @click="choose('htq',key)">
 						</image>
-						<view v-for="(item,index) in value.zEngiineeringPhotoBoListOne" :key="index"
-							style="position: relative;">
-							<view
-								v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg'  || item.substring(item.length - 3) == 'jpeg'">
-								<image :src="item" mode="" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;"
-									@click="showPhoto(index,value.zEngiineeringPhotoBoListOne)">
+						<view v-for="(item,index) in value.zEngiineeringPhotoBoListOne" :key="index" style="position: relative;">
+							<view v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg'  || item.substring(item.length - 3) == 'jpeg'">
+								<image :src="item" mode="" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;" @click="showPhoto(index,value.zEngiineeringPhotoBoListOne)">
 								</image>
 							</view>
 							<view v-else>
 								<video :src="item" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;"></video>
 							</view>
-							<view @click="removeht(index,key,'htq')"
-								style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
+							<view @click="removeht(index,key,'htq')" style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
 								<image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
 								</image>
 							</view>
@@ -141,22 +119,17 @@
 											#000;margin-top: 5px;margin-left: 8px;">警示带铺设照片:</text>
 					</view>
 					<view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px;">
-						<image :src="loadImgSrc('updateimg.png')" mode=""
-							style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; " @click="choose('jsdps',key)">
+						<image :src="loadImgSrc('updateimg.png')" mode="" style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; " @click="choose('jsdps',key)">
 						</image>
-						<view v-for="(item,index) in value.zEngiineeringPhotoBoListTwo" :key="index"
-							style="position: relative;">
-							<view
-								v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg'  || item.substring(item.length - 3) == 'jpeg'">
-								<image :src="item" mode="" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;"
-									@click="showPhoto(index,value.zEngiineeringPhotoBoListTwo)">
+						<view v-for="(item,index) in value.zEngiineeringPhotoBoListTwo" :key="index" style="position: relative;">
+							<view v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg'  || item.substring(item.length - 3) == 'jpeg'">
+								<image :src="item" mode="" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;" @click="showPhoto(index,value.zEngiineeringPhotoBoListTwo)">
 								</image>
 							</view>
 							<view v-else>
 								<video :src="item" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;"></video>
 							</view>
-							<view @click="removeht(index,key,'jsdps')"
-								style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
+							<view @click="removeht(index,key,'jsdps')" style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
 								<image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
 								</image>
 							</view>
@@ -168,22 +141,17 @@
 											#000;margin-top: 5px;margin-left: 8px;">回填后照片:</text>
 					</view>
 					<view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px;">
-						<image :src="loadImgSrc('updateimg.png')" mode=""
-							style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; " @click="choose('hth',key)">
+						<image :src="loadImgSrc('updateimg.png')" mode="" style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; " @click="choose('hth',key)">
 						</image>
-						<view v-for="(item,index) in value.zEngiineeringPhotoBoListThree" :key="index"
-							style="position: relative;">
-							<view
-								v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg'  || item.substring(item.length - 3) == 'jpeg'">
-								<image :src="item" mode="" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;"
-									@click="showPhoto(index,value.zEngiineeringPhotoBoListThree)">
+						<view v-for="(item,index) in value.zEngiineeringPhotoBoListThree" :key="index" style="position: relative;">
+							<view v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg'  || item.substring(item.length - 3) == 'jpeg'">
+								<image :src="item" mode="" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;" @click="showPhoto(index,value.zEngiineeringPhotoBoListThree)">
 								</image>
 							</view>
 							<view v-else>
 								<video :src="item" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;"></video>
 							</view>
-							<view @click="removeht(index,key,'hth')"
-								style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
+							<view @click="removeht(index,key,'hth')" style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
 								<image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
 								</image>
 							</view>
@@ -199,21 +167,17 @@
 					</view>
 
 					<view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px;">
-						<image :src="loadImgSrc('updateimg.png')" mode=""
-							style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; " @click="choose('Tg',key)">
+						<image :src="loadImgSrc('updateimg.png')" mode="" style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; " @click="choose('Tg',key)">
 						</image>
 						<view v-for="(item,index) in value.cannula" :key="index" style="position: relative;">
-							<view
-								v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg'  || item.substring(item.length - 3) == 'jpeg'">
-								<image :src="item" mode="" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;"
-									@click="showPhoto(index,value.cannula)">
+							<view v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg'  || item.substring(item.length - 3) == 'jpeg'">
+								<image :src="item" mode="" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;" @click="showPhoto(index,value.cannula)">
 								</image>
 							</view>
 							<view v-else>
 								<video :src="item" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;"></video>
 							</view>
-							<view @click="removeht(index,key,'Tg')"
-								style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
+							<view @click="removeht(index,key,'Tg')" style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
 								<image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
 								</image>
 							</view>
@@ -226,21 +190,17 @@
 					</view>
 
 					<view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px;">
-						<image :src="loadImgSrc('updateimg.png')" mode=""
-							style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; " @click="choose('Nbmh',key)">
+						<image :src="loadImgSrc('updateimg.png')" mode="" style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; " @click="choose('Nbmh',key)">
 						</image>
 						<view v-for="(item,index) in value.wallPlaster" :key="index" style="position: relative;">
-							<view
-								v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg'  || item.substring(item.length - 3) == 'jpeg'">
-								<image :src="item" mode="" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;"
-									@click="showPhoto(index,value.wallPlaster)">
+							<view v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg'  || item.substring(item.length - 3) == 'jpeg'">
+								<image :src="item" mode="" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;" @click="showPhoto(index,value.wallPlaster)">
 								</image>
 							</view>
 							<view v-else>
 								<video :src="item" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;"></video>
 							</view>
-							<view @click="removeht(index,key,'Nbmh')"
-								style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
+							<view @click="removeht(index,key,'Nbmh')" style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
 								<image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
 								</image>
 							</view>
@@ -254,21 +214,17 @@
 					</view>
 
 					<view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px;">
-						<image :src="loadImgSrc('updateimg.png')" mode=""
-							style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; " @click="choose('Fhw',key)">
+						<image :src="loadImgSrc('updateimg.png')" mode="" style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; " @click="choose('Fhw',key)">
 						</image>
 						<view v-for="(item,index) in value.protectiveNet" :key="index" style="position: relative;">
-							<view
-								v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg'  || item.substring(item.length - 3) == 'jpeg'">
-								<image :src="item" mode="" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;"
-									@click="showPhoto(index,value.protectiveNet)">
+							<view v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg'  || item.substring(item.length - 3) == 'jpeg'">
+								<image :src="item" mode="" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;" @click="showPhoto(index,value.protectiveNet)">
 								</image>
 							</view>
 							<view v-else>
 								<video :src="item" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;"></video>
 							</view>
-							<view @click="removeht(index,key,'Fhw')"
-								style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
+							<view @click="removeht(index,key,'Fhw')" style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
 								<image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
 								</image>
 							</view>
@@ -281,21 +237,17 @@
 					</view>
 
 					<view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px;">
-						<image :src="loadImgSrc('updateimg.png')" mode=""
-							style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; " @click="choose('Bj',key)">
+						<image :src="loadImgSrc('updateimg.png')" mode="" style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; " @click="choose('Bj',key)">
 						</image>
 						<view v-for="(item,index) in value.starAnise" :key="index" style="position: relative;">
-							<view
-								v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg'  || item.substring(item.length - 3) == 'jpeg'">
-								<image :src="item" mode="" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;"
-									@click="showPhoto(index,value.starAnise)">
+							<view v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg'  || item.substring(item.length - 3) == 'jpeg'">
+								<image :src="item" mode="" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;" @click="showPhoto(index,value.starAnise)">
 								</image>
 							</view>
 							<view v-else>
 								<video :src="item" style="width: 200rpx; height: 200rpx; margin: 0 12rpx;"></video>
 							</view>
-							<view @click="removeht(index,key,'Bj')"
-								style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
+							<view @click="removeht(index,key,'Bj')" style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
 								<image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
 								</image>
 							</view>
@@ -311,11 +263,9 @@
 		</view>
 		</view>
 
-		<SelectPicker :list="selectList" @change="changeSelect" v-if="open" @close="close" titleKey="name"
-			subtitleKey="id">
+		<SelectPicker :list="selectList" @change="changeSelect" v-if="open" @close="close" titleKey="name" subtitleKey="id">
 		</SelectPicker>
-		<SelectPicker :list="dictOptions" @change="changeSelectDict" v-if="openDict" @close="closeDict"
-			titleKey="dictLabel" subtitleKey="dictValue" v-model="name"></SelectPicker>
+		<SelectPicker :list="dictOptions" @change="changeSelectDict" v-if="openDict" @close="closeDict" titleKey="dictLabel" subtitleKey="dictValue" v-model="name"></SelectPicker>
 		<view class="action-btn" v-if="hideButton==false">
 			<button @click="submit" class="btn cu-btn block bg-blue lg round">确认</button>
 		</view>
@@ -473,7 +423,9 @@
 			},
 			// 截取小数点前的字符串
 			getIntegerPart(numStr, i) {
-				return numStr.toString().split('.')[i] == undefined ? '0' : numStr.toString().split('.')[i];
+				if (numStr != null && numStr != undefined && numStr != '') {
+					return numStr.toString().split('.')[i] == undefined ? '0' : numStr.toString().split('.')[i];
+				}
 			},
 			setInfoBoNumber(key, index, number, i) {
 				let Ynumber = this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[key].zEngineeringMaterialBo[index]

+ 3 - 1
pages/statistics/historyDetails.vue

@@ -436,7 +436,9 @@
 
 			// 截取小数点前的字符串
 			getIntegerPart(numStr, i) {
-				return numStr.toString().split('.')[i] == undefined ? '0' : numStr.toString().split('.')[i];
+				if (numStr != null && numStr != undefined && numStr != '') {
+					return numStr.toString().split('.')[i] == undefined ? '0' : numStr.toString().split('.')[i];
+				}
 			},
 			setInfoBoNumber(key, number, i) {
 				let Ynumber = this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[key].zEngineeringMaterialBo[0]

+ 3 - 1
pages/statistics/historyDetailsCourtyard.vue

@@ -666,7 +666,9 @@
 			},
 			// 截取小数点前的字符串
 			getIntegerPart(numStr, i) {
-				return numStr.toString().split('.')[i] == undefined ? '0' : numStr.toString().split('.')[i];
+				if (numStr != null && numStr != undefined && numStr != '') {
+					return numStr.toString().split('.')[i] == undefined ? '0' : numStr.toString().split('.')[i];
+				}
 			},
 			setInfoBoNumber(key, index, number, i) {
 				let Ynumber = this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[key].zEngineeringMaterialBo[index]

+ 3 - 1
pages/statistics/historyDetailsEnginproject.vue

@@ -613,7 +613,9 @@
 			},
 			// 截取小数点前的字符串
 			getIntegerPart(numStr, i) {
-				return numStr.toString().split('.')[i] == undefined ? '0' : numStr.toString().split('.')[i];
+				if (numStr != null && numStr != undefined && numStr != '') {
+					return numStr.toString().split('.')[i] == undefined ? '0' : numStr.toString().split('.')[i];
+				}
 			},
 			setInfoBoNumber(key, index, number, i) {
 				let Ynumber = this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[key].zEngineeringMaterialBo[index]

+ 3 - 1
pages/statistics/historyDetailsInfrastructure.vue

@@ -416,7 +416,9 @@
 
 			// 截取小数点前的字符串
 			getIntegerPart(numStr, i) {
-				return numStr.toString().split('.')[i] == undefined ? '0' : numStr.toString().split('.')[i];
+				if (numStr != null && numStr != undefined && numStr != '') {
+					return numStr.toString().split('.')[i] == undefined ? '0' : numStr.toString().split('.')[i];
+				}
 			},
 
 			setInfoBo(key, str, type) {

+ 3 - 1
pages/statistics/historyDetailsTopTube.vue

@@ -380,7 +380,9 @@
 
 			// 截取小数点前的字符串
 			getIntegerPart(numStr, i) {
-				return numStr.toString().split('.')[i] == undefined ? '0' : numStr.toString().split('.')[i];
+				if (numStr != null && numStr != undefined && numStr != '') {
+					return numStr.toString().split('.')[i] == undefined ? '0' : numStr.toString().split('.')[i];
+				}
 			},
 			setInfoBoNumber(key, index, number, i) {
 				let Ynumber = this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[key].zEngineeringMaterialBo[index]