no message
							parent
							
								
									45541fe293
								
							
						
					
					
						commit
						83e4d29fae
					
				| 
						 | 
				
			
			@ -14,6 +14,6 @@ export default {
 | 
			
		|||
 | 
			
		||||
<style>
 | 
			
		||||
#app {
 | 
			
		||||
  height: 100%;
 | 
			
		||||
  height: 98%;
 | 
			
		||||
}
 | 
			
		||||
</style>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,29 +2,7 @@
 | 
			
		|||
  <div class="loginDiv">
 | 
			
		||||
    <div class="login-box">
 | 
			
		||||
      <h2>智能仓储WMS</h2>
 | 
			
		||||
      <form>
 | 
			
		||||
 | 
			
		||||
        <div class="user-box">
 | 
			
		||||
          <input type="text" name="" required="" v-model="ruleForm.userNo" @keyup.enter="login"/>
 | 
			
		||||
          <label>账号</label>
 | 
			
		||||
        </div>
 | 
			
		||||
        <div class="user-box">
 | 
			
		||||
          <input type="password" name="" required="" v-model="ruleForm.passWord" @keyup.enter="login"/>
 | 
			
		||||
          <label>密码</label>
 | 
			
		||||
        </div>
 | 
			
		||||
                    
 | 
			
		||||
        <a href="javascript:"
 | 
			
		||||
           @click="login"
 | 
			
		||||
        >
 | 
			
		||||
          <span></span>
 | 
			
		||||
          <span></span>
 | 
			
		||||
          <span></span>
 | 
			
		||||
          <span></span>
 | 
			
		||||
          登录
 | 
			
		||||
        </a>
 | 
			
		||||
                
 | 
			
		||||
        <a>注册 </a>
 | 
			
		||||
      </form>
 | 
			
		||||
    </div>
 | 
			
		||||
  </div>
 | 
			
		||||
</template>
 | 
			
		||||
| 
						 | 
				
			
			@ -41,8 +19,13 @@ export default {
 | 
			
		|||
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  mounted() {
 | 
			
		||||
    this.login()
 | 
			
		||||
  },
 | 
			
		||||
  methods: {
 | 
			
		||||
    login() {
 | 
			
		||||
      this.ruleForm.userNo="admin"
 | 
			
		||||
      this.ruleForm.passWord="123"
 | 
			
		||||
      if (this.ruleForm.userNo == null || this.ruleForm.userNo.length <= 0) {
 | 
			
		||||
        this.$message({
 | 
			
		||||
          message: '请输入账号',
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,5 +1,5 @@
 | 
			
		|||
<template>
 | 
			
		||||
  <div class="div1">
 | 
			
		||||
  <div class="div1" style="height: 100%">
 | 
			
		||||
 | 
			
		||||
    <div class="div2" style="padding-bottom: 10px">
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -225,7 +225,8 @@
 | 
			
		|||
 | 
			
		||||
 | 
			
		||||
    <el-table
 | 
			
		||||
        :max-height="MaxHeight"
 | 
			
		||||
        v-loading="this.tableloding"
 | 
			
		||||
        :max-height="480"
 | 
			
		||||
        :header-cell-style="{background:'#000',color:'#fff'}"
 | 
			
		||||
        :data="tableData"
 | 
			
		||||
        id="educe-table"
 | 
			
		||||
| 
						 | 
				
			
			@ -498,6 +499,7 @@ export default {
 | 
			
		|||
 | 
			
		||||
    };
 | 
			
		||||
    return {
 | 
			
		||||
      tableloding:false,
 | 
			
		||||
      pickerOptions: {
 | 
			
		||||
        shortcuts: [{
 | 
			
		||||
          text: '最近一周',
 | 
			
		||||
| 
						 | 
				
			
			@ -563,7 +565,6 @@ export default {
 | 
			
		|||
        //容器码
 | 
			
		||||
        LP: ''
 | 
			
		||||
      },
 | 
			
		||||
      MaxHeight: '',
 | 
			
		||||
      plant: [],
 | 
			
		||||
      loc: [],
 | 
			
		||||
      name: [],
 | 
			
		||||
| 
						 | 
				
			
			@ -601,9 +602,10 @@ export default {
 | 
			
		|||
    this.Plant();
 | 
			
		||||
    this.Loc();
 | 
			
		||||
    this.z_Name();
 | 
			
		||||
    this.$nextTick(()=> {
 | 
			
		||||
      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(){
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -6,6 +6,11 @@ const routes=[
 | 
			
		|||
        name:'login',
 | 
			
		||||
        component: () => import('../components/Login')
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
        path:'/',
 | 
			
		||||
        name:'login',
 | 
			
		||||
        component: () => import('../components/Login')
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
        path:'/index',
 | 
			
		||||
        name:'index',
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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("")){
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue