diff --git a/pages.json b/pages.json index dc0d926..ca75977 100644 --- a/pages.json +++ b/pages.json @@ -156,7 +156,8 @@ { "path": "pages/roadTransport/transportData/list", "style": { - "navigationBarTitleText": "道路运输" + "navigationBarTitleText": "道路运输", + "enablePullDownRefresh": true } }, { @@ -206,6 +207,20 @@ "style": { "navigationBarTitleText": "公交投入数据报送" } + }, + { + "path": "pages/portShipping/pilotStation/list", + "style": { + "navigationBarTitleText": "引航站" + } + } + ,{ + "path" : "pages/bus/busDataInfo/form-copy", + "style" : + { + "navigationBarTitleText": "", + "enablePullDownRefresh": false + } } ], diff --git a/pages/bus/busDataInfo/form-copy.vue b/pages/bus/busDataInfo/form-copy.vue new file mode 100644 index 0000000..2e95c02 --- /dev/null +++ b/pages/bus/busDataInfo/form-copy.vue @@ -0,0 +1,617 @@ + + + + + 基本信息 + + 统计日期: + + + {{form.reportDate?form.reportDate:'请选择统计日期'}} + + + + + + 统计时段: + + + {{timeName ? timeName :'请选择统计时段'}} + + + + + + + + + 运行数据-{{index+1}} + + + + 名称: + + changeBusway(e, 'bizBusDataDetailVOList', index)"> + {{item.busUnit ? item.busUnit : '请选择'}} + + + + + + 投入车辆: + + + + + + + 投入车辆环比(%) + + {{item.vehicleInputMom === 0 ? item.vehicleInputMom : item.vehicleInputMom ? item.vehicleInputMom.toFixed(2) : ''}} + + + + + 投入车辆同比(%) + + {{item.vehicleInputYoy === 0 ? item.vehicleInputYoy : item.vehicleInputYoy ? item.vehicleInputYoy.toFixed(2) : ''}} + + + + + 运行班次: + + + + + + + 运行班次环比(%) + + {{item.operatingShiftsMom === 0 ? item.operatingShiftsMom : item.operatingShiftsMom ? item.operatingShiftsMom.toFixed(2) : ''}} + + + + + 运行班次同比(%) + + {{item.operatingShiftsYoy === 0 ? item.operatingShiftsYoy : item.operatingShiftsYoy ? item.operatingShiftsYoy.toFixed(2) : ''}} + + + + + 人数(万人): + + + + + + + 人数环比(%) + + {{item.passengerCountMom === 0 ? item.passengerCountMom : item.passengerCountMom ? item.passengerCountMom.toFixed(2) : ''}} + + + + + 人数同比(%) + + {{item.passengerCountYoy === 0 ? item.passengerCountYoy : item.passengerCountYoy ? item.passengerCountYoy.toFixed(2) : ''}} + + + + + 昨日投入车辆: + + + + + + 昨日运行班次: + + + + + + 昨日人数: + + + + + + 去年投入车辆: + + + + + + 去年运行班次: + + + + + + 去年人数: + + + + + + + 增行 + + + 取消 + 确认 + + + + + + + diff --git a/pages/bus/busDataInfo/form.vue b/pages/bus/busDataInfo/form.vue index 2e95c02..dea9e39 100644 --- a/pages/bus/busDataInfo/form.vue +++ b/pages/bus/busDataInfo/form.vue @@ -1,14 +1,29 @@ - + 基本信息 + + + 名称: + + {{form.bizBusDataDetailVOList.length > 0 ? form.bizBusDataDetailVOList[busIndex].busUnit : ''}} + + 统计日期: {{form.reportDate?form.reportDate:'请选择统计日期'}} + :style="form.reportDate?'color:#333;':''">{{form.reportDate?form.reportDate:'请选择时段'}} @@ -16,409 +31,501 @@ 统计时段: - + {{timeName ? timeName :'请选择统计时段'}} + :style="index>-1?'color:#333;':''">{{index>-1?array[index].dictLabel:'请选择时段'}} - - - - 运行数据-{{index+1}} - + + + + + - + {{item.stationId || ''}} + + + + + + {{item.stationId || ''}} + + + + + + 名称: - changeBusway(e, 'bizBusDataDetailVOList', index)"> + + {{form.bizBusDataDetailVOList.length >= 0 ? form.bizBusDataDetailVOList[landNameIndex].busUnit : ''}} 投入车辆: - - + + + - + + - 投入车辆环比(%) - - {{item.vehicleInputMom === 0 ? item.vehicleInputMom : item.vehicleInputMom ? item.vehicleInputMom.toFixed(2) : ''}} + + 投入车辆环比 + + + {{form.bizBusDataDetailVOList.length == 0 ? '' : form.bizBusDataDetailVOList[landNameIndex].vehicleInputMom === 0 ? form.bizBusDataDetailVOList[landNameIndex].vehicleInputMom : form.bizBusDataDetailVOList[landNameIndex].vehicleInputMom ? formatDigit(form.bizBusDataDetailVOList[landNameIndex].vehicleInputMom) : '--'}}% - 投入车辆同比(%) + 投入车辆同比 - {{item.vehicleInputYoy === 0 ? item.vehicleInputYoy : item.vehicleInputYoy ? item.vehicleInputYoy.toFixed(2) : ''}} + {{form.bizBusDataDetailVOList.length == 0 ? '' : form.bizBusDataDetailVOList[landNameIndex].vehicleInputYoy === 0 ? form.bizBusDataDetailVOList[landNameIndex].vehicleInputYoy : form.bizBusDataDetailVOList[landNameIndex].vehicleInputYoy ? formatDigit(form.bizBusDataDetailVOList[landNameIndex].vehicleInputYoy) : '--'}}% - 运行班次: - - + 人数(万人): + + + - + + - 运行班次环比(%) - - {{item.operatingShiftsMom === 0 ? item.operatingShiftsMom : item.operatingShiftsMom ? item.operatingShiftsMom.toFixed(2) : ''}} + + 人数环比 + + + {{form.bizBusDataDetailVOList.length == 0 ? '' : form.bizBusDataDetailVOList[landNameIndex].passengerCountMom === 0 ? form.bizBusDataDetailVOList[landNameIndex].passengerCountMom : form.bizBusDataDetailVOList[landNameIndex].passengerCountMom ? formatDigit(form.bizBusDataDetailVOList[landNameIndex].passengerCountMom) : '--'}}% - 运行班次同比(%) + 人数同比 - {{item.operatingShiftsYoy === 0 ? item.operatingShiftsYoy : item.operatingShiftsYoy ? item.operatingShiftsYoy.toFixed(2) : ''}} + {{form.bizBusDataDetailVOList.length == 0 ? '' : form.bizBusDataDetailVOList[landNameIndex].passengerCountYoy === 0 ? form.bizBusDataDetailVOList[landNameIndex].passengerCountYoy : form.bizBusDataDetailVOList[landNameIndex].passengerCountYoy ? formatDigit(form.bizBusDataDetailVOList[landNameIndex].passengerCountYoy) : '--'}}% - 人数(万人): + 班次: - + + - + + - 人数环比(%) - - {{item.passengerCountMom === 0 ? item.passengerCountMom : item.passengerCountMom ? item.passengerCountMom.toFixed(2) : ''}} + + 班次环比 + + + {{form.bizBusDataDetailVOList.length == 0 ? '' : form.bizBusDataDetailVOList[landNameIndex].operatingShiftsMom === 0 ? form.bizBusDataDetailVOList[landNameIndex].operatingShiftsMom : form.bizBusDataDetailVOList[landNameIndex].operatingShiftsMom ? formatDigit(form.bizBusDataDetailVOList[landNameIndex].operatingShiftsMom) : '--'}}% - 人数同比(%) + 班次同比 - {{item.passengerCountYoy === 0 ? item.passengerCountYoy : item.passengerCountYoy ? item.passengerCountYoy.toFixed(2) : ''}} + {{form.bizBusDataDetailVOList.length == 0 ? '' : form.bizBusDataDetailVOList[landNameIndex].passengerCountYoy === 0 ? form.bizBusDataDetailVOList[landNameIndex].operatingShiftsYoy : form.bizBusDataDetailVOList[landNameIndex].operatingShiftsYoy ? formatDigit(form.bizBusDataDetailVOList[landNameIndex].operatingShiftsYoy) : '--'}}% - - 昨日投入车辆: - - - - - - 昨日运行班次: - - - - - - 昨日人数: - - - - - - 去年投入车辆: - - - - - - 去年运行班次: - - - - - - 去年人数: - - - - - + - 增行 + + + - 取消 - 确认 + + {{btnText}} - + + diff --git a/pages/portShipping/pilotStation/list.vue b/pages/portShipping/pilotStation/list.vue new file mode 100644 index 0000000..fddae25 --- /dev/null +++ b/pages/portShipping/pilotStation/list.vue @@ -0,0 +1,23 @@ + + + + 123 + + + + + + diff --git a/pages/roadTransport/dataSubmission/form.vue b/pages/roadTransport/dataSubmission/form.vue index 46e62ef..dc3efda 100644 --- a/pages/roadTransport/dataSubmission/form.vue +++ b/pages/roadTransport/dataSubmission/form.vue @@ -9,12 +9,12 @@ 基本信息 - + 统计日期 @@ -43,19 +43,57 @@ - 综合运输数据 + 交通运行情况 交通运输情况: + + 较大以上安全事故次数 + + + + + + 当日人员伤者数(人) + + + + + + 交通运行情况 + + + + + + 当日人员亡者数(人) + + + + + + 应急情况报告 + {{synthData.emergencySituationReport}} + + + + + - 取消 - 确认 + + 保存 + 修改并保存 @@ -137,7 +175,6 @@ // 点击确认按钮 confirmRoad(){ let params = this.synthData; - console.log(params) if(params.reportDatetime == ''){ uni.showToast({ title:'请选择统计日期', @@ -151,18 +188,28 @@ }else{ uni.showModal({ title:"提示", - content:"您确定,提交修改吗?", + content:params.id == undefined ? "您确认提交该条报送数据?" : "您确认将该条数据进行修改?", success:(res) =>{ if(res.confirm){ this.$request(getApp().globalData.baseUrl + '/api/biz/roadtransport/operation/saveOrUpdate',params,'POST').then(res =>{ if(res.code == 200){ uni.showToast({ - title:'填报成功', - icon:"none" - }); - setTimeout(() =>{ - uni.navigateBack() - },500) + title:"报送提交成功", + icon:"none", + success: () => { + if(params.id == undefined){ + setTimeout(() =>{ + uni.redirectTo({ + url:"/pages/roadTransport/dataSubmission/list" + }) + },300) + }else{ + setTimeout(() =>{ + uni.navigateBack() + },300) + } + } + }) } }) }else if(res.cancel){} @@ -181,13 +228,14 @@
统计日期
交通运输情况:
较大以上安全事故次数
当日人员伤者数(人)
交通运行情况
当日人员亡者数(人)
应急情况报告
{{synthData.emergencySituationReport}}
取消
确认
保存
修改并保存