You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1110 lines
41 KiB
1110 lines
41 KiB
<template> |
|
<view class="form_warp"> |
|
<view class="form_intro"> |
|
<view>如有填报问题,请咨询公共服务中心</view> |
|
<view>中心值班电话:<text @click="call(mobile)" class="tel">{{mobile}}</text></view> |
|
</view> |
|
<view class="form_item_box"> |
|
<view class="form_item_title">基本信息</view> |
|
<!-- <view class="form_item"> |
|
<view class="form_item_label">车站名称:</view> |
|
<view class="form_item_input picker"> |
|
<picker v-if="pageType == 'add' && stationList.length > 1" :value="form.railwayNameIndex" |
|
:range="stationList" @change="changeRailway"> |
|
<text class="picker_select" |
|
:style="form.railwayName?'color:#333;':''">{{form.railwayName?form.railwayName:'请选择'}}</text> |
|
<uni-icons type="right" size="16" color="#D4D4D4"></uni-icons> |
|
</picker> |
|
<text v-else>{{form.railwayName}}</text> |
|
</view> |
|
</view> --> |
|
<view class="form_item"> |
|
<view class="form_item_label">统计日期:</view> |
|
<view class="form_item_input picker"> |
|
<picker v-if="pageType == 'add'" mode="date" :value="form.statDate" @change="bindDateChange"> |
|
<text class="picker_select" |
|
:style="form.statDate?'color:#333;':''">{{form.statDate?form.statDate:'请选择'}}</text> |
|
<uni-icons type="right" size="16" color="#D4D4D4"></uni-icons> |
|
</picker> |
|
<text v-else>{{form.statDate?form.statDate:''}}</text> |
|
</view> |
|
</view> |
|
<view class="form_item"> |
|
<view class="form_item_label">统计时段:</view> |
|
<view class="form_item_input picker"> |
|
<picker v-if="pageType == 'add'" :value="index" :range="array" range-key="dictLabel" @change="changeStatPeriod"> |
|
<text class="picker_select" |
|
:style="index>-1?'color:#333;':''">{{index>-1?array[index].dictLabel:'请选择'}}</text> |
|
<uni-icons type="right" size="16" color="#D4D4D4"></uni-icons> |
|
</picker> |
|
<text v-else>{{index>-1?array[index].dictLabel:''}}</text> |
|
</view> |
|
</view> |
|
<!-- 汇总统计 进青 --> |
|
<view class="form_item"> |
|
<view class="form_item_label">进青终到车次统计:</view> |
|
<view class="form_item_input"> |
|
{{form.inboundRailwayDo === 0 ? form.inboundRailwayDo : form.inboundRailwayDo || ''}} |
|
</view> |
|
</view> |
|
<!-- 同比环比 --> |
|
<view class="form_item_rate" |
|
:class="checkNotEmpty(form.inboundRailwayDo) && form.inboundRailwayDo === yoySum.minusDaySummaryData.inboundRailwayDo ? 'danger' : ''"> |
|
<view class="rate_item"> |
|
<view class="rate_item_label" |
|
:style="checkNotEmpty(form.inboundRailwayDo) && form.inboundRailwayDo === yoySum.minusDaySummaryData.inboundRailwayDo ?'color: #EB4747':''"> |
|
终到车次统计环比</view> |
|
<view class="rate_item_input" |
|
:style="checkNotEmpty(form.inboundRailwayDo) && form.inboundRailwayDo === yoySum.minusDaySummaryData.inboundRailwayDo ?'color: #EB4747':''"> |
|
{{formatDigit(form.inRailwayYomDo)}}% |
|
</view> |
|
</view> |
|
<view class="line"></view> |
|
<view class="rate_item"> |
|
<view class="rate_item_label">终到车次统计同比</view> |
|
<view class="rate_item_input"> |
|
{{formatDigit(form.inRailwayMomDo)}}% |
|
</view> |
|
</view> |
|
</view> |
|
<view class="form_item"> |
|
<view class="form_item_label">进青过路车次统计:</view> |
|
<view class="form_item_input"> |
|
{{form.inboundPassengersDo === 0 ? form.inboundPassengersDo : form.inboundPassengersDo || ''}} |
|
</view> |
|
</view> |
|
<view class="form_item"> |
|
<view class="form_item_label">进青人数统计:</view> |
|
<view class="form_item_input"> |
|
{{form.inPepole === 0 ? form.inPepole : form.inPepole || ''}} |
|
</view> |
|
</view> |
|
<!-- 同比环比 --> |
|
<view class="form_item_rate" |
|
:class="checkNotEmpty(form.inPepole) && form.inPepole === yoySum.minusDaySummaryData.inPepole ? 'danger' : ''"> |
|
<view class="rate_item"> |
|
<view class="rate_item_label" |
|
:style="checkNotEmpty(form.inPepole) && form.inPepole === yoySum.minusDaySummaryData.inPepole ?'color: #EB4747':''"> |
|
人数统计环比</view> |
|
<view class="rate_item_input" |
|
:style="checkNotEmpty(form.inPepole) && form.inPepole === yoySum.minusDaySummaryData.inPepole ?'color: #EB4747':''"> |
|
{{formatDigit(form.inPepoleYoyDo)}}% |
|
</view> |
|
</view> |
|
<view class="line"></view> |
|
<view class="rate_item"> |
|
<view class="rate_item_label">人数统计同比</view> |
|
<view class="rate_item_input"> |
|
{{formatDigit(form.inPepoleMomDo)}}% |
|
</view> |
|
</view> |
|
</view> |
|
<!-- 出青 --> |
|
<view class="form_item"> |
|
<view class="form_item_label">出青始发车次统计:</view> |
|
<view class="form_item_input"> |
|
{{form.outboundRailwayDo === 0 ? form.outboundRailwayDo : form.outboundRailwayDo || ''}} |
|
</view> |
|
</view> |
|
<!-- 同比环比 --> |
|
<view class="form_item_rate" |
|
:class="checkNotEmpty(form.outboundRailwayDo) && form.outboundRailwayDo === yoySum.minusDaySummaryData.outboundRailwayDo ? 'danger' : ''"> |
|
<view class="rate_item"> |
|
<view class="rate_item_label" |
|
:style="checkNotEmpty(form.outboundRailwayDo) && form.outboundRailwayDo === yoySum.minusDaySummaryData.outboundRailwayDo ?'color: #EB4747':''"> |
|
始发车次统计环比</view> |
|
<view class="rate_item_input" |
|
:style="checkNotEmpty(form.outboundRailwayDo) && form.outboundRailwayDo === yoySum.minusDaySummaryData.outboundRailwayDo ?'color: #EB4747':''"> |
|
{{formatDigit(form.outRailwayYomDo)}}% |
|
</view> |
|
</view> |
|
<view class="line"></view> |
|
<view class="rate_item"> |
|
<view class="rate_item_label">始发车次统计同比</view> |
|
<view class="rate_item_input"> |
|
{{formatDigit(form.outRailwayMomDo)}}% |
|
</view> |
|
</view> |
|
</view> |
|
<view class="form_item"> |
|
<view class="form_item_label">出青过路车次统计:</view> |
|
<view class="form_item_input"> |
|
{{form.outboundPassengersDo === 0 ? form.outboundPassengersDo : form.outboundPassengersDo || ''}} |
|
</view> |
|
</view> |
|
<view class="form_item"> |
|
<view class="form_item_label">出青人数统计:</view> |
|
<view class="form_item_input"> |
|
{{form.outPepole === 0 ? form.outPepole : form.outPepole || ''}} |
|
</view> |
|
</view> |
|
<!-- 同比环比 --> |
|
<view class="form_item_rate" |
|
:class="checkNotEmpty(form.outPepole) && form.outPepole === yoySum.minusDaySummaryData.outPepole ? 'danger' : ''"> |
|
<view class="rate_item"> |
|
<view class="rate_item_label" |
|
:style="checkNotEmpty(form.outPepole) && form.outPepole === yoySum.minusDaySummaryData.outPepole ?'color: #EB4747':''"> |
|
人数统计环比</view> |
|
<view class="rate_item_input" |
|
:style="checkNotEmpty(form.outPepole) && form.outPepole === yoySum.minusDaySummaryData.outPepole ?'color: #EB4747':''"> |
|
{{formatDigit(form.outPepoleYoyDo)}}% |
|
</view> |
|
</view> |
|
<view class="line"></view> |
|
<view class="rate_item"> |
|
<view class="rate_item_label">人数统计同比</view> |
|
<view class="rate_item_input"> |
|
{{formatDigit(form.outPepoleMomDo)}}% |
|
</view> |
|
</view> |
|
</view> |
|
</view> |
|
<!-- 车站权限 --> |
|
<view class="station_box"> |
|
<view v-if="index < 9" :style="(index+1)%3 == 0 ? 'margin-right:0;':''" @click="changeRailwayNameIndexIndex(index)" |
|
class="station_item" :class="[item.isFinish ? 'active' : '',index == railwayNameIndex ? 'choosed' : '']" |
|
v-for="(item, index) in stationList" :key="item.id"> |
|
<view v-if='item.isFinish' class="tag"> |
|
<uni-icons type="checkmarkempty" color="#fff" size="12"></uni-icons> |
|
</view> |
|
{{item.railwayName || ''}} |
|
</view> |
|
<view v-if="index >= 9 && showRailway" :style="(index+1)%3 == 0 ? 'margin-right:0;':''" |
|
@click="changeRailwayNameIndexIndex(index)" class="station_item" |
|
:class="[item.isFinish ? 'active' : '',index == railwayNameIndex ? 'choosed' : '']" |
|
v-for="(item, index) in stationList" :key="item.id"> |
|
<view v-if='item.isFinish' class="tag"> |
|
<uni-icons type="checkmarkempty" color="#fff" size="12"></uni-icons> |
|
</view> |
|
{{item.railwayName || ''}} |
|
</view> |
|
</view> |
|
<view v-if="stationList.length > 9" class="station_act" @click="showRailway = !showRailway"> |
|
<uni-icons v-if="!showRailway" type="bottom" size="14" color="#2D8CF0" style="margin-right:10rpx;"> |
|
</uni-icons> |
|
<uni-icons v-if="showRailway" type="top" size="14" color="#2D8CF0" style="margin-right:10rpx;"></uni-icons> |
|
{{showRailway?'收起':'展开'}} |
|
</view> |
|
<view class="form_item_box"> |
|
<!-- tab 切换 --> |
|
<view class="tab_box"> |
|
<view class="tab_nav" :class="tabType == 1 ? 'active' : ''" @click="tabType = 1">进青岛</view> |
|
<view class="tab_nav" :class="tabType == 2 ? 'active' : ''" @click="tabType = 2">出青岛</view> |
|
</view> |
|
<!-- 入青 --> |
|
<view class="form_item_li" v-show="tabType == 1"> |
|
<view class="form_item" |
|
style="display:flex; justify-content: space-between; font-size: 30rpx;color:#333;font-weight: bold;margin-top: 30rpx;"> |
|
车次信息 |
|
</view> |
|
<view class="form_item"> |
|
<view class="form_item_label">车站名称:</view> |
|
<view class="form_item_input"> |
|
{{form.bizRailwayRunDataSaveOrUpdateDTOList[railwayNameIndex].railwayName ? form.bizRailwayRunDataSaveOrUpdateDTOList[railwayNameIndex].railwayName : ''}} |
|
</view> |
|
</view> |
|
<view class="form_item"> |
|
<view class="form_item_label">终到车次(辆):</view> |
|
<view class="form_item_input form_input"> |
|
<uni-easyinput @blur="calcYoyMom(railwayNameIndex)" @clear="calcYoyMom(railwayNameIndex)" v-model="form.bizRailwayRunDataSaveOrUpdateDTOList[railwayNameIndex].inboundRailwayDo" type="number" |
|
placeholderStyle="color: #D4D4D4;font-size:28rpx;" placeholder="请输入" maxlength="20"> |
|
</uni-easyinput> |
|
</view> |
|
</view> |
|
<!-- 同比环比 --> |
|
<view class="form_item_rate" |
|
:class="form.bizRailwayRunDataSaveOrUpdateDTOList[railwayNameIndex].inRailwayYomDo === 0 ? 'danger' : '' "> |
|
<view class="rate_item"> |
|
<view class="rate_item_label" |
|
:style="form.bizRailwayRunDataSaveOrUpdateDTOList[railwayNameIndex].inRailwayYomDo === 0 ? 'color: #EB4747' : ''"> |
|
终到车次环比</view> |
|
<view class="rate_item_input" |
|
:style="form.bizRailwayRunDataSaveOrUpdateDTOList[railwayNameIndex].inRailwayYomDo === 0 ? 'color: #EB4747' : ''"> |
|
{{form.bizRailwayRunDataSaveOrUpdateDTOList.length > 0 ? formatDigit(form.bizRailwayRunDataSaveOrUpdateDTOList[railwayNameIndex].inRailwayYomDo) : '--'}}% |
|
</view> |
|
</view> |
|
<view class="line"></view> |
|
<view class="rate_item"> |
|
<view class="rate_item_label">终到车次同比</view> |
|
<view class="rate_item_input"> |
|
{{formatDigit(form.bizRailwayRunDataSaveOrUpdateDTOList[railwayNameIndex].inRailwayMomDo)}}% |
|
</view> |
|
</view> |
|
</view> |
|
<view class="form_item"> |
|
<view class="form_item_label">过路车次:</view> |
|
<view class="form_item_input form_input"> |
|
<uni-easyinput @blur="calcYoyMom(railwayNameIndex)" @clear="calcYoyMom(railwayNameIndex)" v-model="form.bizRailwayRunDataSaveOrUpdateDTOList[railwayNameIndex].inboundPassengersDo" type="number" |
|
placeholderStyle="color: #D4D4D4;font-size:28rpx;" placeholder="请输入" maxlength="20"> |
|
</uni-easyinput> |
|
</view> |
|
</view> |
|
<view class="form_item"> |
|
<view class="form_item_label">人数(人):</view> |
|
<view class="form_item_input form_input"> |
|
<uni-easyinput @blur="calcYoyMom(railwayNameIndex)" @clear="calcYoyMom(railwayNameIndex)" v-model="form.bizRailwayRunDataSaveOrUpdateDTOList[railwayNameIndex].inPepole" type="number" |
|
placeholderStyle="color: #D4D4D4;font-size:28rpx;" placeholder="请输入" maxlength="20"> |
|
</uni-easyinput> |
|
</view> |
|
</view> |
|
<!-- 同比环比 --> |
|
<view class="form_item_rate" |
|
:class="form.bizRailwayRunDataSaveOrUpdateDTOList[railwayNameIndex].inPepoleYoyDo === 0 ? 'danger' : '' "> |
|
<view class="rate_item"> |
|
<view class="rate_item_label" |
|
:style="form.bizRailwayRunDataSaveOrUpdateDTOList[railwayNameIndex].inPepoleYoyDo === 0 ? 'color: #EB4747' : ''">人数环比 |
|
</view> |
|
<view class="rate_item_input" |
|
:style="form.bizRailwayRunDataSaveOrUpdateDTOList[railwayNameIndex].inPepoleYoyDo === 0 ? 'color: #EB4747' : ''"> |
|
{{formatDigit(form.bizRailwayRunDataSaveOrUpdateDTOList[railwayNameIndex].inPepoleYoyDo)}}% |
|
</view> |
|
</view> |
|
<view class="line"></view> |
|
<view class="rate_item"> |
|
<view class="rate_item_label">人数同比</view> |
|
<view class="rate_item_input"> |
|
{{formatDigit(form.bizRailwayRunDataSaveOrUpdateDTOList[railwayNameIndex].inPepoleMomDo)}}% |
|
</view> |
|
</view> |
|
</view> |
|
<view class="form_item_remark"> |
|
<view class="form_item_label">备注:</view> |
|
<view class="form_item_input"> |
|
<uni-easyinput v-model="form.bizRailwayRunDataSaveOrUpdateDTOList[railwayNameIndex].inMark" |
|
placeholderStyle="color: #D4D4D4;font-size:28rpx;" placeholder="请输入备注信息" type="textarea" maxlength="200" |
|
autoHeight></uni-easyinput> |
|
</view> |
|
</view> |
|
</view> |
|
|
|
<!-- 出青 --> |
|
<view class="form_item_li" v-show="tabType == 2"> |
|
<view class="form_item" |
|
style="display:flex; justify-content: space-between; font-size: 30rpx;color:#333;font-weight: bold;margin-top: 30rpx;"> |
|
车次信息 |
|
</view> |
|
<view class="form_item"> |
|
<view class="form_item_label">车站名称:</view> |
|
<view class="form_item_input"> |
|
{{form.bizRailwayRunDataSaveOrUpdateDTOList[railwayNameIndex].railwayName}} |
|
</view> |
|
</view> |
|
<view class="form_item"> |
|
<view class="form_item_label">始发车次(辆):</view> |
|
<view class="form_item_input form_input"> |
|
<uni-easyinput @blur="calcYoyMom(railwayNameIndex)" @clear="calcYoyMom(railwayNameIndex)" v-model="form.bizRailwayRunDataSaveOrUpdateDTOList[railwayNameIndex].outboundRailwayDo" type="number" |
|
placeholderStyle="color: #D4D4D4;font-size:28rpx;" placeholder="请输入" maxlength="20"> |
|
</uni-easyinput> |
|
</view> |
|
</view> |
|
<!-- 同比环比 --> |
|
<view class="form_item_rate" :class="form.bizRailwayRunDataSaveOrUpdateDTOList[railwayNameIndex].outRailwayYomDo === 0 ? 'danger' : '' "> |
|
<view class="rate_item"> |
|
<view class="rate_item_label" |
|
:style="form.bizRailwayRunDataSaveOrUpdateDTOList[railwayNameIndex].outRailwayYomDo === 0 ? 'color: #EB4747' : ''"> |
|
始发车次环比</view> |
|
<view class="rate_item_input" |
|
:style="form.bizRailwayRunDataSaveOrUpdateDTOList[railwayNameIndex].outRailwayYomDo === 0 ? 'color: #EB4747' : ''"> |
|
{{formatDigit(form.bizRailwayRunDataSaveOrUpdateDTOList[railwayNameIndex].outRailwayYomDo)}}% |
|
</view> |
|
</view> |
|
<view class="line"></view> |
|
<view class="rate_item"> |
|
<view class="rate_item_label">始发车次同比</view> |
|
<view class="rate_item_input"> |
|
{{formatDigit(form.bizRailwayRunDataSaveOrUpdateDTOList[railwayNameIndex].outRailwayMomDo)}}% |
|
</view> |
|
</view> |
|
</view> |
|
<view class="form_item"> |
|
<view class="form_item_label">过路车次:</view> |
|
<view class="form_item_input form_input"> |
|
<uni-easyinput @blur="calcYoyMom(railwayNameIndex)" @clear="calcYoyMom(railwayNameIndex)" v-model="form.bizRailwayRunDataSaveOrUpdateDTOList[railwayNameIndex].outboundPassengersDo" type="number" |
|
placeholderStyle="color: #D4D4D4;font-size:28rpx;" placeholder="请输入" maxlength="20"> |
|
</uni-easyinput> |
|
</view> |
|
</view> |
|
<view class="form_item"> |
|
<view class="form_item_label">人数(人):</view> |
|
<view class="form_item_input form_input"> |
|
<uni-easyinput @blur="calcYoyMom(railwayNameIndex)" @clear="calcYoyMom(railwayNameIndex)" v-model="form.bizRailwayRunDataSaveOrUpdateDTOList[railwayNameIndex].outPepole" type="number" |
|
placeholderStyle="color: #D4D4D4;font-size:28rpx;" placeholder="请输入" maxlength="20"> |
|
</uni-easyinput> |
|
</view> |
|
</view> |
|
<!-- 同比环比 --> |
|
<view class="form_item_rate" :class="form.bizRailwayRunDataSaveOrUpdateDTOList[railwayNameIndex].outPepoleYoyDo === 0 ? 'danger' : '' "> |
|
<view class="rate_item"> |
|
<view class="rate_item_label" |
|
:style="form.bizRailwayRunDataSaveOrUpdateDTOList[railwayNameIndex].outPepoleYoyDo === 0 ? 'color: #EB4747' : ''">人数环比 |
|
</view> |
|
<view class="rate_item_input" |
|
:style="form.bizRailwayRunDataSaveOrUpdateDTOList[railwayNameIndex].outPepoleYoyDo === 0 ? 'color: #EB4747' : ''"> |
|
{{formatDigit(form.bizRailwayRunDataSaveOrUpdateDTOList[railwayNameIndex].outPepoleYoyDo)}}% |
|
</view> |
|
</view> |
|
<view class="line"></view> |
|
<view class="rate_item"> |
|
<view class="rate_item_label">人数同比</view> |
|
<view class="rate_item_input"> |
|
{{formatDigit(form.bizRailwayRunDataSaveOrUpdateDTOList[railwayNameIndex].outPepoleMomDo)}}% |
|
</view> |
|
</view> |
|
</view> |
|
<view class="form_item_remark"> |
|
<view class="form_item_label">备注:</view> |
|
<view class="form_item_input"> |
|
<uni-easyinput v-model="form.bizRailwayRunDataSaveOrUpdateDTOList[railwayNameIndex].outMark" |
|
placeholderStyle="color: #D4D4D4;font-size:28rpx;" placeholder="请输入备注信息" type="textarea" maxlength="200" |
|
autoHeight></uni-easyinput> |
|
</view> |
|
</view> |
|
</view> |
|
|
|
</view> |
|
<!-- 底部按钮 --> |
|
<view class="foot_btn"> |
|
<!-- <view class="act_btn" @click="doCancel">取消</view> --> |
|
<view class="act_btn blue" @click="doSubmit">{{btnText}}</view> |
|
</view> |
|
</view> |
|
</template> |
|
<script> |
|
import { |
|
getDateStr, |
|
checkNotEmpty |
|
} from "../../../common/util.js" |
|
export default { |
|
data() { |
|
return { |
|
form: { |
|
"inMark": "", |
|
"inPepole": '', |
|
"inPepoleMomDo": '', |
|
"inPepoleYoyDo": '', |
|
"inRailwayMomDo": '', |
|
"inRailwayYomDo": '', |
|
"inboundPassengersDo": '', |
|
"inboundRailwayDo": '', |
|
"outMark": "", |
|
"outPepole": '', |
|
"outPepoleMomDo": '', |
|
"outPepoleYoyDo": '', |
|
"outRailwayMomDo": '', |
|
"outRailwayYomDo": '', |
|
"outboundPassengersDo": '', |
|
"outboundRailwayDo": '', |
|
"bizRailwayRunDataSaveOrUpdateDTOList": [{ |
|
"inMark": "", |
|
"inPepole": '', |
|
"inPepoleMomDo": '', |
|
"inPepoleYoyDo": '', |
|
"inRailwayMomDo": '', |
|
"inRailwayYomDo": '', |
|
"inboundPassengersDo": '', |
|
"inboundRailwayDo": 0, |
|
"isHoliday": "", |
|
"outMark": "", |
|
"outPepole": '', |
|
"outPepoleMomDo": '', |
|
"outPepoleYoyDo": '', |
|
"outRailwayMomDo": '', |
|
"outRailwayYomDo": '', |
|
"outboundPassengersDo": '', |
|
"outboundRailwayDo": 0, |
|
"railwayName": "", |
|
}], |
|
|
|
"statDate": "", |
|
"statPeriod": "" |
|
}, //登录form |
|
stationList: [], //车站列表 |
|
railwayNameIndex: 0, |
|
showRailway: false, |
|
submitPerson: [], //报送人 |
|
submitPersonIndex: -1, //报送人选择索引 |
|
array: [], //时段选择列表 |
|
index: 2, //时段选择,默认0-24 |
|
userInfo: {}, |
|
pageType: '', |
|
btnText: '保存', |
|
tabType: 1, |
|
mobile: getApp().globalData.mobile, |
|
yoySum: { |
|
minusDaySummaryData: {}, |
|
minusYearSummaryData: {} |
|
},//汇总统计同环比 |
|
} |
|
}, |
|
onLoad(options) { |
|
this.userInfo = uni.getStorageSync('userInfo'); |
|
if (options.type == 'add') { |
|
this.pageType = 'add'; |
|
let now = new Date(); |
|
this.form.statDate = getDateStr(now, -1); //默认前一天 |
|
this.queryTime(); //统计时段 |
|
// this.queryStation(); |
|
} else if (options.item) { |
|
this.btnText = '修改并保存'; |
|
let obj = JSON.parse(options.item); |
|
this.queryDetail(obj.statDate, obj.statPeriod); |
|
} else if (options.id) { |
|
this.btnText = '修改并保存'; |
|
this.$request(getApp().globalData.baseUrl + '/api/biz/railwayRunData/find/' + options.id, {}, "GET").then( |
|
res => { |
|
this.form = res.data; |
|
this.queryTime(); //统计时段 |
|
this.queryStation(); |
|
}); |
|
} |
|
}, |
|
methods: { |
|
call(tel) { |
|
uni.makePhoneCall({ |
|
phoneNumber: tel |
|
}); |
|
}, |
|
checkNotEmpty(data) { |
|
return checkNotEmpty(data); |
|
}, |
|
//只保留两位小数 |
|
formatDigit(data) { |
|
return !checkNotEmpty(data) ? '--' : (data+'').indexOf('.') > -1 && (data+'').substring((data+'').indexOf('.')).length > 2 ? data.toFixed(2) : data; |
|
}, |
|
//详情 |
|
queryDetail(statDate,statPeriod) { |
|
this.$request(getApp().globalData.baseUrl + '/api/biz/railwayRunData/getDataByTime?statDate=' + statDate + '&statPeriod=' + statPeriod, {}, "GET").then( |
|
res => { |
|
res.data.statDate = statDate; |
|
res.data.statPeriod = statPeriod; |
|
this.form = res.data; |
|
this.form.bizRailwayRunDataSaveOrUpdateDTOList = this.form.bizRailwayRunDataVOList; |
|
console.log('============init station ==', this.form) |
|
//查询汇总同环比 |
|
this.$request(getApp().globalData.baseUrl + '/api/biz/railwayRunData/getSummaryDataYoYAndMoM?statDate=' + statDate + '&statPeriod=' + statPeriod + '&_t=' + Date.parse(new Date()), {}, |
|
'GET') |
|
.then(res2 => { |
|
res2.data.minusDaySummaryData = res2.data.minusDaySummaryData ? res2.data.minusDaySummaryData : {}; |
|
res2.data.minusYearSummaryData = res2.data.minusYearSummaryData ? res2.data.minusYearSummaryData : {}; |
|
this.yoySum = res2.data; |
|
if(this.pageType != 'add') { |
|
this.queryTime(); //统计时段 |
|
} |
|
this.queryStation(); |
|
}) |
|
}); |
|
}, |
|
//环比同比 |
|
// queryYoyMom(index, railwayName) { |
|
// if (this.form.statDate == '' || this.form.statPeriod == '') { |
|
// return; |
|
// } |
|
// // let _date = getDateStr(new Date(this.form.statDate), -1); |
|
// this.$request(getApp().globalData.baseUrl + '/api/biz/railwayRunData/getYoYMoM?statDate=' + this.form |
|
// .statDate + '&statPeriod=' + this.form.statPeriod + '&railwayName=' + railwayName + '&_t=' + Date.parse(new Date()), {}, 'GET') |
|
// .then(res => { |
|
// this.yoyMom = res.data; |
|
// this.calcYoyMom(index); //同步更新环比同比 |
|
// }) |
|
// }, |
|
//环比同比计算 |
|
calcYoyMom(index) { |
|
console.log('同比环比计算'); |
|
// 汇总 |
|
let _inPeole = 0,_inboundPassengersDo = 0,_inboundRailwayDo = 0; |
|
let _outPepole = 0,_outboundPassengersDo = 0,_outboundRailwayDo = 0; |
|
this.form.bizRailwayRunDataSaveOrUpdateDTOList.map((item,index) => { |
|
_inPeole = _inPeole + (checkNotEmpty(item.inPepole) ? parseInt(item.inPepole) : 0); |
|
_inboundPassengersDo = _inboundPassengersDo + (checkNotEmpty(item.inboundPassengersDo) ? parseInt(item.inboundPassengersDo) : 0); |
|
_inboundRailwayDo = _inboundRailwayDo + (checkNotEmpty(item.inboundRailwayDo) ? parseInt(item.inboundRailwayDo) : 0); |
|
_outPepole = _outPepole + (checkNotEmpty(item.outPepole) ? parseInt(item.outPepole) : 0); |
|
_outboundPassengersDo = _outboundPassengersDo + (checkNotEmpty(item.outboundPassengersDo) ? parseInt(item.outboundPassengersDo) : 0); |
|
_outboundRailwayDo = _outboundRailwayDo + (checkNotEmpty(item.outboundRailwayDo) ? parseInt(item.outboundRailwayDo) : 0); |
|
}) |
|
this.form.inPepole = _inPeole; |
|
this.form.inPepoleYoyDo = this.$calcMom(this.form.inPepole, this.yoySum.minusDaySummaryData.inPepole); |
|
this.form.inPepoleMomDo = this.$calcYoy(this.form.inPepole, this.yoySum.minusYearSummaryData.inPepole); |
|
this.form.inboundPassengersDo = _inboundPassengersDo; |
|
this.form.inboundRailwayDo = _inboundRailwayDo; |
|
this.form.inRailwayYomDo = this.$calcMom(this.form.inboundRailwayDo, this.yoySum.minusDaySummaryData.inboundRailwayDo); |
|
this.form.inRailwayMomDo = this.$calcYoy(this.form.inboundRailwayDo, this.yoySum.minusYearSummaryData.inboundRailwayDo); |
|
this.form.outPepole = _outPepole; |
|
this.form.outPepoleYoyDo = this.$calcMom(this.form.outPepole, this.yoySum.minusDaySummaryData.outPepole); |
|
this.form.outPepoleMomDo = this.$calcYoy(this.form.outPepole, this.yoySum.minusYearSummaryData.outPepole); |
|
this.form.outboundPassengersDo = _outboundPassengersDo; |
|
this.form.outboundRailwayDo = _outboundRailwayDo; |
|
this.form.outRailwayYomDo = this.$calcMom(this.form.outboundRailwayDo, this.yoySum.minusDaySummaryData.outboundRailwayDo); |
|
this.form.outRailwayMomDo = this.$calcYoy(this.form.outboundRailwayDo, this.yoySum.minusYearSummaryData.outboundRailwayDo); |
|
console.log('bizRailwayRunDataSaveOrUpdateDTOList ===>',this.form.bizRailwayRunDataSaveOrUpdateDTOList) |
|
let railwayName = this.form.bizRailwayRunDataSaveOrUpdateDTOList[index].railwayName; |
|
this.$request(getApp().globalData.baseUrl + '/api/biz/railwayRunData/getYoYMoM?statDate=' + this.form |
|
.statDate + '&statPeriod=' + this.form.statPeriod + '&railwayName=' + railwayName + '&_t=' + Date.parse(new Date()), {}, 'GET') |
|
.then(res => { |
|
let yoyMom = res.data; |
|
let obj = this.form.bizRailwayRunDataSaveOrUpdateDTOList[index]; |
|
this.form.bizRailwayRunDataSaveOrUpdateDTOList[index].inRailwayYomDo = this.$calcMom(obj.inboundRailwayDo,yoyMom.yesterdayData.inboundRailwayDo); |
|
this.form.bizRailwayRunDataSaveOrUpdateDTOList[index].inPepoleYoyDo = this.$calcMom(obj.inPepole,yoyMom.yesterdayData.inPepole); |
|
this.form.bizRailwayRunDataSaveOrUpdateDTOList[index].outRailwayYomDo = this.$calcMom(obj.outboundRailwayDo,yoyMom.yesterdayData.outboundRailwayDo); |
|
this.form.bizRailwayRunDataSaveOrUpdateDTOList[index].outPepoleYoyDo = this.$calcMom(obj.outPepole,yoyMom.yesterdayData.outPepole); |
|
this.form.bizRailwayRunDataSaveOrUpdateDTOList[index].inRailwayMomDo = this.$calcYoy(obj.inboundRailwayDo,yoyMom.lastYearData.inboundRailwayDo); |
|
this.form.bizRailwayRunDataSaveOrUpdateDTOList[index].inPepoleMomDo = this.$calcYoy(obj.inPepole,yoyMom.lastYearData.inPepole); |
|
this.form.bizRailwayRunDataSaveOrUpdateDTOList[index].outRailwayMomDo = this.$calcYoy(obj.outboundRailwayDo,yoyMom.lastYearData.outboundRailwayDo); |
|
this.form.bizRailwayRunDataSaveOrUpdateDTOList[index].outPepoleMomDo = this.$calcYoy(obj.outPepole,yoyMom.lastYearData.outPepole); |
|
this.$forceUpdate(); |
|
}) |
|
// this.form.inRailwayYomDo = this.$calcMom(this.form.inboundRailwayDo,this.yoyMom.yesterdayData.inboundRailwayDo); |
|
// this.form.inPepoleYoyDo = this.$calcMom(this.form.inPepole,this.yoyMom.yesterdayData.inPepole); |
|
// this.form.outRailwayYomDo = this.$calcMom(this.form.outboundRailwayDo,this.yoyMom.yesterdayData.outboundRailwayDo); |
|
// this.form.outPepoleYoyDo = this.$calcMom(this.form.outPepole,this.yoyMom.yesterdayData.outPepole); |
|
// this.form.inRailwayMomDo = this.$calcYoy(this.form.inboundRailwayDo,this.yoyMom.lastYearData.inboundRailwayDo); |
|
// this.form.inPepoleMomDo = this.$calcYoy(this.form.inPepole,this.yoyMom.lastYearData.inPepole); |
|
// this.form.outRailwayMomDo = this.$calcYoy(this.form.outboundRailwayDo,this.yoyMom.lastYearData.outboundRailwayDo); |
|
// this.form.outPepoleMomDo = this.$calcYoy(this.form.outPepole,this.yoyMom.lastYearData.outPepole); |
|
}, |
|
//切换当前编辑陆岛索引 |
|
changeRailwayNameIndexIndex(index) { |
|
let arr = this.form.bizRailwayRunDataSaveOrUpdateDTOList; |
|
console.log('arr ===>',arr,index) |
|
this.stationList[this.railwayNameIndex].isFinish = checkNotEmpty(arr[this.railwayNameIndex].inboundRailwayDo) && checkNotEmpty(arr[this.railwayNameIndex].inboundPassengersDo) && checkNotEmpty(arr[this.railwayNameIndex].inPepole) && checkNotEmpty(arr[this.railwayNameIndex].outboundRailwayDo) && checkNotEmpty(arr[this.railwayNameIndex].outboundPassengersDo) && checkNotEmpty(arr[this.railwayNameIndex].outPepole) ? true : false; |
|
console.log('isFinish===>',this.stationList[this.railwayNameIndex].isFinish) |
|
this.railwayNameIndex = index; |
|
// this.queryYoyMom(); |
|
}, |
|
//车站权限列表 |
|
queryStation(type) { |
|
this.$request(getApp().globalData.baseUrl + '/api/biz/railwayRunData/getCurrentSite?_t=' + Date.parse( |
|
new Date()), {}, 'GET').then(res => { |
|
let arr = []; |
|
res.data.map(item => { |
|
arr.push({railwayName: item, isFinish: false}) |
|
}) |
|
this.stationList = arr; |
|
if (type == 'add') { |
|
this.form.railwayName = arr[0].railwayName; |
|
this.railwayNameIndex = 0; |
|
this.form.bizRailwayRunDataSaveOrUpdateDTOList = []; |
|
this.stationList.map(item => { |
|
item.isFinish = false; |
|
this.form.bizRailwayRunDataSaveOrUpdateDTOList.push({ |
|
"inMark": "", |
|
"inPepole": '', |
|
"inPepoleMomDo": '', |
|
"inPepoleYoyDo": '', |
|
"inRailwayMomDo": '', |
|
"inRailwayYomDo": '', |
|
"inboundPassengersDo": '', |
|
"inboundRailwayDo": 0, |
|
"isHoliday": "", |
|
"outMark": "", |
|
"outPepole": '', |
|
"outPepoleMomDo": '', |
|
"outPepoleYoyDo": '', |
|
"outRailwayMomDo": '', |
|
"outRailwayYomDo": '', |
|
"outboundPassengersDo": '', |
|
"outboundRailwayDo": 0, |
|
"railwayName": item.railwayName, |
|
}) |
|
}) |
|
}else{ |
|
console.log('init station ==', this.form) |
|
let arr = JSON.parse(JSON.stringify(this.form.bizRailwayRunDataSaveOrUpdateDTOList)); |
|
this.form.bizRailwayRunDataSaveOrUpdateDTOList = []; |
|
this.stationList.map(item => { |
|
let idx = arr.findIndex(item2 => item2.railwayName == item.railwayName); |
|
if (idx > -1) { |
|
item.isFinish = checkNotEmpty(arr[idx].inboundRailwayDo) && checkNotEmpty(arr[idx].inboundPassengersDo) && checkNotEmpty(arr[idx].inPepole) && checkNotEmpty(arr[idx].outboundRailwayDo) && checkNotEmpty(arr[idx].outboundPassengersDo) && checkNotEmpty(arr[idx].outPepole) ? true : |
|
false; |
|
this.form.bizRailwayRunDataSaveOrUpdateDTOList.push(arr[idx]); |
|
} else { |
|
item.isFinish = false; |
|
this.form.bizRailwayRunDataSaveOrUpdateDTOList.push({ |
|
"inMark": "", |
|
"inPepole": '', |
|
"inPepoleMomDo": '', |
|
"inPepoleYoyDo": '', |
|
"inRailwayMomDo": '', |
|
"inRailwayYomDo": '', |
|
"inboundPassengersDo": '', |
|
"inboundRailwayDo": 0, |
|
"isHoliday": "", |
|
"outMark": "", |
|
"outPepole": '', |
|
"outPepoleMomDo": '', |
|
"outPepoleYoyDo": '', |
|
"outRailwayMomDo": '', |
|
"outRailwayYomDo": '', |
|
"outboundPassengersDo": '', |
|
"outboundRailwayDo":0, |
|
"railwayName": item.railwayName, |
|
}) |
|
} |
|
}) |
|
} |
|
this.form.bizRailwayRunDataSaveOrUpdateDTOList.map((item,index) => { |
|
this.calcYoyMom(index); |
|
}); |
|
}) |
|
}, |
|
//车站选择 |
|
// changeRailway(e) { |
|
// this.railwayNameIndex = e.detail.value; |
|
// this.form.railwayName = this.stationList[e.detail.value].railwayName; |
|
// this.queryYoyMom(); |
|
|
|
// }, |
|
//统计时段切换选择 |
|
changeStatPeriod(e) { |
|
this.index = e.detail.value; |
|
this.form.statPeriod = this.array[e.detail.value].dictValue; |
|
console.log('change 时段', this.form); |
|
if(this.pageType == 'add') { |
|
this.queryDetail(this.form.statDate, this.form.statPeriod); |
|
}else{ |
|
this.form.bizRailwayRunDataSaveOrUpdateDTOList.map((item,index) => { |
|
this.calcYoyMom(index); |
|
}) |
|
} |
|
}, |
|
//取消 |
|
doCancel() { |
|
uni.navigateBack(); |
|
}, |
|
//选择统计日期 |
|
bindDateChange(e) { |
|
this.form.statDate = e.detail.value; |
|
if(this.pageType == 'add') { |
|
this.queryDetail(this.form.statDate, this.form.statPeriod); |
|
}else{ |
|
this.form.bizRailwayRunDataSaveOrUpdateDTOList.map((item,index) => { |
|
this.calcYoyMom(index); |
|
}) |
|
} |
|
}, |
|
//时段 |
|
queryTime() { |
|
this.$request(getApp().globalData.baseUrl + '/api/dict/dictList?dictType=railway_time' + '&_t=' + Date |
|
.parse( |
|
new Date()), {}, 'GET').then(res => { |
|
this.array = res.data; |
|
if (this.pageType == 'add') { |
|
let now = new Date(); |
|
//11:00-13:30 默认选择0-12 |
|
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.form.statPeriod = '0012'; |
|
// let idx = this.array.findIndex(item => item.dictValue == '0012'); |
|
// this.index = idx > -1 ? idx : ''; |
|
// } else { |
|
this.form.statPeriod = '03'; //默认0-24 |
|
let idx = this.array.findIndex(item => item.dictValue == '03'); |
|
this.index = idx > -1 ? idx : ''; |
|
// } |
|
this.queryDetail(this.form.statDate, this.form.statPeriod); |
|
} else { |
|
let idx = this.array.findIndex(item => item.dictValue == this.form.statPeriod); |
|
this.index = idx > -1 ? idx : ''; |
|
} |
|
// this.queryYoyMom(); //同比环比 |
|
}) |
|
}, |
|
//确认提交 |
|
doSubmit() { |
|
// if (!checkNotEmpty(this.form.railwayName)) { |
|
// uni.showToast({ |
|
// title: '车站名称不能为空', |
|
// icon: 'none' |
|
// }) |
|
// return; |
|
// } |
|
// if (!checkNotEmpty(this.form.statDate) || !checkNotEmpty(this.form.statPeriod)) { |
|
// uni.showToast({ |
|
// title: '报送日期和时段不能为空', |
|
// icon: 'none' |
|
// }) |
|
// return; |
|
// } |
|
// if (!checkNotEmpty(this.form.inboundRailwayDo) || !checkNotEmpty(this.form.inboundPassengersDo) || ! |
|
// checkNotEmpty(this.form.inPepole)) { |
|
// uni.showToast({ |
|
// title: '入青终到车次、过站车次、人数不能为空', |
|
// icon: 'none' |
|
// }) |
|
// return; |
|
// } |
|
// if (!checkNotEmpty(this.form.outboundRailwayDo) || !checkNotEmpty(this.form.outboundPassengersDo) || ! |
|
// checkNotEmpty(this.form.outPepole)) { |
|
// uni.showToast({ |
|
// title: '出青终到车次、过站车次、人数不能为空', |
|
// icon: 'none' |
|
// }) |
|
// return; |
|
// } |
|
let checkList = true; |
|
console.log('bizRailwayRunDataSaveOrUpdateDTOList ===>',this.form.bizRailwayRunDataSaveOrUpdateDTOList) |
|
if (this.form.bizRailwayRunDataSaveOrUpdateDTOList.length > 0) { |
|
checkList = this.form.bizRailwayRunDataSaveOrUpdateDTOList.every(item => { |
|
return checkNotEmpty(item.inboundRailwayDo) && checkNotEmpty(item.inboundPassengersDo) && checkNotEmpty(item.inPepole) && checkNotEmpty(item.outboundRailwayDo) && checkNotEmpty(item.outboundPassengersDo) && checkNotEmpty(item.outPepole) |
|
}) |
|
} |
|
if (!checkList) { |
|
uni.showToast({ |
|
title: '进青/出青车站信息请填写完整', |
|
icon: 'none' |
|
}) |
|
return; |
|
} |
|
uni.showModal({ |
|
title: '提示', |
|
content: this.pageType == 'add' ? '您确认提交该条报送数据?' : '您确认将该条数据进行修改?', |
|
success: (res) => { |
|
if (res.confirm) { |
|
this.submitForm(); |
|
} |
|
} |
|
}) |
|
}, |
|
submitForm() { |
|
uni.showLoading({ |
|
title: '提交中...', |
|
mask: true |
|
}) |
|
let _data = JSON.parse(JSON.stringify(this.form.bizRailwayRunDataSaveOrUpdateDTOList)); |
|
_data.map(item => { |
|
item.statDate = this.form.statDate; |
|
item.statPeriod = this.form.statPeriod; |
|
}) |
|
this.$request(getApp().globalData.baseUrl + '/api/biz/railwayRunData/saveOrUpdateV2', _data, |
|
'POST').then(res => { |
|
uni.hideLoading(); |
|
if (res.code == 200) { |
|
uni.showToast({ |
|
title: '报送提交成功', |
|
icon: 'none', |
|
success: () => { |
|
if (this.form.id == undefined) { |
|
setTimeout(() => { |
|
uni.redirectTo({ |
|
url: '/pages/railway/railwayRunData/list' |
|
}) |
|
}, 300) |
|
} else { |
|
uni.navigateBack(); |
|
} |
|
} |
|
}) |
|
} |
|
}).catch(() => { |
|
uni.hideLoading(); |
|
}) |
|
}, |
|
} |
|
} |
|
</script> |
|
|
|
<style lang="scss" scoped> |
|
.form_warp { |
|
padding: 30rpx 30rpx 195rpx; |
|
|
|
.form_intro { |
|
color: #666; |
|
font-size: 26rpx; |
|
font-family: PingFang SC-Bold, PingFang SC; |
|
line-height: 48rpx; |
|
text-align: center; |
|
margin-bottom: 20rpx; |
|
|
|
.tel { |
|
color: #2D8CF0; |
|
font-weight: bold; |
|
} |
|
} |
|
|
|
.form_item_box { |
|
padding: 30rpx 20rpx 30rpx 30rpx; |
|
background-color: #fff; |
|
border-radius: 30rpx; |
|
|
|
//环比同比 |
|
.form_item_rate { |
|
background: #F6F6F6; |
|
border: 1px solid #F6F6F6; |
|
padding: 30rpx; |
|
margin-bottom: 30rpx; |
|
border-radius: 30rpx; |
|
|
|
.line { |
|
height: 1px; |
|
background-color: #dfdfdf; |
|
margin: 30rpx 0; |
|
} |
|
|
|
.rate_item { |
|
display: flex; |
|
justify-content: space-between; |
|
font-size: 24rpx; |
|
font-family: PingFang SC-Regular, PingFang SC; |
|
font-weight: 400; |
|
|
|
.rate_item_label { |
|
color: #666; |
|
font-size: 24rpx; |
|
} |
|
|
|
.rate_item_input { |
|
color: #333; |
|
font-size: 28rpx; |
|
} |
|
} |
|
|
|
&.danger { |
|
background-color: #FEF6F3; |
|
border-color: #F0622D; |
|
} |
|
} |
|
|
|
.form_item_title { |
|
color: #333; |
|
line-height: 42rpx; |
|
font-size: 30rpx; |
|
font-family: PingFang SC-Bold, PingFang SC; |
|
font-weight: bold; |
|
margin-bottom: 30rpx; |
|
} |
|
|
|
.form_item_remark { |
|
margin-bottom: 30rpx; |
|
|
|
.form_item_label { |
|
color: #333333; |
|
line-height: 42rpx; |
|
font-size: 30rpx; |
|
font-family: PingFang SC-Bold, PingFang SC; |
|
font-weight: bold; |
|
margin-bottom: 30rpx; |
|
} |
|
/deep/ .is-input-border{ |
|
border-radius: 20rpx !important; |
|
border: 1px solid #c1c1c1 !important; |
|
} |
|
} |
|
|
|
.form_item { |
|
display: flex; |
|
align-items: center; |
|
justify-content: space-between; |
|
line-height: 37rpx; |
|
font-family: PingFang SC-Regular, PingFang SC; |
|
font-weight: 400; |
|
margin-bottom: 30rpx; |
|
|
|
.form_item_label { |
|
width: 260rpx; |
|
color: #666666; |
|
font-size: 26rpx; |
|
word-break: break-all; |
|
} |
|
|
|
.form_item_input { |
|
color: #333; |
|
text-align: right; |
|
word-break: break-all; |
|
|
|
&.picker { |
|
flex: 1; |
|
// display: flex; |
|
// justify-content: space-between; |
|
|
|
// /deep/ picker { |
|
// flex: 1; |
|
// } |
|
|
|
.picker_select { |
|
color: #D4D4D4; |
|
font-size: 28rpx; |
|
font-family: PingFang SC-Regular, PingFang SC; |
|
font-weight: 400; |
|
text-align: right; |
|
} |
|
} |
|
|
|
//纯展示 |
|
&.text { |
|
color: #333333; |
|
line-height: 40rpx; |
|
font-size: 28rpx; |
|
font-family: PingFang SC-Regular, PingFang SC; |
|
font-weight: 400; |
|
} |
|
|
|
//输入框 |
|
&.form_input { |
|
/deep/ .is-input-border { |
|
border: 0 !important; |
|
|
|
.uni-easyinput__content-input { |
|
height: 35rpx !important; |
|
text-align: right; |
|
} |
|
} |
|
|
|
/deep/ .uni-date-x--border { |
|
border: 0 !important; |
|
|
|
.uni-date__x-input { |
|
// height: 35rpx !important; |
|
text-align: right; |
|
} |
|
} |
|
} |
|
} |
|
} |
|
} |
|
} |
|
|
|
.station_act { |
|
color: #2D8CF0; |
|
font-size: 24rpx; |
|
text-align: center; |
|
margin-bottom: 30rpx; |
|
} |
|
|
|
//收费站 |
|
.station_box { |
|
display: flex; |
|
flex-wrap: wrap; |
|
margin-top: 40rpx; |
|
|
|
.station_item { |
|
width: 173rpx; |
|
height: 60rpx; |
|
color: #666666; |
|
line-height: 60rpx; |
|
font-size: 26rpx; |
|
font-family: PingFang SC-Regular, PingFang SC; |
|
font-weight: 400; |
|
text-align: center; |
|
border-radius: 20rpx; |
|
border: 1rpx solid #C1C1C1; |
|
padding: 0 20rpx; |
|
margin-bottom: 40rpx; |
|
margin-right: 20rpx; |
|
overflow: hidden; |
|
|
|
&.active { |
|
position: relative; |
|
color: #1ECE5F; |
|
border-color: #1ECE5F; |
|
background: #EBFAF2; |
|
|
|
.tag { |
|
position: absolute; |
|
top: 0; |
|
right: 0; |
|
width: 34rpx; |
|
height: 23rpx; |
|
color: #fff; |
|
line-height: 23rpx; |
|
background: #1ECE5F; |
|
border-radius: 0rpx 20rpx 0rpx 5rpx; |
|
text-align: center; |
|
} |
|
} |
|
|
|
&.choosed { |
|
border-color: #2D8CF0 !important; |
|
} |
|
} |
|
} |
|
|
|
.foot_btn { |
|
position: fixed; |
|
left: 0; |
|
right: 0; |
|
bottom: 0; |
|
display: flex; |
|
justify-content: space-between; |
|
padding: 40rpx 30rpx; |
|
background-color: #f5f5f5; |
|
z-index: 11; |
|
|
|
.act_btn { |
|
width: 690rpx; |
|
height: 90rpx; |
|
color: #666666; |
|
font-size: 28rpx; |
|
line-height: 90rpx; |
|
font-family: PingFang SC-Regular, PingFang SC; |
|
font-weight: 400; |
|
text-align: center; |
|
background: #F6F6F6; |
|
border-radius: 100rpx; |
|
border: 1rpx solid #C1C1C1; |
|
|
|
&.blue { |
|
color: #fff; |
|
background: #2D8CF0; |
|
border-color: #2D8CF0; |
|
} |
|
} |
|
} |
|
|
|
//增行 |
|
.line { |
|
height: 1px; |
|
background-color: #E1E1E1; |
|
} |
|
|
|
.add_btn { |
|
height: 90rpx; |
|
line-height: 90rpx; |
|
color: #2D8CF0; |
|
font-size: 28rpx; |
|
font-family: PingFang SC-Regular, PingFang SC; |
|
font-weight: 400; |
|
text-align: center; |
|
background: #ECF5FF; |
|
border-radius: 30rpx; |
|
border: 2rpx solid #2D8CF0; |
|
margin-top: 30rpx; |
|
} |
|
|
|
.tab_box { |
|
display: flex; |
|
justify-content: space-around; |
|
|
|
.tab_nav { |
|
color: #999999; |
|
line-height: 42rpx; |
|
font-size: 30rpx; |
|
font-family: PingFang SC-Regular, PingFang SC; |
|
font-weight: 400; |
|
padding-bottom: 25rpx; |
|
|
|
&.active { |
|
position: relative; |
|
color: #2D8CF0; |
|
font-weight: bold; |
|
|
|
&::after { |
|
position: absolute; |
|
content: ''; |
|
left: 50%; |
|
bottom: 0; |
|
width: 74rpx; |
|
height: 6rpx; |
|
background: #2D8CF0; |
|
border-radius: 100rpx; |
|
margin-left: -37rpx; |
|
} |
|
} |
|
} |
|
} |
|
|
|
button { |
|
background-color: #007aff; |
|
color: #ffffff; |
|
} |
|
</style>
|
|
|