pengjun 4 months ago
parent
commit
c0fd56c161
  1. 10
      public/sysConfig.json
  2. 2
      src/components/doctorCheck/PatientRegisterBase.vue
  3. 25
      src/components/doctorCheck/RegisterCheckEdit.vue
  4. 2
      src/components/patientRegister/PatientRegisterEdit.vue
  5. 36
      src/components/report/PatientRegisterQueryNobtn.vue
  6. 3
      src/utlis/proApi.js

10
public/sysConfig.json

@ -3,5 +3,13 @@
"softName": "神豚体检管理系统",
"pacsApi": "http://192.168.0.188:9530",
"dcmViewers": "https://app.mzaktj.com:4436",
"pacsApiHttps": "https://app.mzaktj.com:8042"
"pacsApiHttps": "https://app.mzaktj.com:8042",
"dict":{
"completeFlag":[
{ "id": "0", "displayName": "预登记" },
{ "id": "1", "displayName": "未检" },
{ "id": "2", "displayName": "部份已检" },
{ "id": "3", "displayName": "已总检" }
]
}
}

2
src/components/doctorCheck/PatientRegisterBase.vue

@ -221,6 +221,8 @@ export default {
let lres = JSON.parse(res)
if (lres.code > -1) {
let idNos = parsIcCardtoLocal(lres.data, this.dict.sex, this.dict.nation)
this.prBase.patientName = idNos.Name
this.prBase.idNo = idNos.IDCode
this.onQueryByOnlyNo('idNo')
} else {

25
src/components/doctorCheck/RegisterCheckEdit.vue

@ -9,7 +9,7 @@
<div>
<span class="query">检查医生</span>
<el-select v-model="doctorCheck.RegisterCheckEdit.checkDoctorId" filterable clearable placeholder="请选择"
style="width: 80px" size="small">
style="width: 80px" size="small" :filter-method="filterMethod">
<el-option v-for="item in users" :key="item.id" :label="item.surname" :value="item.id" />
</el-select>
</div>
@ -20,7 +20,7 @@
<div>
<span class="query">审核医生</span>
<el-select v-model="doctorCheck.RegisterCheckEdit.auditorUserId" filterable clearable placeholder="请选择"
style="width: 80px" size="small" :disabled="doctorCheck.RegisterCheckEdit.isAudit == 'Y' ? true:false">
style="width: 80px" size="small" :disabled="doctorCheck.RegisterCheckEdit.isAudit == 'Y' ? true:false" :filter-method="filterMethod">
<el-option v-for="item in users" :key="item.id" :label="item.surname" :value="item.id" />
</el-select>
</div>
@ -60,6 +60,7 @@ export default {
data() {
return {
users: [],
usersAll:[],
dialogVisible: false,
};
},
@ -82,7 +83,8 @@ export default {
postapi('/api/identity/users/GetListByOperatorType',{operatorTypes:["1","3"]})
.then(res => {
if (res.code > -1) {
this.users = res.data
this.usersAll = res.data.slice()
this.users = res.data.slice()
}
})
},
@ -91,6 +93,23 @@ export default {
return moment(new Date(date)).format(forMat);
},
//
filterMethod(keyWords) {
//console.log('filterMethod',this.asbItemQuick)
if (keyWords) {
this.users = [];
this.usersAll.forEach(item => {
if (item.surname.indexOf(keyWords) > - 1
|| item.simpleCode.toLowerCase().indexOf(keyWords.toLowerCase()) > - 1
|| item.userName.indexOf(keyWords) > - 1) {
this.users.push(item);
}
});
} else {
this.users = deepCopy(this.usersAll);
}
},
//
// getRegisterCheck(id){
// if(id){

2
src/components/patientRegister/PatientRegisterEdit.vue

@ -2468,7 +2468,7 @@ export default {
})
},
//
// //
getPeoplePhoto(photo) {
this.peoplePhoto = photoParse(photo)
},

36
src/components/report/PatientRegisterQueryNobtn.vue

@ -46,7 +46,7 @@
</el-select>
</div>
<div class="query">
<span class="spanClass">身份证号</span>
<el-button type="primary" style="margin-left: 5px;margin-top: 3px; height: 22px;padding: 2px 2px;" @click="readIdCard">读身份证</el-button>
<el-input placeholder="身份证号" v-model="patientRegister.query.idCardNo" size="small" clearable
style="width: 150px" />
</div>
@ -121,7 +121,7 @@
<script>
import { mapState } from "vuex";
import { getapi, postapi, putapi, deletapi } from "@/api/api";
import { arrayExistObj,deepCopy } from "../../utlis/proFunc"
import { arrayExistObj,deepCopy ,parsIcCardtoLocal} from "../../utlis/proFunc"
import CusOrgOCX from "./CusOrgOCX.vue"
export default {
@ -210,6 +210,38 @@ export default {
];
},
//
readIdCard() {
if (!this.$peisAPI) {
this.$message.info({ showClose: true, message: "此功能,需要在壳客户端才可运行!" })
return
}
this.$peisAPI.peopleIcCard().then(res => {
console.log('peopleIcCard', res)
let lres = JSON.parse(res)
if (lres.code > -1) {
let idNos = parsIcCardtoLocal(lres.data, this.dict.sex, this.dict.nation)
this.patientRegister.query.patientRegisterNo = ''
this.patientRegister.query.patientNo = ''
this.patientRegister.query.pacsNo = ''
this.patientRegister.query.lisNo = ''
this.patientRegister.query.patientName = idNos.Name
this.patientRegister.query.idNo = idNos.IDCode
this.patientRegister.query.times++;
} else {
this.$message.error({ showClose: true, message: lres.message })
}
})
.catch(err => {
this.$message.error({ showClose: true, message: `读取身份证失败,原因:${err}` })
})
},
//
medicalConclusionHandle() {
// <el-option-group

3
src/utlis/proApi.js

@ -41,6 +41,8 @@ async function savePeoplePhoto(peopleId, photoBase64) {
photo: photoBase64.split(",")[1],
};
try {
lres = await postapi(`/api/app/patient-register/up-load-img`, uploadPhoto)
let body = {
@ -56,6 +58,7 @@ async function savePeoplePhoto(peopleId, photoBase64) {
return lres
};
// 照片是相对路径时,加刷新标识
function photoParse(photo) {
let sysConfig = JSON.parse(window.sessionStorage.getItem('sysConfig'))
//console.log(sysConfig,photo)

Loading…
Cancel
Save