index.vue 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295
  1. <template>
  2. <view class="content-box">
  3. <uni-nav-bar fixed="true" statusBar="true" left-icon="back" :title="title" background-color="#157A2C"
  4. color="#fff" @clickLeft="back"></uni-nav-bar>
  5. <view class="top-wrapper cx">
  6. <stepsNav></stepsNav>
  7. <view class="tab_box rx-sc">
  8. <view class="tab_item" :class="{active: tabType == 1}" @click="handTab(1)">基本信息</view>
  9. <view class="tab_item" :class="{active: tabType == 2}" @click="handTab(2)">生产明细</view>
  10. </view>
  11. </view>
  12. <view class="list_box">
  13. <u-list @scrolltolower="scrolltolower" key="info" v-if="tabType == 1">
  14. <view class="item_list rx-bc">
  15. <text class="lable">生产工单号</text>
  16. <text>21122403906633005</text>
  17. </view>
  18. <view class="item_list rx-bc">
  19. <text class="lable">计划编号</text>
  20. <text>211224039</text>
  21. </view>
  22. <view class="item_list rx-bc">
  23. <text class="lable">工艺路线版本</text>
  24. <text>2.0</text>
  25. </view>
  26. <view class="item_list rx-bc">
  27. <text class="lable">产品编码</text>
  28. <text>W05363955011</text>
  29. </view>
  30. <view class="item_list rx-bc">
  31. <text class="lable">产品名称</text>
  32. <text>木工刀</text>
  33. </view>
  34. <view class="item_list rx-bc">
  35. <text class="lable">牌号</text>
  36. <text>H25.5</text>
  37. </view>
  38. <view class="item_list rx-bc">
  39. <text class="lable">型号</text>
  40. <text>H25.5</text>
  41. </view>
  42. <view class="item_list rx-bc">
  43. <text class="lable">要求成型数量</text>
  44. <text>1000 PCS</text>
  45. </view>
  46. <view class="item_list rx-bc">
  47. <text class="lable">要求成型重量</text>
  48. <text>850.5 KG</text>
  49. </view>
  50. <view class="item_list rx-bc">
  51. <text class="lable">已完成生产数量</text>
  52. <text>293 PCS</text>
  53. </view>
  54. <view class="item_list rx-bc">
  55. <text class="lable">已完成生产重量</text>
  56. <text>85.5 KG</text>
  57. </view>
  58. <view class="item_list rx-bc">
  59. <text class="lable">计划开始时间</text>
  60. <text>2023/08/10 02:00:00</text>
  61. </view>
  62. </u-list>
  63. <u-list @scrolltolower="scrolltolower" key="detail" v-if="tabType == 2">
  64. <view v-for="(item,index) in detailList" :key="index" class="detail-list">
  65. <view class="name">{{item.name}}</view>
  66. <view class="list rx-bc" v-for="(it, idx) in item.list">
  67. <view class="title rx-sc">
  68. <image v-if="it.state == 1" class="icon" src="~@/static/pda/layers.svg"></image>
  69. <image v-if="it.state == 2" class="icon" src="~@/static/pda/check-square.svg"></image>
  70. <image v-if="it.state == 3" class="icon" src="~@/static/pda/target.svg"></image>
  71. {{it.title}}
  72. </view>
  73. <view class="rx-ec">
  74. {{it.num}}
  75. <image class="arrow_right2" src="~@/static/pda/arrow_right2.svg"></image>
  76. </view>
  77. </view>
  78. </view>
  79. </u-list>
  80. </view>
  81. <view class="bottom-wrapper">
  82. <bottomOperate state='1'></bottomOperate>
  83. </view>
  84. </view>
  85. </template>
  86. <script>
  87. import bottomOperate from '../../components/bottomOperate.vue'
  88. import stepsNav from '../../components/stepsNav.vue'
  89. export default {
  90. components: {
  91. bottomOperate,
  92. stepsNav
  93. },
  94. data() {
  95. return {
  96. title: '',
  97. tabType: 1,
  98. detailList: [{
  99. name: '挤压成型',
  100. list: [{
  101. state: 1,
  102. title: '待投料数量',
  103. num: 333
  104. },
  105. {
  106. state: 2,
  107. title: '已报工数量',
  108. num: 666
  109. }
  110. ]
  111. },
  112. {
  113. name: '自然干燥',
  114. list: [{
  115. state: 3,
  116. title: '生产中数量',
  117. num: 555
  118. },
  119. {
  120. state: 2,
  121. title: '已报工数量',
  122. num: 666
  123. }
  124. ]
  125. }
  126. ]
  127. }
  128. },
  129. onLoad(options) {
  130. this.title = options.title
  131. },
  132. methods: {
  133. scrolltolower() {},
  134. handTab(type) {
  135. if (type != this.tabType) {
  136. this.tabType = type
  137. }
  138. }
  139. }
  140. }
  141. </script>
  142. <style lang="scss" scoped>
  143. .content-box {
  144. height: 100vh;
  145. overflow: hidden;
  146. display: flex;
  147. flex-direction: column;
  148. background-color: $page-bg;
  149. }
  150. .top-wrapper {
  151. background-color: #fff;
  152. display: flex;
  153. width: 750rpx;
  154. background: #fff;
  155. align-items: center;
  156. }
  157. .tab_box {
  158. width: 100%;
  159. height: 68rpx;
  160. .tab_item {
  161. height: 68rpx;
  162. line-height: 68rpx;
  163. padding: 0 20rpx;
  164. font-size: 32rpx;
  165. color: #979C9E;
  166. }
  167. .active {
  168. box-sizing: border-box;
  169. border-bottom: 6rpx solid $theme-color;
  170. color: $theme-color;
  171. }
  172. }
  173. .list_box {
  174. flex: 1;
  175. overflow: hidden;
  176. padding: 4rpx 0;
  177. .u-list {
  178. height: 100% !important;
  179. }
  180. .item_list {
  181. width: 100%;
  182. height: 80rpx;
  183. box-sizing: border-box;
  184. padding: 0 32rpx;
  185. font-size: 32rpx;
  186. color: #979C9E;
  187. font-weight: 400;
  188. border-bottom: 1rpx solid #E3E5E5;
  189. .lable {
  190. color: #090A0A;
  191. font-weight: 500;
  192. }
  193. }
  194. .detail-list {
  195. line-height: 80rpx;
  196. .name {
  197. color: #090A0A;
  198. font-size: 32rpx;
  199. font-weight: 600;
  200. padding: 0 32rpx;
  201. box-sizing: border-box;
  202. border-bottom: 1rpx solid #E3E5E5;
  203. }
  204. .list {
  205. padding: 0 32rpx;
  206. box-sizing: border-box;
  207. border-bottom: 1rpx solid #E3E5E5;
  208. .title {
  209. font-weight: 400;
  210. color: #090A0A;
  211. }
  212. .icon {
  213. width: 36rpx;
  214. height: 36rpx;
  215. margin-right: 8rpx;
  216. }
  217. .arrow_right2{
  218. width: 12rpx;
  219. height: 24rpx;
  220. margin-left: 8rpx;
  221. }
  222. }
  223. }
  224. }
  225. .bottom-wrapper {}
  226. </style>