فهرست منبع

途宝报单bug修改

wangzhuo 1 سال پیش
والد
کامیت
fd7f494c1a
4فایلهای تغییر یافته به همراه354 افزوده شده و 46 حذف شده
  1. 1 1
      manifest.json
  2. 10 1
      pages/index.vue
  3. 342 44
      pages/particulars/claimExpense/index.vue
  4. 1 0
      uni_modules/uview-ui/components/u-loading-page/u-loading-page.vue

+ 1 - 1
manifest.json

@@ -1,6 +1,6 @@
 {
     "name" : "途宝报单",
-    "appid" : "__UNI__8B25AD8",
+    "appid" : "__UNI__C703D94",
     "description" : "",
     "versionName" : "1.1.0",
     "versionCode" : "100",

+ 10 - 1
pages/index.vue

@@ -40,7 +40,16 @@
 				return this.$store.state.user.avatar
 			}
 		},
-		onLoad() {},
+		onLoad() {
+			// 调用获取位置信息
+			uni.getLocation({
+				type: 'wgs84',
+				isHighAccuracy: true,
+				geocode: true,
+				success: (map) => {
+				}
+			});
+		},
 		onReachBottom() {},
 		methods: {
 			driverClass(type) {

+ 342 - 44
pages/particulars/claimExpense/index.vue

@@ -74,7 +74,7 @@
 					<view class="data-two">
 						<text class="key">定点加油1</text>
 						<view class="list">
-							<uni-data-select :disabled="disabled" :localdata="gasStationList"
+							<uni-data-select style="width: 520rpx;" :disabled="disabled" :localdata="gasStationList"
 								v-model="formData.gasstation1" @change="gasstation1Change"></uni-data-select>
 						</view>
 					</view>
@@ -82,13 +82,13 @@
 				<view class="box">
 					<view class="data">
 						<text class="key">升&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;数</text>
-						<input class="value" selection-start="0" selection-end="9999" :disabled="disabled" type="digit"
+						<input class="value" selection-start="0" selection-end="9999" :disabled="disabled || formData.gasstation1 == '' || formData.gasstation1 == null" type="digit"
 							@input="checkUnOilappoint1Qty" placeholder-style="font-size:24rpx" placeholder="请输入升数" v-model="formData.oilappoint1Qty" />
 					</view>
 					<view class="data">
 						<text class="key">金&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;额</text>
 
-						<input class="value" selection-start="0" selection-end="9999" :disabled="disabled" type="digit"
+						<input class="value" selection-start="0" selection-end="9999" :disabled="disabled || formData.gasstation1 == '' || formData.gasstation1 == null" type="digit"
 							@input="checkUnOilappoint1Amt" placeholder-style="font-size:24rpx" placeholder="请输入金额" v-model="formData.oilappoint1Amt" />
 					</view>
 				</view>
@@ -97,7 +97,7 @@
 					<view class="data-two">
 						<text class="key">定点加油2</text>
 						<view class="list">
-							<uni-data-select :disabled="disabled" :localdata="gasStationList"
+							<uni-data-select style="width: 520rpx;" :disabled="disabled" :localdata="gasStationList"
 								v-model="formData.gasstation2" @change="gasstation2Change"></uni-data-select>
 						</view>
 					</view>
@@ -105,13 +105,13 @@
 				<view class="box">
 					<view class="data">
 						<text class="key">升&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;数</text>
-						<input class="value" selection-start="0" selection-end="9999" :disabled="disabled" type="digit"
+						<input class="value" selection-start="0" selection-end="9999" :disabled="disabled || formData.gasstation2 == '' || formData.gasstation2 == null" type="digit"
 							@input="checkUnOilappoint2Qty" placeholder-style="font-size:24rpx" placeholder="请输入升数" v-model="formData.oilappoint2Qty" />
 					</view>
 					<view class="data">
 						<text class="key">金&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;额</text>
 
-						<input class="value" selection-start="0" selection-end="9999" :disabled="disabled" type="digit"
+						<input class="value" selection-start="0" selection-end="9999" :disabled="disabled || formData.gasstation2 == '' || formData.gasstation2 == null" type="digit"
 							@input="checkUnOilappoint2Amt" placeholder-style="font-size:24rpx" placeholder="请输入金额" v-model="formData.oilappoint2Amt" />
 					</view>
 				</view>
@@ -120,7 +120,7 @@
 					<view class="data-two">
 						<text class="key">定点加油3</text>
 						<view class="list">
-							<uni-data-select :disabled="disabled" :localdata="gasStationList"
+							<uni-data-select style="width: 520rpx;" :disabled="disabled" :localdata="gasStationList"
 								v-model="formData.gasstation3" @change="gasstation3Change"></uni-data-select>
 						</view>
 					</view>
@@ -128,13 +128,13 @@
 				<view class="box">
 					<view class="data">
 						<text class="key">升&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;数</text>
-						<input class="value" selection-start="0" selection-end="9999" :disabled="disabled" type="digit"
+						<input class="value" selection-start="0" selection-end="9999" :disabled="disabled || formData.gasstation3 == '' || formData.gasstation3 == null" type="digit"
 							@input="checkUnOilappoint3Qty" placeholder-style="font-size:24rpx" placeholder="请输入升数" v-model="formData.oilappoint3Qty" />
 					</view>
 					<view class="data">
 						<text class="key">金&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;额</text>
 
-						<input class="value" selection-start="0" selection-end="9999" :disabled="disabled" type="digit"
+						<input class="value" selection-start="0" selection-end="9999" :disabled="disabled || formData.gasstation3 == '' || formData.gasstation3 == null" type="digit"
 							@input="checkUnOilappoint3Amt" placeholder-style="font-size:24rpx" placeholder="请输入金额" v-model="formData.oilappoint3Amt" />
 					</view>
 				</view>
@@ -176,7 +176,8 @@
 
 			<view class="box-box" style="margin-top: 40rpx;">
 				<view style="margin-bottom: 20rpx;">
-					<text style="color: #3c9cff;">单据拍照存档</text>
+					<!-- <text style="color: #3c9cff;">单据拍照存档</text> -->
+					<text style="color: #3c9cff;">单据拍照存档 (请上传图片大小为1MB以下的图片)</text>
 				</view>
 				<u-upload :fileList="fileList1" accept="image" :sizeType="['compressed']" capture="camera"
 					@afterRead="imgUploading" @delete="deletePic" name="1" multiple :disabled="disabled"
@@ -198,11 +199,31 @@
 					</view>
 
 					<view class="remarks" style="border-bottom: 2rpx dotted #000;">
-						<input v-model="item.remarks" placeholder-style="font-size:24rpx" placeholder="请输入备注">
+						<input v-model="item.remarks" placeholder-style="font-size:24rpx" :disabled="disabled" placeholder="请输入备注">
 					</view>
 				</view>
 			</view>
 		</view>
+		
+		<view v-if="isTabs == '行程绕路'">
+			<view style="margin: 20rpx 30rpx;">
+				<view class="box-two">
+					<text class="key" style="width: 260rpx;">绕路里程空(公里)</text>
+					<input class="value-two" style="border-bottom: 2rpx dotted #000;" selection-start="0" selection-end="9999" disabled
+						@input="checkUnDetourEmptyMile" v-model="formData.detourEmptyMile" />
+				</view>
+				<view class="box-two">
+					<text class="key" style="width: 260rpx;">绕路里程重(公里)</text>
+					<input class="value-two" style="border-bottom: 2rpx dotted #000;" selection-start="0" selection-end="9999" disabled
+						@input="checkUnDetourLoadMile" v-model="formData.detourLoadMile" />
+				</view>
+				<view class="box-two">
+					<text class="key" style="width: 260rpx;">绕&nbsp;&nbsp;&nbsp;&nbsp;路&nbsp;&nbsp;&nbsp;&nbsp;原&nbsp;&nbsp;&nbsp;&nbsp;因</text>
+					<input class="value-two" style="border-bottom: 2rpx dotted #000;" selection-start="0" selection-end="9999" disabled
+						v-model="formData.detourDesc" />
+				</view>
+			</view>
+		</view>
 
 		<view class="cushion">
 		</view>
@@ -232,7 +253,7 @@
 				<view class="row">
 					<view class="button">
 						<u-button iconColor="#3c9cff" shape="circle" type="primary" :disabled="saveDisabled"
-							@click="submitShow = true" text="保存数据"></u-button>
+							@click="submitVerify()" text="保存数据"></u-button>
 					</view>
 					<view class="button">
 						<u-button iconColor="#fe8c00;" color="#fe8c00" shape="circle" type="primary" :disabled="upDisabled"
@@ -256,8 +277,9 @@
 			</view>
 		</view>
 
-		<!-- 遮盖罩 -->
-		<u-loading-page :loading="loading" style="z-index: 20000;"></u-loading-page>
+		<!-- 遮盖罩 --> 
+		<!-- <u-loading-page :loading="true" :zIndex="20000"></u-loading-page> -->
+		<u-loading-page :loading="loading"></u-loading-page>
 
 		<!-- 消息提示 -->
 		<u-toast ref="uToast"></u-toast>
@@ -375,6 +397,8 @@
 					name: '行程费用'
 				}, {
 					name: '其他费用'
+				}, {
+					name: '行程绕路'
 				}],
 				isTabs: '行程费用',
 				// 报销金额
@@ -440,6 +464,8 @@
 					res.data.oilcash1Amt == 0 ? res.data.oilcash1Amt = null : res.data.oilcash1Amt
 					res.data.oilcardQty == 0 ? res.data.oilcardQty = null : res.data.oilcardQty
 					res.data.oilcardAmt == 0 ? res.data.oilcardAmt = null : res.data.oilcardAmt
+					res.data.detourEmptyMile == 0 ? res.data.detourEmptyMile = null : res.data.detourEmptyMile
+					res.data.detourLoadMile == 0 ? res.data.detourLoadMile = null : res.data.detourLoadMile
 						
 						for (let item of this.itemsList) {
 							if (item == 0) {
@@ -521,6 +547,7 @@
 						message: "没有装车吨位!",
 						iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
 					})
+					return
 				} else if(this.formData.loadDate == null) {
 					this.$refs.uToast.show({
 						type: 'warning',
@@ -528,6 +555,7 @@
 						message: "没有装车时间!",
 						iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
 					})
+					return
 				} else if(this.formData.unLoadQty == null) {
 					this.$refs.uToast.show({
 						type: 'warning',
@@ -535,6 +563,7 @@
 						message: "没有卸车吨位!",
 						iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
 					})
+					return
 				} else if(this.formData.unLoadDate == null) {
 					this.$refs.uToast.show({
 						type: 'warning',
@@ -542,6 +571,7 @@
 						message: "没有卸车时间!",
 						iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
 					})
+					return
 				} else if (this.formData.ifOrder2ed == 'F') {
 					this.upAuditShow = false;
 					this.$refs.uToast.show({
@@ -550,6 +580,7 @@
 						message: "装卸信息提交后才能报账!",
 						iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
 					})
+					return
 				} else if (this.formData.ifOrder2ed != 'O' && this.formData.ifOrder2ed != 'S') {
 					this.upAuditShow = false;
 					this.$refs.uToast.show({
@@ -557,27 +588,278 @@
 						icon: false,
 						message: "请先提交卸车信息!",
 						iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
-					}) 
-				} else {
-					if (type == 'BX') {
-						this.submitShow = true
-					} else if (type == 'TJ') {
-						this.upAuditShow = true
+					})
+					return
+				}
+				
+				if (this.formData.gasstation1 != null && this.formData.gasstation1 != '') {
+					if (this.formData.oilappoint1Qty == 0) {
+						this.$refs.uToast.show({
+							type: 'warning',
+							icon: false,
+							message: "升数不可以是0",
+							iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
+						})
+						return
+					}
+					if (this.formData.oilappoint1Amt == 0) {
+						this.$refs.uToast.show({
+							type: 'warning',
+							icon: false,
+							message: "金额不可以是0",
+							iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
+						})
+						return
 					}
 					
+					if (this.formData.oilappoint1Qty == null || this.formData.oilappoint1Qty == '') {
+						this.$refs.uToast.show({
+							type: 'warning',
+							icon: false,
+							message: "请输入定点加油1的升数",
+							iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
+						})
+						return
+					}
+					if (this.formData.oilappoint1Amt == null || this.formData.oilappoint1Amt == '') {
+						this.$refs.uToast.show({
+							type: 'warning',
+							icon: false,
+							message: "请输入定点加油1的金额",
+							iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
+						})
+						return
+					}
+				}
+				if (this.formData.gasstation2 != null && this.formData.gasstation2 != '') {
+					if (this.formData.oilappoint2Qty == 0) {
+						this.$refs.uToast.show({
+							type: 'warning',
+							icon: false,
+							message: "升数不可以是0",
+							iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
+						})
+						return
+					}
+					if (this.formData.oilappoint2Amt == 0) {
+						this.$refs.uToast.show({
+							type: 'warning',
+							icon: false,
+							message: "金额不可以是0",
+							iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
+						})
+						return
+					}
+					
+					
+					if (this.formData.oilappoint2Qty == null || this.formData.oilappoint2Qty == '') {
+						this.$refs.uToast.show({
+							type: 'warning',
+							icon: false,
+							message: "请输入定点加油2的升数",
+							iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
+						})
+						return
+					}
+					
+					
+					if (this.formData.oilappoint2Amt == null || this.formData.oilappoint2Amt == '') {
+						this.$refs.uToast.show({
+							type: 'warning',
+							icon: false,
+							message: "请输入定点加油2的金额",
+							iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
+						})
+						return
+					}
+				}
+				if (this.formData.gasstation3 != null && this.formData.gasstation3 != '') {
+					if (this.formData.oilappoint3Qty == 0) {
+						this.$refs.uToast.show({
+							type: 'warning',
+							icon: false,
+							message: "升数不可以是0",
+							iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
+						})
+						return
+					}
+					if (this.formData.oilappoint3Amt == 0) {
+						this.$refs.uToast.show({
+							type: 'warning',
+							icon: false,
+							message: "金额不可以是0",
+							iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
+						})
+						return
+					}
+					
+					if (this.formData.oilappoint3Qty == null || this.formData.oilappoint3Qty == '') {
+						this.$refs.uToast.show({
+							type: 'warning',
+							icon: false,
+							message: "请输入定点加油3的升数",
+							iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
+						})
+						return
+					}
+					
+					
+					if (this.formData.oilappoint3Amt == null || this.formData.oilappoint3Amt == '') {
+						this.$refs.uToast.show({
+							type: 'warning',
+							icon: false,
+							message: "请输入定点加油3的金额",
+							iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
+						})
+						return
+					}
+				}
+				 
+				if (type == 'BX') {
+					this.submitShow = true
+				} else if (type == 'TJ') {
+					this.upAuditShow = true
 				}
-				
+			},
+			submitVerify() {
+				if (this.formData.gasstation1 != null && this.formData.gasstation1 != '') {
+					if (this.formData.oilappoint1Qty == 0) {
+						this.$refs.uToast.show({
+							type: 'warning',
+							icon: false,
+							message: "升数不可以是0",
+							iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
+						})
+						return false
+					}
+					if (this.formData.oilappoint1Amt == 0) {
+						this.$refs.uToast.show({
+							type: 'warning',
+							icon: false,
+							message: "金额不可以是0",
+							iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
+						})
+						return false
+					}
+					
+					if (this.formData.oilappoint1Qty == null || this.formData.oilappoint1Qty == '') {
+						this.$refs.uToast.show({
+							type: 'warning',
+							icon: false,
+							message: "请输入定点加油1的升数",
+							iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
+						})
+						return false
+					}
+					if (this.formData.oilappoint1Amt == null || this.formData.oilappoint1Amt == '') {
+						this.$refs.uToast.show({
+							type: 'warning',
+							icon: false,
+							message: "请输入定点加油1的金额",
+							iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
+						})
+						return false
+					}
+				}
+				if (this.formData.gasstation2 != null && this.formData.gasstation2 != '') {
+					if (this.formData.oilappoint2Qty == 0) {
+						this.$refs.uToast.show({
+							type: 'warning',
+							icon: false,
+							message: "升数不可以是0",
+							iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
+						})
+						return false
+					}
+					if (this.formData.oilappoint2Amt == 0) {
+						this.$refs.uToast.show({
+							type: 'warning',
+							icon: false,
+							message: "金额不可以是0",
+							iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
+						})
+						return false
+					}
+					
+					
+					if (this.formData.oilappoint2Qty == null || this.formData.oilappoint2Qty == '') {
+						this.$refs.uToast.show({
+							type: 'warning',
+							icon: false,
+							message: "请输入定点加油2的升数",
+							iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
+						})
+						return false
+					}
+					
+					
+					if (this.formData.oilappoint2Amt == null || this.formData.oilappoint2Amt == '') {
+						this.$refs.uToast.show({
+							type: 'warning',
+							icon: false,
+							message: "请输入定点加油2的金额",
+							iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
+						})
+						return false
+					}
+				}
+				if (this.formData.gasstation3 != null && this.formData.gasstation3 != '') {
+					if (this.formData.oilappoint3Qty == 0) {
+						this.$refs.uToast.show({
+							type: 'warning',
+							icon: false,
+							message: "升数不可以是0",
+							iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
+						})
+						return false
+					}
+					if (this.formData.oilappoint3Amt == 0) {
+						this.$refs.uToast.show({
+							type: 'warning',
+							icon: false,
+							message: "金额不可以是0",
+							iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
+						})
+						return false
+					}
+					
+					if (this.formData.oilappoint3Qty == null || this.formData.oilappoint3Qty == '') {
+						this.$refs.uToast.show({
+							type: 'warning',
+							icon: false,
+							message: "请输入定点加油3的升数",
+							iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
+						})
+						return false
+					}
+					
+					
+					if (this.formData.oilappoint3Amt == null || this.formData.oilappoint3Amt == '') {
+						this.$refs.uToast.show({
+							type: 'warning',
+							icon: false,
+							message: "请输入定点加油3的金额",
+							iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
+						})
+						return false
+					}
+				}
+				//  else if (this.status376 == 6) {
+				// 	this.$refs.uToast.show({
+				// 		type: 'warning',
+				// 		icon: false,
+				// 		message: "不允许保存!",
+				// 		iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
+				// 	})
+				// 		return false
+				// }
+				this.submitShow = true
+				return true
 			},
 			// 保存内容
 			submit() {
-				if (this.status376 == 6) {
-					this.$refs.uToast.show({
-						type: 'warning',
-						icon: false,
-						message: "不允许保存!",
-						iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
-					})
-				} else if (this.status376 == 2 || this.status376 == 0) {
+				// if ((this.status376 == 2 || this.status376 == 0)) {
+				if (true) {
 
 					let isMo = false;
 
@@ -685,6 +967,8 @@
 										res.data.oilcash1Amt == 0 ? res.data.oilcash1Amt = null : res.data.oilcash1Amt
 										res.data.oilcardQty == 0 ? res.data.oilcardQty = null : res.data.oilcardQty
 										res.data.oilcardAmt == 0 ? res.data.oilcardAmt = null : res.data.oilcardAmt
+										res.data.detourEmptyMile == 0 ? res.data.detourEmptyMile = null : res.data.detourEmptyMile
+										res.data.detourLoadMile == 0 ? res.data.detourLoadMile = null : res.data.detourLoadMile
 											for (let item of this.itemsList) {
 												if (item == 0) {
 													item.amt = null
@@ -880,6 +1164,8 @@
 											res.data.oilcash1Amt == 0 ? res.data.oilcash1Amt = null : res.data.oilcash1Amt
 											res.data.oilcardQty == 0 ? res.data.oilcardQty = null : res.data.oilcardQty
 											res.data.oilcardAmt == 0 ? res.data.oilcardAmt = null : res.data.oilcardAmt
+											res.data.detourEmptyMile == 0 ? res.data.detourEmptyMile = null : res.data.detourEmptyMile
+											res.data.detourLoadMile == 0 ? res.data.detourLoadMile = null : res.data.detourLoadMile
 												for (let item of this.itemsList) {
 													if (item == 0) {
 														item.amt = null
@@ -979,6 +1265,7 @@
 							message: "审核成功!",
 							iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/success.png'
 						})
+						this.sDisabled = true;
 						this.loading = false;
 					} else {
 						// 保存失败消息
@@ -1059,14 +1346,6 @@
 							// 获取经纬度
 							let longitude = '';
 							let latitude = '';
-							// uni.getLocation({
-							// 	type: 'wgs84',
-							// 	success: function(res) {
-							// 		console.log('当前位置的经度:' + res.longitude);
-							// 		console.log('当前位置的纬度:' + res.latitude);
-							// 	}
-							// });
-							
 							uni.getLocation({
 								type: 'wgs84',
 								isHighAccuracy: true,
@@ -1078,7 +1357,8 @@
 										attachId: res.data,
 										longitude: longitude,
 										latitude: latitude,
-										updateDate: dateHHmmss
+										updateDate: dateHHmmss,
+										carRegNo:this.formData.carRegNo
 									}
 									// 上传图片
 									pictureUploading(data, dataForm).then(res => {
@@ -1136,18 +1416,18 @@
 			},
 			// 定点加油1清空
 			gasstation1Change() {
-				this.formData.oilappoint1Qty = '';
-				this.formData.oilappoint1Amt = 0;
+				this.formData.oilappoint1Qty = null;
+				this.formData.oilappoint1Amt = null;
 			},
 			// 定点加油2清空
 			gasstation2Change() {
-				this.formData.oilappoint2Qty = '';
-				this.formData.oilappoint2Amt = 0;
+				this.formData.oilappoint2Qty = null;
+				this.formData.oilappoint2Amt = null;
 			},
 			// 定点加油3清空
 			gasstation3Change() {
-				this.formData.oilappoint3Qty = '';
-				this.formData.oilappoint3Amt = 0;
+				this.formData.oilappoint3Qty = null;
+				this.formData.oilappoint3Amt = null;
 			},
 			// 点击拨打电话
 			telFun() {
@@ -1348,6 +1628,24 @@
 				})
 				this.calculatMoney();
 			},
+			checkUnDetourEmptyMile(e) {
+				//正则表达试
+				e.target.value = (e.target.value.match(/^\d*(\.?\d{0,3})/g)[0]) || null
+				//重新赋值给input
+				this.$nextTick(() => {
+					this.formData.detourEmptyMile = e.target.value
+				})
+
+			},
+			checkUnDetourLoadMile(e) {
+				//正则表达试
+				e.target.value = (e.target.value.match(/^\d*(\.?\d{0,3})/g)[0]) || null
+				//重新赋值给input
+				this.$nextTick(() => {
+					this.formData.detourLoadMile = e.target.value
+				})
+			
+			},
 			inputHeight() {
 				// if (this.vHeight == 0) {
 				this.vHeight = 600;

+ 1 - 0
uni_modules/uview-ui/components/u-loading-page/u-loading-page.vue

@@ -9,6 +9,7 @@
             bottom: 0,
             backgroundColor: bgColor,
             display: 'flex',
+            zIndex: 20000,
         }"
     >
         <view class="u-loading-page">