order-card.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. <template>
  2. <view class="container" @click="handleDetail">
  3. <view class="lef">
  4. <view class="dtim">时间:{{props.v.prescriptionTime}}</view>
  5. <view class="patie">
  6. <image class="faceu" aspectFill :src="props.v.faceurl?props.v.faceurl:'https://qiniu-web-assets.dcloud.net.cn/unidoc/zh/cat-1.png'" />
  7. <view class="pattt">
  8. <view class="patiin">
  9. <view class="name">{{props.v.name}}</view>
  10. <view class="seage">{{props.v.sex}},{{v.age}}岁</view>
  11. </view>
  12. <view class="case">{{props.v.disName}}-{{props.v.symName}}</view>
  13. <view class="pres">当前处方状态: {{props.v.deployState}}</view>
  14. </view>
  15. </view>
  16. </view>
  17. <view class="rig">
  18. <view class="left">
  19. <view class="presno">处方号:{{props.v.preNo}}</view>
  20. <view class="presno">就诊科室:{{props.v.department}}</view>
  21. <view class="presno">
  22. 处方信息:
  23. <text class="tips">
  24. {{props.v.dosageForm}},{{props.v.number}}剂
  25. </text>
  26. </view>
  27. <view class="presno">处方金额:{{props.v.prescriptionSum}}元</view>
  28. </view>
  29. <view class="righ">
  30. <view class="source" :class="{'zy':props.v.preMzZy==='1'}">{{props.v.preMzZy==='1'?'门诊':'住院'}}</view>
  31. </view>
  32. </view>
  33. </view>
  34. </template>
  35. <script>
  36. export default {
  37. name: 'OrderCard'
  38. }
  39. </script>
  40. <script setup>
  41. import { onMounted, ref } from 'vue'
  42. const props = defineProps({
  43. v: {
  44. default: function() {
  45. return {}
  46. },
  47. type: Object
  48. },
  49. c: {
  50. default: 0,
  51. type: Number
  52. }
  53. })
  54. const handleDetail = ()=>{
  55. console.log("handleDetail", props.v, props.c)
  56. if(props.c===0){
  57. uni.navigateTo({
  58. url:`/pages/edit/edit?preId=${props.v.preId}&depolyStatus=1`
  59. })
  60. } else {
  61. uni.navigateTo({
  62. url:`/pages/detail/detail?preId=${props.v.preId}`
  63. })
  64. }
  65. }
  66. onMounted(() => {
  67. })
  68. </script>
  69. <style lang="scss">
  70. .container{
  71. display: flex;
  72. justify-content: flex-start;
  73. align-items: flex-start;
  74. width: 100%;
  75. margin-top: 10px;
  76. .lef{
  77. flex:1;
  78. display: flex;
  79. flex-direction: column;
  80. padding-left: 2px;
  81. .dtim{
  82. margin-bottom: 4px;
  83. }
  84. .patie{
  85. display: flex;
  86. .faceu{
  87. width: 70px;
  88. height:70px;
  89. }
  90. .pattt{
  91. margin-left: 12px;
  92. display: flex;
  93. flex-direction: column;
  94. .patiin{
  95. display: flex;
  96. .name{
  97. font-size: 20px;
  98. font-weight: 800;
  99. }
  100. .seage{
  101. margin-left: 12px;
  102. font-size: 18px;
  103. font-weight: 400;
  104. color: #cfcfcf;
  105. }
  106. }
  107. .case{
  108. font-size: 18px;
  109. font-weight: 400;
  110. color: #808184;
  111. }
  112. .pres{
  113. font-size: 18px;
  114. font-weight: 400;
  115. color: #cfcfcf;
  116. }
  117. }
  118. }
  119. }
  120. .rig{
  121. flex:1;
  122. display: flex;
  123. justify-content:space-between;
  124. margin-left: 200px;
  125. .left{
  126. display: flex;
  127. flex-direction: column;
  128. .presno{
  129. font-size: 18px;
  130. font-weight: 400;
  131. margin-bottom: 4px;
  132. color: #cfcfcf;
  133. .tips{
  134. color: #28292a;
  135. }
  136. }
  137. }
  138. .righ{
  139. .source{
  140. display: flex;
  141. align-items: center;
  142. justify-content: center;
  143. border-radius: 25px 0 0 25px;
  144. width: 80px;
  145. height: 50px;
  146. background-color: #808184;
  147. color: #fff;
  148. }
  149. .zy{
  150. background-color: #c6c8cd!important;
  151. color: #000!important;
  152. }
  153. }
  154. }
  155. }
  156. </style>