<template>
	<view>
		<uni-forms :modelValue="basicFrom">
			<uni-forms-item label="车牌号:" name="CarPlate" label-align="right" label-width="120px">
				<uni-easyinput type="text" v-model.trim="basicFrom.CarPlate" :disabled="true" :clear="false"/>
			</uni-forms-item>
			<uni-forms-item label="车辆识别码:" name="CarVin" label-align="right" label-width="120px">
				<uni-easyinput type="text" v-model.trim="basicFrom.CarVin" :disabled="true" />
			</uni-forms-item>
			<uni-forms-item label="电池距离:" name="CarDistance" label-align="right" label-width="120px">
				<uni-easyinput type="text" v-model.trim="basicFrom.CarDistance" :disabled="true" :clear="false" />
			</uni-forms-item>
			<uni-forms-item label="RFID:" name="frid" label-align="right" label-width="120px">
				<uni-easyinput type="text" v-model.trim="basicFrom.frid" placeholder="点击下方按钮读取RFID卡号" :clear="false" />
				<uni-button style="margin-top: 10px;" @click="redHandle">读取</uni-button>
			</uni-forms-item>
			<uni-forms-item label="RFID验证:" name="epcFour" label-align="right" label-width="120px">
				<uni-easyinput type="text" v-model.trim="value" @input="inputHandle" placeholder="请输入RFID后四位再次验证" :clear="false" />
			</uni-forms-item>
		</uni-forms>
	</view>
	<!-- 剩个已充时长和落座信号没有对字段 -->
</template>

<script>
	export default {
		name: 'BasicDrawer',
		props: ['basicFrom','range'],
		data() {
			return {
				// getbasicFrom:{}
				dataForm: {},
				value: null,
			}
		},
		watch: {
			basicFrom: {
				deep: true,
				handler(val) {
					this.dataForm = val
				}
			}
		},
		methods:{
			changeId(e) {
				
			},
			inputHandle(e) {
				this.$emit('inputHandle', e)
				// console.log(e, '111')
				// this.basicFrom.epcFour = e.toUpperCase();
			},
			//读取frid
			redHandle() {
				this.$emit('redHandle')
			}
		}
	}
</script>
<style lang="scss" scoped>
	::v-deep .uni-forms-item__content {
		background: rgba(255, 255, 255, 0);
		// border-radius: 2px 2px 2px 2px;
		// border: 1px solid #263042;

		.uni-easyinput__content {
			background: none !important;
			border: none !important;
			color: #fff;
			width: 238px !important;
		}
	}
	::v-deep .uni-forms-item {
		width: 100% !important;
	}
	::v-deep .uni-icons{
		display: none;
	}
	.button {
		width: 40px;
		
	}
</style>