<template>
	<view class="metering">
		<!-- <uni-forms :modelValue="form">
			<uni-forms-item label="长" name="long">
				<uni-easyinput type="text" v-model="form.long" placeholder="请输入姓名" />
			</uni-forms-item>
		</uni-forms> -->
		<u-row gutter="16" class="itemRow">
			<u-col span="2">
				长：
			</u-col>
			<u-col span="6">
				<uni-easyinput v-model="form.long"></uni-easyinput>
			</u-col>
		</u-row>
		<u-row gutter="16" class="itemRow">
			<u-col span="2">
				宽：
			</u-col>
			<u-col span="6">
				<uni-easyinput v-model="form.wide"></uni-easyinput>
			</u-col>
		</u-row>
		<u-row gutter="16" class="itemRow">
			<u-col span="2">
				高：
			</u-col>
			<u-col span="6">
				<uni-easyinput v-model="form.high"></uni-easyinput>
			</u-col>
		</u-row>
		<u-row gutter="16" class="itemRow">
			<u-col span="2">
				毛重：
			</u-col>
			<u-col span="6">
				<uni-easyinput v-model="form.brgew"></uni-easyinput>
			</u-col>
		</u-row>
		<u-row gutter="16" class="itemRow">
			<u-col span="2">
				箱重：
			</u-col>
			<u-col span="6">
				<uni-easyinput v-model="form.zxntgew"></uni-easyinput>
			</u-col>
		</u-row>
		<u-row gutter="16" class="itemRow">
			<u-col span="2">
				净重：
			</u-col>
			<u-col span="6">
				<uni-easyinput v-model="weight" disabled></uni-easyinput>
			</u-col>
		</u-row>
	</view>
</template>

<script>
export default {
	components: {
	},
	data() {
		return {
			
		};
	},
	created() {
	},
	props:{
		form: {
			type: Object,
			default: function () {
				return {};
			}
		}
	},
	computed:{
		weight(){
			return (this.form.brgew-0) - (this.form.zxntgew-0)
		}
	},
	methods: {
	}
};
</script>

<style lang="scss" scoped>
	.metering{
		border-radius: 20rpx;
		margin: 20rpx;
		padding: 20rpx;
		background: #fff;
	}
	.itemRow{
		margin-bottom: 10rpx;
	}
</style>
