|
|
@ -6,9 +6,19 @@ |
|
|
<div style="display: flex;"> |
|
|
<div style="display: flex;"> |
|
|
<div v-if="pacsType == 'image'" class="image__preview" |
|
|
<div v-if="pacsType == 'image'" class="image__preview" |
|
|
:style="`overflow-y: auto;width: ${window.pageWidth - 330}px;height: ${window.pageHeight - 105}px;`"> |
|
|
:style="`overflow-y: auto;width: ${window.pageWidth - 330}px;height: ${window.pageHeight - 105}px;`"> |
|
|
<el-image v-for="item in checkPictures" :key="item.id" :src="imageFilePlus(item.pictureFilename)" |
|
|
|
|
|
:preview-src-list="previewSrcList(checkPictures, item)" |
|
|
|
|
|
:style="`overflow-y: auto;width: ${window.pageWidth - 330}px;height: auto;`"></el-image> |
|
|
|
|
|
|
|
|
<div v-for="item in checkPictures" :key="item.id" style="margin-bottom: 5px;"> |
|
|
|
|
|
<el-image :src="imageFilePlus(item.pictureFilename)" :preview-src-list="previewSrcList(checkPictures, item)" |
|
|
|
|
|
:style="`overflow-y: auto;width: ${window.pageWidth - 330}px;height: auto;`"></el-image> |
|
|
|
|
|
<div style="display: flex;justify-content: space-between;margin-top: -26px;"> |
|
|
|
|
|
<div></div> |
|
|
|
|
|
<div style="display: flex;width: 60px;"> |
|
|
|
|
|
<div> |
|
|
|
|
|
<el-checkbox v-model="item.isPrint" true-label="Y" false-label="N" @change="btnSavePic"></el-checkbox> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div style="font-size: 14px;font-weight: 700;color: #FF0000; margin: 2px 0 0 2px;z-index: 2;">打印</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div v-else> |
|
|
<div v-else> |
|
|
<iframe :src="iframeSrc" :height="window.pageHeight - 105" :width="window.pageWidth - 330"></iframe> |
|
|
<iframe :src="iframeSrc" :height="window.pageHeight - 105" :width="window.pageWidth - 330"></iframe> |
|
|
@ -222,6 +232,56 @@ export default { |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
btnSavePic() { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let body = []; |
|
|
|
|
|
// [ |
|
|
|
|
|
// { |
|
|
|
|
|
// "registerCheckPictureId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", // 新增无需传此值 |
|
|
|
|
|
// "registerCheckId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", |
|
|
|
|
|
// "pictureFilename": "string", |
|
|
|
|
|
// "isPrint": "string", |
|
|
|
|
|
// "displayOrder": 0 |
|
|
|
|
|
// } |
|
|
|
|
|
// ] |
|
|
|
|
|
|
|
|
|
|
|
let checkPictures = deepCopy(this.checkPictures); |
|
|
|
|
|
checkPictures.sort((a, b) => { |
|
|
|
|
|
let seq1 = 0; |
|
|
|
|
|
let seq2 = 0; |
|
|
|
|
|
try { |
|
|
|
|
|
seq1 = parseInt(a.displayOrder); |
|
|
|
|
|
} catch (error) { |
|
|
|
|
|
seq1 = 0; |
|
|
|
|
|
} |
|
|
|
|
|
try { |
|
|
|
|
|
seq2 = parseInt(b.displayOrder); |
|
|
|
|
|
} catch (error) { |
|
|
|
|
|
seq2 = 0; |
|
|
|
|
|
} |
|
|
|
|
|
return seq1 - seq2; |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
checkPictures.forEach((e) => { |
|
|
|
|
|
let item = { |
|
|
|
|
|
registerCheckId: e.registerCheckId, |
|
|
|
|
|
pictureFilename: e.pictureFilename, |
|
|
|
|
|
isPrint: e.isPrint |
|
|
|
|
|
}; |
|
|
|
|
|
if (e.id) item.registerCheckPictureId = e.id; |
|
|
|
|
|
body.push(item); |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
postapi("/api/app/registercheckpicture/UpdateRegisterCheckPictureStatusMany", body) |
|
|
|
|
|
.then((res) => { |
|
|
|
|
|
if (res.code > -1) { |
|
|
|
|
|
//this.getCheckPictures(checkPictures[0].registerCheckId); |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
btnQuery() { |
|
|
btnQuery() { |
|
|
let body = Object.assign({}, this.query) |
|
|
let body = Object.assign({}, this.query) |
|
|
if (!body.checkRequestNo) delete body.checkRequestNo |
|
|
if (!body.checkRequestNo) delete body.checkRequestNo |
|
|
|