index.vue 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. <template>
  2. <view class="page-container uni-column">
  3. <view class="logo-container uni-row">
  4. <image class="logo" src="../../static/images/logo.png" />
  5. </view>
  6. <view class="title"><text class="label">德迈仕数字生产线管理平台</text></view>
  7. <view class="user-info-container uni-row">
  8. <view class="icon"><text class="label">张</text></view>
  9. <view class="user-info uni-column">
  10. <view class="nickname"><text class="label">张三 ID 15521</text> </view>
  11. <view class="process"><text class="label">当前工段:热处理</text></view>
  12. </view>
  13. </view>
  14. <view class="business-btn uni-row" @click="handleToRecerptSfprod"><text class="label">半成品接收</text></view>
  15. <view class="business-btn uni-row" @click="handleToProductionPlan"><text class="label">报工</text></view>
  16. <view class="business-btn uni-row" @click="handleToHandlingList"><text class="label">周转</text></view>
  17. <view class="bottom-btn-container">
  18. <view class="start-batch-btn uni-row"><text class="label">绑定设备</text></view>
  19. <view class="start-batch-btn uni-row" @click="handleSwitchOrQuit"><text class="label">切换 / 退出账号</text></view>
  20. </view>
  21. </view>
  22. </template>
  23. <script setup>
  24. import { ref } from 'vue'
  25. import { getSubPlanDetailsList } from '../../api/business/subPlanDetails'
  26. const name = ref('')
  27. const handleToRecerptSfprod = () => {
  28. uni.navigateTo({
  29. url: "/pages/recerptSfprod/index",
  30. })
  31. }
  32. const handleToProductionPlan = () => {
  33. uni.navigateTo({
  34. url: "/pages/productionPlan/index",
  35. });
  36. getSubPlanDetailsList().then(res => {
  37. console.log(res);
  38. })
  39. }
  40. const handleToHandlingList = () => {
  41. uni.navigateTo({
  42. url: "/pages/handlingList/index",
  43. });
  44. }
  45. const handleSwitchOrQuit = () =>{
  46. uni.navigateTo({
  47. url:"/pages/index/index",
  48. })
  49. }
  50. </script>
  51. <style lang="scss">
  52. .logo-container {
  53. justify-content: center;
  54. .logo {
  55. width: 120rpx;
  56. height: 120rpx;
  57. }
  58. }
  59. .title {
  60. align-items: center;
  61. .label {
  62. font-size: 40rpx;
  63. font-weight: bold;
  64. }
  65. }
  66. .user-info-container {
  67. margin: 64rpx 0 40rpx 8rpx;
  68. .icon {
  69. width: 120rpx;
  70. height: 120rpx;
  71. justify-content: center;
  72. align-items: center;
  73. border-radius: 60rpx;
  74. border: 1px solid #e1e1e1;
  75. .label {
  76. font-size: 64rpx;
  77. }
  78. }
  79. .user-info {
  80. margin-left: 8rpx;
  81. justify-content: center;
  82. // font-size: 20rpx;
  83. .nickname {
  84. margin-bottom: 16rpx;
  85. .label {
  86. font-weight: bold;
  87. font-size: 32rpx;
  88. }
  89. }
  90. .process {
  91. .label {
  92. font-size: 32rpx;
  93. }
  94. }
  95. }
  96. }
  97. .business-btn {
  98. margin: 0 20rpx 20rpx 20rpx;
  99. background-color: #fff;
  100. height: 200rpx;
  101. border-radius: 4;
  102. align-items: center;
  103. justify-content: center;
  104. border: 1px solid #e1e1e1;
  105. border-radius: 8rpx;
  106. .label {
  107. font-size: 40rpx;
  108. }
  109. }
  110. .bottom-btn-container {
  111. position: fixed;
  112. right: 20rpx;
  113. bottom: 0;
  114. left: 20rpx;
  115. .start-batch-btn {
  116. background-color: grey;
  117. margin-bottom: 24rpx;
  118. border-radius: 8rpx;
  119. justify-content: center;
  120. align-items: center;
  121. height: 80rpx;
  122. .label {
  123. font-size: 32rpx;
  124. color: #FFFFFF;
  125. }
  126. }
  127. }
  128. </style>