production_report.vue 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. <template>
  2. <view class="content">
  3. <view class="section">
  4. <view class="title">
  5. <view class="text">
  6. <view>今日产量</view>
  7. <view class="right_text">单位: 吨</view>
  8. </view>
  9. </view>
  10. <view class="inner">
  11. <p-production-report-inner-1 :mine="mine" :org_num="org_num"></p-production-report-inner-1>
  12. </view>
  13. </view>
  14. <!-- 产量趋势 -->
  15. <p-production-report-inner-2 :mine="mine" :org_num="org_num"></p-production-report-inner-2>
  16. <view class="section">
  17. <view class="title">
  18. 工作面详情
  19. </view>
  20. <view class="inner">
  21. <p-production-report-inner-3 :mine="mine" :org_num="org_num"></p-production-report-inner-3>
  22. </view>
  23. </view>
  24. </view>
  25. </template>
  26. <script>
  27. export default {
  28. data() {
  29. return {
  30. mine: "",
  31. org_num: ""
  32. };
  33. },
  34. onLoad(option) {
  35. this.mine = option.mine
  36. this.org_num = option.org_num
  37. this.get_product_data_query_power()
  38. },
  39. methods:{
  40. get_product_data_query_power(){
  41. this.$p_api.product_data_query_power({
  42. staff_num: uni.getStorageSync('user').staff_num,
  43. data_module: "scbb"
  44. }).then((res)=>{
  45. if(res.data.content.status){
  46. console.log("可查看")
  47. }else{
  48. uni.showToast({
  49. icon:"none",
  50. title:"没有查看权限!"
  51. })
  52. setTimeout(()=>{
  53. uni.navigateBack()
  54. },1000)
  55. }
  56. })
  57. },
  58. }
  59. }
  60. </script>
  61. <style lang="scss">
  62. page {
  63. background-color: #009FE8;
  64. }
  65. .content {
  66. width: 750rpx;
  67. box-sizing: border-box;
  68. padding: 0 25rpx;
  69. }
  70. .section {
  71. margin: 20rpx 0;
  72. width: 700rpx;
  73. background-color: #FFFFFF;
  74. border-radius: 16rpx;
  75. .title {
  76. font-size: 36rpx;
  77. color: #1e1e1e;
  78. font-weight: 700;
  79. box-sizing: border-box;
  80. padding: 30rpx 0;
  81. margin: 0 20rpx;
  82. .text {
  83. display: flex;
  84. justify-content: space-between;
  85. align-items: baseline;
  86. .right_text {
  87. font-size: 24rpx;
  88. color: #9a9a9a;
  89. font-weight: 400;
  90. }
  91. }
  92. }
  93. .inner {
  94. // min-height: 200px;
  95. }
  96. }
  97. </style>