统一页面样式,完善逻辑处理

main
jinna 2 years ago
parent 5a7392bd56
commit 4539bcf802
  1. 8
      pages/bus/busDataInfo/form.vue
  2. 11
      pages/portShipping/pilotStation/form.vue
  3. 5
      pages/roadTransport/dataSubmission/form.vue
  4. 147
      pages/roadTransport/transportData/form.vue

@ -175,7 +175,7 @@
<p class="left">备注</p>
<view class="right">
<!-- <uni-easyinput v-model="roadData.remarks" placeholder="请输入备注" placeholderStyle="color:#d4d4d4;"></uni-easyinput> -->
<uni-easyinput type="textarea" maxlength="200" autoHeight v-model="roadData.remarks" placeholder="请备注信息"></uni-easyinput>
<uni-easyinput type="textarea" maxlength="200" autoHeight v-model="form.bizBusDataDetailVOList[landNameIndex].remarks" placeholder="请备注信息"></uni-easyinput>
</view>
</view>
<!-- <view class="line"></view> -->
@ -599,15 +599,17 @@
border-radius: 30rpx;
.remark_item{
color: #333;
font-size: 30rpx;
font-weight: bold;
.left{
margin-top: 20rpx;
font-size: 30rpx;
font-weight: bold;
margin-bottom: 30rpx;
}
.right{
font-size: 28rpx;
/deep/ .is-input-border{
border: 1rpx solid #c1c1c1 !important;
border-radius: 30rpx !important;

@ -25,7 +25,7 @@
<picker @change="bindPickerChange" :value="index" :range="roadTime" range-key="dictLabel">
<view class="right_txt_box">
<p class="right_txt">{{timeName ? timeName : '请选择统计时段'}}</p>
<uni-icons type="right" size="16"></uni-icons>
<uni-icons type="right" size="16" color="#D4D4D4"></uni-icons>
</view>
</picker>
</view>
@ -318,6 +318,7 @@ import { calcMom, checkNotEmpty, getDateStr } from '../../../common/util'
title: '提交中...',
mask: true
})
console.log(this.form)
this.$request(getApp().globalData.baseUrl + '/api/biz/bizPilotData/saveOrUpdate', this.form,"POST").then(res =>{
uni.hideLoading();
if (res.code == 200) {
@ -401,15 +402,17 @@ import { calcMom, checkNotEmpty, getDateStr } from '../../../common/util'
.remark_item{
color: #333;
font-size: 30rpx;
font-weight: bold;
.left{
font-size: 30rpx;
font-weight: bold;
margin-top: 20rpx;
margin-bottom: 30rpx;
}
.right{
font-size: 28rpx;
/deep/ .is-input-border{
border: 1rpx solid #c1c1c1 !important;
border-radius: 30rpx !important;
@ -429,7 +432,7 @@ import { calcMom, checkNotEmpty, getDateStr } from '../../../common/util'
.left{
// margin-left: 30rpx;
min-width: 400rpx;
// min-width: 400rpx;
color: #666;
font-size: 26rpx;
}

@ -35,7 +35,7 @@
<picker @change="bindPickerChange" :value="index" :range="roadTime" range-key="dictLabel">
<view class="right_txt_box">
<p class="right_txt">{{timeName ? timeName : '请选择统计时段'}}</p>
<uni-icons type="right" size="16"></uni-icons>
<uni-icons type="right" size="16" color="#D4D4D4"></uni-icons>
</view>
</picker>
@ -118,7 +118,6 @@
}
},
onLoad(options) {
this.getRoadTime();
if(options.type == 'edit'){
this.pageType = 'edit'
let row = JSON.parse(options.item);
@ -127,6 +126,7 @@
// this.synthData.reportDatetime = this.synthData.reportDatetime ? this.synthData.reportDatetime.substring(0,10) : ''
}else if(options.type == 'add'){
this.pageType = 'add'
this.getRoadTime();
let now = new Date();
this.synthData.reportDatetime = getDateStr(now, -1);//
}
@ -143,6 +143,7 @@
// console.log('===>',res)
this.synthData = res.data;
this.synthData.reportDatetime = this.synthData.reportDatetime ? this.synthData.reportDatetime.substring(0,10) : ''
this.getRoadTime();
})
},
//

@ -18,7 +18,7 @@
<uni-icons type="right" size="16" color="#D4D4D4"></uni-icons>
</picker> -->
<!-- -->
<view class="pick_pop" @click="showPop" v-if="pageType == 'add' && deptNameList.length > 1">
<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>
@ -45,7 +45,7 @@
<picker @change="bindPickerChange" :value="index" :range="roadTime" range-key="dictLabel">
<view class="right_txt_box">
<p class="right_txt">{{timeName ? timeName : '请选择统计时段'}}</p>
<uni-icons type="right" size="16"></uni-icons>
<uni-icons type="right" size="16" color="#D4D4D4"></uni-icons>
</view>
</picker>
@ -465,73 +465,73 @@ import { calcMom, calcYoy, checkNotEmpty, getDateStr, lastYearDate } from '../..
peopleIndex:'',
peopleName:'',
treeData:[
{
children: [
{
deptId: 459,
deptName: "青岛公路管理局1",
children:[],
isExpand:false,
},
{
deptId: 460,
deptName: "青岛公路管理局2",
children:[],
isExpand:false,
},
],
isExpand:true,
deptId: 458,
deptName: "青岛公路管理局",
},
{
children: [
{
deptId: 463,
deptName: "青岛公路管理局1",
isExpand:true,
children: [
{
deptId:101,
deptName:'管理局1',
isExpand:false,
children:[]
},
{
deptId:102,
deptName:'管理局2',
isExpand:true,
children:[
{
deptId:103,
deptName:'管理局3',
isExpand:false,
children:[]
}
]
},
]
},
{
deptId: 464,
deptName: "青岛公路管理局2",
children:[]
},
{
deptId: 465,
deptName: "青岛公路管理局3",
children:[]
},
],
deptId: 462,
isExpand:false,
deptName: "青岛公路局",
},
{
deptId: 468,
deptName: "公路局",
children:[]
},
// {
// children: [
// {
// deptId: 459,
// deptName: "1",
// children:[],
// isExpand:false,
// },
// {
// deptId: 460,
// deptName: "2",
// children:[],
// isExpand:false,
// },
// ],
// isExpand:true,
// deptId: 458,
// deptName: "",
// },
// {
// children: [
// {
// deptId: 463,
// deptName: "1",
// isExpand:true,
// children: [
// {
// deptId:101,
// deptName:'1',
// isExpand:false,
// children:[]
// },
// {
// deptId:102,
// deptName:'2',
// isExpand:true,
// children:[
// {
// deptId:103,
// deptName:'3',
// isExpand:false,
// children:[]
// }
// ]
// },
// ]
// },
// {
// deptId: 464,
// deptName: "2",
// children:[]
// },
// {
// deptId: 465,
// deptName: "3",
// children:[]
// },
// ],
// deptId: 462,
// isExpand:false,
// deptName: "",
// },
// {
// deptId: 468,
// deptName: "",
// children:[]
// },
],
newArr:[],
treeIndex:'',
@ -814,7 +814,8 @@ import { calcMom, calcYoy, checkNotEmpty, getDateStr, lastYearDate } from '../..
let index = e.target.value //
var selected = this.roadTime[index] //
this.roadData.reportPhase = selected.dictValue;
this.timeName = selected.dictLabel
this.timeName = selected.dictLabel;
this.getRatio()
},
formatDigit(data) {
return (data+'').indexOf('.') > -1 && (data+'').substring((data+'').indexOf('.')).length > 2 ? data.toFixed(2) : data;
@ -878,15 +879,17 @@ import { calcMom, calcYoy, checkNotEmpty, getDateStr, lastYearDate } from '../..
.remark_item{
color: #333;
font-size: 30rpx;
font-weight: bold;
.left{
font-weight: bold;
margin-top: 20rpx;
font-size: 30rpx;
margin-bottom: 30rpx;
}
.right{
font-size: 28rpx;
/deep/ .is-input-border{
border: 1rpx solid #c1c1c1 !important;
border-radius: 30rpx !important;

Loading…
Cancel
Save