zhongtianhaoyuan 2 jaren geleden
bovenliggende
commit
c6948f2795

+ 2 - 2
config/index.js

@@ -1,6 +1,6 @@
 const dev = {
-	baseUrlNew: 'https://apitest.eliangeyun.com',
-	// baseUrlNew: 'http://192.168.110.9:8099',
+	// baseUrlNew: 'https://apitest.eliangeyun.com',
+	baseUrlNew: 'http://192.168.110.9:8099',
 	// baseUrlNew: 'http://192.168.110.82:8999',
 	// baseUrlNew: 'http://192.168.1.119:8999',
 	h5Appid: 'wxb66b599f7f61b46f',

+ 12 - 0
pages/mine/manageVehicles/addVehicle.vue

@@ -234,6 +234,11 @@
 				<u--input type='number' placeholder="输入总质量" inputAlign='left' border="none" v-model="dataDetails.carTotalWeight">
 				</u--input>
 			</view>
+			<view class="flex row" v-if="sign == '非挂车'">
+				<view class="left-text">核定载质量(千克)</view>
+				<u--input placeholder="输入核定载质量" inputAlign='left' border="none" v-model="dataDetails.carApprovedWeight">
+				</u--input>
+			</view>
 			<view class="flex row" v-if="sign == '挂车'">
 				<view class="left-text">整备质量(千克)</view>
 				<u--input type='number' placeholder="输入整备质量" inputAlign='left' border="none" v-model="dataDetails.servicingWeight">
@@ -1185,6 +1190,13 @@
 					})
 					return true
 				}
+				if (uni.$u.test.isEmpty(this.dataDetails.carApprovedWeight) && this.sign == '非挂车') {
+					this.$refs.uToast.show({
+						type: 'error',
+						message: "核定载质量不能为空!",
+					})
+					return true
+				}
 				
 				if (uni.$u.test.isEmpty(this.dataDetails.servicingWeight) && this.sign == '挂车') {
 					this.$refs.uToast.show({

+ 12 - 0
pages/mine/manageVehicles/editVehicle.vue

@@ -233,6 +233,11 @@
 				<u--input placeholder="输入总质量" inputAlign='left' border="none" v-model="dataDetails.carTotalWeight">
 				</u--input>
 			</view>
+			<view class="flex row" v-if="sign == '非挂车'">
+				<view class="left-text">核定载质量(千克)</view>
+				<u--input placeholder="输入核定载质量" inputAlign='left' border="none" v-model="dataDetails.carApprovedWeight">
+				</u--input>
+			</view>
 			<view class="flex row" v-if="sign == '挂车'">
 				<view class="left-text">整备质量(千克)</view>
 				<u--input placeholder="输入整备质量" inputAlign='left' border="none" v-model="dataDetails.servicingWeight">
@@ -1029,6 +1034,13 @@
 					})
 					return true
 				}
+				if (uni.$u.test.isEmpty(this.dataDetails.carApprovedWeight) && this.sign == '非挂车') {
+					this.$refs.uToast.show({
+						type: 'error',
+						message: "核定载质量不能为空!",
+					})
+					return true
+				}
 				
 				if (uni.$u.test.isEmpty(this.dataDetails.servicingWeight) && this.sign == '挂车') {
 					this.$refs.uToast.show({

+ 0 - 1
pages/order/orderDetails.vue

@@ -397,7 +397,6 @@
 				// this.lookAlert = true
 				uni.$u.route('/pages/order/signContract',{obj:encodeURIComponent(JSON.stringify(this.dataObj))} 
 				);
-				
 			},
 			// 完结
 			closed() {

+ 0 - 1
pages/public/register.vue

@@ -305,7 +305,6 @@
 						}
 					})
 					.catch(res => {
-						debugger
 						console.log(res);
 					});
 			},