repairRecord.vue 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. <template>
  2. <view class="container">
  3. <view class="title">维修日期</view>
  4. <uni-datetime-picker placeholder="请选择日期" type="date" v-model="single" />
  5. <view class="title">维修内容</view>
  6. <view class="textarea">
  7. <textarea placeholder-style="color:#CCCCCC" placeholder="请输入维修内容"></textarea>
  8. </view>
  9. <view class="title">维修结果</view>
  10. <!-- 录音区域 -->
  11. <view class="voice">
  12. <view class="voice_box">
  13. <img src="../../static/images/repairsImg/voice.png" />
  14. </view>
  15. 点击录音
  16. </view>
  17. <view class="title">关联耗材</view>
  18. <!-- 每一个耗材盒子区域 -->
  19. <view class="detail_box">
  20. <view class="detail_box_item">
  21. <view class="item_key">耗材名称</view>
  22. <view class="item_value">螺丝钉</view>
  23. </view>
  24. <view class="detail_box_item">
  25. <view class="item_key">耗材数量</view>
  26. <view class="item_value">
  27. <uni-number-box v-model="count" :min="0" @change="bindChange"></uni-number-box>
  28. </view>
  29. </view>
  30. <view class="detail_box_item">
  31. <view class="item_key">耗材单价</view>
  32. <view class="item_value">0.5</view>
  33. </view>
  34. </view>
  35. <!-- 添加耗材区域 -->
  36. <view class="add" @click="handleAdd">
  37. <text>+</text>
  38. 添加耗材
  39. </view>
  40. <!-- 合计费用区域 -->
  41. <view class="total">
  42. <view>合计费用</view>
  43. <view>10元</view>
  44. </view>
  45. </view>
  46. </template>
  47. <script>
  48. export default {
  49. data() {
  50. return {
  51. single: '',
  52. count: 6
  53. }
  54. },
  55. methods: {
  56. bindChange() {},
  57. handleAdd() {
  58. uni.navigateTo({
  59. url: '/pagesRepairs/addGoods/addGoods'
  60. })
  61. }
  62. }
  63. }
  64. </script>
  65. <style lang="scss" scoped>
  66. .container {
  67. box-sizing: border-box;
  68. padding: 0 30rpx;
  69. overflow-y: auto;
  70. .title {
  71. display: flex;
  72. align-items: center;
  73. height: 107rpx;
  74. font-size: 36rpx;
  75. font-weight: bold;
  76. }
  77. .textarea {
  78. height: 310rpx;
  79. border-radius: 10rpx;
  80. border: 1rpx solid #cccccc;
  81. textarea {
  82. box-sizing: border-box;
  83. padding: 25rpx 35rpx;
  84. width: 100%;
  85. font-size: 32rpx;
  86. }
  87. }
  88. .voice {
  89. display: flex;
  90. align-items: center;
  91. height: 94rpx;
  92. font-size: 32rpx;
  93. color: #cccccc;
  94. border-radius: 10rpx;
  95. border: 1rpx solid #cccccc;
  96. .voice_box {
  97. display: flex;
  98. justify-content: center;
  99. align-items: center;
  100. margin: 0 38rpx 0 33rpx;
  101. width: 101rpx;
  102. height: 47rpx;
  103. border-radius: 33rpx;
  104. box-shadow: 0px 0px 4rpx rgba(0, 0, 0, 0.25);
  105. img {
  106. width: 33rpx;
  107. height: 33rpx;
  108. }
  109. }
  110. }
  111. .detail_box {
  112. box-sizing: border-box;
  113. margin-bottom: 46rpx;
  114. padding: 5rpx 30rpx 0;
  115. width: 690rpx;
  116. height: 284rpx;
  117. border-radius: 9rpx;
  118. box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.25);
  119. .detail_box_item {
  120. display: flex;
  121. justify-content: space-between;
  122. align-items: center;
  123. height: 92rpx;
  124. font-size: 32rpx;
  125. border-bottom: 1rpx solid #e5e5e5;
  126. .item_key {
  127. width: 150rpx;
  128. color: #808080;
  129. }
  130. .item_value {
  131. font-weight: bold;
  132. }
  133. }
  134. }
  135. .add {
  136. display: flex;
  137. justify-content: center;
  138. align-items: center;
  139. width: 690rpx;
  140. height: 90rpx;
  141. color: #6fb6b8;
  142. font-size: 32rpx;
  143. border-radius: 9rpx;
  144. background-color: #ebf2f2;
  145. text {
  146. margin-right: 10rpx;
  147. font-size: 48rpx;
  148. }
  149. }
  150. .total {
  151. display: flex;
  152. justify-content: space-between;
  153. align-items: center;
  154. margin: auto;
  155. width: 622rpx;
  156. height: 100rpx;
  157. font-size: 32rpx;
  158. font-weight: bold;
  159. border-bottom: 1rpx solid #e5e5e5;
  160. }
  161. }
  162. </style>