extract.vue 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. <!-- -->
  2. <template>
  3. <div class="explorate" :class="{ downMode }" ref="layoutRef">
  4. <h2 class="title">当事人血样(尿样)提取登记表</h2>
  5. <div class="container">
  6. <table>
  7. <tr>
  8. <td width="15%" colspan="2">姓名</td>
  9. <td width="20%"><input type="text" /></td>
  10. <td width="10%">性别</td>
  11. <td width="5%"><input type="text" /></td>
  12. <td width="20%">身份证号码</td>
  13. <td width="30%" colspan="2"><input type="text" /></td>
  14. </tr>
  15. <tr>
  16. <td width="15%" colspan="2">事故时间</td>
  17. <td width="35%" colspan="3"><input type="text" /></td>
  18. <td width="20%">地点</td>
  19. <td width="30%" colspan="2"><input type="text" /></td>
  20. </tr>
  21. <tr>
  22. <td colspan="2">血样(尿样)提取时间</td>
  23. <td colspan="6"><input type="text" /></td>
  24. </tr>
  25. <tr>
  26. <td colspan="2">血样(尿样)提取地点</td>
  27. <td colspan="6"><input type="text" /></td>
  28. </tr>
  29. <tr>
  30. <td width="10%" rowspan="4" colspan="1">血样(尿样)提取人员填写</td>
  31. <td width="5%" rowspan="3">提取登记</td>
  32. <td colspan="3">A样本盛装容器编号</td>
  33. <td><input type="text" /></td>
  34. <td width="10%">提取量</td>
  35. <td>
  36. <div><input type="text" />ml</div>
  37. </td>
  38. </tr>
  39. <tr>
  40. <td colspan="3">B样本盛装容器编号</td>
  41. <td><input type="text" /></td>
  42. <td>提取量</td>
  43. <td>
  44. <div><input type="text" />ml</div>
  45. </td>
  46. </tr>
  47. <tr>
  48. <td colspan="1">消毒名称</td>
  49. <td colspan="2"><input type="text" /></td>
  50. <td>密封方式</td>
  51. <td colspan="2"><input type="text" /></td>
  52. </tr>
  53. <tr>
  54. <td width="10%" colspan="2">提取人员单位</td>
  55. <td colspan="2"><input type="text" /></td>
  56. <td>提取人员(签名)</td>
  57. <td colspan="2"><input type="text" /></td>
  58. </tr>
  59. <tr>
  60. <td>通知家属情况</td>
  61. <td colspan="7"><input type="text" /></td>
  62. </tr>
  63. <tr>
  64. <td>被提取人(签名)</td>
  65. <td colspan="2"><input type="text" /></td>
  66. <td>见证人(签名)</td>
  67. <td colspan="2"><input type="text" /></td>
  68. <td>交通警察(签名)</td>
  69. <td colspan="2"><input type="text" /></td>
  70. </tr>
  71. <tr>
  72. <td>办案单位</td>
  73. <td colspan="7"><input type="text" /></td>
  74. </tr>
  75. </table>
  76. </div>
  77. </div>
  78. </template>
  79. <script setup lang="ts">
  80. import { reactive, ref, toRefs, onBeforeMount, onMounted, nextTick } from 'vue';
  81. </script>
  82. <style lang="scss" scoped>
  83. td[contenteditable] {
  84. // display: flex;
  85. // align-items: center;
  86. // justify-content: center;
  87. }
  88. .explorate {
  89. color: #000;
  90. font-size: 20px;
  91. // padding: 10px 30px;
  92. width: 100%;
  93. height: 100%;
  94. // display: grid;
  95. overflow: auto;
  96. font-family: sr, st;
  97. box-sizing: border-box;
  98. .title {
  99. text-align: center;
  100. margin-bottom: 10px;
  101. }
  102. .container {
  103. table {
  104. width: 100%;
  105. // height: 100%;
  106. border-collapse: collapse;
  107. border: 1px solid #000;
  108. tr {
  109. &:last-of-type {
  110. td {
  111. border-bottom: none;
  112. }
  113. }
  114. td {
  115. // height: 40px;
  116. height: 110px;
  117. outline: none;
  118. // line-height: 24px;
  119. padding: 0 5px;
  120. text-align: center;
  121. border-right: 1px solid #000;
  122. border-bottom: 1px solid #000;
  123. &:last-of-type {
  124. border-right: none;
  125. }
  126. > div {
  127. display: flex;
  128. align-items: center;
  129. justify-content: flex-start;
  130. input {
  131. width: 100%;
  132. height: 100%;
  133. text-align: center;
  134. }
  135. }
  136. input {
  137. width: 100%;
  138. height: 100%;
  139. text-align: center;
  140. }
  141. }
  142. }
  143. }
  144. }
  145. &.downMode {
  146. // table {
  147. // border: 1px solid #000;
  148. // tr {
  149. // td {
  150. // border: none;
  151. // border-bottom: 1px solid #000;
  152. // border-right: 1px solid #000;
  153. // &:last-of-type {
  154. // border-right: none;
  155. // }
  156. // }
  157. // }
  158. // }
  159. }
  160. }
  161. </style>