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

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> <p class="left">备注</p>
<view class="right"> <view class="right">
<!-- <uni-easyinput v-model="roadData.remarks" placeholder="请输入备注" placeholderStyle="color:#d4d4d4;"></uni-easyinput> --> <!-- <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> </view>
<!-- <view class="line"></view> --> <!-- <view class="line"></view> -->
@ -599,15 +599,17 @@
border-radius: 30rpx; border-radius: 30rpx;
.remark_item{ .remark_item{
color: #333; color: #333;
font-size: 30rpx;
font-weight: bold;
.left{ .left{
margin-top: 20rpx; margin-top: 20rpx;
font-size: 30rpx;
font-weight: bold;
margin-bottom: 30rpx; margin-bottom: 30rpx;
} }
.right{ .right{
font-size: 28rpx;
/deep/ .is-input-border{ /deep/ .is-input-border{
border: 1rpx solid #c1c1c1 !important; border: 1rpx solid #c1c1c1 !important;
border-radius: 30rpx !important; border-radius: 30rpx !important;

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

@ -35,7 +35,7 @@
<picker @change="bindPickerChange" :value="index" :range="roadTime" range-key="dictLabel"> <picker @change="bindPickerChange" :value="index" :range="roadTime" range-key="dictLabel">
<view class="right_txt_box"> <view class="right_txt_box">
<p class="right_txt">{{timeName ? timeName : '请选择统计时段'}}</p> <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> </view>
</picker> </picker>
@ -118,7 +118,6 @@
} }
}, },
onLoad(options) { onLoad(options) {
this.getRoadTime();
if(options.type == 'edit'){ if(options.type == 'edit'){
this.pageType = 'edit' this.pageType = 'edit'
let row = JSON.parse(options.item); let row = JSON.parse(options.item);
@ -127,6 +126,7 @@
// this.synthData.reportDatetime = this.synthData.reportDatetime ? this.synthData.reportDatetime.substring(0,10) : '' // this.synthData.reportDatetime = this.synthData.reportDatetime ? this.synthData.reportDatetime.substring(0,10) : ''
}else if(options.type == 'add'){ }else if(options.type == 'add'){
this.pageType = 'add' this.pageType = 'add'
this.getRoadTime();
let now = new Date(); let now = new Date();
this.synthData.reportDatetime = getDateStr(now, -1);// this.synthData.reportDatetime = getDateStr(now, -1);//
} }
@ -143,6 +143,7 @@
// console.log('===>',res) // console.log('===>',res)
this.synthData = res.data; this.synthData = res.data;
this.synthData.reportDatetime = this.synthData.reportDatetime ? this.synthData.reportDatetime.substring(0,10) : '' 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> <uni-icons type="right" size="16" color="#D4D4D4"></uni-icons>
</picker> --> </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> <text>{{roadData.reportingUnitId}}</text>
<uni-icons type="right" size="16" color="#D4D4D4"></uni-icons> <uni-icons type="right" size="16" color="#D4D4D4"></uni-icons>
</view> </view>
@ -45,7 +45,7 @@
<picker @change="bindPickerChange" :value="index" :range="roadTime" range-key="dictLabel"> <picker @change="bindPickerChange" :value="index" :range="roadTime" range-key="dictLabel">
<view class="right_txt_box"> <view class="right_txt_box">
<p class="right_txt">{{timeName ? timeName : '请选择统计时段'}}</p> <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> </view>
</picker> </picker>
@ -465,73 +465,73 @@ import { calcMom, calcYoy, checkNotEmpty, getDateStr, lastYearDate } from '../..
peopleIndex:'', peopleIndex:'',
peopleName:'', peopleName:'',
treeData:[ treeData:[
{ // {
children: [ // children: [
{ // {
deptId: 459, // deptId: 459,
deptName: "青岛公路管理局1", // deptName: "1",
children:[], // children:[],
isExpand:false, // isExpand:false,
}, // },
{ // {
deptId: 460, // deptId: 460,
deptName: "青岛公路管理局2", // deptName: "2",
children:[], // children:[],
isExpand:false, // isExpand:false,
}, // },
], // ],
isExpand:true, // isExpand:true,
deptId: 458, // deptId: 458,
deptName: "青岛公路管理局", // deptName: "",
}, // },
{ // {
children: [ // children: [
{ // {
deptId: 463, // deptId: 463,
deptName: "青岛公路管理局1", // deptName: "1",
isExpand:true, // isExpand:true,
children: [ // children: [
{ // {
deptId:101, // deptId:101,
deptName:'管理局1', // deptName:'1',
isExpand:false, // isExpand:false,
children:[] // children:[]
}, // },
{ // {
deptId:102, // deptId:102,
deptName:'管理局2', // deptName:'2',
isExpand:true, // isExpand:true,
children:[ // children:[
{ // {
deptId:103, // deptId:103,
deptName:'管理局3', // deptName:'3',
isExpand:false, // isExpand:false,
children:[] // children:[]
} // }
] // ]
}, // },
] // ]
}, // },
{ // {
deptId: 464, // deptId: 464,
deptName: "青岛公路管理局2", // deptName: "2",
children:[] // children:[]
}, // },
{ // {
deptId: 465, // deptId: 465,
deptName: "青岛公路管理局3", // deptName: "3",
children:[] // children:[]
}, // },
], // ],
deptId: 462, // deptId: 462,
isExpand:false, // isExpand:false,
deptName: "青岛公路局", // deptName: "",
}, // },
{ // {
deptId: 468, // deptId: 468,
deptName: "公路局", // deptName: "",
children:[] // children:[]
}, // },
], ],
newArr:[], newArr:[],
treeIndex:'', treeIndex:'',
@ -814,7 +814,8 @@ import { calcMom, calcYoy, checkNotEmpty, getDateStr, lastYearDate } from '../..
let index = e.target.value // let index = e.target.value //
var selected = this.roadTime[index] // var selected = this.roadTime[index] //
this.roadData.reportPhase = selected.dictValue; this.roadData.reportPhase = selected.dictValue;
this.timeName = selected.dictLabel this.timeName = selected.dictLabel;
this.getRatio()
}, },
formatDigit(data) { formatDigit(data) {
return (data+'').indexOf('.') > -1 && (data+'').substring((data+'').indexOf('.')).length > 2 ? data.toFixed(2) : 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{ .remark_item{
color: #333; color: #333;
font-size: 30rpx;
font-weight: bold;
.left{ .left{
font-weight: bold;
margin-top: 20rpx; margin-top: 20rpx;
font-size: 30rpx;
margin-bottom: 30rpx; margin-bottom: 30rpx;
} }
.right{ .right{
font-size: 28rpx;
/deep/ .is-input-border{ /deep/ .is-input-border{
border: 1rpx solid #c1c1c1 !important; border: 1rpx solid #c1c1c1 !important;
border-radius: 30rpx !important; border-radius: 30rpx !important;

Loading…
Cancel
Save