Explorar o código

前端 更新 sdy

zhongtianhaoyuan %!s(int64=3) %!d(string=hai) anos
pai
achega
04a5842ac2

+ 6 - 2
src/views/home/index.vue

@@ -70,7 +70,7 @@
               </el-col>
               <el-col :span="12">
                 <h3>粮食总储量</h3>
-                <div ref="myEchart7" style="height: 208px;"></div>
+                <div ref="myEchart7" style="height: 208px;" @click="contract(3)"></div>
               </el-col>
             </el-row>
             <el-row>
@@ -105,7 +105,7 @@
                 <div class="bottom-tip">统计单位:吨</div>
               </div>
             </el-col>
-            <el-col :span="12" class="chart-card" @click="contract(1)">
+            <el-col :span="12" class="chart-card">
               <div style="font-weight: bold;">
                 <div ref="myEchart5" style="height: 288px;" class="roseChart" @click="contract(1)"></div>
                 <div class="bottom-tip">统计单位:元</div>
@@ -426,6 +426,10 @@
             this.$router.push({
               name:"salesContract"
             })
+          }else if(index == 3){
+            this.$router.push({
+              name:"warehouseManagementList"
+            })
           }
       },
       getTime() {

+ 1 - 1
src/views/warehouse/warehouseManagementList.vue

@@ -524,7 +524,7 @@ export default {
                      pro.inOutDate = warehousePrint[Math.round(Math.random()* warehousePrint.length - 1)].inOutDate
                      pro.contractNo = warehousePrint[Math.round(Math.random()* warehousePrint.length - 1)].contractNo
                      pro.companyName = warehousePrint[Math.round(Math.random()* warehousePrint.length - 1)].companyName
-                     pro.goodsName = warehousePrint[Math.round(Math.random()* warehousePrint.length - 1)].goodsName 
+                     pro.goodsName = warehousePrint[Math.round(Math.random()* warehousePrint.length - 1)].goodsName
                      pro.boxNo = warehousePrint[Math.round(Math.random()* warehousePrint.length - 1)].boxNo
                     pro.netWeight = Number((Math.random()*(70-10+1)+10).toFixed(2))
                      pro.tare = Number((Math.random()*(20-10+1)+10).toFixed(2))