同环比加空判断

dev201310
zhangqun 2 years ago
parent f9d4c0d6ca
commit 1e8fe3ad7c
  1. 23
      pages/portShipping/waterInternational/form.vue

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

Loading…
Cancel
Save