|  |  | @ -179,15 +179,6 @@ | 
			
		
	
		
			
				
					|  |  |  |                  @click="handleComfirm">确 定</el-button> | 
			
		
	
		
			
				
					|  |  |  |     </div> | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     <el-dialog :visible.sync="dialogVisible" | 
			
		
	
		
			
				
					|  |  |  |                width="550px" | 
			
		
	
		
			
				
					|  |  |  |                top="5vh" | 
			
		
	
		
			
				
					|  |  |  |                append-to-body> | 
			
		
	
		
			
				
					|  |  |  |       <img width="100%" | 
			
		
	
		
			
				
					|  |  |  |            :src="dialogImageUrl" | 
			
		
	
		
			
				
					|  |  |  |            alt=""> | 
			
		
	
		
			
				
					|  |  |  |     </el-dialog> | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |   </div> | 
			
		
	
		
			
				
					|  |  |  | </template> | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
	
		
			
				
					|  |  | @ -203,8 +194,7 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |   data () { | 
			
		
	
		
			
				
					|  |  |  |     return { | 
			
		
	
		
			
				
					|  |  |  |       formType: 'add', //表单操作类型 add新增,edit编辑,detail详情 | 
			
		
	
		
			
				
					|  |  |  |       hideUploadEdit: false, // 隐藏'上传按钮' | 
			
		
	
		
			
				
					|  |  |  |       limitNum: 1, | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |       enterType: '1',//录入方式1 手动输入  2  选择居民 | 
			
		
	
		
			
				
					|  |  |  |       isFromResi: false,//是否从已有居民信息中选择 | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
	
		
			
				
					|  |  | @ -218,12 +208,13 @@ export default { | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |       btnDisable: false, | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |       icVaccineId: '', | 
			
		
	
		
			
				
					|  |  |  |       vaccineId: '', | 
			
		
	
		
			
				
					|  |  |  |       formData: { | 
			
		
	
		
			
				
					|  |  |  |         icVaccineId: '', | 
			
		
	
		
			
				
					|  |  |  |         vaccineId: '', | 
			
		
	
		
			
				
					|  |  |  |         agencyId: '',//当前网格所属组织Id	 | 
			
		
	
		
			
				
					|  |  |  |         userId: '',//居民端小程序的用户id、数字社区的icResiUserId、其他情况无值	 | 
			
		
	
		
			
				
					|  |  |  |         userType: 'icresi',//居民端小程序的人:resi;数字社区的居民:icresi;导入的:import;同步的:synchro	 | 
			
		
	
		
			
				
					|  |  |  |         isResiUser: "0",//是否客户下居民(0:否  1:是)	 | 
			
		
	
		
			
				
					|  |  |  |         name: '', | 
			
		
	
		
			
				
					|  |  |  |         idCard: '', | 
			
		
	
		
			
				
					|  |  |  |         mobile: '', | 
			
		
	
	
		
			
				
					|  |  | @ -253,7 +244,7 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |       this.formData.content = '' | 
			
		
	
		
			
				
					|  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     async initForm (type, icVaccineId) { | 
			
		
	
		
			
				
					|  |  |  |     async initForm (type, row) { | 
			
		
	
		
			
				
					|  |  |  |       this.startLoading() | 
			
		
	
		
			
				
					|  |  |  |       this.formData.agencyId = this.agencyId | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
	
		
			
				
					|  |  | @ -262,11 +253,16 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |       this.enterType = '1' | 
			
		
	
		
			
				
					|  |  |  |       this.formType = type | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |       if (icVaccineId) { | 
			
		
	
		
			
				
					|  |  |  |         this.icVaccineId = icVaccineId | 
			
		
	
		
			
				
					|  |  |  |         this.formData.icVaccineId = icVaccineId | 
			
		
	
		
			
				
					|  |  |  |         this.isFromResi = false | 
			
		
	
		
			
				
					|  |  |  |         await this.loadFormData() | 
			
		
	
		
			
				
					|  |  |  |       if (row) { | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |         if (row.userId) { | 
			
		
	
		
			
				
					|  |  |  |           this.isFromResi = true | 
			
		
	
		
			
				
					|  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |         row.content = '' | 
			
		
	
		
			
				
					|  |  |  |         row.isSelChannel = false | 
			
		
	
		
			
				
					|  |  |  |         row.channel = [] | 
			
		
	
		
			
				
					|  |  |  |         this.formData = { ...row } | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |       this.endLoading() | 
			
		
	
	
		
			
				
					|  |  | @ -283,8 +279,10 @@ export default { | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |       this.$refs['ref_form'].resetFields(); | 
			
		
	
		
			
				
					|  |  |  |       if (value === '2') { | 
			
		
	
		
			
				
					|  |  |  |         this.formData.isResiUser = "1" | 
			
		
	
		
			
				
					|  |  |  |         this.isFromResi = true | 
			
		
	
		
			
				
					|  |  |  |       } else { | 
			
		
	
		
			
				
					|  |  |  |         this.formData.isResiUser = "0" | 
			
		
	
		
			
				
					|  |  |  |         this.isFromResi = false | 
			
		
	
		
			
				
					|  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
	
		
			
				
					|  |  | @ -335,10 +333,9 @@ export default { | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     async loadFormData () { | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |       // const url = 'http://yapi.elinkservice.cn/mock/245/epmetuser/icNat/detail' | 
			
		
	
		
			
				
					|  |  |  |       const url = '/epmetuser/icNat/detail' | 
			
		
	
		
			
				
					|  |  |  |       let params = { | 
			
		
	
		
			
				
					|  |  |  |         icVaccineId: this.icVaccineId, | 
			
		
	
		
			
				
					|  |  |  |         vaccineId: this.vaccineId, | 
			
		
	
		
			
				
					|  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  |       const { data, code, msg } = await requestPost(url, params) | 
			
		
	
		
			
				
					|  |  |  |       if (code === 0) { | 
			
		
	
	
		
			
				
					|  |  | @ -356,7 +353,7 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |         // } | 
			
		
	
		
			
				
					|  |  |  |         console.log(this.formData.isSelChannel) | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |         this.formData.icVaccineId = this.icVaccineId | 
			
		
	
		
			
				
					|  |  |  |         this.formData.vaccineId = this.vaccineId | 
			
		
	
		
			
				
					|  |  |  |         if (this.formData.userId) { | 
			
		
	
		
			
				
					|  |  |  |           this.isFromResi = true | 
			
		
	
		
			
				
					|  |  |  |         } else { | 
			
		
	
	
		
			
				
					|  |  | @ -375,20 +372,14 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |           app.util.validateRule(messageObj) | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |         } else { | 
			
		
	
		
			
				
					|  |  |  |           this.addNat() | 
			
		
	
		
			
				
					|  |  |  |           this.addVaccin() | 
			
		
	
		
			
				
					|  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |       }) | 
			
		
	
		
			
				
					|  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     async addNat () { | 
			
		
	
		
			
				
					|  |  |  |       // if (this.imgLoading) { | 
			
		
	
		
			
				
					|  |  |  |       //   this.$message({ | 
			
		
	
		
			
				
					|  |  |  |       //     type: 'warning', | 
			
		
	
		
			
				
					|  |  |  |       //     message: '正在上传图片,请稍候重试' | 
			
		
	
		
			
				
					|  |  |  |       //   }) | 
			
		
	
		
			
				
					|  |  |  |       //   return false; | 
			
		
	
		
			
				
					|  |  |  |       // } | 
			
		
	
		
			
				
					|  |  |  |     async addVaccin () { | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |       const regPhone = /^1(3|4|5|6|7|8|9)\d{9}$/; //手机号码 | 
			
		
	
		
			
				
					|  |  |  |       if (regPhone.test(this.formData.mobile) === false) { | 
			
		
	
		
			
				
					|  |  |  |         this.btnDisable = false | 
			
		
	
	
		
			
				
					|  |  | @ -424,6 +415,8 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |         this.formData.content = '' | 
			
		
	
		
			
				
					|  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |       this.btnDisable = true | 
			
		
	
		
			
				
					|  |  |  |       setTimeout(() => { | 
			
		
	
		
			
				
					|  |  |  |         this.btnDisable = false | 
			
		
	
	
		
			
				
					|  |  | @ -431,13 +424,13 @@ export default { | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |       let url = '' | 
			
		
	
		
			
				
					|  |  |  |       if (this.formType === 'add') { | 
			
		
	
		
			
				
					|  |  |  |         url = '/epmetuser/icNat/add' | 
			
		
	
		
			
				
					|  |  |  |         // url = "http://yapi.elinkservice.cn/mock/102/epmetuser/icNat/add" | 
			
		
	
		
			
				
					|  |  |  |         this.formData.icVaccineId = '' | 
			
		
	
		
			
				
					|  |  |  |         url = '/epmetuser/icVaccine/add' | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |         this.formData.vaccineId = '' | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |       } else { | 
			
		
	
		
			
				
					|  |  |  |         url = '/epmetuser/icNat/edit' | 
			
		
	
		
			
				
					|  |  |  |         // url = "http://yapi.elinkservice.cn/mock/245/epmetuser/icNat/edit" | 
			
		
	
		
			
				
					|  |  |  |         url = '/epmetuser/icVaccine/edit' | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
	
		
			
				
					|  |  | @ -448,8 +441,9 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |           type: 'success', | 
			
		
	
		
			
				
					|  |  |  |           message: '操作成功' | 
			
		
	
		
			
				
					|  |  |  |         }) | 
			
		
	
		
			
				
					|  |  |  |         this.resetData() | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |         this.$emit('dialogOk') | 
			
		
	
		
			
				
					|  |  |  |         this.resetData() | 
			
		
	
		
			
				
					|  |  |  |         this.btnDisable = false | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |       } else { | 
			
		
	
	
		
			
				
					|  |  | @ -467,15 +461,14 @@ export default { | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     resetData () { | 
			
		
	
		
			
				
					|  |  |  |       this.icVaccineId = '' | 
			
		
	
		
			
				
					|  |  |  |       this.fileList = [] | 
			
		
	
		
			
				
					|  |  |  |       this.hideUploadEdit = false | 
			
		
	
		
			
				
					|  |  |  |       this.vaccineId = '' | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |       this.formData = { | 
			
		
	
		
			
				
					|  |  |  |         icVaccineId: '', | 
			
		
	
		
			
				
					|  |  |  |         vaccineId: '', | 
			
		
	
		
			
				
					|  |  |  |         agencyId: '',//当前网格所属组织Id	 | 
			
		
	
		
			
				
					|  |  |  |         userId: '',//居民端小程序的用户id、数字社区的icResiUserId、其他情况无值	 | 
			
		
	
		
			
				
					|  |  |  |         userType: 'icresi',//居民端小程序的人:resi;数字社区的居民:icresi;导入的:import;同步的:synchro	 | 
			
		
	
		
			
				
					|  |  |  |         isResiUser: "0",//是否客户下居民(0:否  1:是)	 | 
			
		
	
		
			
				
					|  |  |  |         name: '', | 
			
		
	
		
			
				
					|  |  |  |         idCard: '', | 
			
		
	
		
			
				
					|  |  |  |         mobile: '', | 
			
		
	
	
		
			
				
					|  |  | @ -511,22 +504,22 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |     dataRule () { | 
			
		
	
		
			
				
					|  |  |  |       return { | 
			
		
	
		
			
				
					|  |  |  |         name: [ | 
			
		
	
		
			
				
					|  |  |  |           { required: true, message: '姓名不能为空', trigger: 'blur' } | 
			
		
	
		
			
				
					|  |  |  |           { required: true, message: '姓名不能为空', trigger: 'change' } | 
			
		
	
		
			
				
					|  |  |  |         ], | 
			
		
	
		
			
				
					|  |  |  |         idCard: [ | 
			
		
	
		
			
				
					|  |  |  |           { required: true, message: '身份证号不能为空', trigger: 'blur' } | 
			
		
	
		
			
				
					|  |  |  |           { required: true, message: '身份证号不能为空', trigger: 'change' } | 
			
		
	
		
			
				
					|  |  |  |         ], | 
			
		
	
		
			
				
					|  |  |  |         mobile: [ | 
			
		
	
		
			
				
					|  |  |  |           { required: true, message: '手机号不能为空', trigger: 'blur' }, | 
			
		
	
		
			
				
					|  |  |  |           { required: true, message: '手机号不能为空', trigger: 'change' }, | 
			
		
	
		
			
				
					|  |  |  |         ], | 
			
		
	
		
			
				
					|  |  |  |         inoculateTime: [ | 
			
		
	
		
			
				
					|  |  |  |           { required: true, message: '接种时间不能为空', trigger: 'blur' }, | 
			
		
	
		
			
				
					|  |  |  |           { required: true, message: '接种时间不能为空', trigger: 'change' }, | 
			
		
	
		
			
				
					|  |  |  |         ], | 
			
		
	
		
			
				
					|  |  |  |         inoculateTime: [ | 
			
		
	
		
			
				
					|  |  |  |           { required: true, message: '接种地点不能为空', trigger: 'blur' }, | 
			
		
	
		
			
				
					|  |  |  |           { required: true, message: '接种地点不能为空', trigger: 'change' }, | 
			
		
	
		
			
				
					|  |  |  |         ], | 
			
		
	
		
			
				
					|  |  |  |         inoculateTime: [ | 
			
		
	
		
			
				
					|  |  |  |           { required: true, message: '疫苗厂家不能为空', trigger: 'blur' }, | 
			
		
	
		
			
				
					|  |  |  |           { required: true, message: '疫苗厂家不能为空', trigger: 'change' }, | 
			
		
	
		
			
				
					|  |  |  |         ], | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
	
		
			
				
					|  |  | 
 |