djTaskDetail.vue 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <template>
  2. <view class="djTaskDetail">
  3. <uni-card>
  4. <!-- 代煎作业质控标题 -->
  5. <uni-section title="代煎作业质控" type="line" class="djTaskDetail_title">
  6. <template v-slot:right>
  7. <view class="right_title">不合格数<view class="right_text">1</view></view>
  8. </template>
  9. </uni-section>
  10. <!-- 代煎数 -->
  11. <view class="djNum">
  12. <view class="djNum_title">代煎7贴:<view class="djNum_text">1/10</view></view>
  13. <view class="djNum_title">代煎14贴:<view class="djNum_text">2/10</view></view>
  14. </view>
  15. <!-- 代煎表格 -->
  16. <view>
  17. <uni-table class="djDetail_table">
  18. <!-- 表头行 -->
  19. <uni-tr>
  20. <uni-th align="center" width="155rpx">处方编号</uni-th>
  21. <uni-th align="center" width="150rpx">贴数(贴)</uni-th>
  22. <uni-th align="center" width="150rpx">检查项</uni-th>
  23. <uni-th align="center" width="155rpx">不合格项</uni-th>
  24. </uni-tr>
  25. <!-- 表格数据行 -->
  26. <uni-tr v-for="(item, index) in pageData.djTaskList" :key="index">
  27. <uni-td align="center">{{item.cfbh}}</uni-td>
  28. <uni-td align="center">{{item.ts}}</uni-td>
  29. <uni-td align="center">{{item.jcx}}</uni-td>
  30. <uni-td align="center">{{item.bhgx}}
  31. <uni-icons type="right" @click="toDetail(item)"></uni-icons>
  32. </uni-td>
  33. </uni-tr>
  34. </uni-table>
  35. </view>
  36. </uni-card>
  37. </view>
  38. </template>
  39. <script setup>
  40. import { reactive } from "vue";
  41. const pageData=reactive({
  42. djTaskList:[
  43. {
  44. cfbh:'111111',
  45. ts:'1',
  46. jcx:'1',
  47. bhgx:'1'
  48. },
  49. {
  50. cfbh:'222222',
  51. ts:'2',
  52. jcx:'2',
  53. bhgx:'2'
  54. }
  55. ]
  56. })
  57. // 跳转详情界面
  58. const toDetail=(e)=>{
  59. console.log(e)
  60. uni.navigateTo({
  61. url:"/pages/ypczk/zkTask/djTask?status=get"
  62. })
  63. }
  64. </script>
  65. <style lang="scss" scoped>
  66. @import './index.scss'
  67. </style>