|  |  | @ -445,7 +445,8 @@ | 
			
		
	
		
			
				
					|  |  |  | </el-form-item> | 
			
		
	
		
			
				
					|  |  |  | <el-form-item label="上传照片" v-if="documentType == 10"> | 
			
		
	
		
			
				
					|  |  |  | <div v-if="documentType == 10"> | 
			
		
	
		
			
				
					|  |  |  | <el-upload action="#" list-type="picture-card" size="middle" :auto-upload="false" | 
			
		
	
		
			
				
					|  |  |  | <Cropper @change="getFaceData($event)"></Cropper> | 
			
		
	
		
			
				
					|  |  |  | <!-- <el-upload action="#" list-type="picture-card" size="middle" :auto-upload="false" | 
			
		
	
		
			
				
					|  |  |  | :modal-append-to-body="false"> | 
			
		
	
		
			
				
					|  |  |  | <i slot="default" class="el-icon-plus"></i> | 
			
		
	
		
			
				
					|  |  |  | <div slot="file" slot-scope="{ file }"> | 
			
		
	
	
		
			
				
					|  |  | @ -465,7 +466,7 @@ | 
			
		
	
		
			
				
					|  |  |  | </el-upload> | 
			
		
	
		
			
				
					|  |  |  | <el-dialog :visible.sync="dialogVisible" :modal-append-to-body="false"> | 
			
		
	
		
			
				
					|  |  |  | <img width="100%" :src="dialogImageUrl" alt="" /> | 
			
		
	
		
			
				
					|  |  |  | </el-dialog> | 
			
		
	
		
			
				
					|  |  |  | </el-dialog> --> | 
			
		
	
		
			
				
					|  |  |  | </div> | 
			
		
	
		
			
				
					|  |  |  | </el-form-item> | 
			
		
	
		
			
				
					|  |  |  | <el-form-item label="指纹" v-if="documentType == 11"> | 
			
		
	
	
		
			
				
					|  |  | @ -750,6 +751,7 @@ import zw from "./zw.vue" | 
			
		
	
		
			
				
					|  |  |  | import getFinger from "./getFinger.vue" | 
			
		
	
		
			
				
					|  |  |  | import md5 from 'js-md5' | 
			
		
	
		
			
				
					|  |  |  | import ICINLocker from "../utils/equipment.js" | 
			
		
	
		
			
				
					|  |  |  | import Cropper from "../components/cropperJs/index.vue"; | 
			
		
	
		
			
				
					|  |  |  | import { | 
			
		
	
		
			
				
					|  |  |  | timestampToTime, | 
			
		
	
		
			
				
					|  |  |  | dec2hex, | 
			
		
	
	
		
			
				
					|  |  | @ -1107,7 +1109,8 @@ export default { | 
			
		
	
		
			
				
					|  |  |  | freeUserTitle: '冻结用户', | 
			
		
	
		
			
				
					|  |  |  | userTypeList: [], | 
			
		
	
		
			
				
					|  |  |  | maxDateTime: '', | 
			
		
	
		
			
				
					|  |  |  | minDateTime: '' | 
			
		
	
		
			
				
					|  |  |  | minDateTime: '', | 
			
		
	
		
			
				
					|  |  |  | faceData: '' | 
			
		
	
		
			
				
					|  |  |  | }; | 
			
		
	
		
			
				
					|  |  |  | }, | 
			
		
	
		
			
				
					|  |  |  | computed: { | 
			
		
	
	
		
			
				
					|  |  | @ -1140,7 +1143,8 @@ export default { | 
			
		
	
		
			
				
					|  |  |  | personLi, | 
			
		
	
		
			
				
					|  |  |  | zw, getFinger, | 
			
		
	
		
			
				
					|  |  |  | contrast, | 
			
		
	
		
			
				
					|  |  |  | NumberGrow | 
			
		
	
		
			
				
					|  |  |  | NumberGrow, | 
			
		
	
		
			
				
					|  |  |  | Cropper | 
			
		
	
		
			
				
					|  |  |  | }, | 
			
		
	
		
			
				
					|  |  |  | mounted() { | 
			
		
	
		
			
				
					|  |  |  | // 获取全部合同 | 
			
		
	
	
		
			
				
					|  |  | @ -1173,6 +1177,9 @@ export default { | 
			
		
	
		
			
				
					|  |  |  | this.$store.commit("increment", 1); | 
			
		
	
		
			
				
					|  |  |  | }, | 
			
		
	
		
			
				
					|  |  |  | methods: { | 
			
		
	
		
			
				
					|  |  |  | getFaceData(val){ | 
			
		
	
		
			
				
					|  |  |  | this.faceData = val.split(',')[1] | 
			
		
	
		
			
				
					|  |  |  | }, | 
			
		
	
		
			
				
					|  |  |  | // 获取全部合同 | 
			
		
	
		
			
				
					|  |  |  | getLeasesList() { | 
			
		
	
		
			
				
					|  |  |  | let data = { | 
			
		
	
	
		
			
				
					|  |  | @ -4449,8 +4456,28 @@ export default { | 
			
		
	
		
			
				
					|  |  |  | return false | 
			
		
	
		
			
				
					|  |  |  | } | 
			
		
	
		
			
				
					|  |  |  | if (documentType == 10) { | 
			
		
	
		
			
				
					|  |  |  | this.$message.error("人脸暂未开放"); | 
			
		
	
		
			
				
					|  |  |  | return | 
			
		
	
		
			
				
					|  |  |  | if (pzname == '') { | 
			
		
	
		
			
				
					|  |  |  | pzname = '人脸' + sort | 
			
		
	
		
			
				
					|  |  |  | } | 
			
		
	
		
			
				
					|  |  |  | let str = { | 
			
		
	
		
			
				
					|  |  |  | username: this.voucher.username, | 
			
		
	
		
			
				
					|  |  |  | pzname: pzname, | 
			
		
	
		
			
				
					|  |  |  | userTelephone: this.drawerRow.info.userTelephone, | 
			
		
	
		
			
				
					|  |  |  | userPassword: this.drawerRow.info.userPassword, | 
			
		
	
		
			
				
					|  |  |  | faceData: this.faceData, | 
			
		
	
		
			
				
					|  |  |  | password: "", | 
			
		
	
		
			
				
					|  |  |  | passwordStartTime: moment(this.value2[0]).format('YYYYMMDDHHmmss'), | 
			
		
	
		
			
				
					|  |  |  | passwordEndTime: moment(this.value2[1]).format('YYYYMMDDHHmmss'), | 
			
		
	
		
			
				
					|  |  |  | order: 6220 | 
			
		
	
		
			
				
					|  |  |  | } | 
			
		
	
		
			
				
					|  |  |  | let data = { | 
			
		
	
		
			
				
					|  |  |  | cardId: this.drawerRow.id, | 
			
		
	
		
			
				
					|  |  |  | content: JSON.stringify(str), | 
			
		
	
		
			
				
					|  |  |  | type: documentType, | 
			
		
	
		
			
				
					|  |  |  | startTime: parseInt( moment(this.value2[0]).valueOf() / 1000), | 
			
		
	
		
			
				
					|  |  |  | endTime: parseInt(moment(this.value2[1]).valueOf() / 1000), | 
			
		
	
		
			
				
					|  |  |  | }; | 
			
		
	
		
			
				
					|  |  |  | return false | 
			
		
	
		
			
				
					|  |  |  | } else if (documentType == 11) { | 
			
		
	
		
			
				
					|  |  |  | var fingerprint = localStorage.getItem("fingerprint"); | 
			
		
	
		
			
				
					|  |  |  | var indexofstr = fingerprint.indexOf(',') | 
			
		
	
	
		
			
				
					|  |  | @ -4578,7 +4605,6 @@ export default { | 
			
		
	
		
			
				
					|  |  |  | is: false, | 
			
		
	
		
			
				
					|  |  |  | }; | 
			
		
	
		
			
				
					|  |  |  | } | 
			
		
	
		
			
				
					|  |  |  |  | 
			
		
	
		
			
				
					|  |  |  | var data = { | 
			
		
	
		
			
				
					|  |  |  | cardId: this.drawerRow.id, | 
			
		
	
		
			
				
					|  |  |  | content: JSON.stringify(str), | 
			
		
	
	
		
			
				
					|  |  | @ -4587,9 +4613,13 @@ export default { | 
			
		
	
		
			
				
					|  |  |  | endTime: moment(this.value2[1]).valueOf() / 1000 | 
			
		
	
		
			
				
					|  |  |  | }; | 
			
		
	
		
			
				
					|  |  |  | httpPost(data, this.$api.addCertificates).then((res) => { | 
			
		
	
		
			
				
					|  |  |  | this.$message.success('添加成功') | 
			
		
	
		
			
				
					|  |  |  | this.roomstatus1 = true; | 
			
		
	
		
			
				
					|  |  |  | this.getcertificate(); | 
			
		
	
		
			
				
					|  |  |  | if(res.success){ | 
			
		
	
		
			
				
					|  |  |  | this.$message.success('添加成功') | 
			
		
	
		
			
				
					|  |  |  | this.roomstatus1 = true; | 
			
		
	
		
			
				
					|  |  |  | this.getcertificate(); | 
			
		
	
		
			
				
					|  |  |  | }else{ | 
			
		
	
		
			
				
					|  |  |  | this.$message.error('添加失败') | 
			
		
	
		
			
				
					|  |  |  | } | 
			
		
	
		
			
				
					|  |  |  | }); | 
			
		
	
		
			
				
					|  |  |  | }, | 
			
		
	
		
			
				
					|  |  |  | // 重新下发凭证 | 
			
		
	
	
		
			
				
					|  |  | 
 |