|
|
|
@ -104,15 +104,15 @@ |
|
|
|
</div> |
|
|
|
<div style="display: flex;"> |
|
|
|
<span style="width: 80px;margin: 7px 0;">姓名</span> |
|
|
|
<el-input v-model="dataTransOpts.tableS.patient_register.patientName" size="small" disabled /> |
|
|
|
<el-input v-model="patient_register.patientName" size="small" disabled /> |
|
|
|
</div> |
|
|
|
<div style="display: flex;"> |
|
|
|
<span style="width: 80px;margin: 7px 0;">性别</span> |
|
|
|
<el-input v-model="dataTransOpts.tableS.patient_register.sexName" size="small" disabled /> |
|
|
|
<el-input v-model="patient_register.sexName" size="small" disabled /> |
|
|
|
</div> |
|
|
|
<div style="display: flex;"> |
|
|
|
<span style="width: 80px;margin: 7px 0;">年龄</span> |
|
|
|
<el-input v-model="dataTransOpts.tableS.patient_register.age" size="small" disabled /> |
|
|
|
<el-input v-model="patient_register.age" size="small" disabled /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
@ -220,7 +220,7 @@ export default { |
|
|
|
components: { |
|
|
|
CheckPictureUpload, PacsTemplate, PacsCutPic |
|
|
|
}, |
|
|
|
props: ["doctorBtnDisabled", "save"], |
|
|
|
props: ["doctorBtnDisabled", "save","patient_register","refParams"], |
|
|
|
data() { |
|
|
|
return { |
|
|
|
sysConfig: {}, // |
|
|
|
@ -316,8 +316,8 @@ export default { |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (this.dataTransOpts.tableS.register_check.id) { |
|
|
|
this.getCheckPictures(this.dataTransOpts.tableS.register_check.id); |
|
|
|
if (this.refParams.registerCheckId) { |
|
|
|
this.getCheckPictures(this.refParams.registerCheckId); |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
@ -327,9 +327,7 @@ export default { |
|
|
|
"dict", |
|
|
|
"dialogWin", |
|
|
|
"dataTransOpts", |
|
|
|
"doctorCheck", |
|
|
|
"patientRegister", |
|
|
|
"customerOrg" |
|
|
|
"doctorCheck" |
|
|
|
]), |
|
|
|
lmoment(date, forMat) { |
|
|
|
return moment(new Date(date)).format(forMat); |
|
|
|
@ -442,9 +440,9 @@ export default { |
|
|
|
|
|
|
|
let toOutShell = { |
|
|
|
barCode: this.doctorCheck.checkRequestNo, |
|
|
|
patientName: this.dataTransOpts.tableS.patient_register.patientName, |
|
|
|
sexName: this.dataTransOpts.tableS.patient_register.sexName, |
|
|
|
age: (this.dataTransOpts.tableS.patient_register.age || '') + '', |
|
|
|
patientName: this.patient_register.patientName, |
|
|
|
sexName: this.patient_register.sexName, |
|
|
|
age: (this.patient_register.age || '') + '', |
|
|
|
asbitemName: this.doctorCheck.checkRequestNo || 'temp' |
|
|
|
} |
|
|
|
// console.log('this.$peisAPI.imageAcquisition', JSON.stringify(toOutShell)) |
|
|
|
@ -488,7 +486,7 @@ export default { |
|
|
|
if (dotIndex > -1) fileName = fileName.substring(dotIndex + 1, pointIndex || fileName.length); |
|
|
|
|
|
|
|
let body = { |
|
|
|
registerCheckId: this.dataTransOpts.tableS.register_check.id, |
|
|
|
registerCheckId: this.refParams.registerCheckId, |
|
|
|
pictureBaseStrs: [{ |
|
|
|
fileName, |
|
|
|
localPathName: item.FilePath, |
|
|
|
@ -504,7 +502,7 @@ export default { |
|
|
|
console.log('btnGetPic err', error) |
|
|
|
} |
|
|
|
} |
|
|
|
this.getCheckPictures(this.dataTransOpts.tableS.register_check.id) |
|
|
|
this.getCheckPictures(this.refParams.registerCheckId) |
|
|
|
} else { |
|
|
|
console.log('this.$peisAPI.imageAcquisition', lres.message) |
|
|
|
} |
|
|
|
@ -524,7 +522,7 @@ export default { |
|
|
|
// |
|
|
|
console.log('接收壳端热键采图参数 acceptHotKeyData', oprType, data) |
|
|
|
//this.$message.success({ showClose: true, message: '调用热键成功' }) |
|
|
|
if (!this.dataTransOpts.tableS.register_check.id) { |
|
|
|
if (!this.refParams.registerCheckId) { |
|
|
|
console.log("没有选中检查项目") |
|
|
|
return |
|
|
|
} |
|
|
|
@ -562,7 +560,7 @@ export default { |
|
|
|
if (res.code < 0) { |
|
|
|
console.log('热键更新图片打印标识失败:', res.message) |
|
|
|
} else { |
|
|
|
this.getCheckPictures(this.dataTransOpts.tableS.register_check.id) |
|
|
|
this.getCheckPictures(this.refParams.registerCheckId) |
|
|
|
} |
|
|
|
}) |
|
|
|
.catch(err => { |
|
|
|
@ -580,7 +578,7 @@ export default { |
|
|
|
.then(res => { |
|
|
|
if (res.code > -1) { |
|
|
|
this.checkPictures.splice(count - 1, 1) |
|
|
|
this.getCheckPictures(this.dataTransOpts.tableS.register_check.id) |
|
|
|
this.getCheckPictures(this.refParams.registerCheckId) |
|
|
|
} else { |
|
|
|
console.log("热键删除图片打印标识失败:", res.message) |
|
|
|
} |
|
|
|
@ -618,7 +616,7 @@ export default { |
|
|
|
if (dotIndex > -1) fileName = Date.now() + fileName.substring(dotIndex + 1, pointIndex || fileName.length); |
|
|
|
|
|
|
|
let body = { |
|
|
|
registerCheckId: this.dataTransOpts.tableS.register_check.id, |
|
|
|
registerCheckId: this.refParams.registerCheckId, |
|
|
|
pictureBaseStrs: [{ |
|
|
|
fileName, |
|
|
|
localPathName: item.FilePath, |
|
|
|
@ -630,7 +628,7 @@ export default { |
|
|
|
|
|
|
|
hadoopPost('pacsApi', '/api/app/RegisterCheckPicture/InstrumentMapping', body) |
|
|
|
.then(() => { |
|
|
|
this.getCheckPictures(this.dataTransOpts.tableS.register_check.id) |
|
|
|
this.getCheckPictures(this.refParams.registerCheckId) |
|
|
|
}) |
|
|
|
.catch(err => { |
|
|
|
console.log('热键采图失败', err) |
|
|
|
@ -843,7 +841,7 @@ export default { |
|
|
|
.then(res => { |
|
|
|
let lres = JSON.parse(res) |
|
|
|
if (lres.code > -1) { |
|
|
|
this.getCheckPictures(this.dataTransOpts.tableS.register_check.id); |
|
|
|
this.getCheckPictures(this.refParams.registerCheckId); |
|
|
|
} else { |
|
|
|
console.log('裁图失败', lres.message) |
|
|
|
} |
|
|
|
@ -961,11 +959,11 @@ export default { |
|
|
|
rCopyPic(imageSeq) { |
|
|
|
let body = { |
|
|
|
registerCheckPictureIds: [], |
|
|
|
registerCheckId: this.dataTransOpts.tableS.register_check.id |
|
|
|
registerCheckId: this.refParams.registerCheckId |
|
|
|
} |
|
|
|
this.dataTransOpts.doctorCutPics.forEach(e => { |
|
|
|
body.registerCheckPictureIds.push(e.id) |
|
|
|
e.registerCheckId = this.dataTransOpts.tableS.register_check.id |
|
|
|
e.registerCheckId = this.refParams.registerCheckId |
|
|
|
}); |
|
|
|
|
|
|
|
postapi('/api/app/RegisterCheckPicture/BatchUpdateRegisterCheckIdByRegisterCheckPictureId', body) |
|
|
|
@ -1127,7 +1125,7 @@ export default { |
|
|
|
.then(res => { |
|
|
|
if (res.code > -1) { |
|
|
|
// 人员信息 |
|
|
|
this.dataTransOpts.tableS.patient_register = res.data.patientRegisterDetail |
|
|
|
this.patient_register = res.data.patientRegisterDetail |
|
|
|
|
|
|
|
// 组合项目 |
|
|
|
this.doctorCheck.RegisterCheckList = [res.data.registerCheckDetail] |
|
|
|
@ -1166,11 +1164,12 @@ export default { |
|
|
|
//监听事件 |
|
|
|
watch: { |
|
|
|
//检查项目未切换换时 也可以强制刷新数据 |
|
|
|
"dataTransOpts.refresh.register_check_item.M": { |
|
|
|
// "dataTransOpts.refresh.register_check_item.M": { |
|
|
|
"refParams.brushItemList": { |
|
|
|
// immediate: true, |
|
|
|
handler(newVal, oldVal) { |
|
|
|
console.log(`watch 检查图片 newVal:${newVal} oldVal:${oldVal} registerCheckId: ${this.dataTransOpts.tableS.register_check.id}`); |
|
|
|
if (newVal != oldVal) this.getCheckPictures(this.dataTransOpts.tableS.register_check.id); |
|
|
|
console.log(`watch 检查图片 newVal:${newVal} oldVal:${oldVal} registerCheckId: ${this.refParams.registerCheckId}`); |
|
|
|
if (newVal != oldVal) this.getCheckPictures(this.refParams.registerCheckId); |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
|