|
@@ -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) {
|