同环比加空判断

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

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

Loading…
Cancel
Save