detail.vue 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. <template>
  2. <view>
  3. <uni-nav-bar fixed="true" statusBar="true" left-icon="back" title="备品备件详情" @clickLeft="back">
  4. </uni-nav-bar>
  5. <view style="padding-bottom: 110rpx;" v-if="'worksheetInfo'">
  6. <uni-collapse ref="collapse">
  7. <uni-collapse-item :open="(worksheetInfo && worksheetInfo.status.id == '99') ? false : true" :typeOpen="1" title="基本信息">
  8. <view class="bg">
  9. <CellInfo label="来源单号" :value="'OUT662615458256'"></CellInfo>
  10. <CellInfo label="领取人" :value="'张三'"></CellInfo>
  11. <CellInfo label="领取时间" :value="'2022-01-02 09:00:00'"></CellInfo>
  12. </view>
  13. </uni-collapse-item>
  14. </uni-collapse>
  15. <!-- 选择归还区域 -->
  16. <template>
  17. <CellTip title="选择归还区域"> </CellTip>
  18. <Cell cellType="more" title="选择仓库">
  19. <view class="cell-list-more" slot="more" >
  20. <text>仓库一</text>
  21. <uni-icons type="right" size="18" color="#ccc"></uni-icons>
  22. </view>
  23. </Cell>
  24. <Cell cellType="more" title="选择库区">
  25. <view class="cell-list-more" slot="more" >
  26. <text>仓库一</text>
  27. <uni-icons type="right" size="18" color="#ccc"></uni-icons>
  28. </view>
  29. </Cell>
  30. </template>
  31. <!-- 选择备品备件 -->
  32. <uni-collapse ref="collapse">
  33. <uni-collapse-item :open="false" :typeOpen="1" title="申请的备品备件">
  34. </uni-collapse-item>
  35. </uni-collapse>
  36. <uni-collapse ref="collapse">
  37. <uni-collapse-item :open="false" :typeOpen="1" title="已使用的备品备件">
  38. <view class="btn-main-box">
  39. <view class="btn btn-primary" @click="goSparepart('1')">
  40. 选择
  41. </view>
  42. </view>
  43. </uni-collapse-item>
  44. </uni-collapse>
  45. </view>
  46. <view class="footer-btn">
  47. <view class="btns btns-first">
  48. 已用完,无需归还
  49. </view>
  50. <view class="btns">
  51. 归还
  52. </view>
  53. </view>
  54. </view>
  55. </template>
  56. <script>
  57. import Cell from '@/components/Cell.vue'
  58. import CellTip from '@/components/CellTip.vue'
  59. import CellInfo from '@/components/CellInfo.vue'
  60. import OrderDeatil from '../components/OrderDeatil.vue'
  61. export default {
  62. components: {
  63. Cell,
  64. OrderDeatil,
  65. CellTip,
  66. CellInfo
  67. },
  68. data() {
  69. return {
  70. worksheetInfo: null
  71. }
  72. },
  73. methods: {
  74. goSparepart(id) {
  75. uni.navigateTo({
  76. url: '../sparepart/sparepart?id=' + id
  77. })
  78. },
  79. }
  80. }
  81. </script>
  82. <style lang="scss" scoped>
  83. .btn-main-box {
  84. padding: 20rpx 0;
  85. .btn-primary {
  86. margin: 20rpx auto;
  87. width: 80rpx;
  88. text-align: center;
  89. }
  90. }
  91. </style>