|
@@ -83,9 +83,12 @@ const query = () => {
|
|
|
};
|
|
|
|
|
|
const sidebarRowClick = (row: SidebarData) => {
|
|
|
+
|
|
|
+ resultRef.value?.setData([]);
|
|
|
console.log("row",row)
|
|
|
currentReportForm.value = row;
|
|
|
- getLabRpt(row.reportId,props.patNo).then(res => {
|
|
|
+ if (row.reportId) {
|
|
|
+ getLabRpt(row.reportId,props.patNo).then(res => {
|
|
|
if (XEUtils.isEmpty(res)) {
|
|
|
inspectionHeader.value = {
|
|
|
aply_cntn: "",
|
|
@@ -114,6 +117,10 @@ const sidebarRowClick = (row: SidebarData) => {
|
|
|
resultRef.value?.setData(res);
|
|
|
});
|
|
|
});
|
|
|
+ } else {
|
|
|
+ xcMessage.error("此检验报告暂未发布!");
|
|
|
+ }
|
|
|
+
|
|
|
};
|
|
|
|
|
|
function filterSex(val) {
|
|
@@ -160,7 +167,7 @@ const resultRef = ref<{
|
|
|
let copyData = [];
|
|
|
let copyDataStr = "";
|
|
|
const appendCopy = () => {
|
|
|
- console.log("343243",resultRef.value)
|
|
|
+ // console.log("343243",resultRef.value)
|
|
|
if (props.isEmr) {
|
|
|
if (XEUtils.isArray(resultRef.value?.selectedData?.())) {
|
|
|
copyData.push(...resultRef.value?.selectedData?.());
|
|
@@ -197,12 +204,14 @@ const copyAndPaste = (paste = false) => {
|
|
|
};
|
|
|
|
|
|
function referenceData() {
|
|
|
+ // console.log("ptnt_name",resultRef.value.getSelectedStr())
|
|
|
if (stringIsBlank(resultRef.value?.getSelectedStr?.())) {
|
|
|
return;
|
|
|
}
|
|
|
+
|
|
|
props.getEditor().cy.createDataSource({
|
|
|
text:
|
|
|
- currentReportForm.value.examPurpose + resultRef.value?.getSelectedStr?.(),
|
|
|
+ currentReportForm.value.groupName + resultRef.value?.getSelectedStr?.(),
|
|
|
source: currentReportForm.value.reportId,
|
|
|
type: DataSource.jianYan,
|
|
|
});
|