pickCard.vue 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. <template>
  2. <view>
  3. <checkbox-group v-for="(item, index) in list" :key="index" @change="e => selectVal(e, item, index)">
  4. <label>
  5. <view class="card_box" @click="openDetails(item.pickStatus, item.id)">
  6. <view class="item_box rx-bc">
  7. <view class="rx-sc">
  8. <checkbox v-if='item.pickStatus == 0' :checked="item.checked" />
  9. <view class="orderId">{{item.code}} </view>
  10. </view>
  11. <view class="status FAA" :class="[item.pickStatus == 0 ? 'FAA': '' ]"> {{ item.pickStatus == 0 ? '未领料' : '已领料' }}</view>
  12. </view>
  13. <view class="item_box rx-bc">
  14. <view class="item_one perce50 rx-sc">
  15. <view class="lable">产品编码:</view>
  16. <view>{{item.productCode}}</view>
  17. </view>
  18. <view class="item_one perce50 rx-sc">
  19. <view>名称:</view>
  20. <view>{{item.productName}}</view>
  21. </view>
  22. </view>
  23. <view class="item_box rx-bc">
  24. <view class="item_one perce50 rx-sc">
  25. <view class="lable">牌号:</view>
  26. <view>{{item.brandNo}}</view>
  27. </view>
  28. <view class="item_one perce50 rx-sc">
  29. <view>型号:</view>
  30. <view>{{item.model}}</view>
  31. </view>
  32. </view>
  33. <view class="item_box rx-bc">
  34. <view class="item_one perce50 rx-sc">
  35. <view class="lable">生产数量:</view>
  36. <view>{{item.formingWeight}}</view>
  37. </view>
  38. <view class="item_one perce50 rx-sc">
  39. <view>状态:</view>
  40. <view>{{statusList[item.status]}}</view>
  41. </view>
  42. </view>
  43. <view class="item_box rx-sc">
  44. <view class="item_one rx-sc">
  45. <view class="lable">工艺路线:</view>
  46. <view class="gylx">{{item.produceRoutingName}}</view>
  47. </view>
  48. </view>
  49. </view>
  50. </label>
  51. </checkbox-group>
  52. </view>
  53. </template>
  54. <script>
  55. export default {
  56. props: {
  57. list: {
  58. type: Array,
  59. default: () => []
  60. },
  61. },
  62. data() {
  63. return {
  64. statusList: {
  65. 4: '待生产',
  66. 5: '生产中',
  67. 6: '已完成',
  68. 7: '已延期',
  69. 8: '待下达'
  70. }
  71. }
  72. },
  73. methods: {
  74. selectVal(e, val, index) {
  75. this.list[index].checked = !this.list[index].checked
  76. },
  77. openDetails(pickStatus, id) {
  78. if(pickStatus == 1) {
  79. let url = `/pages/pda/picking/bill/index?id=${id}`
  80. uni.navigateTo({
  81. url
  82. })
  83. }
  84. }
  85. }
  86. }
  87. </script>
  88. <style lang="scss" scoped>
  89. .card_box {
  90. width: 750rpx;
  91. padding: 16rpx 24rpx;
  92. box-sizing: border-box;
  93. border-bottom: 2rpx solid #E1E1E1;
  94. .item_box {
  95. margin-top: 10rpx;
  96. .orderId {
  97. color: #000;
  98. font-family: PingFang HK;
  99. font-size: 28rpx;
  100. font-style: normal;
  101. font-weight: 600;
  102. margin-left: 16rpx;
  103. margin-top: 8rpx;
  104. }
  105. .item_one {
  106. width: 100%;
  107. font-size: 26rpx;
  108. font-style: normal;
  109. font-weight: 400;
  110. line-height: 38rpx;
  111. word-wrap: break-word;
  112. }
  113. .gylx {
  114. color: $theme-color;
  115. }
  116. .perce50 {
  117. width: 50%;
  118. }
  119. .status {
  120. font-size: 26rpx;
  121. &.FAA {
  122. color: #FFA929;
  123. }
  124. }
  125. /deep/ .uni-checkbox-input-checked {
  126. background-color: $theme-color !important;
  127. border-color: $theme-color !important;
  128. }
  129. }
  130. }
  131. </style>