|
|
|
@ -838,7 +838,7 @@ export default { |
|
|
|
this.$peisAPI.peopleIcCard().then(res => { |
|
|
|
//console.log('peopleIcCard',res) |
|
|
|
let lres = JSON.parse(res) |
|
|
|
if (lres.Code && lres.Code.toLowerCase() == 'success') { |
|
|
|
if (lres.code && lres.code.toLowerCase() == 'success') { |
|
|
|
this.projPriv.idNos = lres |
|
|
|
let idNos = parsIcCardtoLocal(this.projPriv.idNos, this.dict.sex, this.dict.nation) |
|
|
|
this.form.patientName = idNos.Name |
|
|
|
@ -1184,7 +1184,7 @@ export default { |
|
|
|
console.log(res) |
|
|
|
//alert(res) |
|
|
|
let lres = JSON.parse(res) |
|
|
|
if (lres.Code && lres.Code.toLowerCase() == 'success') { |
|
|
|
if (lres.code && lres.code.toLowerCase() == 'success') { |
|
|
|
let uploadPhoto = { |
|
|
|
patientRegisterId: this.form.id, |
|
|
|
photo: lres.Photo, |
|
|
|
@ -1192,7 +1192,7 @@ export default { |
|
|
|
this.patientRegister.photo = `data:image/${lres.PhotoFormat};base64,${lres.Photo}` |
|
|
|
return postapi(`/api/app/patient-register/up-load-img`, uploadPhoto) |
|
|
|
} else { |
|
|
|
this.$message.error("上传照片错误" + lres.Code) |
|
|
|
this.$message.error("上传照片错误" + lres.code) |
|
|
|
} |
|
|
|
}).then(res => { |
|
|
|
if (res.code == 1) { |
|
|
|
@ -1303,13 +1303,13 @@ export default { |
|
|
|
} catch (error) { |
|
|
|
return; |
|
|
|
} |
|
|
|
if (res.Code != -1) { |
|
|
|
if (res.code != -1) { |
|
|
|
this.$message.info("发送检验申请成功!"); |
|
|
|
isPrintLisRequest = true; |
|
|
|
} |
|
|
|
|
|
|
|
//重复申请,重打 |
|
|
|
if (res.Code == -1 && res.Message.indexOf('已申请') > -1) { |
|
|
|
if (res.code == -1 && res.message.indexOf('已申请') > -1) { |
|
|
|
isPrintLisRequest = true; |
|
|
|
} |
|
|
|
|
|
|
|
|