You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1203 lines
41 KiB

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
6 months ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
6 months ago
2 years ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
5 months ago
4 months ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
4 months ago
2 years ago
2 years ago
2 years ago
2 years ago
5 months ago
2 years ago
1 year ago
5 months ago
1 year ago
2 years ago
1 year ago
2 years ago
1 year ago
2 years ago
5 months ago
2 years ago
5 months ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
4 months ago
4 months ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 months ago
2 years ago
3 months ago
2 years ago
3 months ago
2 years ago
2 years ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
1 year ago
2 years ago
1 year ago
2 years ago
2 years ago
2 years ago
1 year ago
2 years ago
2 years ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 months ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
4 months ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
1 year ago
2 years ago
2 years ago
2 years ago
6 months ago
5 months ago
6 months ago
5 months ago
6 months ago
5 months ago
6 months ago
5 months ago
6 months ago
5 months ago
6 months ago
6 months ago
3 months ago
6 months ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 months ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
6 months ago
2 years ago
4 months ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
5 months ago
2 years ago
2 years ago
5 months ago
2 years ago
5 months ago
2 years ago
2 years ago
2 years ago
1 year ago
2 years ago
2 years ago
2 years ago
4 months ago
4 months ago
4 months ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 months ago
5 months ago
2 years ago
2 years ago
2 years ago
2 years ago
1 year ago
2 years ago
4 months ago
2 years ago
2 years ago
2 years ago
1 year ago
2 years ago
2 years ago
2 years ago
5 months ago
2 years ago
3 months ago
2 years ago
5 months ago
5 months ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 months ago
2 years ago
2 years ago
2 years ago
2 years ago
6 months ago
6 months ago
6 months ago
3 months ago
6 months ago
6 months ago
4 months ago
6 months ago
5 months ago
3 months ago
6 months ago
3 months ago
6 months ago
6 months ago
6 months ago
5 months ago
6 months ago
5 months ago
6 months ago
5 months ago
6 months ago
4 months ago
4 months ago
6 months ago
3 months ago
6 months ago
5 months ago
6 months ago
6 months ago
6 months ago
3 months ago
6 months ago
6 months ago
6 months ago
6 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
1 year ago
2 years ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
1 year ago
2 years ago
2 years ago
1 year ago
1 year ago
2 years ago
1 year ago
6 months ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
1 year ago
2 years ago
1 year ago
2 years ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 months ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
1 year ago
2 years ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
4 months ago
2 years ago
2 years ago
2 years ago
2 years ago
4 months ago
2 years ago
2 years ago
2 years ago
2 years ago
5 months ago
3 months ago
5 months ago
3 months ago
5 months ago
4 months ago
5 months ago
4 months ago
5 months ago
4 months ago
5 months ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 months ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 months ago
2 years ago
2 years ago
3 months ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. <template>
  2. <div style="display: flex;">
  3. <div>
  4. <div v-show="checkPagePriv(pagePriv.privs, '采图')">
  5. <el-button type="primary" class="btnClass" @click="btnGetPic" :disabled="doctorBtnDisabled('btnGetPic')"
  6. size="small">采图</el-button>
  7. </div>
  8. <div v-show="checkPagePriv(pagePriv.privs, '导图')">
  9. <el-button type="primary" class="btnClass" @click="btnExpPic" :disabled="doctorBtnDisabled('btnExpPic')"
  10. size="small">导图</el-button>
  11. </div>
  12. <div v-show="checkPagePriv(pagePriv.privs, '保存')">
  13. <el-button type="primary" class="btnClass" @click="btnSavePic" :disabled="doctorBtnDisabled('btnSavePic')"
  14. size="small">保存</el-button>
  15. </div>
  16. <el-dropdown v-show="checkPagePriv(pagePriv.privs, '导图')" :disabled="doctorBtnDisabled('btnExpPic')">
  17. <span class="el-dropdown-link" style="color: #222531; font-weight: 700">
  18. <el-button type="primary" class="btnClass" :disabled="doctorBtnDisabled('btnExpPic')">更多</el-button>
  19. </span>
  20. <el-dropdown-menu slot="dropdown">
  21. <el-dropdown-item v-show="checkPagePriv(pagePriv.privs, 'Dcm')" @click.native="btnBrowseDcm"
  22. :disabled="doctorBtnDisabled('btnBrowseDcm')">Dcm</el-dropdown-item>
  23. <el-dropdown-item v-show="checkPagePriv(pagePriv.privs, '裁图')" @click.native="btnCutPic"
  24. :disabled="doctorBtnDisabled('btnCutPic')">裁剪图片</el-dropdown-item>
  25. <el-dropdown-item v-show="checkPagePriv(pagePriv.privs, '清理pacs结果')" @click.native="btnClean"
  26. :disabled="doctorBtnDisabled('btnClean')">清理pacs结果</el-dropdown-item>
  27. </el-dropdown-menu>
  28. </el-dropdown>
  29. </div>
  30. <!-- -->
  31. <div :style="`overflow-x: scroll;width:${Math.floor((window.pageWidth - 200 - 110 - 15 - 4))}px;`"
  32. @contextmenu.prevent="onContextmenu" ref="DivPic">
  33. <div style="display: flex;">
  34. <div class="demo-image__preview" v-for="(item, index) in checkPictures" :key="item.id"
  35. style="display: inline-block; padding: 0 0 0 2px">
  36. <div style="
  37. position: relative;
  38. font-size: 24px;
  39. margin: -6px 0 0 55px;
  40. height: 30px;
  41. z-index: 2;
  42. ">
  43. <el-tooltip content="删除该图" placement="bottom" effect="light">
  44. <i v-if="false" class="el-icon-close" @click="btnDelImage(index)" v-show="!doctorBtnDisabled('btnDelImage')"
  45. style="color: red; cursor: pointer"></i>
  46. </el-tooltip>
  47. </div>
  48. <div style="margin-top: -25px">
  49. <el-image style="width: 80px; height: 80px; border-radius: 5px" :src="imageFilePlus(item.pictureFilename)"
  50. :data-imageSeq="index" :preview-src-list="previewSrcList(checkPictures, item)">
  51. </el-image>
  52. </div>
  53. <div style="display: flex">
  54. <div style="margin: -6px 2px 0 1px">
  55. <el-tooltip content="是否打印" placement="bottom" effect="light">
  56. <el-checkbox v-model="item.isPrintTrans" @change="btnSavePic"
  57. :readonly="doctorBtnDisabled('btnSavePic')"></el-checkbox>
  58. </el-tooltip>
  59. </div>
  60. <!--
  61. <div style="font-size: 12px; margin: -2px 0 0 1px">打印</div>
  62. -->
  63. <div style="font-size: 15px; margin: -5px 2px 0 2px">
  64. <el-tooltip content="保存后,图片将按序号从小到大排序" placement="bottom" effect="light">
  65. <input placeholder="排序" v-model="item.displayOrder" @onkeyup="validateInteger(e, index)"
  66. style="width: 30px" :readonly="doctorBtnDisabled('btnSavePic')" />
  67. </el-tooltip>
  68. </div>
  69. <div v-if="false" style="margin: -6px 0 0 2px">
  70. <el-tooltip content="是否报告图片" placement="bottom" effect="light">
  71. <el-checkbox v-model="item.pictureFileType" @change="btnSavePic" true-label="1" false-label="0"
  72. :disabled="doctorBtnDisabled('btnSavePic')"></el-checkbox>
  73. </el-tooltip>
  74. </div>
  75. </div>
  76. </div>
  77. <div>
  78. <table :width="`${getPicing ? 300:0}px;`"></table>
  79. <!--是否采图进行时采图时自动滚到最右边-->
  80. <!--暴力滚动 element.scrollLeft = element.scrollWidth;-->
  81. <!--平滑滚动 element.scrollTo({ left: element.scrollWidth, behavior: 'smooth' });-->
  82. </div>
  83. </div>
  84. </div>
  85. <el-dialog title="图片上传" :visible.sync="dialogCheckPictureUpload" :close-on-click-modal="false" width="800px"
  86. @close="getCheckPictures(doctorCheck.RegisterCheckId)">
  87. <CheckPictureUpload :registerCheckId="doctorCheck.RegisterCheckId" :uploadSeq="uploadSeq"
  88. :closePicUpload="closePicUpload" />
  89. </el-dialog>
  90. <el-dialog title="Dcm查看" :visible.sync="dialogDcm" :close-on-click-modal="false" fullscreen @close="iframeSrc = ''">
  91. <div style="display: flex;">
  92. <div>
  93. <iframe :src="iframeSrc" :height="window.pageHeight - 85" :width="window.pageWidth - 260"></iframe>
  94. </div>
  95. <div style="width: 240px;margin-left: 2px;">
  96. <div style="margin-top: 5px;">
  97. <span style="color: #232748;">人员信息</span>
  98. <div style="display: flex;">
  99. <span style="width: 80px;margin: 7px 0;">检查条码</span>
  100. <el-input ref="checkRequestNo" placeholder="检查条码" v-model="checkRequestNo" size="small" clearable
  101. @keyup.native.enter="onQueryByPacsNo(checkRequestNo)" @focus="onFocus" disabled />
  102. </div>
  103. <div style="display: flex;">
  104. <span style="width: 80px;margin: 7px 0;">姓名</span>
  105. <el-input v-model="patient_register.patientName" size="small" disabled />
  106. </div>
  107. <div style="display: flex;">
  108. <span style="width: 80px;margin: 7px 0;">性别</span>
  109. <el-input v-model="patient_register.sexName" size="small" disabled />
  110. </div>
  111. <div style="display: flex;">
  112. <span style="width: 80px;margin: 7px 0;">年龄</span>
  113. <el-input v-model="patient_register.age" size="small" disabled />
  114. </div>
  115. </div>
  116. <div style="margin-top: 5px;">
  117. <div>
  118. <span>检查结果</span>
  119. <el-radio-group v-model="tabPosition">
  120. <el-radio :label="'top'">横排</el-radio>
  121. <el-radio :label="'left'">纵排</el-radio>
  122. </el-radio-group>
  123. </div>
  124. <el-tabs :tab-position="tabPosition" v-model="tabChoosed">
  125. <el-tab-pane v-for="(item, seq) in doctorCheck.checkItemList" :label="dispLabel(item.itemName)"
  126. :name="seq + ''" :key="seq">
  127. <el-input style="width: 100%;" type="textarea" v-model="item.result" placeholder="请输入检查结果"
  128. :disabled="doctorBtnDisabled('save')"
  129. :autosize="{ minRows: Math.floor((window.pageHeight - 550) / 24), maxRows: 18 }" />
  130. <div style="display: flex;justify-content: space-between;">
  131. <div></div>
  132. <div>
  133. <el-tooltip :content="`给 ${item.itemName} 项目,赋默认结果`" placement="top">
  134. <i class="el-icon-edit" @click="btnDefResult(seq)"
  135. style="font-size: 18px;color: blue;cursor:pointer;margin-right: 10px;"></i>
  136. </el-tooltip>
  137. <el-tooltip :content="`清除 ${item.itemName} 项目的检查结果`" placement="top">
  138. <i class="el-icon-delete" @click="btnClear(seq)"
  139. style="font-size: 18px;color: red;cursor:pointer;margin-right: 10px;"></i>
  140. </el-tooltip>
  141. </div>
  142. </div>
  143. </el-tab-pane>
  144. </el-tabs>
  145. </div>
  146. <div style="margin-top: 5px;">
  147. <span style="color: #232748;">检查结论</span>
  148. <el-table row-key="id" :data="doctorCheck.checkSummaryList" size="samll" height="186" width="100%" border>
  149. <el-table-column width="30" align="center">
  150. <template slot-scope="scope">
  151. <el-tag class="moveSummary" style="height:25px;padding:0 2px;cursor: move;background-color: #EEEEEE;">
  152. <div style="width: 16px;">{{ scope.$index + 1 }}</div>
  153. </el-tag>
  154. </template>
  155. </el-table-column>
  156. <el-table-column prop="summary" label="小结">
  157. <template slot="header">
  158. <div style="display: flex;justify-content:space-between;">
  159. <div>小结</div>
  160. <div></div>
  161. </div>
  162. </template>
  163. <template slot-scope="scope">
  164. <div style="display: flex;">
  165. <el-input type="textarea" v-model="scope.row.summary" :autosize="{ minRows: 1, maxRows: 100 }"
  166. placeholder="请输入小结">
  167. </el-input>
  168. <el-button type="danger" style="min-width:23px;padding:2px;" icon="el-icon-delete"
  169. @click="delSum(scope.$index)" size="small"></el-button>
  170. </div>
  171. </template>
  172. </el-table-column>
  173. </el-table>
  174. </div>
  175. <div style="display: flex;justify-content: space-between;margin-top: 10px;">
  176. <div></div>
  177. <div>
  178. <!--
  179. <el-button type="primary" @click="btnTest" class="commonbutton">测试</el-button>
  180. -->
  181. <el-button type="primary" @click="btnChooseBigtext" :disabled="doctorBtnDisabled('save')"
  182. class="commonbutton">选择描述</el-button>
  183. <el-button type="primary" @click="btnOkBigtext" :disabled="doctorBtnDisabled('save')"
  184. class="commonbutton">保存结果</el-button>
  185. </div>
  186. </div>
  187. </div>
  188. </div>
  189. </el-dialog>
  190. <!--Pacs结果录入模版-->
  191. <el-dialog :title="'Pacs结果录入模版 -- ' + doctorCheck.asbitemName" :visible.sync="dialogWin.PacsTemplate" width="880px"
  192. :close-on-click-modal="false">
  193. <PacsTemplate :refParams="pacsParams" :refFuncOther="handlePacsResult" />
  194. </el-dialog>
  195. <el-dialog title="裁图" :visible.sync="dialogWinCutPic" width="1300px" :close-on-click-modal="false">
  196. <PacsCutPic />
  197. </el-dialog>
  198. </div>
  199. </template>
  200. <script>
  201. import moment from "moment";
  202. import { mapState } from "vuex";
  203. import { Loading } from "element-ui";
  204. import { getapi, postapi, putapi, deletapi } from "@/api/api";
  205. import { getPagePriv, checkPagePriv, deepCopy, arrayExistObj } from "../../utlis/proFunc";
  206. import { hadoopGet, hadoopPost, hadoopPut, hadoopDel } from "../../api/hadoopApi"
  207. import CheckPictureUpload from "./CheckPictureUpload.vue";
  208. import PacsTemplate from "./PacsTemplate.vue";
  209. import PacsCutPic from "./PacsCutPic.vue";
  210. export default {
  211. components: {
  212. CheckPictureUpload, PacsTemplate, PacsCutPic
  213. },
  214. props: ["doctorBtnDisabled", "save","patient_register","refParams"],
  215. data() {
  216. return {
  217. sysConfig: {}, //
  218. pagePriv: {
  219. routeUrlorPageName: 'doctorCheck', //当前页面归属路由或归属页面权限名称
  220. privs: [] // 页面权限
  221. },
  222. checkRequestNo: '',
  223. dialogDcm: false,
  224. iframeSrc: '',
  225. pacsParams: {
  226. from: 'dcm',
  227. refresh: -1,
  228. row: {},
  229. index: 0,
  230. result: '',
  231. summary: ''
  232. },
  233. tabPosition: 'top',
  234. tabChoosed: "0",
  235. checkPictures: [
  236. // {
  237. // id: "1",
  238. // registerCheckId: "registerCheckId",
  239. // isPrint: "Y",
  240. // isPrintTrans: true,
  241. // pictureFilename:
  242. // "https://fuss10.elemecdn.com/8/27/f01c15bb73e1ef3793e64e6b7bbccjpeg.jpeg",
  243. // },
  244. // {
  245. // id: "2",
  246. // registerCheckId: "registerCheckId",
  247. // isPrint: "Y",
  248. // isPrintTrans: true,
  249. // pictureFilename:
  250. // "https://fuss10.elemecdn.com/1/8e/aeffeb4de74e2fde4bd74fc7b4486jpeg.jpeg",
  251. // },
  252. ],
  253. //图片上传
  254. dialogCheckPictureUpload: false,
  255. uploadSeq: 0, //第几次点图片上传,每点一次清空前次所选图片
  256. // 裁图
  257. dialogWinCutPic: false,
  258. cutPicParam: {},
  259. pictureFileType: '1',
  260. getPicing:false, //是否采图中
  261. };
  262. },
  263. created() {
  264. //获取用户当前页面的权限
  265. let userPriv = window.sessionStorage.getItem('userPriv')
  266. if (userPriv) this.pagePriv.privs = deepCopy(getPagePriv(this.pagePriv.routeUrlorPageName))
  267. this.sysConfig = JSON.parse(window.sessionStorage.getItem('sysConfig'))
  268. // console.log('this.sysConfig checkPictures', this.sysConfig)
  269. },
  270. //挂载完成
  271. mounted() {
  272. // 监听来自 Electron 的调用
  273. if (this.$peisAPI) {
  274. try {
  275. //热键--采集图像
  276. this.$peisAPI.onEventFromPictureHotKeyMain((data) => {
  277. this.acceptHotKeyData('add', data)
  278. });
  279. //热键--采集图像设为打印
  280. this.$peisAPI.onEventFromPictureAndPrintHotKeyMain((data) => {
  281. this.acceptHotKeyData('addPrint', data)
  282. });
  283. //热键--设为打印
  284. this.$peisAPI.onEventFromPicturePrintHotKeyMain(() => {
  285. this.acceptHotKeyData('print')
  286. });
  287. //热键--取消打印
  288. this.$peisAPI.onEventFromPictureCancelPrintHotKeyMain(() => {
  289. this.acceptHotKeyData('unPrint')
  290. });
  291. //删除图像
  292. this.$peisAPI.onEventFromPictureDeleteHotKeyMain(() => {
  293. this.acceptHotKeyData('delete')
  294. });
  295. } catch (error) {
  296. console.error(error)
  297. }
  298. }
  299. if (this.refParams.registerCheckId) {
  300. this.getCheckPictures(this.refParams.registerCheckId);
  301. }
  302. },
  303. computed: {
  304. ...mapState([
  305. "window",
  306. "dict",
  307. "dialogWin",
  308. "dataTransOpts",
  309. "doctorCheck"
  310. ]),
  311. lmoment(date, forMat) {
  312. return moment(new Date(date)).format(forMat);
  313. },
  314. },
  315. methods: {
  316. checkPagePriv,
  317. // 根据checkId获取图片列表信息
  318. getCheckPictures(registerCheckId) {
  319. this.checkPictures = [];
  320. if (!registerCheckId) {
  321. return;
  322. }
  323. // {
  324. // "registerCheckId": "3a0f6a3c-88a5-d5f7-d59b-ef3b3807490b",
  325. // "pictureFilename": "https://fuss10.elemecdn.com/8/27/f01c15bb73e1ef3793e64e6b7bbccjpeg.jpeg",
  326. // "isPrint": "N",
  327. // "displayOrder": 1,
  328. // "creatorName": "admin",
  329. // "lastModifierName": "admin",
  330. // "lastModificationTime": "2023-12-15T15:24:08",
  331. // "lastModifierId": "3a0c4180-107c-0c89-b25b-0bd34666dcec",
  332. // "creationTime": "2023-12-15T15:24:06",
  333. // "creatorId": "3a0c4180-107c-0c89-b25b-0bd34666dcec",
  334. // "id": "3a0f6a3c-88a5-d5f7-d59b-ef3b38074901"
  335. // }
  336. hadoopGet('pacsApi', `/api/app/registercheckpicture/getregistercheckpictureinregistercheckid?RegisterCheckId=${registerCheckId}`)
  337. // getapi(`/api/app/registercheckpicture/getregistercheckpictureinregistercheckid?RegisterCheckId=${registerCheckId}`)
  338. .then((res) => {
  339. if (res.code > -1) {
  340. this.checkPictures = res.data
  341. this.checkPictures.forEach(e => {
  342. e.isPrintTrans = e.isPrint == "Y" ? true : false
  343. });
  344. // 标记采图中,让滚动条滑到最右边……
  345. if(this.getPicing) this.setGetPicing()
  346. }
  347. });
  348. },
  349. // 生成 图片预览列表
  350. previewSrcList(oriList, curImag) {
  351. let srcList = []
  352. let image = curImag.pictureFilename.indexOf('http') > -1
  353. ? curImag.pictureFilename
  354. : (this.sysConfig.pacsApi || this.sysConfig.apiurl) + curImag.pictureFilename;
  355. srcList.push(image + `?r=${Math.random()}`)
  356. let lfind = arrayExistObj(oriList, 'id', curImag.id)
  357. if (lfind > -1) {
  358. for (let i = lfind + 1; i < oriList.length; i++) {
  359. let e = oriList[i];
  360. image = this.imageFilePlus(e.pictureFilename + `?r=${Math.random()}`)
  361. srcList.push(image)
  362. }
  363. for (let index = 0; index < lfind; index++) {
  364. let e = oriList[index];
  365. image = this.imageFilePlus(e.pictureFilename + `?r=${Math.random()}`)
  366. srcList.push(image)
  367. }
  368. }
  369. return srcList
  370. },
  371. //删除小结
  372. delSum(index) {
  373. this.$confirm("此操作将删除该记录, 是否继续?", "提示", {
  374. confirmButtonText: "是",
  375. cancelButtonText: "否",
  376. type: "warning",
  377. }).then(() => {
  378. this.doctorCheck.checkSummaryList.splice(index, 1);
  379. }).catch(err => {
  380. if (err == "cancel") {
  381. // this.$message.info("已取消删除");
  382. console.log('已取消删除')
  383. }
  384. });
  385. },
  386. // 图片文件补全路径
  387. imageFilePlus(fileName) {
  388. if (fileName.indexOf('base64') > -1 || fileName.indexOf('http') > -1) {
  389. return fileName
  390. } else {
  391. return (this.sysConfig.pacsApi || this.sysConfig.apiurl) + fileName
  392. }
  393. },
  394. // 标记采图中,让滚动条滑到最右边……
  395. setGetPicing(){
  396. let obj = this.$refs['DivPic']
  397. console.log('obj',obj)
  398. this.$nextTick(() => {
  399. //obj.scrollTo({ left: obj.scrollWidth, behavior: 'smooth' })
  400. obj.scrollLeft = obj.scrollWidth
  401. })
  402. },
  403. // 采图
  404. btnGetPic() {
  405. if (!this.doctorCheck.RegisterCheckId) {
  406. this.$message.warning({ showClose: true, message: "未选中组合项目!" });
  407. return;
  408. }
  409. if (!this.$peisAPI) {
  410. this.$message.info({ showClose: true, message: "此功能,需要在壳客户端才可运行!" })
  411. return
  412. }
  413. let toOutShell = {
  414. barCode: this.doctorCheck.checkRequestNo,
  415. patientName: this.patient_register.patientName,
  416. sexName: this.patient_register.sexName,
  417. age: (this.patient_register.age || '') + '',
  418. asbitemName: this.doctorCheck.checkRequestNo || 'temp'
  419. }
  420. // console.log('this.$peisAPI.imageAcquisition', JSON.stringify(toOutShell))
  421. let loading = Loading.service({
  422. lock: true,
  423. text: "正在加载中,请稍后",
  424. spinner: "el-icon-loading",
  425. background: "rgba(0, 0, 0, 0)",
  426. customClass: "boxStyle"
  427. });
  428. this.$peisAPI.imageAcquisition(JSON.stringify(toOutShell))
  429. .then(async (res) => {
  430. let lres = JSON.parse(res)
  431. console.log('this.$peisAPI.imageAcquisition', lres)
  432. if (lres.code > -1) {
  433. // 标记采图中,让滚动条滑到最右边……
  434. this.getPicing = true
  435. this.setGetPicing()
  436. for (let i = 0; i < lres.data.length; i++) {
  437. let item = lres.data[i];
  438. // FilePath:
  439. // Image
  440. // ImageFormat
  441. let baseHead = 'data:image/jpeg;base64,'
  442. switch (item.ImageFormat) {
  443. case 'png':
  444. case 'bmp':
  445. baseHead = `data:image/${item.ImageFormat};base64,`
  446. break;
  447. default:
  448. break;
  449. }
  450. this.checkPictures.push({ pictureFilename: baseHead + item.Image })
  451. let fileName = item.FilePath
  452. let dotIndex = fileName.lastIndexOf('\\');
  453. let pointIndex = fileName.lastIndexOf('.');
  454. if (dotIndex > -1) fileName = fileName.substring(dotIndex + 1, pointIndex || fileName.length);
  455. let body = {
  456. registerCheckId: this.refParams.registerCheckId,
  457. pictureBaseStrs: [{
  458. fileName,
  459. localPathName: item.FilePath,
  460. pictureBaseStr: baseHead + item.Image,
  461. isPrint: 'N'
  462. }],
  463. pictureFileType: '0' //采图暂定图0,上传暂定报告1 this.pictureFileType
  464. }
  465. try {
  466. //await postapi('/api/app/RegisterCheckPicture/InstrumentMapping', body)
  467. await hadoopPost('pacsApi', '/api/app/RegisterCheckPicture/InstrumentMapping', body)
  468. } catch (error) {
  469. console.log('btnGetPic err', error)
  470. }
  471. }
  472. this.getCheckPictures(this.refParams.registerCheckId)
  473. } else {
  474. console.log('this.$peisAPI.imageAcquisition', lres.message)
  475. }
  476. }).catch(err => {
  477. this.$message.error(err)
  478. }).finally(() => {
  479. loading.close()
  480. });
  481. },
  482. // 接收热键采图
  483. // windows.peisAPI.receive("acceptHotKeyData",() => {
  484. // this.$message.success({showClose:true,message:'调用热键成功'})
  485. // }),
  486. acceptHotKeyData(oprType, data) {
  487. //
  488. console.log('接收壳端热键采图参数 acceptHotKeyData', oprType, data)
  489. //this.$message.success({ showClose: true, message: '调用热键成功' })
  490. if (!this.refParams.registerCheckId) {
  491. console.log("没有选中检查项目")
  492. return
  493. }
  494. // 标记采图中,让滚动条滑到最右边……
  495. this.getPicing = true
  496. this.setGetPicing()
  497. // 设置图片打印或不打印
  498. if (oprType == 'print' || oprType == 'unPrint') {
  499. let count = this.checkPictures.length
  500. if (count == 0) return
  501. // 最后采图的记录
  502. let picRd = this.checkPictures[count - 1]
  503. if (!picRd.id) return
  504. if (oprType == 'print') {
  505. picRd.isPrintTrans = true
  506. picRd.isPrint = 'Y'
  507. } else {
  508. picRd.isPrintTrans = false
  509. picRd.isPrint = 'N'
  510. }
  511. let body = [{
  512. registerCheckId: picRd.registerCheckId,
  513. pictureFilename: picRd.pictureFilename,
  514. pictureFileType: picRd.pictureFileType,
  515. registerCheckPictureId: picRd.id,
  516. isPrintTrans: picRd.isPrintTrans,
  517. isPrint: picRd.isPrint
  518. }]
  519. postapi("/api/app/registercheckpicture/UpdateRegisterCheckPictureStatusMany", body)
  520. .then((res) => {
  521. if (res.code < 0) {
  522. console.log('热键更新图片打印标识失败:', res.message)
  523. } else {
  524. this.getCheckPictures(this.refParams.registerCheckId)
  525. }
  526. })
  527. .catch(err => {
  528. console.log('热键更新图片打印标识失败:', err)
  529. });
  530. } else if (oprType == 'delete') {
  531. let count = this.checkPictures.length
  532. if (count == 0) return
  533. // 最后采图的记录
  534. let picRd = this.checkPictures[count - 1]
  535. if (!picRd.id) return
  536. postapi(`/api/app/registercheckpicture/deleteregistercheckpicturemany`, [picRd.id])
  537. .then(res => {
  538. if (res.code > -1) {
  539. this.checkPictures.splice(count - 1, 1)
  540. this.getCheckPictures(this.refParams.registerCheckId)
  541. } else {
  542. console.log("热键删除图片打印标识失败:", res.message)
  543. }
  544. })
  545. .catch(err => {
  546. console.log("热键删除图片打印标识失败:", err)
  547. })
  548. } else {
  549. try {
  550. let item = data.data[0]
  551. let baseHead = 'data:image/jpeg;base64,'
  552. switch (item.ImageFormat) {
  553. case 'png':
  554. case 'bmp':
  555. baseHead = `data:image/${item.ImageFormat};base64,`
  556. break;
  557. default:
  558. break;
  559. }
  560. let isPrintTrans = false
  561. if (oprType == 'addPrint') {
  562. item.isPrint = 'Y'
  563. isPrintTrans = true
  564. } else {
  565. item.isPrint = 'N'
  566. }
  567. // item.isPrintTrans 是否打印
  568. this.checkPictures.push({ pictureFilename: baseHead + item.Image, isPrintTrans })
  569. let fileName = item.FilePath
  570. let dotIndex = fileName.lastIndexOf('\\');
  571. let pointIndex = fileName.lastIndexOf('.');
  572. if (dotIndex > -1) fileName = Date.now() + fileName.substring(dotIndex + 1, pointIndex || fileName.length);
  573. let body = {
  574. registerCheckId: this.refParams.registerCheckId,
  575. pictureBaseStrs: [{
  576. fileName,
  577. localPathName: item.FilePath,
  578. pictureBaseStr: baseHead + item.Image,
  579. isPrint: item.isPrint
  580. }],
  581. pictureFileType: '0' //采图暂定图0,上传暂定报告1 this.pictureFileType
  582. }
  583. hadoopPost('pacsApi', '/api/app/RegisterCheckPicture/InstrumentMapping', body)
  584. .then(() => {
  585. this.getCheckPictures(this.refParams.registerCheckId)
  586. })
  587. .catch(err => {
  588. console.log('热键采图失败', err)
  589. })
  590. } catch (error) {
  591. console.log('热键采图失败', error)
  592. }
  593. }
  594. },
  595. // 显示tab标签名称,过长处理
  596. dispLabel(itemName) {
  597. return itemName.length > 5 ? (itemName.substring(0, 4) + "…") : itemName
  598. },
  599. // 清除结果
  600. btnClear(seq) {
  601. if (this.doctorBtnDisabled('save')) {
  602. this.$message.warning({ showClose: true, message: "已保存,不可操作!" })
  603. return
  604. }
  605. this.doctorCheck.checkItemList[seq].result = ''
  606. },
  607. // 默认结果
  608. btnDefResult(seq) {
  609. if (this.doctorBtnDisabled('save')) {
  610. this.$message.warning({ showClose: true, message: "已保存,不可操作!" })
  611. return
  612. }
  613. this.doctorCheck.checkItemList[seq].result = this.doctorCheck.checkItemList[seq].defaultResult
  614. },
  615. // 浏览Dcm文件
  616. btnBrowseDcm() {
  617. this.checkRequestNo = this.doctorCheck.checkRequestNo
  618. this.pacsParams.result = this.doctorCheck.checkItemList[0].result
  619. let summary = ''
  620. this.doctorCheck.checkSummaryList.forEach(e => {
  621. summary += e.summary
  622. });
  623. this.pacsParams.summary = summary
  624. this.pacsParams.row = deepCopy(this.doctorCheck.checkItemList[0])
  625. this.pacsParams.index = 0
  626. this.pacsParams.refresh++
  627. // console.log('pacsParams', this.pacsParams)
  628. let token = window.sessionStorage.getItem('token')
  629. this.iframeSrc = `${this.sysConfig.dcmViewers}/?mrn=${this.doctorCheck.checkRequestNo}&token=${token}&pacsapi=${this.sysConfig.pacsApiHttps}`
  630. // this.iframeSrc = `${this.sysConfig.dcmViewers}/viewer?StudyInstanceUIDs=1.3.12.2.1107.5.1.4.79623.30000024091203062645300000022`
  631. this.tabPosition = this.doctorCheck.checkItemList.length > 2 ? 'left' : 'top'
  632. this.tabChoosed = "0"
  633. this.dialogDcm = true
  634. },
  635. // 选择描述与结论
  636. btnChooseBigtext() {
  637. // console.log('this.pacsParams', this.pacsParams)
  638. this.pacsParams.index = parseInt(this.tabChoosed)
  639. this.pacsParams.refresh++
  640. this.dialogWin.PacsTemplate = true
  641. },
  642. // 确定描述与结论
  643. btnOkBigtext() {
  644. console.log('this.pacsParams', this.pacsParams)
  645. // this.doctorCheck.checkItemList[0].result = this.pacsParams.result
  646. /*
  647. this.doctorCheck.checkSummaryList = [{
  648. id: Math.random(),
  649. registerCheckId: this.doctorCheck.RegisterCheckEdit.id,
  650. summary: this.pacsParams.summary,
  651. summaryFlag: 'N',
  652. }]
  653. */
  654. if (this.doctorCheck.checkSummaryList.length == 0) {
  655. this.$message.warning({ showClose: true, message: "请填写检查结论" })
  656. return
  657. }
  658. this.save()
  659. this.dialogDcm = false
  660. },
  661. // 处理 pacs 结果录入的情况
  662. handlePacsResult(row, index, pacsResult) {
  663. Object.assign(this.pacsParams, pacsResult)
  664. },
  665. // 浏览Dcm文件
  666. btnBrowseDcmBak() {
  667. if (!this.doctorCheck.RegisterCheckId) {
  668. this.$message.warning({ showClose: true, message: "未选中组合项目!" });
  669. return;
  670. }
  671. // 创建一个新的 <a> 元素
  672. let a = document.createElement('a');
  673. // 设置 href 属性为要跳转的 URL
  674. a.href = `${this.sysConfig.dcmViewers}/?mrn=24071610696`;
  675. //(可选)设置 target 属性,比如在新窗口打开
  676. a.target = '_blank';
  677. //(可选)防止浏览器将链接添加到历史记录
  678. a.rel = 'noopener noreferrer';
  679. // 将新创建的 <a> 元素添加到 DOM 中
  680. // 注意:这一步是可选的,如果你只想模拟点击而不想在页面上显示 <a> 元素,可以省略这一步
  681. // document.body.appendChild(a);
  682. // 模拟点击 <a> 元素
  683. a.click();
  684. //(可选)移除刚才添加到 DOM 中的 <a> 元素
  685. // 如果你选择了将 <a> 元素添加到 DOM 中,现在可以移除它
  686. // document.body.removeChild(a);
  687. },
  688. btnBrowseDcmBak2() {
  689. let userName = "peis", key = "peis@123"
  690. // let encodedAuthstring = btoa(this.stringToAscIIBytes(`${userName}:${key}`));
  691. let encodedAuthstring = this.toBase64FromUtf8(`${userName}:${key}`);
  692. console.log('encodedAuthstring', encodedAuthstring)
  693. const url = 'http://192.168.4.161:8042/ohif/viewer?url=../studies/dcdc7b20-fe11f38d-f5357ad7-139cd2cd-c0bd3701/ohif-dicom-json';
  694. const Authorization = 'Basic ' + encodedAuthstring;
  695. fetch(url, {
  696. headers: {
  697. 'Authorization': Authorization
  698. }
  699. })
  700. .then(response => response.json())
  701. .then(data => console.log(data))
  702. .catch(error => console.error('Error:', error));
  703. },
  704. toBase64FromUtf8(str) {
  705. // 使用 TextEncoder 将字符串转换为UTF-8字节序列
  706. const encoder = new TextEncoder();
  707. const bytes = encoder.encode(str);
  708. // 将字节序列转换为二进制字符串
  709. let binaryString = '';
  710. for (let byte of bytes) {
  711. binaryString += String.fromCharCode(byte);
  712. }
  713. // 使用 btoa 将二进制字符串转换为Base64
  714. return btoa(binaryString);
  715. },
  716. //导图(上传图片)
  717. btnExpPic() {
  718. if (!this.doctorCheck.RegisterCheckId) {
  719. this.$message.warning({ showClose: true, message: "未选中组合项目!" });
  720. return;
  721. }
  722. this.uploadSeq++;
  723. this.dialogCheckPictureUpload = true;
  724. },
  725. btnClean() {
  726. if (!this.doctorCheck.RegisterCheckId) {
  727. this.$message.warning({ showClose: true, message: "未选中组合项目!" });
  728. return;
  729. }
  730. postapi("/api/app/PacsBusiness/DeletePacsCheckDicomDataByRegisterCheckId", {
  731. registerCheckId: this.doctorCheck.RegisterCheckId
  732. })
  733. .then((res) => {
  734. if (res.code > -1) {
  735. }
  736. });
  737. },
  738. // 裁图/修图/
  739. btnCutPicBak() {
  740. // 跨域了
  741. this.dialogWinCutPic = true
  742. this.$refs.imgCutterModal.handleOpen({
  743. name: "1.png",
  744. src: "http://192.168.2.74:9529/PacsCheckPictureImg/pacs/2024/8/29//3a141f59-cf4c-5e34-966d-aec0a0eea94c//2408010001_0005.jpg.jpg",
  745. });
  746. },
  747. btnCutPic() {
  748. if (this.checkPictures.length == 0) {
  749. this.$message.warning({ showClose: true, message: "暂无可裁图片!" });
  750. return;
  751. }
  752. if (!this.$peisAPI) {
  753. this.$message.info({ showClose: true, message: "此功能,需要在壳客户端才可运行!" })
  754. return
  755. }
  756. let token = window.sessionStorage.getItem("token");
  757. let toOutShell = {
  758. asbitemName: this.doctorCheck.asbitemName,
  759. images: this.checkPictures,
  760. token,
  761. };
  762. this.$peisAPI.imageCut(JSON.stringify(toOutShell))
  763. .then(res => {
  764. let lres = JSON.parse(res)
  765. if (lres.code > -1) {
  766. this.getCheckPictures(this.refParams.registerCheckId);
  767. } else {
  768. console.log('裁图失败', lres.message)
  769. }
  770. })
  771. .catch(err => {
  772. console.log('裁图失败', err)
  773. })
  774. },
  775. //关闭上传图片窗口
  776. closePicUpload() {
  777. this.dialogCheckPictureUpload = false;
  778. },
  779. btnSavePic() {
  780. if (!this.doctorCheck.RegisterCheckId) {
  781. this.$message.warning({ showClose: true, message: "未选中组合项目!" });
  782. return;
  783. }
  784. let body = [];
  785. // [
  786. // {
  787. // "registerCheckPictureId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", // 新增无需传此值
  788. // "registerCheckId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  789. // "pictureFilename": "string",
  790. // "isPrint": "string",
  791. // "displayOrder": 0
  792. // }
  793. // ]
  794. if (this.checkPictures.length == 0) {
  795. this.$message.warning({ showClose: true, message: "没有可保存的图片数据!" });
  796. return;
  797. }
  798. let checkPictures = deepCopy(this.checkPictures);
  799. checkPictures.sort((a, b) => {
  800. let seq1 = 0;
  801. let seq2 = 0;
  802. try {
  803. seq1 = parseInt(a.displayOrder);
  804. } catch (error) {
  805. seq1 = 0;
  806. }
  807. try {
  808. seq2 = parseInt(b.displayOrder);
  809. } catch (error) {
  810. seq2 = 0;
  811. }
  812. return seq1 - seq2;
  813. });
  814. checkPictures.forEach((e) => {
  815. let item = {
  816. registerCheckId: e.registerCheckId,
  817. pictureFilename: e.pictureFilename,
  818. pictureFileType: e.pictureFileType
  819. };
  820. if (e.id) item.registerCheckPictureId = e.id;
  821. if (e.isPrintTrans) {
  822. item.isPrint = "Y";
  823. } else {
  824. item.isPrint = "N";
  825. }
  826. body.push(item);
  827. });
  828. postapi("/api/app/registercheckpicture/UpdateRegisterCheckPictureStatusMany", body)
  829. .then((res) => {
  830. if (res.code > -1) {
  831. this.getCheckPictures(checkPictures[0].registerCheckId);
  832. }
  833. });
  834. },
  835. // 删除图片
  836. btnDelImage(index) {
  837. let body = [this.checkPictures[index].id];
  838. this.delImageBatch(body)
  839. },
  840. // 批量删除图片
  841. delImageBatch(body) {
  842. this.$confirm("此操作将永久删除该记录, 是否继续?", "提示", {
  843. confirmButtonText: "是",
  844. cancelButtonText: "否",
  845. type: "warning",
  846. })
  847. .then(() => {
  848. return postapi(`/api/app/registercheckpicture/deleteregistercheckpicturemany`, body);
  849. })
  850. .then((res) => {
  851. if (res?.code > -1) {
  852. let lfind = -1
  853. body.forEach(id => {
  854. lfind = arrayExistObj(this.checkPictures, 'id', id)
  855. if (lfind > -1) this.checkPictures.splice(lfind, 1);
  856. });
  857. }
  858. })
  859. .catch((err) => {
  860. if (err == "cancel") {
  861. this.$message.info({ showClose: true, message: "已取消" });
  862. }
  863. });
  864. },
  865. // 右击剪切图片
  866. rCutPic(start, count) {
  867. this.dataTransOpts.doctorCutPics = this.checkPictures.splice(start, count)
  868. },
  869. // 右击粘贴图片
  870. rCopyPic(imageSeq) {
  871. let body = {
  872. registerCheckPictureIds: [],
  873. registerCheckId: this.refParams.registerCheckId
  874. }
  875. this.dataTransOpts.doctorCutPics.forEach(e => {
  876. body.registerCheckPictureIds.push(e.id)
  877. e.registerCheckId = this.refParams.registerCheckId
  878. });
  879. postapi('/api/app/RegisterCheckPicture/BatchUpdateRegisterCheckIdByRegisterCheckPictureId', body)
  880. .then(res => {
  881. if (res.code > -1) {
  882. this.$message.success({ showClose: true, message: '操作成功!' })
  883. if (imageSeq == -1) {
  884. this.checkPictures = deepCopy(this.dataTransOpts.doctorCutPics)
  885. } else {
  886. this.checkPictures.splice(imageSeq, 0, deepCopy(this.dataTransOpts.doctorCutPics))
  887. }
  888. this.dataTransOpts.doctorCutPics = [] //清除剪切的缓存
  889. }
  890. })
  891. },
  892. // 右击菜单
  893. onContextmenu(event) {
  894. if (this.doctorBtnDisabled('btnSavePic')) {
  895. return false
  896. }
  897. //console.log('event',event.target,event.target.getAttribute('data-imageSeq'))
  898. let imageSeqStr = '-1'
  899. try {
  900. imageSeqStr = event.target.getAttribute('data-imageSeq').toString()
  901. } catch (error) {
  902. }
  903. //console.log('imageSeqStr',imageSeqStr)
  904. let imageSeq = Number(imageSeqStr)
  905. //console.log('imageSeq',imageSeq)
  906. //菜单项
  907. let items = [];
  908. let picNum = this.checkPictures.length
  909. if (imageSeq >= 0 && picNum > 1) {
  910. items.push({
  911. label: "剪切当前图片",
  912. onClick: () => {
  913. this.rCutPic(imageSeq, 1)
  914. },
  915. })
  916. if (imageSeq == 0) {
  917. items.push({
  918. label: "剪切当前图片后面的图片",
  919. onClick: () => {
  920. this.rCutPic(imageSeq + 1, picNum - 1 - imageSeq)
  921. },
  922. })
  923. } else if (imageSeq == picNum - 1) {
  924. items.push({
  925. label: "剪切当前图片前面的图片",
  926. onClick: () => {
  927. this.rCutPic(0, imageSeq)
  928. },
  929. })
  930. } else {
  931. items.push({
  932. label: "剪切当前图片后面的图片",
  933. onClick: () => {
  934. this.rCutPic(imageSeq + 1, picNum - 1 - imageSeq)
  935. },
  936. })
  937. items.push({
  938. label: "剪切当前图片前面的图片",
  939. onClick: () => {
  940. this.rCutPic(0, imageSeq)
  941. },
  942. })
  943. }
  944. }
  945. if (picNum > 0) {
  946. items.push({
  947. label: "剪切所有图片",
  948. onClick: () => {
  949. this.rCutPic(0, this.checkPictures.length)
  950. },
  951. })
  952. }
  953. if (this.dataTransOpts.doctorCutPics.length > 0) {
  954. items.splice(0, 0, {
  955. label: "粘贴图片",
  956. onClick: () => {
  957. this.rCopyPic(imageSeq)
  958. },
  959. })
  960. if (items.length > 1) {
  961. items.splice(1, 0, {
  962. label: "----------------"
  963. })
  964. }
  965. }
  966. // 删除图片
  967. if (picNum > 0) {
  968. items.push({
  969. label: "----------------"
  970. })
  971. if (imageSeq >= 0) {
  972. items.push({
  973. label: "删除当前图片",
  974. onClick: () => {
  975. this.delImageBatch([this.checkPictures[imageSeq].id])
  976. },
  977. })
  978. }
  979. items.push({
  980. label: "删除所有图片",
  981. onClick: () => {
  982. let body = []
  983. this.checkPictures.forEach(e => {
  984. body.push(e.id)
  985. });
  986. this.delImageBatch(body)
  987. },
  988. })
  989. }
  990. // items.push({
  991. // label: "一级菜单",
  992. // children: [
  993. // { label: "修改姓名", onClick: () => { this.fnUpBaseInfo(row, 'patientName'); } }
  994. // ],
  995. // onClick: () => { //菜单事件 }
  996. // })
  997. // 显示明细历次结果
  998. this.$contextmenu({
  999. items,
  1000. event,
  1001. x: event.clientX,
  1002. y: event.clientY,
  1003. customClass: "custom-class",
  1004. zIndex: 3,
  1005. minWidth: 80,
  1006. });
  1007. return false;
  1008. },
  1009. validateInteger(e, index) {
  1010. var regex = /^[0-9]*$/;
  1011. console.log(e, index);
  1012. if (!regex.test(e.value)) {
  1013. // 如果输入不满足整数条件,则清除输入框内容
  1014. e.value = "";
  1015. }
  1016. },
  1017. // 通过检查条码查询相关数据
  1018. onQueryByPacsNo(checkRequestNo) {
  1019. this.checkRequestNo = checkRequestNo
  1020. this.$refs['checkRequestNo'].select()
  1021. postapi('/api/app/PacsBusiness/GetPatientRegisterWithCheckResultByCheckRequestNo', { checkRequestNo })
  1022. .then(res => {
  1023. if (res.code > -1) {
  1024. // 人员信息
  1025. this.patient_register = res.data.patientRegisterDetail
  1026. // 组合项目
  1027. this.doctorCheck.RegisterCheckList = [res.data.registerCheckDetail]
  1028. // 组合项目明细
  1029. this.doctorCheck.checkItemList = res.data.registerCheckItemDetails
  1030. // 小结与建议
  1031. this.doctorCheck.checkSummaryList = res.data.registerCheckSummaryDetails
  1032. this.doctorCheck.checkSuggestionList = res.data.registerCheckSuggestionDetails
  1033. // 上次结果
  1034. this.doctorCheck.preResult = res.data.lastTimeAsbitemResultDetail
  1035. // 检查情况
  1036. this.doctorCheck.RegisterCheckEdit = res.data.registerCheckDetail
  1037. // 图片
  1038. this.checkPictures = res.data.registerCheckPictureDetails
  1039. this.checkPictures.forEach(e => {
  1040. e.isPrintTrans = e.isPrint == "Y" ? true : false
  1041. });
  1042. this.iframeSrc = ''
  1043. this.btnBrowseDcm()
  1044. }
  1045. })
  1046. },
  1047. onFocus(event) {
  1048. this.$refs['checkRequestNo'].select()
  1049. }
  1050. },
  1051. //监听事件
  1052. watch: {
  1053. //检查项目未切换换时 也可以强制刷新数据
  1054. // "dataTransOpts.refresh.register_check_item.M": {
  1055. "refParams.brushItemList": {
  1056. // immediate: true,
  1057. handler(newVal, oldVal) {
  1058. console.log(`watch 检查图片 newVal:${newVal} oldVal:${oldVal} registerCheckId: ${this.refParams.registerCheckId}`);
  1059. if (newVal != oldVal) this.getCheckPictures(this.refParams.registerCheckId);
  1060. }
  1061. },
  1062. },
  1063. };
  1064. </script>
  1065. <style scoped>
  1066. .query {
  1067. margin-left: 10px;
  1068. margin-right: 2px;
  1069. padding: 1px 1px;
  1070. }
  1071. .btnClass {
  1072. margin: 2px 2px 0;
  1073. height: 26px;
  1074. min-width: 40px;
  1075. padding: 5px 5px;
  1076. /*原始 默认值 10px 10px */
  1077. }
  1078. /* 强制出现滚动条 */
  1079. ::-webkit-scrollbar {
  1080. height: 0.5rem;
  1081. }
  1082. ::-webkit-scrollbar-thumb {
  1083. background-color: #ccc;
  1084. border-radius: 0.25rem;
  1085. }
  1086. </style>