道路运输数据改版重新联调

main
zhangqun 2 years ago
parent 75fe6f23ff
commit aaa14fd4d2
  1. 8
      pages.json
  2. 383
      pages/roadTransport/transportData/detail-copy.vue
  3. 101
      pages/roadTransport/transportData/form.vue
  4. 101
      pages/roadTransport/transportData/list.vue

@ -2,7 +2,7 @@
"pages": [{
"path": "pages/home/home",
"style": {
"navigationBarTitleText": "交通运输报送系统"
"navigationBarTitleText": "青岛交通信息"
}
},
{
@ -14,7 +14,7 @@
{
"path": "pages/login/login",
"style": {
"navigationBarTitleText": "交通运输报送系统",
"navigationBarTitleText": "青岛交通信息",
"navigationBarBackgroundColor": "#2D8CF0"
}
},
@ -164,14 +164,14 @@
{
"path": "pages/roadTransport/transportData/list",
"style": {
"navigationBarTitleText": "道路运输",
"navigationBarTitleText": "道路运输数据",
"enablePullDownRefresh": true
}
},
{
"path": "pages/roadTransport/transportData/form",
"style": {
"navigationBarTitleText": "道路运输编辑"
"navigationBarTitleText": "道路运输数据报送"
}
},
{

@ -1,383 +0,0 @@
<template>
<!-- 查看详情页面 -->
<view class="detail_con">
<view class="detail_box">
<view class="top_box">
<view class="top_item">
<view class="unit_left">
<view class="unit">管理单位</view>
<view class="unit_name">{{roadData.reportingUnitId}}</view>
</view>
<view class="unit_time">{{roadData.statisticalDate || ''}} {{roadData.reportPhaseValue}}</view>
</view>
<view class="all_item first">
<view class="all_left">负责人</view>
<view class="all_right">{{roadData.responsiblePersonId || ''}}</view>
</view>
<view class="all_item">
<view class="all_left">除定线农民工包车辆</view>
<view class="all_right" >{{roadData.otherCharter == 0 ? 0 : roadData.otherCharter || ''}}</view>
</view>
<view class="all_item">
<view class="all_left">投放运力包车数</view>
<view class="all_right" >{{roadData.capacityCharter == 0 ? 0 : roadData.capacityCharter || ''}}</view>
</view>
<view class="all_item">
<view class="all_left">收费站出口车辆数汇总环比</view>
<view class="all_right" :class="roadData.exitVehicleCountMom > 0 ? 'green' : roadData.exitVehicleCountMom < 0 ? 'red' : ''">{{roadData.exitVehicleCountMom ? roadData.exitVehicleCountMom + '%' : roadData.exitVehicleCountMom == 0 ? 0 : ''}}</view>
</view>
<view class="all_item">
<view class="all_left">收费站入口车辆数汇总同比</view>
<view class="all_right" :class="roadData.entranceVehicleCountYoy > 0 ? 'green' : roadData.entranceVehicleCountYoy < 0 ? 'red' : ''">{{roadData.entranceVehicleCountYoy ? roadData.entranceVehicleCountYoy + '%' : roadData.entranceVehicleCountYoy == 0 ? 0 : ''}}</view>
</view>
<view class="all_item last">
<view class="all_left">收费站出口车辆数汇总同比</view>
<view class="all_right" :class="roadData.exitVehicleCountYoy > 0 ? 'green' : roadData.exitVehicleCountYoy < 0 ? 'red' : ''">{{roadData.exitVehicleCountYoy ? roadData.exitVehicleCountYoy + '%' : roadData.exitVehicleCountYoy == 0 ? 0 : ''}}</view>
</view>
<view class="con_item" v-if="roadData.highwaySubDataList" v-for="(item,index) in roadData.highwaySubDataList" :key="index">
<view class="spread_box" v-if="item.isSpread">
<view class="item_con first">
<view class="left">收费站名称</view>
<view class="right">{{item.tollStationName}}</view>
</view>
<view class="item_con">
<view class="left">高速公路名称</view>
<view class="right">{{item.highwayName}}</view>
</view>
<view class="item_con">
<view class="left">收费站入口车辆数</view>
<view class="right">{{item.entranceVehicleCount}}</view>
</view>
<view class="item_content">
<view class="content top">
<view class="left">收费站入口车辆数环比(%)</view>
<view class="right" :class="item.entranceVehicleCountMom > 0 ? 'green' : item.entranceVehicleCountMom < 0 ? 'red' : ''">{{item.entranceVehicleCountMom ? item.entranceVehicleCountMom + '%' : item.entranceVehicleCountMom == 0 ? 0 : ''}}</view>
</view>
<view class="content">
<view class="left">收费站入口车辆数同比(%)</view>
<view class="right" :class="item.entranceVehicleCountYoy > 0 ? 'green' : item.entranceVehicleCountYoy < 0 ? 'red' : ''">{{item.entranceVehicleCountYoy ? item.entranceVehicleCountYoy + '%' : item.entranceVehicleCountYoy == 0 ? 0 : ''}}</view>
</view>
</view>
<view class="item_con">
<view class="left">收费站出口车辆数</view>
<view class="right">{{item.exitVehicleCount}}</view>
</view>
<view class="item_content">
<view class="content top">
<view class="left">收费站出口车辆数环比(%)</view>
<view class="right" :class="item.exitVehicleCountMom > 0 ? 'green' : item.exitVehicleCountMom < 0 ? 'red' : ''">{{item.exitVehicleCountMom ? item.exitVehicleCountMom + '%' : item.exitVehicleCountMom == 0 ? 0 : ''}}</view>
</view>
<view class="content">
<view class="left">收费站出口车辆数同比(%)</view>
<view class="right" :class="item.exitVehicleCountYoy > 0 ? 'green' : item.exitVehicleCountYoy < 0 ? 'red' : ''">{{item.exitVehicleCountYoy ? item.exitVehicleCountYoy + '%' : item.exitVehicleCountYoy == 0 ? 0 : ''}}</view>
</view>
</view>
<view class="item_con">
<view class="left">免收通行费车辆数</view>
<view class="right">{{item.tollExemptVehicleCount}}</view>
</view>
<view class="item_content">
<view class="content top">
<view class="left">免收通行费车辆数环比(%)</view>
<view class="right" :class="item.tollExemptVehicleCountMom > 0 ? 'green' : item.tollExemptVehicleCountMom < 0 ? 'red' : ''">{{item.tollExemptVehicleCountMom ? item.tollExemptVehicleCountMom + '%' : item.tollExemptVehicleCountMom == 0 ? 0 : ''}}</view>
</view>
<view class="content">
<view class="left">免收通行费车辆数同比(%)</view>
<view class="right" :class="item.tollExemptVehicleCountYoy > 0 ? 'green' : item.tollExemptVehicleCountYoy < 0 ? 'red' : ''">{{item.tollExemptVehicleCountYoy ? item.tollExemptVehicleCountYoy + '%' : item.tollExemptVehicleCountYoy == 0 ? 0 : ''}}</view>
</view>
</view>
<view class="item_con">
<view class="left">免收通行费金额</view>
<view class="right">{{item.tollExemptAmount}}</view>
</view>
<view class="item_con">
<view class="left">出口通行费</view>
<view class="right">{{item.exitToll}}</view>
</view>
<view class="item_con">
<view class="left">报送人员及联系方式</view>
<view class="right">{{item.submitPersonnelContact}}</view>
</view>
<view class="expand_box" @click="clickPack(item)">
<image class="img" src="../../../static/image/spread.png" mode=""></image>
<view class="tit">收起</view>
</view>
</view>
<view class="no_spread" v-if="!item.isSpread" @click="handleSpread(item)">
<view class="item_con first">
<view class="left">收费站名称</view>
<view class="right">{{item.tollStationName}}</view>
</view>
</view>
</view>
</view>
<view class="bottom_box">
<p class="edit_btn">编辑</p>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
roadData:{},
}
},
onLoad(options){
let item = JSON.parse(options.item)
console.log(item)
// let item1 = JSON.parse(JSON.stringify(item))
// if(item1.highwaySubDataList.length != 0){
// item1.highwaySubDataList[0].isSpread = true; //falsetrue
// }
this.roadData = item
// this.getDetail()
},
methods: {
//
clickPack(item){
this.$set(item,"isSpread",false)
},
handleSpread(item){
this.$set(item,"isSpread",true)
},
getDetail(){
this.$request(getApp().globalData.baseUrl + '/api/biz/highSpeedOperationController/selectById/' + '8A47103EE00000018772BC97AE50FFB7',{},"GET").then(res =>{
console.log(res)
})
},
}
}
</script>
<style lang="scss" scoped>
.detail_con{
width: 100%;
height: 100%;
overflow-y: auto;
.detail_box{
width: 690rpx;
background: #fff;
border-radius: 30rpx;
margin: 0 auto;
margin-top: 30rpx;
margin-bottom: 50rpx;
.top_box{
width: 630rpx;
padding: 38rpx 30rpx 0rpx;
display: flex;
flex-direction: column;
.top_item{
width: 100%;
// margin-top: 38rpx;
margin-bottom: 60rpx;
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-between;
.unit_left{
width: 100%;
display: flex;
.unit{
width: 102rpx;
height: 37rpx;
background: #FFF7E4;
border-radius: 10rpx;
border: 1rpx solid #EF9A4F;
font-size: 20rpx;
color: #E37616;
display: flex;
align-items: center;
justify-content: center;
}
.unit_name{
font-size: 30rpx;
color: #333;
font-weight: bold;
line-height: 48rpx;
margin-left: 20rpx;
}
}
.unit_time{
margin-top: 30rpx;
width: 100%;
display: flex;
align-items: center;
justify-content: center;
font-size: 24rpx;
color: #999999;
}
}
.all_item{
width: 100%;
display: flex;
align-items: center;
justify-content: space-between;
margin-top: 32rpx;
&.first{
margin-top: 0rpx;
}
&.last{
margin-bottom: 30rpx;
}
.all_left{
color: #666666;
font-size: 26rpx;
}
.all_right{
font-size: 28rpx;
color: #333;
}
}
.con_item{
width: 570rpx;
background: #F8F8F8;
border-radius: 30rpx;
margin: 0 auto;
margin-top: 30rpx;
padding: 30rpx 30rpx;
.spread_box{
width: 100%;
.item_con{
width: 100%;
display: flex;
align-items: center;
justify-content: space-between;
margin-top: 32rpx;
&.first{
margin-top: 0rpx;
}
.left{
color: #666666;
font-size: 26rpx;
}
.right{
font-size: 28rpx;
color: #333;
}
}
.item_content{
width: 570rpx;
margin: 0 auto;
background-color: #fff;
border-radius: 30rpx;
margin-top: 30rpx;
.content{
width: 516rpx;
padding: 34rpx 32rpx 30rpx 22rpx;
display: flex;
justify-content: space-between;
align-items: center;
&.top{
border-bottom: 1rpx solid #F2F2F2;
}
.left{
font-size: 24rpx;
color: #666;
}
.right{
color: #333;
font-size: 28rpx;
&.green{
color: #1ECE5F;
}
&.red{
color: #EB4747;
}
}
}
}
.expand_box{
width: 100%;
display: flex;
margin-top: 30rpx;
align-items: center;
justify-content: center;
.img{
width: 40rpx;
height: 40rpx;
}
.tit{
color: #2D8CF0;
font-size: 24rpx;
margin-left: 12rpx;
}
}
}
.no_spread{
width: 100%;
background: #F8F8F8;
border-radius: 30rpx;
.item_con{
width: 100%;
display: flex;
align-items: center;
justify-content: space-between;
margin-top: 32rpx;
&.first{
margin-top: 0rpx;
}
.left{
color: #666666;
font-size: 26rpx;
}
.right{
font-size: 28rpx;
color: #333;
}
}
}
}
}
.bottom_box{
width: 100%;
padding: 40rpx 0;
display: flex;
justify-content: flex-end;
.edit_btn{
width: 180rpx;
height: 70rpx;
background: #2D8CF0;
border-radius: 100rpx;
color: #fff;
font-size: 28rpx;
display: flex;
align-items: center;
justify-content: center;
margin-right: 30rpx;
}
}
}
}
</style>

@ -11,18 +11,12 @@
<view class="edit_item">
<p class="left unit">填报单位</p>
<view class="right">
<!-- <picker v-if="pageType == 'add' && deptNameList.length > 1" :value="roadData.reportingUnitIdIndex" :range="deptNameList"
range-key="deptName" @change="bindDeptChange">
<text class="picker_select"
:style="roadData.reportingUnitId?'color:#333;':''">{{roadData.reportingUnitId?roadData.reportingUnitId:'请选择'}}</text>
<uni-icons type="right" size="16" color="#D4D4D4"></uni-icons>
</picker> -->
<!-- -->
<view class="pick_pop" @click="showPop" v-if="pageType == 'add' && (treeData.length > 1 || (treeData.length == 1 && treeData[0].children.length > 0))">
<!-- <view class="pick_pop" @click="showPop" v-if="pageType == 'add' && (treeData.length > 1 || (treeData.length == 1 && treeData[0].children.length > 0))">
<text>{{roadData.reportingUnitId}}</text>
<uni-icons type="right" size="16" color="#D4D4D4"></uni-icons>
</view>
<text v-else>{{roadData.reportingUnitId}}</text>
<text v-else>{{roadData.reportingUnitId}}</text> -->
{{roadData.reportingUnitId}}
</view>
</view>
<view class="edit_item">
@ -44,7 +38,7 @@
<view class="right">
<picker @change="bindPickerChange" :value="index" :range="roadTime" range-key="dictLabel">
<view class="right_txt_box">
<p class="right_txt">{{timeName ? timeName : '请选择统计时段'}}</p>
<p class="right_txt" :style="timeName?'color:#333;':'color:#D4D4D4;'">{{timeName ? timeName : '请选择'}}</p>
<uni-icons type="right" size="16" color="#D4D4D4"></uni-icons>
</view>
@ -243,61 +237,6 @@
<uni-easyinput maxlength="20" type="number" v-model="roadData.customizedPassengerVolume" 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.passengerVolumeLastYear" 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.totalBusLastYear" placeholder="请输入" placeholderStyle="color:#d4d4d4;"></uni-easyinput>
</view>
</view> -->
<!-- <view class="per_con">
<view class="content top">
<view class="left">客运量与去年同期比率</view>
<view class="right">{{roadData.passengerVolumeRatio != '' ? roadData.passengerVolumeRatio == 0 ? 0 : roadData.passengerVolumeRatio.toFixed(2) + '%' : '-'}}</view>
</view>
<view class="content">
<view class="left">客车总量同比上升</view>
<view class="right">{{roadData.totalBusIncreaseRatio != '' ? roadData.passengerVolumeRatio == 0 ? 0 : roadData.totalBusIncreaseRatio.toFixed(2) + '%' : '-'}}</view>
</view>
</view> -->
<!-- <view class="edit_item input">
<p class="left">较大以上安全事故次数</p>
<view class="right">
<uni-easyinput v-model="roadData.significantAccidents" 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.dailyInjuredPersons" 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.trafficSituationReport" 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.dailyFatalities" placeholder="请输入" placeholderStyle="color:#d4d4d4;"></uni-easyinput>
</view>
</view>
<view class="edit_item input">
<p class="left">应急情况报告</p>
<p class="right">{{roadData.emergencySituationReport}}</p>
<view class="right">
<uni-easyinput v-model="roadData.emergencySituationReport" placeholder="请输入" placeholderStyle="color:#d4d4d4;"></uni-easyinput>
</view>
</view> -->
<view class="remark_item">
<p class="left">备注</p>
<view class="right">
@ -562,13 +501,12 @@ import { calcMom, calcYoy, checkNotEmpty, getDateStr, lastYearDate } from '../..
if(options.type == 'edit'){
const item = JSON.parse(options.item);
this.pageType = 'edit'
this.getDetail(item.id);
this.getDetail(item.reportPhase, item.reportUnit, item.statisticalDate);
}else if(options.type == 'add'){
this.pageType = 'add';
this.getDept()
let now = new Date();
this.roadData.statisticalDate = getDateStr(now, -1);//
this.getDept();
}
},
@ -651,7 +589,7 @@ import { calcMom, calcYoy, checkNotEmpty, getDateStr, lastYearDate } from '../..
// this.$request(getApp().globalData.baseUrl + '/api/user/getByDeptId/' + this.unitId,{},"GET").then(res =>{
console.log('人员列表 ===>',res)
res.data.list.map(item =>{
this.peopleList.push({id:item.id,people:item.username + (item.mobile ? ',' + item.mobile : '')})
this.peopleList.push({id:item.id,people:(item.nickname ? item.nickname : item.username) + (item.mobile ? ',' + item.mobile : '')})
})
if(this.pageType == 'edit'){
console.log('deptNameList ===>',this.peopleList)
@ -665,7 +603,10 @@ import { calcMom, calcYoy, checkNotEmpty, getDateStr, lastYearDate } from '../..
},
getDept(){
this.$request(getApp().globalData.baseUrl + '/api/dept/getCurrentAndSubordinateDept',{},"GET").then(res =>{
// this.$request(getApp().globalData.baseUrl + '/api/dict/dictList?dictType=industry',{},"GET").then(res =>{
// console.log('code===>',res)
// })
this.$request(getApp().globalData.baseUrl + '/api/dept/getCurrentAndSubordinateDept?tradeCode=09&deptName=',{},"GET").then(res =>{
console.log('单位===>',res)
this.treeData = res.data;
if(this.pageType == 'add'){
@ -674,7 +615,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.getRoadTime()
this.getPeople()
}else if(this.pageType == 'edit'){
console.log('reportingUnitId===>',this.roadData.reportingUnitId)
@ -686,11 +627,11 @@ import { calcMom, calcYoy, checkNotEmpty, getDateStr, lastYearDate } from '../..
}
})
},
getDetail(id){
this.$request(getApp().globalData.baseUrl + '/api/biz/roadtransport/road/find/' + id,{},"GET").then(res =>{
getDetail(reportPhase,reportUnit,statisticalDate){
this.$request(getApp().globalData.baseUrl + '/api/biz/roadtransport/road/getDataByTime?reportPhase=' + reportPhase + '&reportUnit=' + reportUnit + '&statisticalDate=' + statisticalDate,{},"GET").then(res =>{
this.roadData = res.data;
this.getRoadTime();
this.getDept()
this.getDept();
// console.log('last==>',lastYearDate(this.roadData.statisticalDate))
})
},
@ -770,7 +711,7 @@ import { calcMom, calcYoy, checkNotEmpty, getDateStr, lastYearDate } from '../..
}else{
uni.showModal({
title:"提示",
content:params.id == undefined ? "您确认提交该条报送数据?" : "您确认将该条数据进行修改?",
content: !checkNotEmpty(params.id) ? "您确认提交该条报送数据?" : "您确认将该条数据进行修改?",
success:(res) =>{
if(res.confirm){
params.isPassengerCountConvert = 0;
@ -839,6 +780,13 @@ import { calcMom, calcYoy, checkNotEmpty, getDateStr, lastYearDate } from '../..
this.index = this.roadTime.findIndex(item => item.dictValue == "03")
this.timeName = this.roadTime.find(item => item.dictValue == "03").dictLabel
}
// -
this.$request(getApp().globalData.baseUrl + '/api/biz/roadtransport/road/getDetail?reportPhase=' + this.roadData.reportPhase + '&reportUnit=' + this.roadData.reportingUnitId + '&statisticalDate=' + this.roadData.statisticalDate,{},"GET").then(res =>{
res.data.reportPhase = this.roadData.reportPhase;
res.data.reportingUnitId = this.roadData.reportingUnitId;
res.data.statisticalDate = this.roadData.statisticalDate;
this.roadData = res.data;
})
this.getRatio()
}
@ -1139,8 +1087,9 @@ import { calcMom, calcYoy, checkNotEmpty, getDateStr, lastYearDate } from '../..
}
}
.popup-content{
max-height: 500rpx;
max-height: 600rpx;
margin: 30rpx 0;
overflow-x: hidden;
overflow-y: auto;
.tree_item{
width: 100%;

@ -3,58 +3,18 @@
<!-- 道路运输页面 -->
<view class="top_box">
<view class="list_box">
<view class="list_item" v-for="(item,index) in listData" :key="index" @click="editItem(item)">
<view class="list_item" v-for="(item,index) in listData" :key="index">
<view class="list_top">
<view class="unit_tags">报送时间</view>
<view class="unit_name">{{item.statisticalDate || ''}}<text style="margin-left:16rpx;">{{item.reportPhaseValue || ''}}</text></view>
</view>
<view class="unit_station">{{item.reportingUnitId || ''}}</view>
<!-- <view class="report_time">{{item.statisticalDate || ''}}<text style="margin-left:16rpx;">{{item.reportPhaseValue || ''}}</text></view> -->
<!-- <view class="item">
<view class="item_line" @click="showDetail(index,true)">
<view class="left_txt">定线通勤包车()</view>
<view class="right_txt">{{item.regularCommuteCharter == 0 ? 0 : item.regularCommuteCharter || ''}}</view>
</view>
<view class="item_bottom" v-show="item.show">
<view class="bott_item">
<view class="left_txt">运送农民工包车()</view>
<view class="right_txt">{{item.migrantWorkersCharter == 0 ? 0 : item.migrantWorkersCharter || ''}}</view>
</view>
<view class="bott_item">
<view class="left_txt">除定线通勘包车农民工包车()</view>
<view class="right_txt">{{item.otherCharter == 0 ? 0 : item.otherCharter || ''}}</view>
</view>
<view class="bott_item">
<view class="left_txt">投放运力:包车数()</view>
<view class="right_txt">{{item.capacityCharter == 0 ? 0 : item.capacityCharter || ''}}</view>
</view>
<view class="bott_item">
<view class="left_txt">投放运力:班车数()</view>
<view class="right_txt">{{item.capacityShuttle == 0 ? 0 : item.capacityShuttle || ''}}</view>
</view>
<view class="bott_item">
<view class="left_txt">投放运力总客车数</view>
<view class="right_txt">{{item.capacityTotalBus == 0 ? 0 : item.capacityTotalBus || ''}}</view>
</view>
<view class="bott_item">
<view class="left_txt">总客位数</view>
<view class="right_txt">{{item.totalSeatCapacity == 0 ? 0 : item.totalSeatCapacity || ''}}</view>
</view>
<view class="bott_item">
<view class="left_txt">定线通勤班次</view>
<view class="right_txt">{{item.regularCommuteTrips == 0 ? 0 : item.regularCommuteTrips || ''}}</view>
</view>
<view class="omit">......</view>
<view class="list_item_shouqi" @click="showDetail(index,false)">
<uni-icons type="top" size="16" color="#2D8CF0"></uni-icons>
<text class="txt">收起</text>
</view>
<view class="unit_name">{{item.statisticalDate || ''}}<text style="margin-left:16rpx;">{{renderTime(item.reportPhase)}}</text></view>
<view class="unit_arrow">
<uni-icons @click="showDetail(index,false)" v-if="item.show" type="bottom" size="16" color="#666666"></uni-icons>
<uni-icons @click="showDetail(index,true)" v-else type="right" size="16" color="#666666"></uni-icons>
</view>
</view> -->
<!-- <view class="button_box">
<p class="button" @click="detailItem(item)">查看详情</p>
<p class="button edit" @click="editItem(item)">编辑</p>
</view> -->
</view>
<view class="list_cnt" v-if="item.show">
<view v-for="(item2,index2) in item.reportingUnitList" :key="index2" class="list_cnt_item" @click="editItem(item,item2)">{{item2}}</view>
</view>
</view>
</view>
<uni-load-more iconType="circle" :status="status" @clickLoadMore="loadMore"
@ -158,6 +118,13 @@
methods: {
//
showDetail(index1,flag) {
if(flag) {
//
let idx = this.listData.findIndex(item => item.show == true);
if(idx > -1) {
this.listData[idx].show = false;
}
}
this.listData[index1].show = flag;
},
//
@ -167,6 +134,11 @@
this.timeArray = res.data;
})
},
//
renderTime(reportPhase) {
let idx = this.timeArray.findIndex(item => item.dictValue == reportPhase);
return idx > -1 ? this.timeArray[idx].dictLabel : '';
},
//
handleSearch(){
this.$refs.popup.open('bottom')
@ -234,7 +206,7 @@
...this.query,
}
console.log('params ===>',params)
this.$request(getApp().globalData.baseUrl + '/api/biz/roadtransport/road/list',params,"GET").then(res =>{
this.$request(getApp().globalData.baseUrl + '/api/biz/roadtransport/road/getTimeList',params,"GET").then(res =>{
console.log(res)
if(res.code == 200){
res.data.list.map(item =>{
@ -284,11 +256,15 @@
})
},
//
editItem(row){
console.log(row)
editItem(row,reportUnit){
let param = {
statisticalDate: row.statisticalDate,
reportUnit: reportUnit,
reportPhase: row.reportPhase
}
uni.navigateTo({
// url:'pages/roadTransport/transportData/detail?item=' + JSON.stringify(row)
url:"/pages/roadTransport/transportData/form?item=" + JSON.stringify(row) + '&type=edit'
url:"/pages/roadTransport/transportData/form?item=" + JSON.stringify(param) + '&type=edit'
})
},
//
@ -345,6 +321,7 @@
}
.unit_name {
flex: 1;
color: #333333;
font-size: 30rpx;
font-family: PingFang SC-Bold, PingFang SC;
@ -353,6 +330,10 @@
margin-left: 20rpx;
word-break: break-all;
}
.unit_arrow{
float: right;
line-height: 48rpx;
}
}
.report_time {
color: #999999;
@ -372,6 +353,20 @@
margin-top:10rpx;
}
//
.list_cnt{
border-top: 1rpx solid #F7F0EE;
margin-top: 30rpx;
.list_cnt_item {
color: #666666;
font-size: 30rpx;
line-height: 40rpx;
font-family: Microsoft YaHei-Regular, Microsoft YaHei;
font-weight: 400;
margin-top: 30rpx;
}
}
.item{
width: 570rpx;
// display: flex;

Loading…
Cancel
Save