123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115 |
- <template>
- <view class="content">
- <view class="section">
- <view class="title">
- <view class="text">
- <view>今日产量</view>
- <view class="right_text">单位: 吨</view>
- </view>
- </view>
- <view class="inner">
- <p-production-report-inner-1 :mine="mine" :org_num="org_num"></p-production-report-inner-1>
- </view>
- </view>
- <!-- 产量趋势 -->
- <p-production-report-inner-2 :mine="mine" :org_num="org_num"></p-production-report-inner-2>
- <view class="section">
- <view class="title">
- 工作面详情
- </view>
- <view class="inner">
- <p-production-report-inner-3 :mine="mine" :org_num="org_num"></p-production-report-inner-3>
- </view>
- </view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- mine: "",
- org_num: ""
- };
- },
- onLoad(option) {
- this.mine = option.mine
- this.org_num = option.org_num
-
- this.get_product_data_query_power()
- },
- methods:{
- get_product_data_query_power(){
- this.$p_api.product_data_query_power({
- staff_num: uni.getStorageSync('user').staff_num,
- data_module: "scbb"
- }).then((res)=>{
- if(res.data.content.status){
- console.log("可查看")
- }else{
- uni.showToast({
- icon:"none",
- title:"没有查看权限!"
- })
-
- setTimeout(()=>{
- uni.navigateBack()
- },1000)
- }
- })
- },
- }
- }
- </script>
- <style lang="scss">
- page {
- background-color: #009FE8;
- }
- .content {
- width: 750rpx;
- box-sizing: border-box;
- padding: 0 25rpx;
- }
- .section {
- margin: 20rpx 0;
- width: 700rpx;
- background-color: #FFFFFF;
- border-radius: 16rpx;
- .title {
- font-size: 36rpx;
- color: #1e1e1e;
- font-weight: 700;
- box-sizing: border-box;
- padding: 30rpx 0;
- margin: 0 20rpx;
- .text {
- display: flex;
- justify-content: space-between;
- align-items: baseline;
- .right_text {
- font-size: 24rpx;
- color: #9a9a9a;
- font-weight: 400;
- }
- }
- }
- .inner {
- // min-height: 200px;
- }
- }
- </style>
|