|
|
|
|
@ -76,37 +76,39 @@ |
|
|
|
|
<view class="edit_item input"> |
|
|
|
|
<p class="left">投放运力-班车数</p> |
|
|
|
|
<view class="right"> |
|
|
|
|
<uni-easyinput v-model="roadData.capacityShuttle" placeholder="请输入" placeholderStyle="color:#d4d4d4;"></uni-easyinput> |
|
|
|
|
<uni-easyinput @blur="calcBusNum" @clear="calcBusNum" type="number" v-model="roadData.capacityShuttle" placeholder="请输入" placeholderStyle="color:#d4d4d4;"></uni-easyinput> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="edit_item input"> |
|
|
|
|
<p class="left">投放运力-定线通勤包车(辆)</p> |
|
|
|
|
<view class="right"> |
|
|
|
|
<uni-easyinput v-model="roadData.regularCommuteCharter" placeholder="请输入" placeholderStyle="color:#d4d4d4;"></uni-easyinput> |
|
|
|
|
<uni-easyinput @blur="calcBusNum" @clear="calcBusNum" type="number" v-model="roadData.regularCommuteCharter" placeholder="请输入" placeholderStyle="color:#d4d4d4;"></uni-easyinput> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="edit_item input"> |
|
|
|
|
<p class="left">运送农民工报车(辆)</p> |
|
|
|
|
<p class="left">投放运力-运送农民工包车(辆)</p> |
|
|
|
|
<view class="right"> |
|
|
|
|
<uni-easyinput v-model="roadData.migrantWorkersCharter" placeholder="请输入" placeholderStyle="color:#d4d4d4;"></uni-easyinput> |
|
|
|
|
<uni-easyinput @blur="calcBusNum" @clear="calcBusNum" type="number" v-model="roadData.migrantWorkersCharter" placeholder="请输入" placeholderStyle="color:#d4d4d4;"></uni-easyinput> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="edit_item input"> |
|
|
|
|
<p class="left">投放运力-除定线、农民工包车(辆)</p> |
|
|
|
|
<p class="left">投放运力-除定线通勤、农民工包车(辆)</p> |
|
|
|
|
<view class="right"> |
|
|
|
|
<uni-easyinput type="number" v-model="roadData.otherCharter" placeholder="请输入" placeholderStyle="color:#d4d4d4;"></uni-easyinput> |
|
|
|
|
<uni-easyinput @blur="calcBusNum" @clear="calcBusNum" type="number" v-model="roadData.otherCharter" placeholder="请输入" placeholderStyle="color:#d4d4d4;"></uni-easyinput> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="edit_item input"> |
|
|
|
|
<p class="left">投放运力-包车数</p> |
|
|
|
|
<view class="right"> |
|
|
|
|
<uni-easyinput v-model="roadData.capacityCharter" placeholder="请输入" placeholderStyle="color:#d4d4d4;"></uni-easyinput> |
|
|
|
|
<p>{{roadData.capacityCharter}}</p> |
|
|
|
|
<!-- <uni-easyinput v-model="roadData.capacityCharter" placeholder="请输入" placeholderStyle="color:#d4d4d4;"></uni-easyinput> --> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="edit_item input"> |
|
|
|
|
<p class="left">投放运力-总客车数</p> |
|
|
|
|
<view class="right"> |
|
|
|
|
<uni-easyinput @blur="getRatio" @clear="getRatio" v-model="roadData.capacityTotalBus" placeholder="请输入" placeholderStyle="color:#d4d4d4;"></uni-easyinput> |
|
|
|
|
<!-- <uni-easyinput @blur="getRatio" @clear="getRatio" v-model="roadData.capacityTotalBus" placeholder="请输入" placeholderStyle="color:#d4d4d4;"></uni-easyinput> --> |
|
|
|
|
<p>{{roadData.capacityTotalBus}}</p> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="per_con" |
|
|
|
|
@ -126,73 +128,83 @@ |
|
|
|
|
<view class="edit_item input"> |
|
|
|
|
<p class="left">投放运力-加班数</p> |
|
|
|
|
<view class="right"> |
|
|
|
|
<uni-easyinput v-model="roadData.overtimeTrips" placeholder="请输入" placeholderStyle="color:#d4d4d4;"></uni-easyinput> |
|
|
|
|
<uni-easyinput type="number" v-model="roadData.overtimeTrips" placeholder="请输入" placeholderStyle="color:#d4d4d4;"></uni-easyinput> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="edit_item input"> |
|
|
|
|
<p class="left">投放运力-班车班次</p> |
|
|
|
|
<view class="right"> |
|
|
|
|
<uni-easyinput v-model="roadData.capacityShuttleTrips" placeholder="请输入" placeholderStyle="color:#d4d4d4;"></uni-easyinput> |
|
|
|
|
<uni-easyinput @blur="calcTotalTrips" @clear="calcTotalTrips" type="number" v-model="roadData.capacityShuttleTrips" placeholder="请输入" placeholderStyle="color:#d4d4d4;"></uni-easyinput> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="edit_item input"> |
|
|
|
|
<p class="left">投放运力-定线通勤班次</p> |
|
|
|
|
<view class="right"> |
|
|
|
|
<uni-easyinput v-model="roadData.regularCommuteTrips" placeholder="请输入" placeholderStyle="color:#d4d4d4;"></uni-easyinput> |
|
|
|
|
<uni-easyinput @blur="calcTotalTrips" @clear="calcTotalTrips" type="number" v-model="roadData.regularCommuteTrips" placeholder="请输入" placeholderStyle="color:#d4d4d4;"></uni-easyinput> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="edit_item input"> |
|
|
|
|
<p class="left">投放运力-运送农民工班次</p> |
|
|
|
|
<view class="right"> |
|
|
|
|
<uni-easyinput v-model="roadData.migrantWorkersTrips" placeholder="请输入" placeholderStyle="color:#d4d4d4;"></uni-easyinput> |
|
|
|
|
<uni-easyinput @blur="calcTotalTrips" @clear="calcTotalTrips" type="number" v-model="roadData.migrantWorkersTrips" placeholder="请输入" placeholderStyle="color:#d4d4d4;"></uni-easyinput> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="edit_item input"> |
|
|
|
|
<p class="left">投放运力-除定线通勤包车、农民工包车班次</p> |
|
|
|
|
<view class="right"> |
|
|
|
|
<uni-easyinput v-model="roadData.otherTrips" placeholder="请输入" placeholderStyle="color:#d4d4d4;"></uni-easyinput> |
|
|
|
|
<uni-easyinput @blur="calcTotalTrips" @clear="calcTotalTrips" type="number" v-model="roadData.otherTrips" placeholder="请输入" placeholderStyle="color:#d4d4d4;"></uni-easyinput> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="edit_item input"> |
|
|
|
|
<p class="left">投放运力-包车班次</p> |
|
|
|
|
<view class="right"> |
|
|
|
|
<uni-easyinput v-model="roadData.capacityCharterTrips" placeholder="请输入" placeholderStyle="color:#d4d4d4;"></uni-easyinput> |
|
|
|
|
<p>{{roadData.capacityCharterTrips}}</p> |
|
|
|
|
<!-- <uni-easyinput v-model="roadData.capacityCharterTrips" placeholder="请输入" placeholderStyle="color:#d4d4d4;"></uni-easyinput> --> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="edit_item input"> |
|
|
|
|
<p class="left">投放运力-班次</p> |
|
|
|
|
<view class="right"> |
|
|
|
|
<uni-easyinput v-model="roadData.capacityTotalTrips" placeholder="请输入" placeholderStyle="color:#d4d4d4;"></uni-easyinput> |
|
|
|
|
<p>{{roadData.capacityTotalTrips}}</p> |
|
|
|
|
<!-- <uni-easyinput v-model="roadData.capacityTotalTrips" placeholder="请输入" placeholderStyle="color:#d4d4d4;"></uni-easyinput> --> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="edit_item input"> |
|
|
|
|
<p class="left">班车客运量(万)</p> |
|
|
|
|
<view class="right"> |
|
|
|
|
<uni-easyinput v-model="roadData.shuttlePassengerVolume" placeholder="请输入" placeholderStyle="color:#d4d4d4;"></uni-easyinput> |
|
|
|
|
<uni-easyinput @blur="calctotalPassenger" @clear="calctotalPassenger" type="digit" v-model="roadData.shuttlePassengerVolume" placeholder="请输入" placeholderStyle="color:#d4d4d4;"></uni-easyinput> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="edit_item input"> |
|
|
|
|
<p class="left">定线通勤包车客运量(万)</p> |
|
|
|
|
<view class="right"> |
|
|
|
|
<uni-easyinput v-model="roadData.regularCommutePassengerVolume" placeholder="请输入" placeholderStyle="color:#d4d4d4;"></uni-easyinput> |
|
|
|
|
<uni-easyinput @blur="calctotalPassenger" @clear="calctotalPassenger" type="digit" v-model="roadData.regularCommutePassengerVolume" placeholder="请输入" placeholderStyle="color:#d4d4d4;"></uni-easyinput> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="edit_item input"> |
|
|
|
|
<p class="left">运送农民工包车客运量(万)</p> |
|
|
|
|
<view class="right"> |
|
|
|
|
<uni-easyinput @blur="calctotalPassenger" @clear="calctotalPassenger" type="digit" v-model="roadData.migrantWorkersPassengerVolume" placeholder="请输入" placeholderStyle="color:#d4d4d4;"></uni-easyinput> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="edit_item input"> |
|
|
|
|
<p class="left">除定线通勤包车、农民工包车以外的客运量(万)</p> |
|
|
|
|
<view class="right"> |
|
|
|
|
<uni-easyinput v-model="roadData.otherPassengerVolume" placeholder="请输入" placeholderStyle="color:#d4d4d4;"></uni-easyinput> |
|
|
|
|
<uni-easyinput @blur="calctotalPassenger" @clear="calctotalPassenger" type="digit" v-model="roadData.otherPassengerVolume" placeholder="请输入" placeholderStyle="color:#d4d4d4;"></uni-easyinput> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="edit_item input"> |
|
|
|
|
<p class="left">包车客运量(万)</p> |
|
|
|
|
<view class="right"> |
|
|
|
|
<uni-easyinput v-model="roadData.charterPassengerVolume" placeholder="请输入" placeholderStyle="color:#d4d4d4;"></uni-easyinput> |
|
|
|
|
<p>{{roadData.charterPassengerVolume}}</p> |
|
|
|
|
<!-- <uni-easyinput v-model="roadData.charterPassengerVolume" placeholder="请输入" placeholderStyle="color:#d4d4d4;"></uni-easyinput> --> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="edit_item input"> |
|
|
|
|
<p class="left">完成客运量(万)</p> |
|
|
|
|
<view class="right"> |
|
|
|
|
<uni-easyinput @blur="getRatio" @clear="getRatio" v-model="roadData.totalPassengerVolume" placeholder="请输入" placeholderStyle="color:#d4d4d4;"></uni-easyinput> |
|
|
|
|
<p>{{roadData.totalPassengerVolume}}</p> |
|
|
|
|
<!-- <uni-easyinput @blur="getRatio" @clear="getRatio" v-model="roadData.totalPassengerVolume" placeholder="请输入" placeholderStyle="color:#d4d4d4;"></uni-easyinput> --> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="per_con"> |
|
|
|
|
@ -225,12 +237,6 @@ |
|
|
|
|
<uni-easyinput v-model="roadData.onlineTicketSales" placeholder="请输入" placeholderStyle="color:#d4d4d4;"></uni-easyinput> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="edit_item input"> |
|
|
|
|
<p class="left">运送农民工包车客运量(万)</p> |
|
|
|
|
<view class="right"> |
|
|
|
|
<uni-easyinput v-model="roadData.migrantWorkersPassengerVolume" placeholder="请输入" placeholderStyle="color:#d4d4d4;"></uni-easyinput> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="edit_item input"> |
|
|
|
|
<p class="left">定制客运量(万人)</p> |
|
|
|
|
<view class="right"> |
|
|
|
|
@ -411,7 +417,7 @@ import { calcMom, calcYoy, checkNotEmpty, getDateStr, lastYearDate } from '../.. |
|
|
|
|
return { |
|
|
|
|
roadTime:[], |
|
|
|
|
unitData:[], |
|
|
|
|
personData:[], |
|
|
|
|
// personData:[], |
|
|
|
|
isShowTitle:false, |
|
|
|
|
timeName:'', |
|
|
|
|
pageType:'', |
|
|
|
|
@ -427,21 +433,21 @@ import { calcMom, calcYoy, checkNotEmpty, getDateStr, lastYearDate } from '../.. |
|
|
|
|
regularCommuteCharter:'',//定线通勤包车辆 |
|
|
|
|
migrantWorkersCharter:'',//运送农民工报车辆 |
|
|
|
|
otherCharter:'',//除定线、农民工包车辆 |
|
|
|
|
capacityCharter:'', //投放运力:包车数 |
|
|
|
|
capacityCharter:0, //投放运力:包车数 |
|
|
|
|
capacityShuttle:'', //投放运力:班车数 |
|
|
|
|
capacityTotalBus:"", //投放运力:总客车数 |
|
|
|
|
capacityTotalBus:0, //投放运力:总客车数 |
|
|
|
|
regularCommuteTrips:"", //定线通勤班次 |
|
|
|
|
migrantWorkersTrips:"", //运送农民工班次 |
|
|
|
|
otherTrips:"", //除定线通勤包车、农民工包车班次 |
|
|
|
|
capacityCharterTrips:"", //投放运力:包车班次 |
|
|
|
|
capacityCharterTrips:0, //投放运力:包车班次 |
|
|
|
|
capacityShuttleTrips:"", //投放运力:班车班次 |
|
|
|
|
capacityTotalTrips:"", //投放运力:班次 |
|
|
|
|
capacityTotalTrips:0, //投放运力:班次 |
|
|
|
|
regularCommutePassengerVolume:"", //定线通勤包车客运量(万) |
|
|
|
|
migrantWorkersPassengerVolume:"", //运送农民工包车客运量(万) |
|
|
|
|
otherPassengerVolume:"", //除定线通勤包车、农民工包车以外的客运量(万) |
|
|
|
|
charterPassengerVolume:"", //包车客运量(万) |
|
|
|
|
charterPassengerVolume:0, //包车客运量(万) |
|
|
|
|
shuttlePassengerVolume:"", //班车客运量(万) |
|
|
|
|
totalPassengerVolume:"", //完成客运量(万) |
|
|
|
|
totalPassengerVolume:0, //完成客运量(万) |
|
|
|
|
totalSeatCapacity:"", //总客位数(座) |
|
|
|
|
passengerVolumeLastYear:"", //去年同期客运量(万) |
|
|
|
|
totalBusLastYear:"", //去年总客车量(辆) |
|
|
|
|
@ -554,7 +560,7 @@ import { calcMom, calcYoy, checkNotEmpty, getDateStr, lastYearDate } from '../.. |
|
|
|
|
}else if(options.type == 'add'){ |
|
|
|
|
this.pageType = 'add'; |
|
|
|
|
this.getDept() |
|
|
|
|
this.getRoadTime() |
|
|
|
|
|
|
|
|
|
let now = new Date(); |
|
|
|
|
this.roadData.statisticalDate = getDateStr(now, -1);//默认前一天 |
|
|
|
|
} |
|
|
|
|
@ -566,6 +572,35 @@ import { calcMom, calcYoy, checkNotEmpty, getDateStr, lastYearDate } from '../.. |
|
|
|
|
phoneNumber: tel |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
// 计算包车数 |
|
|
|
|
calcBusNum(){ |
|
|
|
|
let capacityShuttle = checkNotEmpty(this.roadData.capacityShuttle) ? parseInt(this.roadData.capacityShuttle) : 0; |
|
|
|
|
let regularCommuteCharter = checkNotEmpty(this.roadData.regularCommuteCharter) ? parseInt(this.roadData.regularCommuteCharter) : 0; |
|
|
|
|
let migrantWorkersCharter = checkNotEmpty(this.roadData.migrantWorkersCharter) ? parseInt(this.roadData.migrantWorkersCharter) : 0; |
|
|
|
|
let otherCharter = checkNotEmpty(this.roadData.otherCharter) ? parseInt(this.roadData.otherCharter) : 0; |
|
|
|
|
this.roadData.capacityCharter = regularCommuteCharter + migrantWorkersCharter + otherCharter |
|
|
|
|
this.roadData.capacityTotalBus = this.roadData.capacityCharter + capacityShuttle; |
|
|
|
|
this.getRatio() |
|
|
|
|
}, |
|
|
|
|
// 计算班次 |
|
|
|
|
calcTotalTrips(){ |
|
|
|
|
let capacityShuttleTrips = checkNotEmpty(this.roadData.capacityShuttleTrips) ? parseInt(this.roadData.capacityShuttleTrips) : 0; |
|
|
|
|
let regularCommuteTrips = checkNotEmpty(this.roadData.regularCommuteTrips) ? parseInt(this.roadData.regularCommuteTrips) : 0; |
|
|
|
|
let migrantWorkersTrips = checkNotEmpty(this.roadData.migrantWorkersTrips) ? parseInt(this.roadData.migrantWorkersTrips) : 0; |
|
|
|
|
let otherTrips = checkNotEmpty(this.roadData.otherTrips) ? parseInt(this.roadData.otherTrips) : 0; |
|
|
|
|
this.roadData.capacityCharterTrips = regularCommuteTrips + migrantWorkersTrips + otherTrips; |
|
|
|
|
this.roadData.capacityTotalTrips = this.roadData.capacityCharterTrips + capacityShuttleTrips |
|
|
|
|
}, |
|
|
|
|
// 计算客运量 |
|
|
|
|
calctotalPassenger(){ |
|
|
|
|
let shuttlePassengerVolume = checkNotEmpty(this.roadData.shuttlePassengerVolume) ? parseInt(this.roadData.shuttlePassengerVolume) : 0; |
|
|
|
|
let regularCommutePassengerVolume = checkNotEmpty(this.roadData.regularCommutePassengerVolume) ? parseInt(this.roadData.regularCommutePassengerVolume) : 0; |
|
|
|
|
let otherPassengerVolume = checkNotEmpty(this.roadData.otherPassengerVolume) ? parseInt(this.roadData.otherPassengerVolume) : 0; |
|
|
|
|
let migrantWorkersPassengerVolume = checkNotEmpty(this.roadData.migrantWorkersPassengerVolume) ? parseInt(this.roadData.migrantWorkersPassengerVolume) : 0; |
|
|
|
|
this.roadData.charterPassengerVolume = regularCommutePassengerVolume + migrantWorkersPassengerVolume + otherPassengerVolume; |
|
|
|
|
this.roadData.totalPassengerVolume = this.roadData.charterPassengerVolume + shuttlePassengerVolume |
|
|
|
|
this.getRatio() |
|
|
|
|
}, |
|
|
|
|
showPop(){ |
|
|
|
|
this.selectId = this.selectId1; |
|
|
|
|
this.$refs.unitPopup.open('bottom') |
|
|
|
|
@ -632,6 +667,7 @@ import { calcMom, calcYoy, checkNotEmpty, getDateStr, lastYearDate } from '../.. |
|
|
|
|
this.roadData.reportingUnitId = this.deptNameList.length > 0 ? this.deptNameList[0].deptName : ''; |
|
|
|
|
this.roadData.reportingUnitIdIndex = this.deptNameList.length > 0 ? 0 : ''; |
|
|
|
|
this.selectId1 = this.unitId; |
|
|
|
|
this.getRoadTime() |
|
|
|
|
this.getPeople() |
|
|
|
|
}else if(this.pageType == 'edit'){ |
|
|
|
|
console.log('reportingUnitId===>',this.roadData.reportingUnitId) |
|
|
|
|
@ -654,7 +690,8 @@ import { calcMom, calcYoy, checkNotEmpty, getDateStr, lastYearDate } from '../.. |
|
|
|
|
getRatio(){ |
|
|
|
|
let params = { |
|
|
|
|
statisticalDate:this.roadData.statisticalDate, |
|
|
|
|
reportPhase:this.roadData.reportPhase |
|
|
|
|
reportPhase:this.roadData.reportPhase, |
|
|
|
|
reportUnit:this.roadData.reportingUnitId |
|
|
|
|
} |
|
|
|
|
this.$request(getApp().globalData.baseUrl + '/api/biz/roadtransport/road/findByStatisticalDate',params,"GET").then(res =>{ |
|
|
|
|
this.lastData = res.data; |
|
|
|
|
@ -778,7 +815,8 @@ import { calcMom, calcYoy, checkNotEmpty, getDateStr, lastYearDate } from '../.. |
|
|
|
|
this.getRatio() |
|
|
|
|
}else if(this.pageType == 'add'){ |
|
|
|
|
let now = new Date(); |
|
|
|
|
let dateStr = getDateStr(now,0); |
|
|
|
|
// let dateStr = getDateStr(now,0); |
|
|
|
|
let dateStr = getDateStr(now, 0).replaceAll('-','/'); |
|
|
|
|
if(new Date(dateStr + ' 11:00').getTime() < new Date().getTime() && new Date().getTime() < new Date(dateStr + ' 13:30').getTime()) { |
|
|
|
|
this.roadData.reportPhase = "0012"; |
|
|
|
|
this.index = this.roadTime.findIndex(item => item.dictValue == "0012") |
|
|
|
|
|