chenlu
12 小时以前 33dbc6a161554f3a897f9e9273feb4f2c1b47381
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
<script setup>
import {ArrowDown, ArrowLeftBold, ArrowRight, Search} from "@element-plus/icons-vue"
 
import {useRouter,useRoute,onBeforeRouteUpdate} from "vue-router";
import { useI18n } from 'vue-i18n'
 
//语言获取
const { t } = useI18n()
 
 
const router = useRouter()
const route = useRoute()
let indexFlag=$ref(1)
function changeRouter(index){
  indexFlag=index
}
 
const handleCommand = (command) => {
  router.push({
    path: command
  })
}
</script>
 
<template>
  <div id="main-div">
    <div id="div-title">
        <el-breadcrumb :separator-icon="ArrowRight">
          <el-breadcrumb-item
              @click="changeRouter(2)"
              :class="indexFlag===2?'indexTag':''"
          >
            <el-dropdown @command="handleCommand">
            <span class="el-dropdown-link" style="font-weight: 700;outline: none;">
              {{ $t('report.finishedProductReport') }}
              <el-icon class="el-icon--right">
                <arrow-down />
              </el-icon>
            </span>
              <template #dropdown>
                <el-dropdown-menu>
                  <el-dropdown-item command="/main/stockReport/finishedProductInventoryReport" >{{$t('stockReport.finishedProductInventoryReport')}}</el-dropdown-item>
                  <el-dropdown-item command="/main/stockReport/finishedProductOutboundReport" >{{ $t('stockReport.finishedProductOutboundReport') }}</el-dropdown-item>
                  <el-dropdown-item command="/main/stockReport/finishedProductTransferReport" >{{ $t('stockReport.finishedProductTransferReport') }}</el-dropdown-item>
                  <el-dropdown-item command="/main/stockReport/finishedProductDeliveryReport" >{{ $t('stockReport.finishedProductDeliveryReport') }}</el-dropdown-item>
                </el-dropdown-menu>
              </template>
            </el-dropdown>
 
          </el-breadcrumb-item>
 
          <el-breadcrumb-item
              @click="changeRouter(2)"
              :class="indexFlag===2?'indexTag':''"
          >
            <el-dropdown @command="handleCommand">
            <span class="el-dropdown-link" style="font-weight: 700;outline: none;">
              {{ $t('stockReport.page.materialReport') }}
              <el-icon class="el-icon--right">
                <arrow-down />
              </el-icon>
            </span>
              <template #dropdown>
                <el-dropdown-menu>
                  <el-dropdown-item command="/main/stockReport/materialAdditionReport" >{{$t('stockReport.materialAdditionReport')}}</el-dropdown-item>
                  <el-dropdown-item command="/main/stockReport/materialOutboundReport" >{{ $t('stockReport.materialOutboundReport') }}</el-dropdown-item>
                  <el-dropdown-item command="/main/stockReport/materialReturnReport" >{{ $t('stockReport.materialReturnReport') }}</el-dropdown-item>
                  <el-dropdown-item command="/main/stockReport/optimizeOutboundReport" >{{ $t('stockReport.optimizeOutboundReport') }}</el-dropdown-item>
                </el-dropdown-menu>
              </template>
            </el-dropdown>
 
          </el-breadcrumb-item>
 
          <el-breadcrumb-item
              @click="changeRouter(2)"
              :class="indexFlag===2?'indexTag':''"
          >
            <el-dropdown @command="handleCommand">
            <span class="el-dropdown-link" style="font-weight: 700;outline: none;">
              {{ $t('料架报表') }}
              <el-icon class="el-icon--right">
                <arrow-down />
              </el-icon>
            </span>
              <template #dropdown>
                <el-dropdown-menu>
                  <el-dropdown-item command="/main/stockReport/finishedGlassShelfEmitReport" >{{$t('stockReport.finishedGlassShelfEmitReport')}}</el-dropdown-item>
                  <el-dropdown-item command="/main/stockReport/finishedGlassShelfWithdrawReport" >{{ $t('stockReport.finishedGlassShelfWithdrawReport') }}</el-dropdown-item>
                </el-dropdown-menu>
              </template>
            </el-dropdown>
 
          </el-breadcrumb-item>
          <el-breadcrumb-item v-show="false" :to="{ path: '/main/order/orderReport' }">{{$t('productStock.reportForms')}}</el-breadcrumb-item>
        </el-breadcrumb>
    </div>
 
    <div id="main-body">
      <router-view  :key="route.fullPath" />
    </div>
  </div>
 
</template>
 
<style scoped>
#main-div{
  width: 100%;
  height: 100%;
}
#div-title{
  height: 2%;
  width: 100%;
}
#searchButton{
  margin-top: -5px;
  margin-left: 1rem;
}
#searchButton1{
//margin-left: 10rem;
}
/*main-body样式*/
#main-body{
  width: 99%;
  height: 95%;
  margin-top: 1%;
}
#select{
  margin-left:0.5rem;
}
:deep(.indexTag .el-breadcrumb__inner){
  color: #5CADFE !important;
}
</style>