|
|
|
|
@ -419,14 +419,17 @@ |
|
|
|
|
this.form = res.data; |
|
|
|
|
this.form.passengerShipDTOList = this.form.passengerShipVOList; |
|
|
|
|
this.form.internationalCruiseDTOList = this.form.internationalCruiseVOList; |
|
|
|
|
// 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 : ''; |
|
|
|
|
// } |
|
|
|
|
// } |
|
|
|
|
if (checkNotEmpty(this.deptNameList)) { |
|
|
|
|
if(!checkNotEmpty(this.form.organizationName)) { |
|
|
|
|
this.form.organizationName = this.deptNameList.length > 0 ? this.deptNameList[0].deptName : ''; |
|
|
|
|
} |
|
|
|
|
// 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.getDept(); |
|
|
|
|
this.queryTime(); //统计时段 |
|
|
|
|
this.queryRoute(); |
|
|
|
|
@ -601,8 +604,8 @@ |
|
|
|
|
.statDate + '&statPeriod=' + this.form.statPeriod + '&voyage=' + _voyage + '&_t=' + Date.parse( |
|
|
|
|
new Date()), {}, 'GET') |
|
|
|
|
.then(res => { |
|
|
|
|
let dayData = res.data.minusDays; |
|
|
|
|
let yearData = res.data.minusYears; |
|
|
|
|
let dayData = res.data.minusDays ? res.data.minusDays : {}; |
|
|
|
|
let yearData = res.data.minusYears ? res.data.minusYears : {}; |
|
|
|
|
if (type == 1) { |
|
|
|
|
//客班轮 |
|
|
|
|
// this.form.passengerShipDTOList[index].voyageNumberDod = this.$calcMom(this.form.passengerShipDTOList[index].voyageNumber,dayData.voyageNumber); |
|
|
|
|
|