Browse Source

发船接口中的人员身份证和姓名需要加密

htc 10 months ago
parent
commit
d2e71c63a2
2 changed files with 14 additions and 4 deletions
  1. 7 2
      pagesHouse/Verification/check.vue
  2. 7 2
      pagesHouse/Verification/checkApp.vue

+ 7 - 2
pagesHouse/Verification/check.vue

@@ -174,13 +174,18 @@
 				if (this.typeIndex == null) {
 					return this.$showToast('请选择渔船')
 				}
-				let boatCode = this.types[this.typeIndex].boatNo;
+				let boatCode = this.types[this.typeIndex].boatNo;
+				let newData = JSON.parse(JSON.stringify(this.data));
+				newData.forEach(d=>{
+					d.touristCode = encrypt(d.touristCode);
+					d.touristName = encrypt(d.touristName);
+				})
 				this.$api.post('/scenic/api/order/sailWriteOff', {
 					playDate:this.orderInfo.playDate,
 					playTime:this.orderInfo.playTime,
 					playLength:this.orderInfo.playLength,
 					orderType: this.orderInfo.orderType,
-					touristList: this.data,
+					touristList: newData,
 					boatCode: boatCode
 				}).then(res => {
 					if (res.data.code == 0) {

+ 7 - 2
pagesHouse/Verification/checkApp.vue

@@ -216,13 +216,18 @@
 				if (this.typeIndex == null) {
 					return this.$showToast('请选择渔船')
 				}
-				let boatCode = this.types[this.typeIndex].boatNo;
+				let boatCode = this.types[this.typeIndex].boatNo;
+				let newData = JSON.parse(JSON.stringify(this.data));
+				newData.forEach(d=>{
+					d.touristCode = encrypt(d.touristCode);
+					d.touristName = encrypt(d.touristName);
+				})
 				this.$api.post('/scenic/api/order/sailWriteOff', {
 					playDate:this.orderInfo.playDate,
 					playTime:this.orderInfo.playTime,
 					playLength:this.orderInfo.playLength,
 					orderType: this.orderInfo.orderType,
-					touristList: this.data,
+					touristList: newData,
 					boatCode: boatCode
 				}).then(res => {
 					if (res.data.code == 0) {