溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點(diǎn)擊 登錄注冊 即表示同意《億速云用戶服務(wù)條款》

VUE如何實(shí)現(xiàn)記賬憑證模塊組件

發(fā)布時(shí)間:2022-03-02 09:13:38 來源:億速云 閱讀:1016 作者:小新 欄目:開發(fā)技術(shù)

這篇文章給大家分享的是有關(guān)VUE如何實(shí)現(xiàn)記賬憑證模塊組件的內(nèi)容。小編覺得挺實(shí)用的,因此分享給大家做個(gè)參考,一起跟隨小編過來看看吧。

效果如下所示:

VUE如何實(shí)現(xiàn)記賬憑證模塊組件

<template>
	<div class="voucher-container">
		<div class="voucher_header">
			<div class="voucher_header_title">記賬憑證</div>
			<div class="voucher_header_number">單據(jù)號: {{voucher.numberId}}</div>
		</div>
		<table class="voucher" cellpadding="0" cellspacing="0">
			<thead>
				<tr>
					<th class="voucher_summary">摘要</th>
					<th class="voucher_subject">會計(jì)科目</th>
					<th class="voucher_money">
						<strong class="voucher_title">借方金額</strong>
						<div class="voucher_column voucher_unit">
							<span>億</span>
							<span>千</span>
							<span>百</span>
							<span>十</span>
							<span>萬</span>
							<span>元</span>
							<span>角</span>
							<span class="voucher_last">分</span>
						</div>
					</th>
						<strong class="voucher_title">貸方金額</strong>
				</tr>
			</thead>
			<tbody>
				<tr class="voucher_item" v-for="(item) in voucher.items" :key="item.id">
					<td class="voucher_summary">{{item.summart}}</td>
					<td class="voucher_subject">{{item.subject}}</td>
					<td class="voucher_debite">
						<div class="voucher_number"><money-format :number="item.debite"></money-format></div>
					</td>
					<td class="voucher_credit">
						<div class="voucher_number"><money-format :number="item.credit"></money-format></div>
			</tbody>
			<tfoot>
					<td class="voucher_total" colspan="2">
						合計(jì):
						<money-format :number="voucher.total" :chinese="true"></money-format>
						<div class="voucher_number"><money-format :number="voucher.debite" :colour="true"></money-format></div>
						<div class="voucher_number"><money-format :number="voucher.credit" :colour="true"></money-format></div>
			</tfoot>
		</table>
		<div class="voucher_footer">制單人:{{voucher.bookkeeper}}</div>
	</div>
</template>
<script>
import MoneyFormat from './MoneyFormat';
export default {
	name: 'Voucher',
	props: {
		voucher: {
			type: Object,
		}
	},
	components: {
		MoneyFormat
	}
};
</script>
<style lang="less" rel="stylesheet/less">
.voucher-container {
	height: 100%;
	width: 100%;
	overflow: hidden;
	margin: 0.625rem;
	padding: 0;
}
.voucher_header {
	padding-top: 20px;
	margin-bottom: 10px;
.voucher_header_title {
	float: left;
	display: inline;
	margin: -20px 130px 0px 100px;
	font: 28px/1.8 'Microsoft Yahei';
	text-align: center;
	text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2);
.voucher_header_number {
	text-align: left;
	margin-left: 120px;
.voucher_footer {
	margin: 10px;
	font-weight: bold;
.voucher {
	border-collapse: collapse;
	th,
	td {
		border: 1px solid #ccc;
		height: 35px;
	th {
		height: 48px;
		color: #555555;
		font-size: 14px;
		text-align: center;
		font-weight: bold;
		overflow: hidden;
	.voucher_title {
		display: block;
		height: 25px;
		line-height: 25px;
	.voucher_last {
		margin-right: 0;
		width: 18px;
	.voucher_money {
		font-size: 12px;
		min-width: 221px;
		span {
			float: left;
			display: inline;
			width: 19px;
			height: 100%;
			margin-right: 1px;
	.voucher_column,
	.voucher_credit,
	.voucher_debite {
		background-image: url(../assets/image/money_column.png);
		background-repeat: repeat-y;
	.voucher_summary {
		min-width: 6.25rem;
		word-break: break-all;
		word-wrap: break-word;
	.voucher_subject {
	.voucher_unit {
		height: 22px;
		line-height: 22px;
		font-weight: normal;
		border-top: 1px solid #dadada;
	.voucher_total {
		letter-spacing: 1px;
	.voucher_number {
		position: relative;
		font-family: 'tahoma';
		letter-spacing: 11px;
		text-align: right;
		right: -5px;
	.voucher_item {
</style>

感謝各位的閱讀!關(guān)于“VUE如何實(shí)現(xiàn)記賬憑證模塊組件”這篇文章就分享到這里了,希望以上內(nèi)容可以對大家有一定的幫助,讓大家可以學(xué)到更多知識,如果覺得文章不錯(cuò),可以把它分享出去讓更多的人看到吧!

向AI問一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。

vue
AI