|
|
@ -1132,7 +1132,7 @@ export default { |
|
|
BusinessCode: row.id |
|
|
BusinessCode: row.id |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
// console.log('this.$peisAPI.print', toOutShell) |
|
|
|
|
|
|
|
|
console.log('this.$peisAPI.print', toOutShell) |
|
|
if (isPreview) { |
|
|
if (isPreview) { |
|
|
/* |
|
|
/* |
|
|
postapi( |
|
|
postapi( |
|
|
@ -1247,25 +1247,7 @@ export default { |
|
|
BusinessCode: row.id |
|
|
BusinessCode: row.id |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
if (isPreview) { |
|
|
|
|
|
/* |
|
|
|
|
|
postapi( |
|
|
|
|
|
`/ api / app / printreport / getpacsnoreport ? PatientRegisterId = ${ prId }` |
|
|
|
|
|
) |
|
|
|
|
|
.then((res) => { |
|
|
|
|
|
if (res.code != -1) { |
|
|
|
|
|
toOutShell.ReportTable = { lisRequest: res.data }; |
|
|
|
|
|
// console.log( |
|
|
|
|
|
"JSON.stringify(toOutShell)", |
|
|
|
|
|
JSON.stringify(toOutShell) |
|
|
|
|
|
); |
|
|
|
|
|
return this.$peisAPI.printPre(JSON.stringify(toOutShell)); |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
.catch((err) => { |
|
|
|
|
|
this.$message.warning(err); |
|
|
|
|
|
}); |
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
if (isPreview) { |
|
|
this.$peisAPI.printPre(JSON.stringify(toOutShell)) |
|
|
this.$peisAPI.printPre(JSON.stringify(toOutShell)) |
|
|
.then(res => { |
|
|
.then(res => { |
|
|
if (JSON.parse(res).code < 0) { |
|
|
if (JSON.parse(res).code < 0) { |
|
|
@ -1276,53 +1258,11 @@ export default { |
|
|
// console.log('打印pacs条码错误', err) |
|
|
// console.log('打印pacs条码错误', err) |
|
|
this.$message.warning({ showClose: true, message: `${err}` }); |
|
|
this.$message.warning({ showClose: true, message: `${err}` }); |
|
|
}); |
|
|
}); |
|
|
} else { |
|
|
|
|
|
/* |
|
|
|
|
|
postapi( |
|
|
|
|
|
`/ api / app / printreport / getpacsnoreport ? PatientRegisterId = ${ prId }` |
|
|
|
|
|
) |
|
|
|
|
|
.then((res) => { |
|
|
|
|
|
if (res.code != -1) { |
|
|
|
|
|
toOutShell.ReportTable = { lisRequest: res.data }; |
|
|
|
|
|
// console.log( |
|
|
|
|
|
"JSON.stringify(toOutShell)", |
|
|
|
|
|
JSON.stringify(toOutShell) |
|
|
|
|
|
); |
|
|
|
|
|
return this.$peisAPI.print(JSON.stringify(toOutShell)); |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
.then((res) => { |
|
|
|
|
|
if (JSON.parse(res).code >= 0) { |
|
|
|
|
|
//更新打印状态 /api/app/lisrequest/updatelisrequestisprint |
|
|
|
|
|
// { |
|
|
|
|
|
// "operateType": 0, 操作类型(1.按PatientRegisterId 2.按LisRequestId) |
|
|
|
|
|
// "patientRegisterId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", |
|
|
|
|
|
// "lisRequestId": "3fa85f64-5717-4562-b3fc-2c963f66afa6" |
|
|
|
|
|
// } |
|
|
|
|
|
return postapi("/api/app/lisrequest/updatelisrequestisprint", { |
|
|
|
|
|
operateType: 1, |
|
|
|
|
|
patientRegisterId: prId, |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
.catch((err) => { |
|
|
|
|
|
this.$message.warning(err); |
|
|
|
|
|
}); |
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
} else { |
|
|
this.$peisAPI.print(JSON.stringify(toOutShell)) |
|
|
this.$peisAPI.print(JSON.stringify(toOutShell)) |
|
|
.then(res => { |
|
|
.then(res => { |
|
|
if (JSON.parse(res).code < 0) { |
|
|
if (JSON.parse(res).code < 0) { |
|
|
this.$message.warning({ showClose: true, message: JSON.parse(res).message }); |
|
|
this.$message.warning({ showClose: true, message: JSON.parse(res).message }); |
|
|
} else { |
|
|
|
|
|
return postapi("/api/app/lisrequest/updatelisrequestisprint", { |
|
|
|
|
|
operateType: 1, |
|
|
|
|
|
patientRegisterId: row.id, |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
.then(res => { |
|
|
|
|
|
if (res && res.code < 0) { |
|
|
|
|
|
this.$message.error({ showClose: true, message: `${res.message}` }); |
|
|
|
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
.catch((err) => { |
|
|
.catch((err) => { |
|
|
@ -1332,14 +1272,12 @@ export default { |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//通用导出 |
|
|
//通用导出 |
|
|
btnExport(elId) { |
|
|
btnExport(elId) { |
|
|
// 获取HTML元素(表格) |
|
|
// 获取HTML元素(表格) |
|
|
// let table = document.getElementById(elId); //.cloneNode(true) |
|
|
// let table = document.getElementById(elId); //.cloneNode(true) |
|
|
this.$nextTick(() => { |
|
|
this.$nextTick(() => { |
|
|
let refsTable = this.$refs[elId] //.cloneNode(true) true |
|
|
|
|
|
|
|
|
// let refsTable = this.$refs[elId] //.cloneNode(true) true |
|
|
let table = document.getElementById(elId) |
|
|
let table = document.getElementById(elId) |
|
|
// console.log('table,refsTable', table, refsTable) |
|
|
// console.log('table,refsTable', table, refsTable) |
|
|
|
|
|
|
|
|
|