diff --git a/pages/portShipping/waterInternational/form.vue b/pages/portShipping/waterInternational/form.vue index a0afff3..0e1bb1a 100644 --- a/pages/portShipping/waterInternational/form.vue +++ b/pages/portShipping/waterInternational/form.vue @@ -70,7 +70,7 @@ 航次: - + + + + + 航次数: @@ -164,7 +172,7 @@ 航次: - + + + + + 航次数: @@ -423,24 +439,26 @@ this.$request(getApp().globalData.baseUrl + '/api/biz/internationalPassengerTransportPermissions/findList', {}, "GET").then(res => { this.shipRouteList = res.data['客班轮']; + this.internationalRouteList = res.data['国际邮轮']; this.form.passengerShipDTOList.map(item => { let idx = this.shipRouteList.findIndex(item2 => item2.route == item.route); item.routeIndex = idx > -1 ? idx : ''; - if (idx > -1) { - let _idx = this.shipRouteList[idx].voyageInfoVOList.findIndex(item2 => item2.voyageCode == item - .voyage); - item.voyageIndex = _idx > -1 ? _idx : ''; - } + // console.log('routeIndex ===>',typeof item.routeIndex) + // if (idx > -1) { + // let _idx = this.shipRouteList[idx].voyageInfoVOList.findIndex(item2 => item2.voyageCode == item + // .voyage); + // item.voyageIndex = _idx > -1 ? _idx : ''; + // } }) this.form.internationalCruiseDTOList.map(item => { let idx = this.internationalRouteList.findIndex(item2 => item2.route == item.route); item.routeIndex = idx > -1 ? idx : ''; - if (idx > -1) { - let _idx = this.internationalRouteList[idx].voyageInfoVOList.findIndex(item2 => item2.voyageCode == - item.voyage); - item.voyageIndex = _idx > -1 ? _idx : ''; - } + // if (idx > -1) { + // let _idx = this.internationalRouteList[idx].voyageInfoVOList.findIndex(item2 => item2.voyageCode == + // item.voyage); + // item.voyageIndex = _idx > -1 ? _idx : ''; + // } }) console.log(this.form) }) @@ -626,6 +644,20 @@ this.form.internationalCruiseDTOList[index].direction = this.internationalRouteList[e.detail.value].direction; } }, + clickVoyage(){ + if (this.tabType == 1) { + uni.showToast({ + title:"请先选择航线", + icon:"none" + }) + }else{ + uni.showToast({ + title:"请先选择国际邮轮", + icon:"none" + }) + } + + }, //航次选择 changeVoyage(e, index) { if (this.tabType == 1) { @@ -907,6 +939,10 @@ text-align: right; } } + + &.disabled{ + color: #D4D4D4; + } //纯展示 &.text {