zhangyuewww 3 years ago
parent
commit
4e6d61fb91

+ 1 - 1
pageB/contract/contract.vue

@@ -34,7 +34,7 @@
 			<view class="c-row flex annius">
 				<text class="anniu" @click="commit"> 附件</text>
 				<text class="anniu" @click="someprice(item)" v-if="item.procurementPlanType == '期货' && (item.status == '已成交' || item.status == '已挂单')"> 点价</text>
-				<text class="anniu1" @click="commit1(item)" v-if="item.orderType == '采购'"> 发货</text>
+				<text class="anniu1" @click="commit1(item)" v-if="item.orderType == '采购'&&item.status != '待审核'"> 发货</text>
 				<text class="anniu1" @click="commit2(item)" v-if="item.orderType == '销售'"> 收货</text>
 			</view>
 		</view>

+ 3 - 3
pageD/identity/driverIdentityEdit.vue

@@ -233,8 +233,8 @@
 				id2:"",
 				travels:"",
 				drives:"",
-				practices:"",
 				operates:"",
+				practices:"",
 				// bank1:"",
 				// bank2:"",
 				// bankid:[],
@@ -358,8 +358,8 @@
 							this.address = this.drivers.addressUrl.split(","),
 								this.travels = this.address[0]
 							this.drives = this.address[1]
-							this.practices = this.address[2]
-							this.operates = this.address[3]
+							this.operates = this.address[2]
+							this.practices = this.address[3]
 						}
 					})
 					.catch(res => {

+ 14 - 1
pageD/identity/driverIdentityThree.vue

@@ -125,7 +125,20 @@
 							        }
 							    }
 							});
-					}else if(res.data.code==200){
+					}
+					else if(res.data.code=='ERROR002'){
+					 	uni.showModal({
+					 		title: '提示',
+					 		content: '司机身份证号重复',
+					 		});
+					 }
+					 else if(res.data.code=='ERROR003'){
+					  	uni.showModal({
+					  		title: '提示',
+					  		content: '收款人身份证号重复',
+					  		});
+					  }
+					else if(res.data.code==200){
 						uni.showToast({
 							title: '提交成功',
 							icon: 'none',

+ 21 - 16
pageD/identity/driverIdentityTwo.vue

@@ -176,6 +176,7 @@
 				}],
 				driverPayeeInfoList: [{
 					accountType: "个人账户",
+					accountTypeFlag: "1",
 					accountIndex: '0',
 					binkindex: 0,
 					cardAddressUrl: "",
@@ -235,6 +236,7 @@
 				this.driverPayeeInfoList[index].accountIndex = e.detail.value
 				this.driverPayeeInfoList[index].accountType = this.accountType[this.driverPayeeInfoList[index]
 					.accountIndex];
+				this.driverPayeeInfoList[index].accountTypeFlag= e.detail.value+1;
 				this.accountarr[index] = this.accountType[e.detail.value];
 			},
 			bankimgs(items) {
@@ -353,23 +355,26 @@
 						this.$api.msg('开户支行输入错误')
 						return
 					}
-					if (!this.driverPayeeInfoList[i].payeeName) {
-						this.$api.msg('收款人姓名不能为空')
-						return
-					}
-					if (this.driverPayeeInfoList[i].payeeName.length < 2 || this.driverPayeeInfoList[i].payeeName.length >
-						10) {
-						this.$api.msg('收款人姓名输入错误')
-						return
-					}
-					if (!this.driverPayeeInfoList[i].payeeNumberCard) {
-						this.$api.msg('收款人身份证号不能为空')
-						return
-					}
-					if (this.driverPayeeInfoList[i].payeeNumberCard.length != 18) {
-						this.$api.msg('收款人身份证号输入错误')
-						return
+					if(this.driverPayeeInfoList[i].accountTypeFlag==1){
+						if (!this.driverPayeeInfoList[i].payeeName) {
+							this.$api.msg('收款人姓名不能为空')
+							return
+						}
+						if (this.driverPayeeInfoList[i].payeeName.length < 2 || this.driverPayeeInfoList[i].payeeName.length >
+							10) {
+							this.$api.msg('收款人姓名输入错误')
+							return
+						}
+						if (!this.driverPayeeInfoList[i].payeeNumberCard) {
+							this.$api.msg('收款人身份证号不能为空')
+							return
+						}
+						if (this.driverPayeeInfoList[i].payeeNumberCard.length != 18) {
+							this.$api.msg('收款人身份证号输入错误')
+							return
+						}
 					}
+
 				}
 				this.DriverViewInfo.driverCarInfoList = this.driverCarInfoList
 				this.DriverViewInfo.driverPayeeInfoList = this.driverPayeeInfoList