ProcessOperate.vue 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <!-- 工序操作 -->
  2. <template>
  3. <view class="process-wrapper">
  4. <view class="process-item" v-if="type==0">
  5. <image src="@/static/mes/u56.png" mode="aspectFit"
  6. @click="$emit('handlePreparation')"
  7. ></image>
  8. 准备
  9. </view>
  10. <view class="process-item" v-if="type==1">
  11. <image
  12. src="@/static/mes/u59.png"
  13. mode="aspectFit"
  14. @click="$emit('handlePicking')"
  15. ></image>
  16. 投料
  17. </view>
  18. <view class="process-item">
  19. <image
  20. src="@/static/mes/u60.png"
  21. mode="aspectFit"
  22. @click="$emit('handleReport')"
  23. ></image>
  24. 报工
  25. </view>
  26. </view>
  27. </template>
  28. <script>
  29. export default {
  30. props: {
  31. type: {
  32. type: Number,
  33. default: 1
  34. }
  35. },
  36. data() {
  37. return {};
  38. },
  39. methods: {},
  40. };
  41. </script>
  42. <style lang="scss" scoped>
  43. .process-wrapper {
  44. display: flex;
  45. justify-content: space-around;
  46. align-items: center;
  47. .process-item {
  48. width: 212rpx;
  49. height: 144rpx;
  50. border: 1rpx solid $j-primary-green;
  51. color: $j-primary-green;
  52. border-radius: $uni-border-radius-lg;
  53. text-align: center;
  54. padding-top: 10rpx;
  55. image {
  56. display: block;
  57. margin: 0 auto;
  58. width: 68rpx;
  59. height: 80rpx;
  60. }
  61. }
  62. }
  63. </style>