|
|
|
|
@ -72,6 +72,34 @@ |
|
|
|
|
</picker> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="form_item"> |
|
|
|
|
<view class="form_item_label">航次数:</view> |
|
|
|
|
<view class="form_item_input form_input"> |
|
|
|
|
<uni-easyinput @blur="calcYoyMom(1,index)" @clear="calcYoyMom(1,index)" v-model="item.voyageNumber" type="number" |
|
|
|
|
placeholderStyle="color: #D4D4D4;font-size:28rpx;" placeholder="请输入" maxlength="20"> |
|
|
|
|
</uni-easyinput> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<!-- 同比环比 --> |
|
|
|
|
<!-- <view class="form_item_rate" |
|
|
|
|
:class="item.passengerDod === 0 ? 'danger' : '' "> |
|
|
|
|
<view class="rate_item"> |
|
|
|
|
<view class="rate_item_label" |
|
|
|
|
:style="item.passengerDod === 0 ? 'color: #EB4747' : ''"> |
|
|
|
|
航次数环比</view> |
|
|
|
|
<view class="rate_item_input" |
|
|
|
|
:style="item.passengerDod === 0 ? 'color: #EB4747' : ''"> |
|
|
|
|
{{formatDigit(form.passengerDod)}}% |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="line"></view> |
|
|
|
|
<view class="rate_item"> |
|
|
|
|
<view class="rate_item_label">航次数同比</view> |
|
|
|
|
<view class="rate_item_input"> |
|
|
|
|
{{formatDigit(item.passengerYoy)}}% |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> --> |
|
|
|
|
<view class="form_item"> |
|
|
|
|
<view class="form_item_label">{{item.direction == '1' ? '入青' : item.direction == '2' ? '出青' : ''}}旅客人数:</view> |
|
|
|
|
<view class="form_item_input form_input"> |
|
|
|
|
@ -138,6 +166,34 @@ |
|
|
|
|
</picker> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="form_item"> |
|
|
|
|
<view class="form_item_label">航次数:</view> |
|
|
|
|
<view class="form_item_input form_input"> |
|
|
|
|
<uni-easyinput @blur="calcYoyMom(1,index)" @clear="calcYoyMom(1,index)" v-model="item.voyageNumber" type="number" |
|
|
|
|
placeholderStyle="color: #D4D4D4;font-size:28rpx;" placeholder="请输入" maxlength="20"> |
|
|
|
|
</uni-easyinput> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<!-- 同比环比 --> |
|
|
|
|
<!-- <view class="form_item_rate" |
|
|
|
|
:class="item.passengerDod === 0 ? 'danger' : '' "> |
|
|
|
|
<view class="rate_item"> |
|
|
|
|
<view class="rate_item_label" |
|
|
|
|
:style="item.passengerDod === 0 ? 'color: #EB4747' : ''"> |
|
|
|
|
航次数环比</view> |
|
|
|
|
<view class="rate_item_input" |
|
|
|
|
:style="item.passengerDod === 0 ? 'color: #EB4747' : ''"> |
|
|
|
|
{{formatDigit(form.passengerDod)}}% |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="line"></view> |
|
|
|
|
<view class="rate_item"> |
|
|
|
|
<view class="rate_item_label">航次数同比</view> |
|
|
|
|
<view class="rate_item_input"> |
|
|
|
|
{{formatDigit(item.passengerYoy)}}% |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> --> |
|
|
|
|
<view class="form_item"> |
|
|
|
|
<view class="form_item_label">{{item.direction == '1' ? '入青' : item.direction == '2' ? '出青' : ''}}旅客人数:</view> |
|
|
|
|
<view class="form_item_input form_input"> |
|
|
|
|
@ -244,6 +300,10 @@ |
|
|
|
|
if (checkNotEmpty(this.deptNameList)) { |
|
|
|
|
let idx = this.deptNameList.findIndex(item => item.deptName == this.form.organizationName); |
|
|
|
|
this.form.organizationNameIndex = idx > -1 ? idx : ''; |
|
|
|
|
if(!checkNotEmpty(this.form.organizationName)) { |
|
|
|
|
this.form.organizationName = this.deptNameList.length > 0 ? this.deptNameList[0].deptName : ''; |
|
|
|
|
this.form.organizationNameIndex = this.deptNameList.length > 0 ? 0 : ''; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
this.queryTime(); //统计时段 |
|
|
|
|
this.queryRoute(); |
|
|
|
|
@ -292,6 +352,7 @@ |
|
|
|
|
routeIndex: "", |
|
|
|
|
voyage: "", |
|
|
|
|
voyageIndex: "", |
|
|
|
|
voyageNumber: "", |
|
|
|
|
direction: "", |
|
|
|
|
passengerCount: "", |
|
|
|
|
passengerDod: "",//环比 |
|
|
|
|
@ -355,10 +416,14 @@ |
|
|
|
|
let yearData = res.data.minusYears; |
|
|
|
|
if(type == 1) { |
|
|
|
|
//客班轮 |
|
|
|
|
// this.form.passengerShipDTOList[index].voyageNumberDod = this.$calcMom(this.form.passengerShipDTOList[index].voyageNumber,dayData.voyageNumber); |
|
|
|
|
// this.form.passengerShipDTOList[index].voyageNumberYoy = this.$calcYoy(this.form.passengerShipDTOList[index].voyageNumber,yearData.voyageNumber); |
|
|
|
|
this.form.passengerShipDTOList[index].passengerDod = this.$calcMom(this.form.passengerShipDTOList[index].passengerCount,dayData.passengerCount); |
|
|
|
|
this.form.passengerShipDTOList[index].passengerYoy = this.$calcYoy(this.form.passengerShipDTOList[index].passengerCount,yearData.passengerCount); |
|
|
|
|
}else{ |
|
|
|
|
//国际邮轮 |
|
|
|
|
// this.form.internationalCruiseDTOList[index].voyageNumberDod = this.$calcMom(this.form.internationalCruiseDTOList[index].voyageNumber,dayData.voyageNumber); |
|
|
|
|
// this.form.internationalCruiseDTOList[index].voyageNumberYoy = this.$calcYoy(this.form.internationalCruiseDTOList[index].voyageNumber,yearData.voyageNumber); |
|
|
|
|
this.form.internationalCruiseDTOList[index].passengerDod = this.$calcMom(this.form.internationalCruiseDTOList[index].passengerCount,dayData.passengerCount); |
|
|
|
|
this.form.internationalCruiseDTOList[index].passengerYoy = this.$calcYoy(this.form.internationalCruiseDTOList[index].passengerCount,yearData.passengerCount); |
|
|
|
|
} |
|
|
|
|
@ -469,7 +534,7 @@ |
|
|
|
|
let checkList = true; |
|
|
|
|
if (this.form.passengerShipDTOList.length > 0) { |
|
|
|
|
checkList = this.form.passengerShipDTOList.every(item => { |
|
|
|
|
return checkNotEmpty(item.route) && checkNotEmpty(item.voyage) && checkNotEmpty(item.passengerCount) |
|
|
|
|
return checkNotEmpty(item.route) && checkNotEmpty(item.voyage) && checkNotEmpty(item.voyageNumber) && checkNotEmpty(item.passengerCount) |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
if (!checkList) { |
|
|
|
|
@ -482,7 +547,7 @@ |
|
|
|
|
let checkList2 = true; |
|
|
|
|
if (this.form.internationalCruiseDTOList.length > 0) { |
|
|
|
|
checkList2 = this.form.internationalCruiseDTOList.every(item => { |
|
|
|
|
return checkNotEmpty(item.route) && checkNotEmpty(item.voyage) && checkNotEmpty(item.passengerCount) |
|
|
|
|
return checkNotEmpty(item.route) && checkNotEmpty(item.voyage) && checkNotEmpty(item.voyageNumber) && checkNotEmpty(item.passengerCount) |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
if (!checkList2) { |
|
|
|
|
|