pickCard.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  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">
  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. }
  78. }
  79. </script>
  80. <style lang="scss" scoped>
  81. .card_box {
  82. width: 750rpx;
  83. padding: 16rpx 24rpx;
  84. box-sizing: border-box;
  85. border-bottom: 2rpx solid #E1E1E1;
  86. .item_box {
  87. margin-top: 10rpx;
  88. .orderId {
  89. color: #000;
  90. font-family: PingFang HK;
  91. font-size: 28rpx;
  92. font-style: normal;
  93. font-weight: 600;
  94. margin-left: 16rpx;
  95. margin-top: 8rpx;
  96. }
  97. .item_one {
  98. width: 100%;
  99. font-size: 26rpx;
  100. font-style: normal;
  101. font-weight: 400;
  102. line-height: 38rpx;
  103. word-wrap: break-word;
  104. }
  105. .gylx {
  106. color: $theme-color;
  107. }
  108. .perce50 {
  109. width: 50%;
  110. }
  111. .status {
  112. font-size: 26rpx;
  113. &.FAA {
  114. color: #FFA929;
  115. }
  116. }
  117. /deep/ .uni-checkbox-input-checked {
  118. background-color: $theme-color !important;
  119. border-color: $theme-color !important;
  120. }
  121. }
  122. }
  123. </style>