opinionInfo.vue 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <template>
  2. <view class="main">
  3. <view class="opinionList bg-white">
  4. <view class="margin-top-sm margin-lr-sm">
  5. <view class="text-df margin-top-sm" style="color: rgb(102,102,102);">
  6. <text class="text-leftstyle">订单号:</text><text style="color: rgb(51,51,51);">{{infodata.order.order_sn}}</text>
  7. </view>
  8. <view class="text-df margin-top-sm" style="color: rgb(102,102,102);">
  9. <text class="text-leftstyle">填写医生:</text><text style="color: rgb(51,51,51);">{{infodata.order.docter.name}}</text>
  10. </view>
  11. <view class="text-df margin-top-sm" style="color: rgb(102,102,102);">
  12. <text class="text-leftstyle">填写时间:</text><text style="color: rgb(51,51,51);">{{infodata.created_at}}</text>
  13. </view>
  14. </view>
  15. </view>
  16. <view class="margin-top-sm bg-white padding-sm">
  17. <view class="text-df margin-top-sm" style="color: rgb(102,102,102);">
  18. <text class="text-leftstyle1">病症:</text><text style="color: rgb(51,51,51);">{{infodata.symptoms}}</text>
  19. </view>
  20. <view class="text-df margin-top-sm" style="color: rgb(102,102,102);">
  21. <text class="text-leftstyle1">病因:</text><text style="color: rgb(51,51,51);">{{infodata.pathogen}}</text>
  22. </view>
  23. <view class="text-df margin-top-sm" style="color: rgb(102,102,102);">
  24. <text class="text-leftstyle1">结论建议:</text>
  25. <view style="color: rgb(51,51,51);margin-top: 10rpx;line-height: 43rpx;padding-left: 140rpx;">{{infodata.suggest}}</view>
  26. </view>
  27. </view>
  28. <view class="margin-top-sm bg-white padding-sm" style="border-top: 2rpx solid #efefef;">
  29. <view class="text-df margin-top-sm" style="color: rgb(102,102,102);">
  30. <text class="text-leftstyle1" style="font-weight: bold;">补充意见</text>
  31. </view>
  32. <view class="" v-for="(item,index) in infodata.suggests_detail" :key="index">
  33. <view class="text-df margin-top-sm" style="color: rgb(102,102,102);">
  34. <text class="text-leftstyle1">补充原因:</text>
  35. <text style="color: rgb(51,51,51);">{{item.supplement_content}}</text>
  36. </view>
  37. <view class="text-df margin-top-sm" style="color: rgb(102,102,102);">
  38. <text class="text-leftstyle1">补充内容:</text>
  39. <view style="color: rgb(51,51,51);margin-top: 10rpx;line-height: 43rpx; padding-left: 140rpx;">{{item.supplement_reason}}</view>
  40. </view>
  41. </view>
  42. </view>
  43. <view class="cu-tabbar-height"></view>
  44. </view>
  45. </template>
  46. <script>
  47. export default {
  48. onLoad(op) {
  49. this.infoid = op.id
  50. },
  51. mounted() {
  52. this.getopinionInfo()
  53. },
  54. data() {
  55. return {
  56. infoid: "",
  57. infodata: {}
  58. }
  59. },
  60. methods: {
  61. getopinionInfo: async function() {
  62. let res = await this.$request.post("/api/v1/suggest/suggestDetail", {
  63. suggest_id: this.infoid
  64. })
  65. console.log(res)
  66. if (res.status == 0) {
  67. this.infodata = res.data
  68. }
  69. }
  70. },
  71. onShow() {
  72. }
  73. }
  74. </script>
  75. <style lang="scss">
  76. page {
  77. background-color: #fff;
  78. }
  79. .opinionList {
  80. padding-top: 20rpx;
  81. padding-bottom: 20rpx;
  82. }
  83. .text-leftstyle {
  84. text-align: right;
  85. width: 140rpx;
  86. display: inline-block;
  87. }
  88. .text-leftstyle1 {
  89. text-align: left;
  90. width: 140rpx;
  91. display: inline-block;
  92. }
  93. </style>