@@ -225,7 +225,8 @@
 
 
      {
-      this.MaxHeight = window.innerHeight - 300;//300是页面中除了表格外其他组件的高度
-    })
+    // this.$nextTick(()=> {
+    //
+    //   this.MaxHeight = window.innerHeight - 220;//300是页面中除了表格外其他组件的高度
+    // })
   },
   methods: {
     handleEdit(index, row) {
@@ -672,6 +674,7 @@ export default {
           })
     },
     queryUser() {
+      this.tableloding=true
       //列表数据加载
       this.$axios.post(this.$httpUrl + '/Zhengliqingdan/queryWhere', {
         pageSize: this.pageSize,
@@ -679,15 +682,16 @@ export default {
         param: this.param,
       }).then(res => res.data)
           .then(res => {
+            this.tableloding=false
             if (res.code == 200) {
               this.tableData = res.data
               this.total = res.total
             } else {
               this.$message.error('获取数据失败');
             }
-          })
-          .catch(function (err) {
-            console.log(err);
+            // eslint-disable-next-line no-unused-vars
+          },err =>{
+            this.tableloding=false
           })
     },
     find(){
diff --git a/wms-vue/src/router/router.js b/wms-vue/src/router/router.js
index b80d6ea..227a9b7 100644
--- a/wms-vue/src/router/router.js
+++ b/wms-vue/src/router/router.js
@@ -6,6 +6,11 @@ const routes=[
         name:'login',
         component: () => import('../components/Login')
     },
+    {
+        path:'/',
+        name:'login',
+        component: () => import('../components/Login')
+    },
     {
         path:'/index',
         name:'index',
diff --git a/wms/src/main/java/com/yc/wms/service/impl/ZhengliqingdanImpl.java b/wms/src/main/java/com/yc/wms/service/impl/ZhengliqingdanImpl.java
index 6130be7..e2980de 100644
--- a/wms/src/main/java/com/yc/wms/service/impl/ZhengliqingdanImpl.java
+++ b/wms/src/main/java/com/yc/wms/service/impl/ZhengliqingdanImpl.java
@@ -46,8 +46,9 @@ public class ZhengliqingdanImpl implements Zhengliqingdan {
 
         //查询条件
         //采购单号
+        System.out.println(zhengliqingdan.sourceId.trim()==null);
         if(zhengliqingdan.sourceId!=null&&!zhengliqingdan.sourceId.equals("")){
-            sql+=" and ad.sourceId="+"'"+zhengliqingdan.sourceId+"'";
+            sql+=" and ad.sourceId="+"'"+zhengliqingdan.sourceId.trim()+"'";
         }
         //收货凭证
         if(zhengliqingdan.strBill7!=null&&!zhengliqingdan.strBill7.equals("")){
diff --git a/wms/src/main/resources/application.yml b/wms/src/main/resources/application.yml
index 23de31a..43262ba 100644
--- a/wms/src/main/resources/application.yml
+++ b/wms/src/main/resources/application.yml
@@ -3,7 +3,7 @@ server:
 
 spring:
   datasource:
-    url: jdbc:sqlserver://47.100.54.81:1433;DatabaseName=zwtest
+    url: jdbc:sqlserver://47.100.54.81:1433;DatabaseName=zwwms
     driver-class-name:  com.microsoft.sqlserver.jdbc.SQLServerDriver
     username: super
     password: 1K4QfD%ESd1fe@VJ