medicalAdvice.vue 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245
  1. <template>
  2. <div id="MyDiv">
  3. <div class="cont-left">
  4. <div class="cont-title-description">滨州医学院烟台附属医院</div>
  5. <div class="cont-title-item">长期医嘱单</div>
  6. <div></div>
  7. <div class="cont-title-name">
  8. <div class="cont-title-item">
  9. <span class="cont-title-text">姓名:</span>
  10. <span class="cont-title-normal" v-if="dataObj.info">{{ dataObj.info.AAA01 }}</span>
  11. </div>
  12. <div class="cont-title-item">
  13. <span class="cont-title-text">性别:</span>
  14. <span class="cont-title-normal" v-if="dataObj.info">{{ dataObj.info.AAA02C }}</span>
  15. </div>
  16. <div class="cont-title-item">
  17. <span class="cont-title-text">年龄:</span>
  18. <span class="cont-title-normal" v-if="dataObj.info">{{ dataObj.info.AAA04 }}</span>
  19. </div>
  20. <div class="cont-title-item">
  21. <span class="cont-title-text cont-title-twidt">科别:</span>
  22. <span class="cont-title-normal" v-if="dataObj.info">{{ dataObj.info.AAB02C }}</span>
  23. </div>
  24. <div class="cont-title-item">
  25. <span class="cont-title-text">床号:</span>
  26. <span class="cont-title-normal"></span>
  27. </div>
  28. <div class="cont-title-item">
  29. <span class="cont-title-text">住院号:</span>
  30. <span class="cont-title-normal" v-if="dataObj.info">{{ dataObj.info.AAA28 }}</span>
  31. </div>
  32. </div>
  33. <div class="table">
  34. <table ref="tables">
  35. <tr style="height: 10px">
  36. <td style="height: 10px" class="table-value m-all" colspan="1"></td>
  37. <td style="height: 10px" class="table-value m-all" colspan="1"></td>
  38. <td style="height: 10px" class="table-value m-all" colspan="1"></td>
  39. <td style="height: 10px" class="table-value m-all" colspan="1"></td>
  40. <td style="height: 10px" class="table-value m-all" colspan="1"></td>
  41. <td style="height: 10px" class="table-value m-all" colspan="1"></td>
  42. <td style="height: 10px" class="table-value m-all" colspan="1"></td>
  43. <td style="height: 10px" class="table-value m-all" colspan="1"></td>
  44. <td style="height: 10px" class="table-value m-all" colspan="1"></td>
  45. <td style="height: 10px" class="table-value m-all" colspan="1"></td>
  46. <td style="height: 10px" class="table-value m-all" colspan="1"></td>
  47. </tr>
  48. <tr>
  49. <td class="table-label medical-font" colspan="7">开始</td>
  50. <td class="table-label medical-font" colspan="4">停止</td>
  51. </tr>
  52. <tr>
  53. <td class="table-label medical-font" colspan="1">日期</td>
  54. <td class="table-label medical-font" colspan="1">时间</td>
  55. <td class="table-label medical-font" colspan="1">医嘱</td>
  56. <td class="table-label medical-font" colspan="1">剂量</td>
  57. <td class="table-label medical-font" colspan="1">用法</td>
  58. <td class="table-label medical-font" colspan="1">医师签名</td>
  59. <td class="table-label medical-font" colspan="1">护士签名</td>
  60. <td class="table-label medical-font" colspan="1">日期</td>
  61. <td class="table-label medical-font" colspan="1">时间</td>
  62. <td class="table-label medical-font" colspan="1">医师签名</td>
  63. <td class="table-label medical-font" colspan="1">护士签名</td>
  64. </tr>
  65. <tr v-for="(item, index) in dataObj.list" :key="index">
  66. <td class="table-value" colspan="1">{{ item.KSDATE }}</td>
  67. <td class="table-value" colspan="1">{{ item.KSTIME }}</td>
  68. <td class="table-value" colspan="1">{{ item.YZMC }}</td>
  69. <td class="table-value" colspan="1">{{ item.YCJL }}</td>
  70. <td class="table-value" colspan="1">{{ item.SYPC }}</td>
  71. <td class="table-value" colspan="1">{{ item.KZYS }}</td>
  72. <td class="table-value" colspan="1">{{ item.XZJDGH }}</td>
  73. <td class="table-value" colspan="1">{{ item.TZDATE }}</td>
  74. <td class="table-value" colspan="1">{{ item.TZTIME }}</td>
  75. <td class="table-value" colspan="1">{{ item.TZYS }}</td>
  76. <td class="table-value" colspan="1">{{ item.XZJDGH }}</td>
  77. </tr>
  78. </table>
  79. </div>
  80. </div>
  81. </div>
  82. </template>
  83. <script>
  84. // import OtherComponent from '@/components/OtherComponent'
  85. export default {
  86. name: 'passwordManagement',
  87. directives: {},
  88. filters: {},
  89. extends: {},
  90. mixins: {},
  91. props: {
  92. dataObj: {
  93. type: Object,
  94. default: null,
  95. },
  96. },
  97. data() {
  98. return {
  99. ifFile: false,
  100. };
  101. },
  102. watch: {},
  103. beforeCreate() {
  104. // 生命周期钩子:组件实例刚被创建,组件属性计算之前,如 data 属性等
  105. },
  106. created() {
  107. // 生命周期钩子:组件实例创建完成,属性已绑定,但 DOM 还未生成,el 属性还不存在
  108. // 初始化渲染页面
  109. },
  110. beforeMount() {
  111. // 生命周期钩子:模板编译/挂载之前
  112. },
  113. mounted() {
  114. // 生命周期钩子:模板编译、挂载之后(此时不保证已在 document 中)
  115. },
  116. beforeUpate() {
  117. // 生命周期钩子:组件更新之前
  118. },
  119. updated() {
  120. // 生命周期钩子:组件更新之后
  121. },
  122. activated() {
  123. // 生命周期钩子:keep-alive 组件激活时调用
  124. },
  125. deactivated() {
  126. // 生命周期钩子:keep-alive 组件停用时调用
  127. },
  128. beforeDestroy() {
  129. // 生命周期钩子:实例销毁前调用
  130. },
  131. destroyed() {
  132. // 生命周期钩子:实例销毁后调用
  133. },
  134. errorCaptured(err, vm, info) {
  135. // 生命周期钩子:当捕获一个来自子孙组件的错误时被调用。此钩子会收到三个参数:错误对象、发生错误的组件实例以及一个包含错误来源信息的字符串。
  136. console.log(err, vm, info);
  137. },
  138. methods: {},
  139. };
  140. </script>
  141. <style lang="scss" scoped>
  142. #MyDiv {
  143. // padding:0 15px;
  144. margin: 0 15px;
  145. }
  146. .cont-title {
  147. display: flex;
  148. justify-content: space-between;
  149. span {
  150. padding: 5px;
  151. }
  152. }
  153. .cont-title-item {
  154. width: 100%;
  155. margin: 0 auto;
  156. display: flex;
  157. justify-content: center;
  158. font-size: 20px;
  159. padding: 20px 0 10px 0;
  160. font-weight: 600;
  161. }
  162. .cont-left {
  163. // flex: 1;
  164. // min-height: 650px;
  165. // margin: 0 15px;
  166. // height: 800px;
  167. // overflow-y: scroll;
  168. background: #ffffff;
  169. // border: 1px solid #e2e2e2;
  170. padding: 10px;
  171. .cont-title-name {
  172. width: 100%;
  173. height: 50px;
  174. display: flex;
  175. // align-items: flex-end;
  176. justify-content: space-between;
  177. .cont-title-item {
  178. flex: 1;
  179. text-align: left;
  180. display: flex;
  181. justify-content: left;
  182. }
  183. .cont-title-text {
  184. font-weight: bold;
  185. }
  186. .cont-title-twidt {
  187. width: 35px;
  188. }
  189. .cont-title-normal {
  190. font-weight: normal;
  191. margin-left: 5px;
  192. }
  193. }
  194. }
  195. .cont-title-description {
  196. margin: 20px;
  197. font-size: 24px;
  198. font-weight: bold;
  199. color: #2c3240;
  200. // width: 1200px;
  201. text-align: center;
  202. }
  203. table {
  204. min-width: 1000px;
  205. table-layout: fixed;
  206. empty-cells: show;
  207. border-collapse: collapse;
  208. margin: 0 auto;
  209. margin-bottom: 30px;
  210. td {
  211. border: 1px solid #dddddd;
  212. // padding-left: 16px;
  213. text-align: center;
  214. font-size: 12px;
  215. box-sizing: border-box;
  216. }
  217. .table-label {
  218. width: 150px;
  219. height: 40px;
  220. color: #666666;
  221. background-color: #f9f9f9;
  222. }
  223. .table-value {
  224. width: 210px;
  225. height: 40px;
  226. color: #333333;
  227. // padding-right: 16px;
  228. text-align: center;
  229. }
  230. }
  231. .m-all {
  232. border: none;
  233. }
  234. .m-left {
  235. border-left: none;
  236. }
  237. .m-right {
  238. border-right: none;
  239. }
  240. .medical-font {
  241. font-weight: bold;
  242. }
  243. </style>