|
|
@ -209,9 +209,9 @@ |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="3"> |
|
|
<el-col :span="3"> |
|
|
<el-form-item label="介绍人" prop="salesman"> |
|
|
<el-form-item label="介绍人" prop="salesman"> |
|
|
<el-select v-model="form.salesman" placeholder="请选择" filterable clearable allow-create |
|
|
|
|
|
size="small"> |
|
|
|
|
|
<el-option v-for="item in dictSalesman" :key="item.id" :label="item.surname" :value="item.surname"/> |
|
|
|
|
|
|
|
|
<el-select v-model="form.salesman" placeholder="请选择" filterable clearable allow-create size="small"> |
|
|
|
|
|
<el-option v-for="item in dictSalesman" :key="item.id" :label="item.surname" |
|
|
|
|
|
:value="item.surname" /> |
|
|
</el-select> |
|
|
</el-select> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
@ -1694,6 +1694,31 @@ export default { |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
// 新增/编辑读身份证的区分处理 |
|
|
|
|
|
readCardAfter(idNos) { |
|
|
|
|
|
return new Promise((resolve, reject) => { |
|
|
|
|
|
if (this.form.id) { |
|
|
|
|
|
resolve() |
|
|
|
|
|
} else { |
|
|
|
|
|
if ((this.form.patientName && this.form.patientName != idNos.Name) || (this.form.idNo && this.form.idNo != idNos.IDCode)) { |
|
|
|
|
|
this.$confirm("当前人员姓名和身份证号与读取身份证信息不一致, 是否以读取到身份证的信息更新当前人员?", "提示", { |
|
|
|
|
|
confirmButtonText: "是", |
|
|
|
|
|
cancelButtonText: " 否 ", |
|
|
|
|
|
type: "warning", |
|
|
|
|
|
}) |
|
|
|
|
|
.then(() => { |
|
|
|
|
|
resolve() |
|
|
|
|
|
}) |
|
|
|
|
|
.catch(err => { |
|
|
|
|
|
reject(err) |
|
|
|
|
|
}) |
|
|
|
|
|
} else { |
|
|
|
|
|
resolve() |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
//读取身份证信息 |
|
|
//读取身份证信息 |
|
|
peopleIcCard() { |
|
|
peopleIcCard() { |
|
|
if (!this.$peisAPI) { |
|
|
if (!this.$peisAPI) { |
|
|
@ -1705,6 +1730,10 @@ export default { |
|
|
let lres = JSON.parse(res) |
|
|
let lres = JSON.parse(res) |
|
|
if (lres.code >= -1) { |
|
|
if (lres.code >= -1) { |
|
|
let idNos = parsIcCardtoLocal(lres.data, this.dict.sex, this.dict.nation) |
|
|
let idNos = parsIcCardtoLocal(lres.data, this.dict.sex, this.dict.nation) |
|
|
|
|
|
|
|
|
|
|
|
// 如果是编辑状态,则加身份证与之前登记的人员信息相等提示 |
|
|
|
|
|
this.readCardAfter(idNos) |
|
|
|
|
|
.then(() => { |
|
|
this.form.patientName = idNos.Name |
|
|
this.form.patientName = idNos.Name |
|
|
this.form.birthDate = idNos.birthDate |
|
|
this.form.birthDate = idNos.birthDate |
|
|
this.form.sexId = idNos.sexId |
|
|
this.form.sexId = idNos.sexId |
|
|
@ -1716,6 +1745,8 @@ export default { |
|
|
// this.patientRegister.photo = 'data:image/bmp;base64,' + idNos.Photo |
|
|
// this.patientRegister.photo = 'data:image/bmp;base64,' + idNos.Photo |
|
|
// isNameContinue 身份证号查重后是否姓名查重 |
|
|
// isNameContinue 身份证号查重后是否姓名查重 |
|
|
this.changeIdNo('N') // 触发身份证查询档案号(Y:身份证没查到,再按名字查,N:仅按身份证号查) |
|
|
this.changeIdNo('N') // 触发身份证查询档案号(Y:身份证没查到,再按名字查,N:仅按身份证号查) |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
} else { |
|
|
} else { |
|
|
this.$message.error({ showClose: true, message: `${lres.message}` }) |
|
|
this.$message.error({ showClose: true, message: `${lres.message}` }) |
|
|
} |
|
|
} |
|
|
|