errorModel.vue 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  1. <template>
  2. <view class="showModel" v-if="speDATA && speDATA.data">
  3. <view class="showModel__wrap">
  4. <view class="showModel__header">
  5. 提示
  6. </view>
  7. <view class="content">
  8. <view class="content-box">
  9. <view class="icon">
  10. <text class="red newicon newicon-guanbi1"></text>
  11. </view>
  12. <view class="list flex">
  13. <view>条码:<text class="mar-rig" :class="speDATA.data.urgent==0?'green':'red'">{{speDATA.data.urgent==0?'普':'急'}}</text> {{speDATA.data.scode}}</view>
  14. <view>{{speDATA.data.speState ? speDATA.data.speState.name : ''}}</view>
  15. </view>
  16. <view class="list">检查项目:{{ speDATA.data.specimenDesc || "-" }}</view>
  17. <view class="list">类型:{{speDATA.data.stype ? speDATA.data.stype.name : ''}} <text v-if="speDATA.data.tubeType">、</text> {{speDATA.data.tubeType && speDATA.data.tubeType.name || ''}}</view>
  18. <view class="list">患者:{{ speDATA.data.patientName}} <text v-if="speDATA.data.bedNum">({{speDATA.data.bedNum}})</text></view>
  19. <view class="list">{{speDATA.data.sickRoom.dept}}
  20. <text style="width: 4em;text-align: center;margin-left: 1em;margin-right: 1em;" class="newicon newicon-arrow-right-full"></text>
  21. {{speDATA.data.checkDept.dept}}</view>
  22. <view class="list weight">{{speDATA.msg}}</view>
  23. <view class="list" v-if="speDATA.speVerifyType=='collectDept'
  24. || speDATA.speVerifyType=='testDept' || speDATA.speVerifyType=='tubeType'
  25. || speDATA.speVerifyType=='urgent'">
  26. <checkbox-group @change="forceDeptInputBlur">
  27. <checkbox value="addConfig" :checked="addConfig" color="#49b856" />{{msg}}
  28. </checkbox-group>
  29. </view>
  30. </view>
  31. </view>
  32. <view class="bottom">
  33. <button class="bottom-btn confirm-btn" @click="confirm">是</button>
  34. <button class="bottom-btn" @click="cancel">否</button>
  35. </view>
  36. </view>
  37. </view>
  38. </template>
  39. <script>
  40. import {
  41. get,
  42. post,
  43. SM
  44. } from "../../http/http.js";
  45. export default {
  46. data() {
  47. return {
  48. addConfig:false,
  49. msg:null,
  50. };
  51. },
  52. props: {
  53. speDATA:{
  54. type:Object,
  55. default:{}
  56. },
  57. errorModal:{
  58. type:Boolean,
  59. default:false
  60. },
  61. },
  62. watch:{
  63. errorModal(e){
  64. console.log(2222,e)
  65. if(e){
  66. if(this.speDATA.speVerifyType=='collectDept'){
  67. this.msg = '增加收取科室'
  68. }else if(this.speDATA.speVerifyType=='testDept'){
  69. this.msg = '收取本科室不在提示'
  70. }else if(this.speDATA.speVerifyType=='tubeType'){
  71. this.msg = '收取此试管类型不在提示'
  72. }else if(this.speDATA.speVerifyType=='urgent'){
  73. this.msg = '记录本次操作,不在提示'
  74. }
  75. }
  76. }
  77. },
  78. created(){
  79. },
  80. methods: {
  81. forceDeptInputBlur(e){
  82. this.addConfig = e.detail.value.length > 0
  83. },
  84. confirm(){
  85. if(this.speDATA.speVerifyType!='collectDept'
  86. && this.speDATA.speVerifyType!='testDept' && this.speDATA.speVerifyType!='tubeType'
  87. && this.speDATA.speVerifyType!='urgent'){
  88. this.addConfig = true
  89. }
  90. let data = {
  91. code: this.speDATA.data.scode,
  92. addConfig: this.addConfig
  93. }
  94. console.log(this.addConfig)
  95. this.$emit('confirm', data)
  96. },
  97. cancel(){
  98. this.$emit('cancel')
  99. },
  100. },
  101. };
  102. </script>
  103. <style lang="less" scoped>
  104. .showModel {
  105. position: fixed;
  106. left: 0;
  107. right: 0;
  108. top: 0;
  109. bottom: 0;
  110. background-color: rgba(0, 0, 0, 0.2);
  111. z-index: 99;
  112. .showModel__wrap {
  113. width: 90%;
  114. position: absolute;
  115. left: 50%;
  116. top: 50%;
  117. transform: translate(-50%, -50%);
  118. background-color: #fff;
  119. border-radius: 12rpx;
  120. .showModel__header {
  121. font-size: 36rpx;
  122. color: #000;
  123. font-weight: bold;
  124. height: 84rpx;
  125. display: flex;
  126. justify-content: center;
  127. align-items: center;
  128. }
  129. .content{
  130. background: #FAFBFD;
  131. border-top: 1px solid #E6E6E6;
  132. // margin-bottom: 20rpx;
  133. .content-tip{
  134. text-align: center;
  135. padding: 50rpx 0 30rpx 0;
  136. font-size: 28rpx;
  137. }
  138. .content-box{
  139. padding: 24rpx;
  140. .icon{
  141. text-align: center;
  142. .red{
  143. font-size: 80rpx;
  144. }
  145. }
  146. .flex{
  147. display: flex;
  148. justify-content: space-between;
  149. }
  150. .weight{
  151. font-weight: bold;
  152. }
  153. .list{
  154. padding: 20rpx 0;
  155. }
  156. .content-item{
  157. width: 80rpx;
  158. height: 80rpx;
  159. border-radius: 10rpx;
  160. border: 1px solid #CCCCCC;
  161. color: #000;
  162. font-size: 32rpx;
  163. // margin: 0 20rpx;
  164. text-align: center;
  165. }
  166. }
  167. }
  168. .bottom{
  169. border-top: 1px solid #ccc;
  170. display: flex;
  171. uni-button{
  172. border-radius: 0 !important;
  173. background: #fff !important;
  174. }
  175. uni-button:after{
  176. border: none !important;
  177. }
  178. .bottom-btn{
  179. color: #A8A8A8;
  180. font-size: 30rpx;
  181. padding: 20rpx 0;
  182. width: 50%;
  183. display: flex;
  184. align-items: center;
  185. justify-content: center;
  186. }
  187. .confirm-btn{
  188. color: #5DAC6B;
  189. border-right: 1px solid #ccc;
  190. }
  191. }
  192. }
  193. .green{
  194. color: #49B856;
  195. }
  196. .mar-rig{
  197. margin-right: 8rpx;
  198. }
  199. }
  200. </style>