<template>
	<view class='container uni-column'>
		<view class='nav uni-row'>
			<view v-for="(item,index) in statusList" :key="index" :class="{'selecter':singleSelectd(item)}">
				<text @click='selectedStatus(item)'> {{item['name']}}</text>
			</view>
		</view>
		<!-- 待周转页面 -->
		<view class="padding-container" v-if='selectedInfo.id == 4'>
			<view class="scroll-container">
				<!-- <uni-section title="本地数据" type="line" padding style="height: calc(100vh - 100px);"> -->
				<!-- <uni-data-picker placeholder="请选车间与周转区" popup-title="请选择所在车间与周转区" :localdata="dataTree"
					v-model="classes" @change="onchange" @nodeclick="onnodeclick" @popupopened="onpopupopened"
					@popupclosed="onpopupclosed">
				</uni-data-picker> -->
				<view
					style="font-size: 30rpx;font-weight: bold; flex-direction: row; display: inline-block; line-height: 35px; height: 38px;">
					<uni-data-select v-model="workshopId" :localdata="dataTree" :clear="true" placeholder="请选择车间"
						@change="handleSelectedWorkshopChange" style="background-color: #ffffff;"></uni-data-select>
					<uni-data-select v-model="turnoverId" :localdata="dataChildren" :clear="true" plac
						placeholder="请选择周转区" @change="handleSelectedTurnoverIdChange"
						style="background-color: #ffffff;"></uni-data-select>
				</view>
				<!-- </uni-section> -->
				<view v-if="listData.length == 0" style="color: #999;margin: 50% auto;">
					<text>暂无待周转批次</text>
				</view>
				<view v-else v-for="(item, index) in listData" :key="index"
					:class="{'list-item':true,'selected':isSelected(item)}">
					<!-- @click="handleSelection(item)" -->
					<view class="title-container uni-row">
						<view class="title uni-row">
							<text class="label">{{ item['turnoverArea'] }}</text>
							<text class="label code">{{ item['preDeptName'] }}</text>
							<text class="label code" style="margin-left: 16rpx;">→</text>
							<text class="label code" style="margin-left: 16rpx;">{{ item['deptName'] }}</text>
						</view>

						<view class="right-info uni-row">
							<view class="uni-row"><text class="label right">待周转</text></view>
						</view>
					</view>
					<view class="item-info uni-row"> <text class="label ">批次</text>
						<text class="label right">{{ item['lotCode'] }}</text>
					</view>
					<view class="item-info uni-row"> <text class="label">箱数</text>
						<text class="label right ">{{ item['carriers'] }}</text>
					</view>
					<view class="item-info uni-row">
						<text class="label">数量</text>
						<text class="label right">{{ item['daywork'].temporaryProcessQualifiedNum }}</text>
					</view>
					<view class="item-info uni-row">
						<text class="label">箱号</text>
						<text class="label right">{{ item['carrierName']}}</text>
					</view>
					<view class="item-info uni-row">
						<text class="label">申请时间</text>
						<text class="label right">{{ item['startTime']}}</text>
					</view>
					<view class="item-info uni-row" style="align-items: center;">
						<text class="label">申请人</text>
						<text class="label right">{{ item['nickName']}}</text>
						<view class="uni-row">
							<button v-if="item['turnoverType'] == 2" size="mini" style="
									color: #ffffff;background-color:  #1989fa;margin-right: 10rpx;"
								@click.stop="handleChangeDept(item)">变更工段</button>
							<button size="mini" @click.stop="handleClickProcessList(item)">&nbsp;工艺列表
							</button>
						</view>
					</view>
				</view>
			</view>
			<!-- 抽屉 -->
			<uni-drawer ref="showRight" mode="right" :mask-click="true">
				<view style="text-align: center; font-size: 48rpx; padding: 48rpx 0 24rpx 0;">工艺列表</view>
				<view style="font-size: 24rpx;text-align: center;color: red; margin-bottom: 16rpx;">
					仅显示当前工序及后面工艺
				</view>
				<scroll-view scroll-y="true" style="height: 82%;" @touchmove.stop>
					<view v-for="(item,index) in curProcessAfte" :key="index"
						style="padding: 8rpx 5% 8rpx 14%; border-top: 1px solid #cccccc">
						<text>{{ index + 1 }}.{{item.processAlias}}</text>
					</view>
				</scroll-view>
			</uni-drawer>
			<view class="bottom-btn-container uni-row">
				<button class="bottom-btn" @click="handleStartTurn">开始周转</button>
			</view>
		</view>
		<!-- 周转中页面 -->
		<view class='turnover-container' v-if='selectedInfo.id == 5'>
			<view class="scroll-container">
				<view v-if="lotList.length == 0" style="color: #999;margin: 50% auto;">
					<text>暂无周转中批次</text>
				</view>
				<!-- 循环周转中的数据 -->
				<view v-else class='item-container'>
					<!-- <view v-if="products.length > 0" class="turnover-title uni-row">
						<view class="uni-row" style="align-items: center;">
							<view><text class='title-color'>{{turnoverContentTitle}}箱</text></view>
							<view><text class="second-info">{{turnoverSecondTitle}}</text></view>
						</view>
						<view><text class="label">周转中</text></view>
					</view> -->
					<view :class="{'list-container':true,'selected':isSelected(item)}" v-for="(item,index) in lotList"
						@click="handleSelection(item)" :key='index'>
						<view class="turnover-title uni-row">
							<view class="uni-row" style="align-items: center;">
								<view><text class='title-color'>{{ item[0]['totalCarrier'] }}箱</text></view>
								<view><text class="second-info">目标工段: {{ item[0].deptName }}</text>
								</view>
							</view>
						</view>
						<view v-for="(lot,index) in item" :key="index" style="margin-bottom: 10rpx;">
							<view class="list-container-item product-description uni-row">
								<text class="label left-value">产品描述</text>
								<text class="label right-value">{{lot['productDescription']}}</text>
							</view>
							<view class="list-container-item uni-row">
								<text class="label left-value">目标</text>
								<text class="label right-value">{{item[0].preDeptName + '→' + item[0].deptName }}</text>
							</view>
							<view class="list-container-item uni-row">
								<text class="label left-value">批次</text>
								<text class="label right-value">{{lot['lotCode']}}</text>
							</view>

							<view class="list-container-item uni-row">
								<text class="label left-value">箱数</text>
								<text class="label right-value">{{lot['carrierName'].split('、').length}}</text>
							</view>
							<view class="list-container-item uni-row">
								<text class="label left-value">箱号</text>
								<text class="label right-value">{{lot['carrierName']}}</text>
							</view>
						</view>
					</view>
				</view>
			</view>
			<!-- <view class='bottom-btn-container uni-row'>
				<button type='success' class='bottom-btn' @click="handleScan">扫码确认送达</button>
			</view> -->
			<view class='bottom-btn-container-2 uni-column'>
				<view class="bottom-btn-line uni-row">
					<button class='bottom-btn' @click="handleScan" style="background-color: #03d111;">扫码确认送达</button>
				</view>
				<view class="bottom-btn-line uni-row">
					<button type='primary' class='bottom-btn'
						@click="handleConfirm('确认送达',store.itemStatus.received)">确认送达</button>
					<button class='bottom-btn' @click="handleConfirm('取消周转',store.itemStatus.pendingTurnover,true)"
						style="margin-left: 24rpx;background-color: coral;">取消周转</button>
				</view>
			</view>
		</view>
		<!-- 已送达页面 -->
		<view class='turnover-container' v-if='selectedInfo.id == 7'>
			<view class="scroll-container">
				<view v-if="deliveredList.length == 0" style="color: #999;margin: 50% auto;">
					<text>暂无已送达批次</text>
				</view>
				<!-- 循环已送达的数据 -->
				<view v-else class='item-container'>
					<view :class="{'list-container':true,'selected':isSelectedDelivered(item)}"
						v-for="(item,index) in deliveredList" @click="handleSelectionDelivered(item)" :key='index'>
						<view class="list-container-item product-description uni-row">
							<text class="label left-value">周转路径</text>
							<text class="">{{item.preDeptName + '→' + item.deptName }}</text>
						</view>
						<view class="list-container-item product-description uni-row">
							<text class="label left-value">产品描述</text>
							<text class="label right-value">{{item['productDescription']}}</text>
						</view>
						<view class="list-container-item uni-row">
							<text class="label left-value">批次</text>
							<text class="label right-value">{{item['lotCode']}}</text>
						</view>
						<view class="list-container-item uni-row">
							<text class="label left-value">箱数</text>
							<text class="label right-value">{{item['carrierName'].split('、').length}}</text>
						</view>
						<view class="list-container-item uni-row">
							<text class="label left-value">箱号</text>
							<text class="label right-value">{{item['carrierName']}}</text>
						</view>
					</view>
				</view>
			</view>
			<view class='bottom-btn-container uni-row'>
				<button type='primary' class='bottom-btn'
					@click="handleConfirm('取消送达',store.itemStatus.turnoveing)">取消送达</button>
			</view>
		</view>
	</view>
	<dialog-turnoverTask ref="turnoverTask"></dialog-turnoverTask>
	<dialog-changeTurnover ref="changeTurnoverDialog" @reflushTurnoverList="reflush()" />
</template>

<script setup>
	import {
		ref
	} from 'vue'
	import {
		onLoad,
		onShow
	} from '@dcloudio/uni-app'
	// import pending from './pending';
	// import turnover from './turnover';
	import {
		getDayWorkItemList,
		getItemList,
		getHandlingByCarrierCode
	} from '@/api/business/dayWorkItem.js'
	import {
		isTakeStock
	} from '@/api/business/taksStackLot.js'

	import {
		debounce
	} from '@/utils/common.js'
	import {
		updateDayWorkItem,
		updateDayWorkItemBatch,
		updateBatchBack
	} from '@/api/business/dayWorkItem.js'
	import {
		getDictInfoByType
	} from '@/api/dict/dict.js'
	import {
		getTreeData
	} from '@/api/business/workshop.js'
	import {
		store
	} from '../../store'
	const classes = ref(null)
	const dataTree = ref([])
	const dataChildren = ref([])

	const sum = ref(0)
	const pendingClass = ref({
		selecter: true
	})
	const turnoverClass = ref({
		selecter: false
	})
	const changeTurnoverDialog = ref(null)
	const selection = ref([])
	const selectedInfo = ref({})
	const curProcessAfte = ref([])
	const pendingShow = ref(true)
	const turnoverShow = ref(false)
	const listData = ref([])
	const products = ref([])
	const confirm = ref(null) // 弹窗组件
	const turnoverTask = ref(null) // 弹窗组件
	const lotList = ref([])
	const deliveredList = ref([])
	const showRight = ref(null) // 抽屉
	const workshopId = ref(null)
	const turnoverId = ref(null)
	const statusList = ref([{
			"id": 4,
			"name": "待周转"
		},
		{
			"id": 5,
			"name": "周转中"
		},
		// {
		// 	"id": 7,
		// 	"name": "已送达"
		// }
	])

	onLoad(() => {
		selectedInfo.value = statusList.value[0]
	})

	onShow(() => {
		// init();
		getWorkShops()
	})

	function getWorkShops() {
		console.log('getWorkShops')
		getTreeData().then(res => {
			console.log(res)
			if (res.code === 200) {
				dataTree.value = res.data
				workshopId.value = dataTree.value[0].value
				dataChildren.value = dataTree.value[0].children
				turnoverId.value = dataChildren.value.length > 0 ? dataChildren.value[0].value : null
				handleSelectedTurnoverIdChange()
			}
		})
	}

	// function handleScan() {
	// 	console.log('scan')
	// }

	function init() {
		uni.showLoading({
			title: '加载中'
		})
		Promise.all([getItemList({
				status: 4,
				//turnoverType设置值是为了筛选掉车间内周转
				workshopId: workshopId.value,
				turnoverId: turnoverId.value,
				turnoverType: 1
			}), getItemList({
				status: 5,
				turnoverType: 1,
				updaterId: store.userInfo.userId
			}), getItemList({
				status: 7,
				turnoverType: 1,
				updaterId: store.userInfo.userId
			})])
			.then(([res1, res2, res3]) => {
				//待周转
				if (res1.code == 200) {
					listData.value = res1.rows;
					// 设置箱数
					for (var i = 0; i < listData.value.length; i++) {
						listData.value[i].carriers = listData.value[i].carrierName == null ? 0 : listData.value[i]
							.carrierName.split('、').length;
					}
					console.log("待周转任务", res1)
				}
				//周转
				if (res2.code == 200) {
					// 通过dayworkId再分组
					const groupedRows = res2.rows.reduce((acc, item) => {
						const dept = item.deptId;
						if (acc.hasOwnProperty(dept)) {
							acc[dept].push(item);
						} else {
							acc[dept] = [item];
						}
						return acc;
					}, {});
					// groupedRows 是一个对象，其键是dayworkId，值是具有相同dayworkId的对象数组
					// 如果需要将它转换为二维数组，您可以使用 Object.values 方法
					lotList.value = Object.values(groupedRows);
					// 设置箱数
					for (let i = 0; i < lotList.value.length; i++) {
						lotList.value[i][0].totalCarrier = 0;
						for (let j = 0; j < lotList.value[i].length; j++) {
							lotList.value[i][0].totalCarrier += lotList.value[i][j].carrierName.split('、').length;
						}
					}
					console.log(lotList.value)
					console.log(res2.rows)
				}
				if (res3.code == 200) {
					deliveredList.value = res3.rows;
				}
				uni.hideLoading();
			})
	}
	//变更工段
	function handleChangeDept(item) {
		changeTurnoverDialog.value.open(item)
	}

	function handleClickProcessList(item) {
		let curProcessAfterList = [];
		console.log("工序列表", item)

		let nextIndex = 0;
		for (let i = 0; i < item.processSequence.length; i++) {
			if (item.processStepNumber == item.processSequence[i].processStepNumber) {
				nextIndex = i;
			}
		}
		for (let i = 0; i < item.processSequence.length; i++) {
			if (i >= nextIndex) {
				curProcessAfterList.push(item.processSequence[i]);
			}
		}
		if (item.status == 3) {
			curProcessAfterList.splice(0, 1)
		}
		console.log(curProcessAfterList)
		curProcessAfte.value = curProcessAfterList;
		showRight.value.open();
	}

	function reflush() {
		// turnoverContentTitle.value = 0;
		lotList.value = [];
		init();
	}

	function handleStartTurn() {
		isTakeStock().then(response => {
			if (response.data) {
				uni.showToast({
					icon: 'none',
					title: '正在盘点，不能开始周转',
					duration: 2000
				})
			} else {
				// if(selection.value.length > 0){
				// 	let msg = '是否确认周转?';
				// 	confirm.value.open(msg);
				// }
				// turnoverTask.value.open(selection.value);
				uni.navigateTo({
					url: "/pages/startTurnover/index"
				})
			}
		})
	}

	/**
	 * 确认后修改item方法
	 * @param str 弹窗显示的内容
	 * @param status 修改的状态
	 * @param isBack 是否为回退修改
	 */
	function handleConfirm(str, status, isBack = false) {
		if (selection.value.length > 0) {
			uni.showModal({
				title: '提示',
				content: `是否${str}?`,
				success: function(res) {
					if (res.confirm) {
						handleUpadteStatus(status, isBack);
					} else if (res.cancel) {

					}
				}
			})
		} else {
			uni.showToast({
				icon: 'none',
				title: `请选择后再点击${str}按钮`,
				duration: 2000
			})
		}
	}

	function handleUpadteStatus(status, isBack) {
		//盘点
		isTakeStock().then(response => {
			if (response.data) {
				uni.showToast({
					icon: 'none',
					title: '正在盘点，不能操作周转',
					duration: 2000
				})
			} else {
				// 设置周转状态
				for (let i = 0; i < selection.value.length; i++) {
					selection.value[i].status = status;
				}
				if (isBack) {
					updateBatchBack(selection.value).then(res => {
						if (res.code === 200) {
							uni.showToast({
								icon: 'success',
								title: '操作成功',
								duration: 2000
							});
							reflush();
						} else {
							uni.showToast({
								icon: 'none',
								title: '操作失败',
								duration: 2000
							});
						}
					})
				} else {
					updateDayWorkItemBatch(selection.value).then(res => {
						if (res.code === 200) {
							uni.showToast({
								icon: 'success',
								title: '操作成功',
								duration: 2000
							});
							reflush();
						} else {
							uni.showToast({
								icon: 'none',
								title: '操作失败',
								duration: 2000
							});
						}
					})
				}
				// 清空选中数组
				selection.value = [];
			}
		})
	}


	function isSelected(item) {
		//单选
		return selection.value == item;

		//多选
		// return selection.value.includes(item);
	}

	async function handleScan() {
		// 先判断是否在盘点中假设不在盘点中则可以继续
		const res = await isTakeStock()
		if (res.data) {
			uni.showToast({
				icon: 'none',
				title: '正在盘点，不能操作周转',
				duration: 2000
			})
			return
		}

		const mpaasScanModule = uni.requireNativePlugin("Mpaas-Scan-Module");
		if (mpaasScanModule) {
			// 调用插件的 mpaasScan 方法
			mpaasScanModule.mpaasScan({
					// 扫码识别类型，参数可多选，qrCode、barCode，
					// 如不设置，默认识别所有扫码类型，可能有些许影响识别效率
					scanType: ["qrCode", "barCode"],
					// 是否隐藏相册，默认false不隐藏
					hideAlbum: false,
				},
				(ret) => {
					let vehicleObj = {
						carrierCode: ret.resp_result
					};
					if (!vehicleObj.carrierCode || vehicleObj.carrierCode == "") {
						uni.showToast({
							icon: "none",
							title: "请扫载具码",
							duration: 1000
						})
						return;
					}
					getHandlingByCarrierCode({
						carrierCode: vehicleObj.carrierCode
					}).then(response => {
						if (response.code == 200) {
							reflush()
							debounce(handleScan, 700)
						} else {
							uni.showToast({
								icon: 'none',
								title: response.msg,
								duration: 2000
							})
						}
					})
				}
			);
		} else {
			// 测试时用
			getHandlingByCarrierCode({
				carrierCode: '900005'
			}).then(response => {
				if (response.code == 200) {
					reflush()
					debounce(handleScan, 700)
				} else {
					uni.showToast({
						icon: 'none',
						title: response.msg,
						duration: 2000
					})
				}
			})
		}
	}

	function handleSelection(item) {
		// 单选
		if (selection.value == item) {
			selection.value = []
		} else {
			selection.value = item;
		}
		console.log(selection.value, "selection");
	}

	function isSelectedDelivered(item) {
		//多选
		return selection.value.includes(item);
	}

	function handleSelectionDelivered(item) {
		//多选
		const buttonIndex = selection.value.findIndex(selectedItem => selectedItem === item);
		if (buttonIndex > -1) {
			selection.value.splice(buttonIndex, 1); // 取消选中
		} else {
			selection.value.push(item); // 选中
		}
	}

	function selectPending() {
		pendingClass.value['selecter'] = true;
		turnoverClass.value['selecter'] = false;
		pendingShow.value = true;
		turnoverShow.value = false;
	}

	function selectTurnover() {
		pendingClass.value['selecter'] = false;
		turnoverClass.value['selecter'] = true;
		pendingShow.value = false;
		turnoverShow.value = true;
	}

	function selectedStatus(item) {
		console.log(item)
		selectedInfo.value = item
	}

	function singleSelectd(item) {
		return selectedInfo.value == item
	}

	function onchange(e) {
		// console.log(e)
		// console.log(classes.value)
		if (e.detail.value.length == 0) {
			workshopId.value = null
			turnoverId.value = null
		} else if (e.detail.value.length == 1) {
			workshopId.value = classes.value
			turnoverId.value = null
		} else if (e.detail.value.length == 2) {
			turnoverId.value = classes.value
		}
		console.log(workshopId.value)
		console.log(turnoverId.value)
		reflush()
	}

	function onpopupopened(e) {
		// console.log('popupopend', e)
	}

	function onpopupclosed(e) {
		// console.log('onpopupclosed', e)
	}

	function onnodeclick(e) {
		// console.log('nodeclick', e)
	}

	function handleSelectedWorkshopChange() {
		const item = dataTree.value.find(e => e.value == workshopId.value)
		if (item != null) {
			dataChildren.value = item.children
			const currentItem = dataChildren.value.find(e => e.value == turnoverId.value)
			turnoverId.value = currentItem != null ? turnoverId.value : null
		} else {
			turnoverId.value = null
			dataChildren.value = []
		}
		reflush()
	}

	function handleSelectedTurnoverIdChange() {
		reflush()
	}
</script>

<style lang="scss">
	$navHeight: 48rpx;

	/* 导航栏样式 */
	.container {
		// height: calc(100% - $navHeight);
		height: 1500rpx;
		position: relative;
		top: $navHeight;
		background-color: #f5f5f5;
	}

	.selected {
		border: 1px solid #1684fc;
		border-radius: 8rpx;
		padding: 8rpx;
	}

	.nav {
		justify-content: space-around;
		// position: fixed;
		// top:0;
		width: 100%;
		height: $navHeight;
		border-bottom: 3rpx solid rgba(228, 231, 237, 1);
		background-color: rgba(255, 255, 255, 1);

		.img {
			width: 24rpx;
			height: 24rpx;
			position: fixed;
			right: 10rpx;
			top: 0;
		}
	}

	.selecter {
		height: 48rpx;
		color: rgba(25, 137, 250, 1);
		border-bottom: 3rpx solid rgba(25, 137, 250, 1);
	}

	/* 待周转样式 */
	.padding-container,
	.turnover-container {
		position: absolute;
		top: 56rpx;
		right: 0;
		bottom: 0rpx;
		left: 0;
		background-color: #f5f5f5;

		.scroll-container {
			position: absolute;
			top: 24rpx;
			right: 0;
			bottom: 136rpx;
			left: 0;
		}

		.bottom-btn-container {
			height: 10%;
			position: fixed;
			right: 0;
			bottom: 0;
			left: 0;
			height: 80rpx;
			border-top: 1px solid #999999;
			padding: 16rpx 32rpx;
			align-items: center;
			background-color: #fff;

			.bottom-btn {
				// padding-left: 0;
				// padding-top: 4rpx;
				flex: 1;
				font-size: 28rpx;
				color: #FFFFFF;
				background-color: #1684fc;
			}
		}

		.bottom-btn-container-2 {
			// height: 50px;
			position: fixed;
			right: 0;
			bottom: 0;
			left: 0;
			height: 140rpx;
			border-top: 1px solid #999999;
			padding: 16rpx 32rpx;
			align-items: center;
			background-color: #fff;

			.bottom-btn-line {
				display: flex;
				width: 100%;


				.bottom-btn {
					// padding-left: 0;
					// padding-top: 4rpx;
					flex: 1;
					width: 100%;
					font-size: 28rpx;
					color: #FFFFFF;
					background-color: #1684fc;
					margin-bottom: 4rpx;
				}

				.bottom-btn .success {
					background-color: #03d111;
				}
			}
		}
	}

	.padding-container {
		.scroll-container {
			max-height: 90%;
			overflow: auto;

			.list-item {
				background-color: #fff;
				padding: 0 24rpx;
				padding-bottom: 24rpx;
				margin: 0 24rpx;
				margin-bottom: 24rpx;
				border-radius: 8rpx;

				.title-container {
					justify-content: space-between;
					margin-top: 8rpx;
					margin-bottom: 16rpx;

					.title {
						height: 48rpx;
						align-items: center;

						.label {
							color: #1684fc;
							font-size: 32rpx;
							font-weight: bold;

							&.code {
								color: #000000;
								margin-left: 32rpx;
							}
						}
					}
				}

				.item-info {
					margin-bottom: 16rpx;

					.label {
						font-size: 28rpx;
						width: 160rpx;
						color: #808080;

						&.right {
							flex: 1;
							color: #000000;
						}
					}
				}

				.right-info {
					justify-content: flex-end;
					margin-top: 2rpx;

					.label {
						font-size: 28rpx;
						color: #808080;
					}
				}
			}
		}
	}

	/* 周转中样式 */
	.turnover-container {
		.scroll-container {
			height: 90%;
			overflow: scroll;

			.item-container {
				// height: 90%;
				// padding: 8rpx 0 32rpx 0;
				margin: 0 24rpx;
				margin-bottom: 24rpx;
				background-color: rgba(255, 255, 255, 1);
				border-radius: 8rpx;

				.turnover-title {
					width: auto;
					justify-content: space-between;
					margin: 16rpx;
					font-weight: bold;

					.label {
						font-size: 28rpx;
						color: #808080;
					}
				}

				.list-container {
					// margin: 16rpx 24rpx 16rpx 24rpx;
					width: calc(100% - 48rpx);
					margin: 16rpx auto;

					.list-container-item {
						border-bottom: 1px solid #999999;
						padding: 12rpx 8rpx;
						background-color: #EEF0F5;

						&.product-description {
							background-color: #ECF5FF;
						}

						.label {
							font-size: 28rpx;
							color: #999999;

							&.left-value {
								width: 152rpx;
							}

							&.right-value {
								flex: 1;
								color: #000000;
							}
						}
					}
				}

				.title-color {
					color: rgba(22, 132, 252, 1);
					font-size: 36rpx;
					font-weight: bold;
				}

				.second-info {
					font-size: 36rpx;
					font-weight: bold;
					margin-left: 32rpx;
				}

				.turnover-info {
					color: rgba(128, 128, 128, 1);
					position: absolute;
					top: 10rpx;
					right: 40rpx;
					font-size: 30rpx;
				}
			}
		}
	}
</style>