headRight.vue 2.43 KB
<template>
	<div class="dv-content-body-head-list-right">
		<dv-border-box-12>
			<div>
				<div class="dv-content-body-head-list-right-title">{{ $gl('that month') }}</div>
				<div class="dv-content-body-head-list-right-details">
					<div class="dv-content-body-head-list-right-text">
						<div class="dv-content-body-head-list-right-text-digit">{{ result.receiptNum }}</div>
						<!-- <div class="dv-content-body-head-list-right-text-digit">2534</div> -->
						<div class="dv-content-body-head-list-right-text-library">{{ $gl('warehousing') }}</div>
					</div>
					<div class="dv-content-body-head-list-right-text">
						<div class="dv-content-body-head-list-right-text-digit">{{ result.shipmentNum }}</div>
						<!-- <div class="dv-content-body-head-list-right-text-digit">3609</div> -->
						<div class="dv-content-body-head-list-right-text-library">{{ $gl('outbound') }}</div>
					</div>
					<div class="dv-content-body-head-list-right-dataV"><dv-percent-pond :config="conf" style="width:100%;height:100%;" /></div>
				</div>
			</div>
		</dv-border-box-12>
	</div>
</template>

<script>
export default {
	data() {
		return {
			conf: {
				value: 0,
				borderWidth: 2,
			},

			result: {
				shipmentNum: 0, //出库量
				receiptNum: 0, //入库量
			},
		}
	},
	methods: {
		getData(data) {
			this.result.shipmentNum = data.shipmentNum

			this.result.receiptNum = data.receiptNum
			this.conf = {
				value: data.proportion,
				borderWidth: 2,
			}
		},
	},
}
</script>

<style lang="less" scoped>
.dv-content-body-head-list-right {
	width: 33vw;
	height: 95%;
	div {
		.dv-content-body-head-list-right-title {
			width: 100%;
			height: 20%;
			padding: 8px 0 0 22px;
			font-size: 1.5vw;
			color: aliceblue;
			font-weight: 800;
		}
		.dv-content-body-head-list-right-details {
			width: 96%;
			height: 19vh;
			display: flex;
			.dv-content-body-head-list-right-text {
				width: 34%;
				height: 50%;
				display: block;
				text-align: center;
				margin: 5px 0 0 13px;
				border: 2px solid rgb(4, 126, 213);
				border-radius: 10px;
				.dv-content-body-head-list-right-text-digit {
					width: 100%;
					height: 50%;
					font-size: 20px;
					color: #fff;
					line-height: 40px;
				}
				.dv-content-body-head-list-right-text-library {
					width: 100%;
					height: 50%;
					font-size: 15px;
					color: #fff;
				}
			}
			.dv-content-body-head-list-right-dataV {
				width: 12vw;
				height: 50%;
				margin: 5px 0 0 12px;
			}
		}
	}
}
</style>