|
|
|
@ -336,7 +336,7 @@ |
|
|
|
<el-button type="primary" class="btnClass" @click="rdCopy">复制新增</el-button> |
|
|
|
</div> |
|
|
|
<div class="btn"> |
|
|
|
<el-button type="success" class="btnClass" @click="Onsubmit('form', true)">保存</el-button> |
|
|
|
<el-button type="success" class="btnClass" @click="btnSubmit('form', true)">保存</el-button> |
|
|
|
</div> |
|
|
|
<div class="btn"> |
|
|
|
<el-button type="primary" class="btnClass" @click="lisRequest">检验单申请</el-button> |
|
|
|
@ -375,22 +375,22 @@ |
|
|
|
<!--查询条件--> |
|
|
|
<div style="position: absolute;top:40px;left:160px;display: flex; flex-wrap: wrap; height:60px;"> |
|
|
|
<div class="query"> |
|
|
|
<span>查找: 条码号</span> |
|
|
|
<span class="querySpan">查找: 条码号</span> |
|
|
|
<el-input placeholder="条码号" v-model="query.patientRegisterNo" size="small" |
|
|
|
clearable style="width: 140px" @change="quickQuery('patientRegisterNo')"/> |
|
|
|
</div> |
|
|
|
<div class="query"> |
|
|
|
<span>档案号</span> |
|
|
|
<span class="querySpan">档案号</span> |
|
|
|
<el-input placeholder="档案号" v-model="query.patientNo" size="small" |
|
|
|
clearable style="width: 100px" @change="quickQuery('patientNo')" /> |
|
|
|
</div> |
|
|
|
<div class="query"> |
|
|
|
<span>姓名</span> |
|
|
|
<span class="querySpan">姓名</span> |
|
|
|
<el-input placeholder="姓名" v-model="query.patientName" size="small" |
|
|
|
clearable style="width: 80px" @change="quickQuery('patientName')" /> |
|
|
|
</div> |
|
|
|
<div class="query"> |
|
|
|
<span>手机号</span> |
|
|
|
<span class="querySpan">手机号</span> |
|
|
|
<el-input placeholder="预约手机号" v-model="query.tel" size="small" |
|
|
|
clearable style="width: 120px" @change="quickQuery('tel')" /> |
|
|
|
</div> |
|
|
|
@ -623,7 +623,7 @@ import { mapState } from "vuex"; |
|
|
|
import { getapi, postapi, putapi, deletapi } from "@/api/api"; |
|
|
|
import mm from "../../utlis/mm"; |
|
|
|
|
|
|
|
import { objCopy, setNull, dddw, parseID, birthdayToAge, deepCopy, arrayFilter, parsIcCardtoLocal, photoParse, savePeoplePhoto } from "../../utlis/proFunc"; |
|
|
|
import { objCopy, setNull, dddw, parseID, birthdayToAge, deepCopy, arrayFilter, parsIcCardtoLocal, photoParse, savePeoplePhoto, arrayExistObj } from "../../utlis/proFunc"; |
|
|
|
import Camera from "./Camera.vue"; |
|
|
|
import PatientRegisterItem from "./PatientRegisterItem.vue"; |
|
|
|
import LisRequest from "./LisRequest.vue"; |
|
|
|
@ -913,13 +913,13 @@ export default { |
|
|
|
//分组改变时触发 |
|
|
|
changeCustomerOrgGroupId() { |
|
|
|
this.patientRegister.customerOrgGroupChange++; |
|
|
|
if (this.form.id) this.Onsubmit('form', false); |
|
|
|
if (this.form.id) this.btnSubmit('form', false); |
|
|
|
}, |
|
|
|
|
|
|
|
//套餐改变时触发 |
|
|
|
changeMedicalPackageId() { |
|
|
|
this.patientRegister.medicalPackageChange++; |
|
|
|
if (this.form.id) this.Onsubmit('form', false); |
|
|
|
if (this.form.id) this.btnSubmit('form', false); |
|
|
|
}, |
|
|
|
|
|
|
|
//根据姓名,身份证号 查询档案信息,用于判断人员多次体检 |
|
|
|
@ -1045,7 +1045,7 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
//提交 |
|
|
|
Onsubmit(formName, msgTip) { |
|
|
|
btnSubmit(formName, msgTip) { |
|
|
|
this.$refs[formName].validate((valid) => { |
|
|
|
if (valid) { |
|
|
|
//赋值 |
|
|
|
@ -1095,14 +1095,17 @@ export default { |
|
|
|
|
|
|
|
objCopy(res.data, this.form); |
|
|
|
// this.patientRegister.prList.push(res.data); //列表添加记录 |
|
|
|
this.patientRegister.patientRegisterId = res.data.id; |
|
|
|
this.patientRegister.patientRegisterId = res.data.id; |
|
|
|
this.patientRegister.patientRegisterRd = res.data; |
|
|
|
|
|
|
|
//this.patientRegister.query.times++; 不在触发列表查询(换成局部刷新) |
|
|
|
this.patientRegister.prList.push(res.data) |
|
|
|
|
|
|
|
//触发已选组合项目保存 |
|
|
|
this.patientRegister.patientRegisterAbs.forEach(e => { |
|
|
|
e.patientRegisterId = res.data.id; |
|
|
|
return e; |
|
|
|
}); |
|
|
|
this.patientRegister.patientRegisterRd = res.data; |
|
|
|
|
|
|
|
this.patientRegister.query.times++; |
|
|
|
this.patientRegister.saveTimes++; |
|
|
|
} |
|
|
|
} |
|
|
|
@ -1115,7 +1118,11 @@ export default { |
|
|
|
if (msgTip) this.$message.success("更新 操作成功"); |
|
|
|
//一般读身份证照片时,会出现这种情况 |
|
|
|
if (this.patientRegister.photo.indexOf("data:image") > -1) savePeoplePhoto(this.form.id, this.patientRegister.photo); |
|
|
|
this.patientRegister.query.times++; |
|
|
|
//this.patientRegister.query.times++; 不在触发列表查询(换成局部刷新) |
|
|
|
let lfind = arrayExistObj(this.patientRegister.prList, 'id', this.form.id) |
|
|
|
if(lfind > - 1) objCopy(this.form,this.patientRegister.prList[lfind]) |
|
|
|
|
|
|
|
|
|
|
|
//this.patientRegister.saveTimes++; //更新保存时,无需触发组合项目保存 |
|
|
|
} |
|
|
|
}); |
|
|
|
@ -1485,4 +1492,7 @@ export default { |
|
|
|
.query { |
|
|
|
margin-left: 10px; |
|
|
|
} |
|
|
|
.querySpan { |
|
|
|
margin-right: 2px; |
|
|
|
} |
|
|
|
</style> |