no message
							parent
							
								
									0cb9d816f8
								
							
						
					
					
						commit
						b7e5c61681
					
				| 
						 | 
					@ -157,6 +157,7 @@
 | 
				
			||||||
        </el-row>
 | 
					        </el-row>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        <el-button type="success" @click="find">查找</el-button>
 | 
					        <el-button type="success" @click="find">查找</el-button>
 | 
				
			||||||
 | 
					        <el-button type="success" @click="down">导出</el-button>
 | 
				
			||||||
        <el-button type="success" @click="rest">重置</el-button>  
 | 
					        <el-button type="success" @click="rest">重置</el-button>  
 | 
				
			||||||
        <el-checkbox v-model="checked" @change="Allquesr">是否显示全部查询条件</el-checkbox>
 | 
					        <el-checkbox v-model="checked" @change="Allquesr">是否显示全部查询条件</el-checkbox>
 | 
				
			||||||
      </el-form>
 | 
					      </el-form>
 | 
				
			||||||
| 
						 | 
					@ -827,6 +828,78 @@ export default {
 | 
				
			||||||
    find(){
 | 
					    find(){
 | 
				
			||||||
      this.queryUser();
 | 
					      this.queryUser();
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
 | 
					  down(){
 | 
				
			||||||
 | 
					    this.downExcel();
 | 
				
			||||||
 | 
					  },
 | 
				
			||||||
 | 
					  downExcel() {
 | 
				
			||||||
 | 
					    //显示加载图
 | 
				
			||||||
 | 
					    this.tableloding=true;
 | 
				
			||||||
 | 
					    //发起请求:/Jianhuojiemian/download,请求方式为post,类型为 {responseType:'blob'}
 | 
				
			||||||
 | 
					    //参数和搜索参数一样
 | 
				
			||||||
 | 
					    this.$axios.post(this.$httpUrl + '/Kucunhuizong/download', {
 | 
				
			||||||
 | 
					      pageSize: this.pageSize,
 | 
				
			||||||
 | 
					      pageNum: this.pageNum,
 | 
				
			||||||
 | 
					      param: this.param,
 | 
				
			||||||
 | 
					    },{responseType:'blob'}).then(res => {
 | 
				
			||||||
 | 
					      this.tableloding=false;
 | 
				
			||||||
 | 
					      //重命名文件
 | 
				
			||||||
 | 
					      this.downloadFile(res.data,'库存汇总'+ '数据', 'xlsx')
 | 
				
			||||||
 | 
					    });
 | 
				
			||||||
 | 
					    //列表数据加载
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  },
 | 
				
			||||||
 | 
					  downloadFile(obj, name, suffix) {
 | 
				
			||||||
 | 
					    //解析流文件,进行下载保存
 | 
				
			||||||
 | 
					    const url = window.URL.createObjectURL(new Blob([obj]))
 | 
				
			||||||
 | 
					    const link = document.createElement('a')
 | 
				
			||||||
 | 
					    link.style.display = 'none'
 | 
				
			||||||
 | 
					    link.href = url
 | 
				
			||||||
 | 
					    const fileName = this.parseTime(new Date()) + '-' + name + '.' + suffix
 | 
				
			||||||
 | 
					    link.setAttribute('download', fileName)
 | 
				
			||||||
 | 
					    document.body.appendChild(link)
 | 
				
			||||||
 | 
					    link.click()
 | 
				
			||||||
 | 
					    document.body.removeChild(link)
 | 
				
			||||||
 | 
					  },
 | 
				
			||||||
 | 
					  parseTime(time, cFormat) {
 | 
				
			||||||
 | 
					    //获取当前时间
 | 
				
			||||||
 | 
					    if (arguments.length === 0) {
 | 
				
			||||||
 | 
					      return null
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					    const format = cFormat || '{y}-{m}-{d} {h}:{i}:{s}'
 | 
				
			||||||
 | 
					    let date
 | 
				
			||||||
 | 
					    if (typeof time === 'undefined' || time === null || time === 'null') {
 | 
				
			||||||
 | 
					      return ''
 | 
				
			||||||
 | 
					    } else if (typeof time === 'object') {
 | 
				
			||||||
 | 
					      date = time
 | 
				
			||||||
 | 
					    } else {
 | 
				
			||||||
 | 
					      if ((typeof time === 'string') && (/^[0-9]+$/.test(time))) {
 | 
				
			||||||
 | 
					        time = parseInt(time)
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					      if ((typeof time === 'number') && (time.toString().length === 10)) {
 | 
				
			||||||
 | 
					        time = time * 1000
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					      date = new Date(time)
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					    const formatObj = {
 | 
				
			||||||
 | 
					      y: date.getFullYear(),
 | 
				
			||||||
 | 
					      m: date.getMonth() + 1,
 | 
				
			||||||
 | 
					      d: date.getDate(),
 | 
				
			||||||
 | 
					      h: date.getHours(),
 | 
				
			||||||
 | 
					      i: date.getMinutes(),
 | 
				
			||||||
 | 
					      s: date.getSeconds(),
 | 
				
			||||||
 | 
					      a: date.getDay()
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					    const time_str = format.replace(/{(y|m|d|h|i|s|a)+}/g, (result, key) => {
 | 
				
			||||||
 | 
					      let value = formatObj[key]
 | 
				
			||||||
 | 
					      // Note: getDay() returns 0 on Sunday
 | 
				
			||||||
 | 
					      if (key === 'a') { return ['日', '一', '二', '三', '四', '五', '六'][value ] }
 | 
				
			||||||
 | 
					      if (result.length > 0 && value < 10) {
 | 
				
			||||||
 | 
					        value = '0' + value
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					      return value || 0
 | 
				
			||||||
 | 
					    })
 | 
				
			||||||
 | 
					    return time_str
 | 
				
			||||||
 | 
					  },
 | 
				
			||||||
    Allquesr(){
 | 
					    Allquesr(){
 | 
				
			||||||
      //查询按钮
 | 
					      //查询按钮
 | 
				
			||||||
      if(this.checked){
 | 
					      if(this.checked){
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -85,14 +85,12 @@
 | 
				
			||||||
        </el-row>
 | 
					        </el-row>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        <el-button type="success" @click="find">查找</el-button>
 | 
					        <el-button type="success" @click="find">查找</el-button>
 | 
				
			||||||
 | 
					        <el-button type="success" @click="down">导出</el-button>
 | 
				
			||||||
        <el-button type="success" @click="rest">重置</el-button>  
 | 
					        <el-button type="success" @click="rest">重置</el-button>  
 | 
				
			||||||
        <el-checkbox v-model="checked" @change="Allquesr">是否显示全部查询条件</el-checkbox>
 | 
					        <el-checkbox v-model="checked" @change="Allquesr">是否显示全部查询条件</el-checkbox>
 | 
				
			||||||
      </el-form>
 | 
					      </el-form>
 | 
				
			||||||
 | 
					 | 
				
			||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    <el-table
 | 
					    <el-table
 | 
				
			||||||
        v-loading="this.tableloding"
 | 
					        v-loading="this.tableloding"
 | 
				
			||||||
        :height="MaxHeight"
 | 
					        :height="MaxHeight"
 | 
				
			||||||
| 
						 | 
					@ -498,6 +496,78 @@ export default {
 | 
				
			||||||
    find(){
 | 
					    find(){
 | 
				
			||||||
      this.queryUser();
 | 
					      this.queryUser();
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
 | 
					    down(){
 | 
				
			||||||
 | 
					      this.downExcel();
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    downExcel() {
 | 
				
			||||||
 | 
					      //显示加载图
 | 
				
			||||||
 | 
					      this.tableloding=true;
 | 
				
			||||||
 | 
					      //发起请求:/Jianhuojiemian/download,请求方式为post,类型为 {responseType:'blob'}
 | 
				
			||||||
 | 
					      //参数和搜索参数一样
 | 
				
			||||||
 | 
					      this.$axios.post(this.$httpUrl + '/Kucunrizhi/download', {
 | 
				
			||||||
 | 
					        pageSize: this.pageSize,
 | 
				
			||||||
 | 
					        pageNum: this.pageNum,
 | 
				
			||||||
 | 
					        param: this.param,
 | 
				
			||||||
 | 
					      },{responseType:'blob'}).then(res => {
 | 
				
			||||||
 | 
					        this.tableloding=false;
 | 
				
			||||||
 | 
					        //重命名文件
 | 
				
			||||||
 | 
					        this.downloadFile(res.data,'库存操作日志'+ '数据', 'xlsx')
 | 
				
			||||||
 | 
					      });
 | 
				
			||||||
 | 
					      //列表数据加载
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    downloadFile(obj, name, suffix) {
 | 
				
			||||||
 | 
					      //解析流文件,进行下载保存
 | 
				
			||||||
 | 
					      const url = window.URL.createObjectURL(new Blob([obj]))
 | 
				
			||||||
 | 
					      const link = document.createElement('a')
 | 
				
			||||||
 | 
					      link.style.display = 'none'
 | 
				
			||||||
 | 
					      link.href = url
 | 
				
			||||||
 | 
					      const fileName = this.parseTime(new Date()) + '-' + name + '.' + suffix
 | 
				
			||||||
 | 
					      link.setAttribute('download', fileName)
 | 
				
			||||||
 | 
					      document.body.appendChild(link)
 | 
				
			||||||
 | 
					      link.click()
 | 
				
			||||||
 | 
					      document.body.removeChild(link)
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    parseTime(time, cFormat) {
 | 
				
			||||||
 | 
					      //获取当前时间
 | 
				
			||||||
 | 
					      if (arguments.length === 0) {
 | 
				
			||||||
 | 
					        return null
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					      const format = cFormat || '{y}-{m}-{d} {h}:{i}:{s}'
 | 
				
			||||||
 | 
					      let date
 | 
				
			||||||
 | 
					      if (typeof time === 'undefined' || time === null || time === 'null') {
 | 
				
			||||||
 | 
					        return ''
 | 
				
			||||||
 | 
					      } else if (typeof time === 'object') {
 | 
				
			||||||
 | 
					        date = time
 | 
				
			||||||
 | 
					      } else {
 | 
				
			||||||
 | 
					        if ((typeof time === 'string') && (/^[0-9]+$/.test(time))) {
 | 
				
			||||||
 | 
					          time = parseInt(time)
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        if ((typeof time === 'number') && (time.toString().length === 10)) {
 | 
				
			||||||
 | 
					          time = time * 1000
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        date = new Date(time)
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					      const formatObj = {
 | 
				
			||||||
 | 
					        y: date.getFullYear(),
 | 
				
			||||||
 | 
					        m: date.getMonth() + 1,
 | 
				
			||||||
 | 
					        d: date.getDate(),
 | 
				
			||||||
 | 
					        h: date.getHours(),
 | 
				
			||||||
 | 
					        i: date.getMinutes(),
 | 
				
			||||||
 | 
					        s: date.getSeconds(),
 | 
				
			||||||
 | 
					        a: date.getDay()
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					      const time_str = format.replace(/{(y|m|d|h|i|s|a)+}/g, (result, key) => {
 | 
				
			||||||
 | 
					        let value = formatObj[key]
 | 
				
			||||||
 | 
					        // Note: getDay() returns 0 on Sunday
 | 
				
			||||||
 | 
					        if (key === 'a') { return ['日', '一', '二', '三', '四', '五', '六'][value ] }
 | 
				
			||||||
 | 
					        if (result.length > 0 && value < 10) {
 | 
				
			||||||
 | 
					          value = '0' + value
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        return value || 0
 | 
				
			||||||
 | 
					      })
 | 
				
			||||||
 | 
					      return time_str
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
    Allquesr(){
 | 
					    Allquesr(){
 | 
				
			||||||
      //查询按钮
 | 
					      //查询按钮
 | 
				
			||||||
      if(this.checked){
 | 
					      if(this.checked){
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -50,6 +50,7 @@
 | 
				
			||||||
        </el-row>
 | 
					        </el-row>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        <el-button type="success" @click="find">查找</el-button>
 | 
					        <el-button type="success" @click="find">查找</el-button>
 | 
				
			||||||
 | 
					        <el-button type="success" @click="down">查找</el-button>
 | 
				
			||||||
        <el-button type="success" @click="rest">重置</el-button>  
 | 
					        <el-button type="success" @click="rest">重置</el-button>  
 | 
				
			||||||
      </el-form>
 | 
					      </el-form>
 | 
				
			||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
| 
						 | 
					@ -328,6 +329,78 @@ export default {
 | 
				
			||||||
    find(){
 | 
					    find(){
 | 
				
			||||||
      this.queryUser();
 | 
					      this.queryUser();
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
 | 
					    down(){
 | 
				
			||||||
 | 
					      this.downExcel();
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    downExcel() {
 | 
				
			||||||
 | 
					      //显示加载图
 | 
				
			||||||
 | 
					      this.tableloding=true;
 | 
				
			||||||
 | 
					      //发起请求:/Jianhuojiemian/download,请求方式为post,类型为 {responseType:'blob'}
 | 
				
			||||||
 | 
					      //参数和搜索参数一样
 | 
				
			||||||
 | 
					      this.$axios.post(this.$httpUrl + '/dcx/download', {
 | 
				
			||||||
 | 
					        pageSize: this.pageSize,
 | 
				
			||||||
 | 
					        pageNum: this.pageNum,
 | 
				
			||||||
 | 
					        param: this.param,
 | 
				
			||||||
 | 
					      },{responseType:'blob'}).then(res => {
 | 
				
			||||||
 | 
					        this.tableloding=false;
 | 
				
			||||||
 | 
					        //重命名文件
 | 
				
			||||||
 | 
					        this.downloadFile(res.data,'料箱监控'+ '数据', 'xlsx')
 | 
				
			||||||
 | 
					      });
 | 
				
			||||||
 | 
					      //列表数据加载
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    downloadFile(obj, name, suffix) {
 | 
				
			||||||
 | 
					      //解析流文件,进行下载保存
 | 
				
			||||||
 | 
					      const url = window.URL.createObjectURL(new Blob([obj]))
 | 
				
			||||||
 | 
					      const link = document.createElement('a')
 | 
				
			||||||
 | 
					      link.style.display = 'none'
 | 
				
			||||||
 | 
					      link.href = url
 | 
				
			||||||
 | 
					      const fileName = this.parseTime(new Date()) + '-' + name + '.' + suffix
 | 
				
			||||||
 | 
					      link.setAttribute('download', fileName)
 | 
				
			||||||
 | 
					      document.body.appendChild(link)
 | 
				
			||||||
 | 
					      link.click()
 | 
				
			||||||
 | 
					      document.body.removeChild(link)
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    parseTime(time, cFormat) {
 | 
				
			||||||
 | 
					      //获取当前时间
 | 
				
			||||||
 | 
					      if (arguments.length === 0) {
 | 
				
			||||||
 | 
					        return null
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					      const format = cFormat || '{y}-{m}-{d} {h}:{i}:{s}'
 | 
				
			||||||
 | 
					      let date
 | 
				
			||||||
 | 
					      if (typeof time === 'undefined' || time === null || time === 'null') {
 | 
				
			||||||
 | 
					        return ''
 | 
				
			||||||
 | 
					      } else if (typeof time === 'object') {
 | 
				
			||||||
 | 
					        date = time
 | 
				
			||||||
 | 
					      } else {
 | 
				
			||||||
 | 
					        if ((typeof time === 'string') && (/^[0-9]+$/.test(time))) {
 | 
				
			||||||
 | 
					          time = parseInt(time)
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        if ((typeof time === 'number') && (time.toString().length === 10)) {
 | 
				
			||||||
 | 
					          time = time * 1000
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        date = new Date(time)
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					      const formatObj = {
 | 
				
			||||||
 | 
					        y: date.getFullYear(),
 | 
				
			||||||
 | 
					        m: date.getMonth() + 1,
 | 
				
			||||||
 | 
					        d: date.getDate(),
 | 
				
			||||||
 | 
					        h: date.getHours(),
 | 
				
			||||||
 | 
					        i: date.getMinutes(),
 | 
				
			||||||
 | 
					        s: date.getSeconds(),
 | 
				
			||||||
 | 
					        a: date.getDay()
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					      const time_str = format.replace(/{(y|m|d|h|i|s|a)+}/g, (result, key) => {
 | 
				
			||||||
 | 
					        let value = formatObj[key]
 | 
				
			||||||
 | 
					        // Note: getDay() returns 0 on Sunday
 | 
				
			||||||
 | 
					        if (key === 'a') { return ['日', '一', '二', '三', '四', '五', '六'][value ] }
 | 
				
			||||||
 | 
					        if (result.length > 0 && value < 10) {
 | 
				
			||||||
 | 
					          value = '0' + value
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        return value || 0
 | 
				
			||||||
 | 
					      })
 | 
				
			||||||
 | 
					      return time_str
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
    Allquesr(){
 | 
					    Allquesr(){
 | 
				
			||||||
      //查询按钮
 | 
					      //查询按钮
 | 
				
			||||||
      if(this.checked){
 | 
					      if(this.checked){
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -119,6 +119,7 @@
 | 
				
			||||||
        </el-row>
 | 
					        </el-row>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        <el-button type="success" @click="find">查找</el-button>
 | 
					        <el-button type="success" @click="find">查找</el-button>
 | 
				
			||||||
 | 
					        <el-button type="success" @click="down">导出</el-button>
 | 
				
			||||||
        <el-button type="success" @click="rest">重置</el-button>  
 | 
					        <el-button type="success" @click="rest">重置</el-button>  
 | 
				
			||||||
        <el-checkbox v-model="checked" @change="Allquesr">是否显示全部查询条件</el-checkbox>
 | 
					        <el-checkbox v-model="checked" @change="Allquesr">是否显示全部查询条件</el-checkbox>
 | 
				
			||||||
      </el-form>
 | 
					      </el-form>
 | 
				
			||||||
| 
						 | 
					@ -584,6 +585,78 @@ export default {
 | 
				
			||||||
    find(){
 | 
					    find(){
 | 
				
			||||||
      this.queryUser();
 | 
					      this.queryUser();
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
 | 
					    down(){
 | 
				
			||||||
 | 
					      this.downExcel();
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    downExcel() {
 | 
				
			||||||
 | 
					      //显示加载图
 | 
				
			||||||
 | 
					      this.tableloding=true;
 | 
				
			||||||
 | 
					      //发起请求:/Jianhuojiemian/download,请求方式为post,类型为 {responseType:'blob'}
 | 
				
			||||||
 | 
					      //参数和搜索参数一样
 | 
				
			||||||
 | 
					      this.$axios.post(this.$httpUrl + '/Pandianmingxi/download', {
 | 
				
			||||||
 | 
					        pageSize: this.pageSize,
 | 
				
			||||||
 | 
					        pageNum: this.pageNum,
 | 
				
			||||||
 | 
					        param: this.param,
 | 
				
			||||||
 | 
					      },{responseType:'blob'}).then(res => {
 | 
				
			||||||
 | 
					        this.tableloding=false;
 | 
				
			||||||
 | 
					        //重命名文件
 | 
				
			||||||
 | 
					        this.downloadFile(res.data,'盘点明细查询'+ '数据', 'xlsx')
 | 
				
			||||||
 | 
					      });
 | 
				
			||||||
 | 
					      //列表数据加载
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    downloadFile(obj, name, suffix) {
 | 
				
			||||||
 | 
					      //解析流文件,进行下载保存
 | 
				
			||||||
 | 
					      const url = window.URL.createObjectURL(new Blob([obj]))
 | 
				
			||||||
 | 
					      const link = document.createElement('a')
 | 
				
			||||||
 | 
					      link.style.display = 'none'
 | 
				
			||||||
 | 
					      link.href = url
 | 
				
			||||||
 | 
					      const fileName = this.parseTime(new Date()) + '-' + name + '.' + suffix
 | 
				
			||||||
 | 
					      link.setAttribute('download', fileName)
 | 
				
			||||||
 | 
					      document.body.appendChild(link)
 | 
				
			||||||
 | 
					      link.click()
 | 
				
			||||||
 | 
					      document.body.removeChild(link)
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    parseTime(time, cFormat) {
 | 
				
			||||||
 | 
					      //获取当前时间
 | 
				
			||||||
 | 
					      if (arguments.length === 0) {
 | 
				
			||||||
 | 
					        return null
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					      const format = cFormat || '{y}-{m}-{d} {h}:{i}:{s}'
 | 
				
			||||||
 | 
					      let date
 | 
				
			||||||
 | 
					      if (typeof time === 'undefined' || time === null || time === 'null') {
 | 
				
			||||||
 | 
					        return ''
 | 
				
			||||||
 | 
					      } else if (typeof time === 'object') {
 | 
				
			||||||
 | 
					        date = time
 | 
				
			||||||
 | 
					      } else {
 | 
				
			||||||
 | 
					        if ((typeof time === 'string') && (/^[0-9]+$/.test(time))) {
 | 
				
			||||||
 | 
					          time = parseInt(time)
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        if ((typeof time === 'number') && (time.toString().length === 10)) {
 | 
				
			||||||
 | 
					          time = time * 1000
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        date = new Date(time)
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					      const formatObj = {
 | 
				
			||||||
 | 
					        y: date.getFullYear(),
 | 
				
			||||||
 | 
					        m: date.getMonth() + 1,
 | 
				
			||||||
 | 
					        d: date.getDate(),
 | 
				
			||||||
 | 
					        h: date.getHours(),
 | 
				
			||||||
 | 
					        i: date.getMinutes(),
 | 
				
			||||||
 | 
					        s: date.getSeconds(),
 | 
				
			||||||
 | 
					        a: date.getDay()
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					      const time_str = format.replace(/{(y|m|d|h|i|s|a)+}/g, (result, key) => {
 | 
				
			||||||
 | 
					        let value = formatObj[key]
 | 
				
			||||||
 | 
					        // Note: getDay() returns 0 on Sunday
 | 
				
			||||||
 | 
					        if (key === 'a') { return ['日', '一', '二', '三', '四', '五', '六'][value ] }
 | 
				
			||||||
 | 
					        if (result.length > 0 && value < 10) {
 | 
				
			||||||
 | 
					          value = '0' + value
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        return value || 0
 | 
				
			||||||
 | 
					      })
 | 
				
			||||||
 | 
					      return time_str
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
    Allquesr(){
 | 
					    Allquesr(){
 | 
				
			||||||
      //查询按钮
 | 
					      //查询按钮
 | 
				
			||||||
      if(this.checked){
 | 
					      if(this.checked){
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -111,6 +111,7 @@
 | 
				
			||||||
        </el-row>
 | 
					        </el-row>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        <el-button type="success" @click="find">查找</el-button>
 | 
					        <el-button type="success" @click="find">查找</el-button>
 | 
				
			||||||
 | 
					        <el-button type="success" @click="down">导出</el-button>
 | 
				
			||||||
        <el-button type="success" @click="rest">重置</el-button>  
 | 
					        <el-button type="success" @click="rest">重置</el-button>  
 | 
				
			||||||
        <el-checkbox v-model="checked" @change="Allquesr">是否显示全部查询条件</el-checkbox>
 | 
					        <el-checkbox v-model="checked" @change="Allquesr">是否显示全部查询条件</el-checkbox>
 | 
				
			||||||
      </el-form>
 | 
					      </el-form>
 | 
				
			||||||
| 
						 | 
					@ -553,6 +554,78 @@ export default {
 | 
				
			||||||
    find(){
 | 
					    find(){
 | 
				
			||||||
      this.queryUser();
 | 
					      this.queryUser();
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
 | 
					    down(){
 | 
				
			||||||
 | 
					      this.downExcel();
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    downExcel() {
 | 
				
			||||||
 | 
					      //显示加载图
 | 
				
			||||||
 | 
					      this.tableloding=true;
 | 
				
			||||||
 | 
					      //发起请求:/Jianhuojiemian/download,请求方式为post,类型为 {responseType:'blob'}
 | 
				
			||||||
 | 
					      //参数和搜索参数一样
 | 
				
			||||||
 | 
					      this.$axios.post(this.$httpUrl + '/Rukuzhengli/download', {
 | 
				
			||||||
 | 
					        pageSize: this.pageSize,
 | 
				
			||||||
 | 
					        pageNum: this.pageNum,
 | 
				
			||||||
 | 
					        param: this.param,
 | 
				
			||||||
 | 
					      },{responseType:'blob'}).then(res => {
 | 
				
			||||||
 | 
					        this.tableloding=false;
 | 
				
			||||||
 | 
					        //重命名文件
 | 
				
			||||||
 | 
					        this.downloadFile(res.data,'入库整理'+ '数据', 'xlsx')
 | 
				
			||||||
 | 
					      });
 | 
				
			||||||
 | 
					      //列表数据加载
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    downloadFile(obj, name, suffix) {
 | 
				
			||||||
 | 
					      //解析流文件,进行下载保存
 | 
				
			||||||
 | 
					      const url = window.URL.createObjectURL(new Blob([obj]))
 | 
				
			||||||
 | 
					      const link = document.createElement('a')
 | 
				
			||||||
 | 
					      link.style.display = 'none'
 | 
				
			||||||
 | 
					      link.href = url
 | 
				
			||||||
 | 
					      const fileName = this.parseTime(new Date()) + '-' + name + '.' + suffix
 | 
				
			||||||
 | 
					      link.setAttribute('download', fileName)
 | 
				
			||||||
 | 
					      document.body.appendChild(link)
 | 
				
			||||||
 | 
					      link.click()
 | 
				
			||||||
 | 
					      document.body.removeChild(link)
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    parseTime(time, cFormat) {
 | 
				
			||||||
 | 
					      //获取当前时间
 | 
				
			||||||
 | 
					      if (arguments.length === 0) {
 | 
				
			||||||
 | 
					        return null
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					      const format = cFormat || '{y}-{m}-{d} {h}:{i}:{s}'
 | 
				
			||||||
 | 
					      let date
 | 
				
			||||||
 | 
					      if (typeof time === 'undefined' || time === null || time === 'null') {
 | 
				
			||||||
 | 
					        return ''
 | 
				
			||||||
 | 
					      } else if (typeof time === 'object') {
 | 
				
			||||||
 | 
					        date = time
 | 
				
			||||||
 | 
					      } else {
 | 
				
			||||||
 | 
					        if ((typeof time === 'string') && (/^[0-9]+$/.test(time))) {
 | 
				
			||||||
 | 
					          time = parseInt(time)
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        if ((typeof time === 'number') && (time.toString().length === 10)) {
 | 
				
			||||||
 | 
					          time = time * 1000
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        date = new Date(time)
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					      const formatObj = {
 | 
				
			||||||
 | 
					        y: date.getFullYear(),
 | 
				
			||||||
 | 
					        m: date.getMonth() + 1,
 | 
				
			||||||
 | 
					        d: date.getDate(),
 | 
				
			||||||
 | 
					        h: date.getHours(),
 | 
				
			||||||
 | 
					        i: date.getMinutes(),
 | 
				
			||||||
 | 
					        s: date.getSeconds(),
 | 
				
			||||||
 | 
					        a: date.getDay()
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					      const time_str = format.replace(/{(y|m|d|h|i|s|a)+}/g, (result, key) => {
 | 
				
			||||||
 | 
					        let value = formatObj[key]
 | 
				
			||||||
 | 
					        // Note: getDay() returns 0 on Sunday
 | 
				
			||||||
 | 
					        if (key === 'a') { return ['日', '一', '二', '三', '四', '五', '六'][value ] }
 | 
				
			||||||
 | 
					        if (result.length > 0 && value < 10) {
 | 
				
			||||||
 | 
					          value = '0' + value
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        return value || 0
 | 
				
			||||||
 | 
					      })
 | 
				
			||||||
 | 
					      return time_str
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
    Allquesr(){
 | 
					    Allquesr(){
 | 
				
			||||||
      //查询按钮
 | 
					      //查询按钮
 | 
				
			||||||
      if(this.checked){
 | 
					      if(this.checked){
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -144,6 +144,7 @@
 | 
				
			||||||
        </el-row>
 | 
					        </el-row>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        <el-button type="success" @click="find">查找</el-button>
 | 
					        <el-button type="success" @click="find">查找</el-button>
 | 
				
			||||||
 | 
					        <el-button type="success" @click="down">导出</el-button>
 | 
				
			||||||
        <el-button type="success" @click="rest">重置</el-button>  
 | 
					        <el-button type="success" @click="rest">重置</el-button>  
 | 
				
			||||||
        <el-checkbox v-model="checked" @change="Allquesr">是否显示全部查询条件</el-checkbox>
 | 
					        <el-checkbox v-model="checked" @change="Allquesr">是否显示全部查询条件</el-checkbox>
 | 
				
			||||||
      </el-form>
 | 
					      </el-form>
 | 
				
			||||||
| 
						 | 
					@ -574,6 +575,78 @@ export default {
 | 
				
			||||||
    find(){
 | 
					    find(){
 | 
				
			||||||
      this.queryUser();
 | 
					      this.queryUser();
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
 | 
					    down(){
 | 
				
			||||||
 | 
					      this.downExcel();
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    downExcel() {
 | 
				
			||||||
 | 
					      //显示加载图
 | 
				
			||||||
 | 
					      this.tableloding=true;
 | 
				
			||||||
 | 
					      //发起请求:/Jianhuojiemian/download,请求方式为post,类型为 {responseType:'blob'}
 | 
				
			||||||
 | 
					      //参数和搜索参数一样
 | 
				
			||||||
 | 
					      this.$axios.post(this.$httpUrl + '/Xuliehaoqingdan/download', {
 | 
				
			||||||
 | 
					        pageSize: this.pageSize,
 | 
				
			||||||
 | 
					        pageNum: this.pageNum,
 | 
				
			||||||
 | 
					        param: this.param,
 | 
				
			||||||
 | 
					      },{responseType:'blob'}).then(res => {
 | 
				
			||||||
 | 
					        this.tableloding=false;
 | 
				
			||||||
 | 
					        //重命名文件
 | 
				
			||||||
 | 
					        this.downloadFile(res.data,'序列号库存清点'+ '数据', 'xlsx')
 | 
				
			||||||
 | 
					      });
 | 
				
			||||||
 | 
					      //列表数据加载
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    downloadFile(obj, name, suffix) {
 | 
				
			||||||
 | 
					      //解析流文件,进行下载保存
 | 
				
			||||||
 | 
					      const url = window.URL.createObjectURL(new Blob([obj]))
 | 
				
			||||||
 | 
					      const link = document.createElement('a')
 | 
				
			||||||
 | 
					      link.style.display = 'none'
 | 
				
			||||||
 | 
					      link.href = url
 | 
				
			||||||
 | 
					      const fileName = this.parseTime(new Date()) + '-' + name + '.' + suffix
 | 
				
			||||||
 | 
					      link.setAttribute('download', fileName)
 | 
				
			||||||
 | 
					      document.body.appendChild(link)
 | 
				
			||||||
 | 
					      link.click()
 | 
				
			||||||
 | 
					      document.body.removeChild(link)
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    parseTime(time, cFormat) {
 | 
				
			||||||
 | 
					      //获取当前时间
 | 
				
			||||||
 | 
					      if (arguments.length === 0) {
 | 
				
			||||||
 | 
					        return null
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					      const format = cFormat || '{y}-{m}-{d} {h}:{i}:{s}'
 | 
				
			||||||
 | 
					      let date
 | 
				
			||||||
 | 
					      if (typeof time === 'undefined' || time === null || time === 'null') {
 | 
				
			||||||
 | 
					        return ''
 | 
				
			||||||
 | 
					      } else if (typeof time === 'object') {
 | 
				
			||||||
 | 
					        date = time
 | 
				
			||||||
 | 
					      } else {
 | 
				
			||||||
 | 
					        if ((typeof time === 'string') && (/^[0-9]+$/.test(time))) {
 | 
				
			||||||
 | 
					          time = parseInt(time)
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        if ((typeof time === 'number') && (time.toString().length === 10)) {
 | 
				
			||||||
 | 
					          time = time * 1000
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        date = new Date(time)
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					      const formatObj = {
 | 
				
			||||||
 | 
					        y: date.getFullYear(),
 | 
				
			||||||
 | 
					        m: date.getMonth() + 1,
 | 
				
			||||||
 | 
					        d: date.getDate(),
 | 
				
			||||||
 | 
					        h: date.getHours(),
 | 
				
			||||||
 | 
					        i: date.getMinutes(),
 | 
				
			||||||
 | 
					        s: date.getSeconds(),
 | 
				
			||||||
 | 
					        a: date.getDay()
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					      const time_str = format.replace(/{(y|m|d|h|i|s|a)+}/g, (result, key) => {
 | 
				
			||||||
 | 
					        let value = formatObj[key]
 | 
				
			||||||
 | 
					        // Note: getDay() returns 0 on Sunday
 | 
				
			||||||
 | 
					        if (key === 'a') { return ['日', '一', '二', '三', '四', '五', '六'][value ] }
 | 
				
			||||||
 | 
					        if (result.length > 0 && value < 10) {
 | 
				
			||||||
 | 
					          value = '0' + value
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        return value || 0
 | 
				
			||||||
 | 
					      })
 | 
				
			||||||
 | 
					      return time_str
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
    Allquesr(){
 | 
					    Allquesr(){
 | 
				
			||||||
      //查询按钮
 | 
					      //查询按钮
 | 
				
			||||||
      if(this.checked){
 | 
					      if(this.checked){
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -152,6 +152,7 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
         <el-button type="success" @click="find">查找</el-button>
 | 
					         <el-button type="success" @click="find">查找</el-button>
 | 
				
			||||||
 | 
					         <el-button type="success" @click="down">导出</el-button>
 | 
				
			||||||
         <el-button type="success" @click="rest">重置</el-button>  
 | 
					         <el-button type="success" @click="rest">重置</el-button>  
 | 
				
			||||||
          <el-checkbox v-model="checked" @change="Allquesr">是否显示全部查询条件</el-checkbox>
 | 
					          <el-checkbox v-model="checked" @change="Allquesr">是否显示全部查询条件</el-checkbox>
 | 
				
			||||||
        </el-form>
 | 
					        </el-form>
 | 
				
			||||||
| 
						 | 
					@ -442,7 +443,7 @@
 | 
				
			||||||
          width="80">
 | 
					          width="80">
 | 
				
			||||||
        <template slot-scope="scope">
 | 
					        <template slot-scope="scope">
 | 
				
			||||||
          <div slot="reference" class="name-wrapper">
 | 
					          <div slot="reference" class="name-wrapper">
 | 
				
			||||||
            <span>{{ scope.row.BE_MOVED==1?"上架":"未上架" }}</span>
 | 
					            <span>{{ scope.row.BE_MOVED==1?"是":"否" }}</span>
 | 
				
			||||||
          </div>
 | 
					          </div>
 | 
				
			||||||
        </template>
 | 
					        </template>
 | 
				
			||||||
      </el-table-column>
 | 
					      </el-table-column>
 | 
				
			||||||
| 
						 | 
					@ -722,6 +723,78 @@ export default {
 | 
				
			||||||
      // }
 | 
					      // }
 | 
				
			||||||
      this.queryUser();
 | 
					      this.queryUser();
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
 | 
					    down(){
 | 
				
			||||||
 | 
					      this.downExcel();
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    downExcel() {
 | 
				
			||||||
 | 
					      //显示加载图
 | 
				
			||||||
 | 
					      this.tableloding=true;
 | 
				
			||||||
 | 
					      //发起请求:/Jianhuojiemian/download,请求方式为post,类型为 {responseType:'blob'}
 | 
				
			||||||
 | 
					      //参数和搜索参数一样
 | 
				
			||||||
 | 
					      this.$axios.post(this.$httpUrl + '/Zhengliqingdan/download', {
 | 
				
			||||||
 | 
					        pageSize: this.pageSize,
 | 
				
			||||||
 | 
					        pageNum: this.pageNum,
 | 
				
			||||||
 | 
					        param: this.param,
 | 
				
			||||||
 | 
					      },{responseType:'blob'}).then(res => {
 | 
				
			||||||
 | 
					        this.tableloding=false;
 | 
				
			||||||
 | 
					        //重命名文件
 | 
				
			||||||
 | 
					        this.downloadFile(res.data,'整理完成未上架清单'+ '数据', 'xlsx')
 | 
				
			||||||
 | 
					      });
 | 
				
			||||||
 | 
					      //列表数据加载
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    downloadFile(obj, name, suffix) {
 | 
				
			||||||
 | 
					      //解析流文件,进行下载保存
 | 
				
			||||||
 | 
					      const url = window.URL.createObjectURL(new Blob([obj]))
 | 
				
			||||||
 | 
					      const link = document.createElement('a')
 | 
				
			||||||
 | 
					      link.style.display = 'none'
 | 
				
			||||||
 | 
					      link.href = url
 | 
				
			||||||
 | 
					      const fileName = this.parseTime(new Date()) + '-' + name + '.' + suffix
 | 
				
			||||||
 | 
					      link.setAttribute('download', fileName)
 | 
				
			||||||
 | 
					      document.body.appendChild(link)
 | 
				
			||||||
 | 
					      link.click()
 | 
				
			||||||
 | 
					      document.body.removeChild(link)
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    parseTime(time, cFormat) {
 | 
				
			||||||
 | 
					      //获取当前时间
 | 
				
			||||||
 | 
					      if (arguments.length === 0) {
 | 
				
			||||||
 | 
					        return null
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					      const format = cFormat || '{y}-{m}-{d} {h}:{i}:{s}'
 | 
				
			||||||
 | 
					      let date
 | 
				
			||||||
 | 
					      if (typeof time === 'undefined' || time === null || time === 'null') {
 | 
				
			||||||
 | 
					        return ''
 | 
				
			||||||
 | 
					      } else if (typeof time === 'object') {
 | 
				
			||||||
 | 
					        date = time
 | 
				
			||||||
 | 
					      } else {
 | 
				
			||||||
 | 
					        if ((typeof time === 'string') && (/^[0-9]+$/.test(time))) {
 | 
				
			||||||
 | 
					          time = parseInt(time)
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        if ((typeof time === 'number') && (time.toString().length === 10)) {
 | 
				
			||||||
 | 
					          time = time * 1000
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        date = new Date(time)
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					      const formatObj = {
 | 
				
			||||||
 | 
					        y: date.getFullYear(),
 | 
				
			||||||
 | 
					        m: date.getMonth() + 1,
 | 
				
			||||||
 | 
					        d: date.getDate(),
 | 
				
			||||||
 | 
					        h: date.getHours(),
 | 
				
			||||||
 | 
					        i: date.getMinutes(),
 | 
				
			||||||
 | 
					        s: date.getSeconds(),
 | 
				
			||||||
 | 
					        a: date.getDay()
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					      const time_str = format.replace(/{(y|m|d|h|i|s|a)+}/g, (result, key) => {
 | 
				
			||||||
 | 
					        let value = formatObj[key]
 | 
				
			||||||
 | 
					        // Note: getDay() returns 0 on Sunday
 | 
				
			||||||
 | 
					        if (key === 'a') { return ['日', '一', '二', '三', '四', '五', '六'][value ] }
 | 
				
			||||||
 | 
					        if (result.length > 0 && value < 10) {
 | 
				
			||||||
 | 
					          value = '0' + value
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        return value || 0
 | 
				
			||||||
 | 
					      })
 | 
				
			||||||
 | 
					      return time_str
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
    Allquesr(){
 | 
					    Allquesr(){
 | 
				
			||||||
      //查询按钮
 | 
					      //查询按钮
 | 
				
			||||||
      if(this.checked){
 | 
					      if(this.checked){
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -13,6 +13,7 @@ import org.springframework.web.bind.annotation.RequestBody;
 | 
				
			||||||
import org.springframework.web.bind.annotation.RequestMapping;
 | 
					import org.springframework.web.bind.annotation.RequestMapping;
 | 
				
			||||||
import org.springframework.web.bind.annotation.RestController;
 | 
					import org.springframework.web.bind.annotation.RestController;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import javax.servlet.http.HttpServletResponse;
 | 
				
			||||||
import java.util.HashMap;
 | 
					import java.util.HashMap;
 | 
				
			||||||
import java.util.List;
 | 
					import java.util.List;
 | 
				
			||||||
import java.util.Map;
 | 
					import java.util.Map;
 | 
				
			||||||
| 
						 | 
					@ -49,4 +50,21 @@ public class KucunhuizongController {
 | 
				
			||||||
    public Result ku() {
 | 
					    public Result ku() {
 | 
				
			||||||
        return kucunhuizong.ku();
 | 
					        return kucunhuizong.ku();
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    @PostMapping(value = "/download")
 | 
				
			||||||
 | 
					    public void exportCompany(HttpServletResponse response, @RequestBody String  json) throws Exception {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        QueryPageUtil query =new QueryPageUtil();
 | 
				
			||||||
 | 
					        JSONObject jsonObject= JSONUtil.parseObj(json);
 | 
				
			||||||
 | 
					        query.setPageSize((int)jsonObject.get("pageSize"));
 | 
				
			||||||
 | 
					        query.setPageNum((int)jsonObject.get("pageNum"));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        JSONObject param= (JSONObject)jsonObject.get("param");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        com.yc.wms.bean.Kucunhuizong j = JSONUtil.toBean(param.toString(), com.yc.wms.bean.Kucunhuizong.class);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        kucunhuizong.download( (List<Map<String,Object>> )kucunhuizong.QueryJson(query,j).getData(), response);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -12,6 +12,10 @@ import org.springframework.web.bind.annotation.RequestBody;
 | 
				
			||||||
import org.springframework.web.bind.annotation.RequestMapping;
 | 
					import org.springframework.web.bind.annotation.RequestMapping;
 | 
				
			||||||
import org.springframework.web.bind.annotation.RestController;
 | 
					import org.springframework.web.bind.annotation.RestController;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import javax.servlet.http.HttpServletResponse;
 | 
				
			||||||
 | 
					import java.util.List;
 | 
				
			||||||
 | 
					import java.util.Map;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@RestController
 | 
					@RestController
 | 
				
			||||||
@Slf4j
 | 
					@Slf4j
 | 
				
			||||||
@RequestMapping("/Kucunrizhi")
 | 
					@RequestMapping("/Kucunrizhi")
 | 
				
			||||||
| 
						 | 
					@ -39,4 +43,20 @@ public class KucunrizhiController {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        return kucunrizhi.Log();
 | 
					        return kucunrizhi.Log();
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    @PostMapping(value = "/download")
 | 
				
			||||||
 | 
					    public void exportCompany(HttpServletResponse response, @RequestBody String  json) throws Exception {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        QueryPageUtil query =new QueryPageUtil();
 | 
				
			||||||
 | 
					        JSONObject jsonObject= JSONUtil.parseObj(json);
 | 
				
			||||||
 | 
					        query.setPageSize((int)jsonObject.get("pageSize"));
 | 
				
			||||||
 | 
					        query.setPageNum((int)jsonObject.get("pageNum"));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        JSONObject param= (JSONObject)jsonObject.get("param");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        com.yc.wms.bean.Kucunrizhi j = JSONUtil.toBean(param.toString(), com.yc.wms.bean.Kucunrizhi.class);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        kucunrizhi.download( (List<Map<String,Object>>)kucunrizhi.QueryJson(query,j).getData(), response);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -10,6 +10,10 @@ import lombok.extern.slf4j.Slf4j;
 | 
				
			||||||
import org.springframework.beans.factory.annotation.Autowired;
 | 
					import org.springframework.beans.factory.annotation.Autowired;
 | 
				
			||||||
import org.springframework.web.bind.annotation.*;
 | 
					import org.springframework.web.bind.annotation.*;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import javax.servlet.http.HttpServletResponse;
 | 
				
			||||||
 | 
					import java.util.List;
 | 
				
			||||||
 | 
					import java.util.Map;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@RestController
 | 
					@RestController
 | 
				
			||||||
@Slf4j
 | 
					@Slf4j
 | 
				
			||||||
@RequestMapping("/dcx")
 | 
					@RequestMapping("/dcx")
 | 
				
			||||||
| 
						 | 
					@ -38,4 +42,20 @@ public class LiaoxiangjiankongController {
 | 
				
			||||||
        return dcx.Type();
 | 
					        return dcx.Type();
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    @PostMapping(value = "/download")
 | 
				
			||||||
 | 
					    public void exportCompany(HttpServletResponse response, @RequestBody String  json) throws Exception {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        QueryPageUtil query =new QueryPageUtil();
 | 
				
			||||||
 | 
					        JSONObject jsonObject= JSONUtil.parseObj(json);
 | 
				
			||||||
 | 
					        query.setPageSize((int)jsonObject.get("pageSize"));
 | 
				
			||||||
 | 
					        query.setPageNum((int)jsonObject.get("pageNum"));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        JSONObject param= (JSONObject)jsonObject.get("param");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        com.yc.wms.bean.Liaoxiangjiankong j = JSONUtil.toBean(param.toString(), com.yc.wms.bean.Liaoxiangjiankong.class);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        dcx.download( (List<Map<String,Object>>)dcx.QueryJson(query,j).getData(), response);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -14,6 +14,10 @@ import org.springframework.web.bind.annotation.RequestBody;
 | 
				
			||||||
import org.springframework.web.bind.annotation.RequestMapping;
 | 
					import org.springframework.web.bind.annotation.RequestMapping;
 | 
				
			||||||
import org.springframework.web.bind.annotation.RestController;
 | 
					import org.springframework.web.bind.annotation.RestController;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import javax.servlet.http.HttpServletResponse;
 | 
				
			||||||
 | 
					import java.util.List;
 | 
				
			||||||
 | 
					import java.util.Map;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@RestController
 | 
					@RestController
 | 
				
			||||||
@Slf4j
 | 
					@Slf4j
 | 
				
			||||||
@RequestMapping("/Pandianmingxi")
 | 
					@RequestMapping("/Pandianmingxi")
 | 
				
			||||||
| 
						 | 
					@ -35,4 +39,20 @@ public class PandianmingxiController {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        return pandianmingxi.QueryJson(query,p);
 | 
					        return pandianmingxi.QueryJson(query,p);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    @PostMapping(value = "/download")
 | 
				
			||||||
 | 
					    public void exportCompany(HttpServletResponse response, @RequestBody String  json) throws Exception {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        QueryPageUtil query =new QueryPageUtil();
 | 
				
			||||||
 | 
					        JSONObject jsonObject= JSONUtil.parseObj(json);
 | 
				
			||||||
 | 
					        query.setPageSize((int)jsonObject.get("pageSize"));
 | 
				
			||||||
 | 
					        query.setPageNum((int)jsonObject.get("pageNum"));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        JSONObject param= (JSONObject)jsonObject.get("param");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        com.yc.wms.bean.Pandianming j = JSONUtil.toBean(param.toString(), com.yc.wms.bean.Pandianming.class);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        pandianmingxi.download( (List<Map<String,Object>>)pandianmingxi.QueryJson(query,j).getData(), response);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -12,6 +12,10 @@ import org.springframework.web.bind.annotation.RequestBody;
 | 
				
			||||||
import org.springframework.web.bind.annotation.RequestMapping;
 | 
					import org.springframework.web.bind.annotation.RequestMapping;
 | 
				
			||||||
import org.springframework.web.bind.annotation.RestController;
 | 
					import org.springframework.web.bind.annotation.RestController;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import javax.servlet.http.HttpServletResponse;
 | 
				
			||||||
 | 
					import java.util.List;
 | 
				
			||||||
 | 
					import java.util.Map;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@RestController
 | 
					@RestController
 | 
				
			||||||
@Slf4j
 | 
					@Slf4j
 | 
				
			||||||
@RequestMapping("/Rukuzhengli")
 | 
					@RequestMapping("/Rukuzhengli")
 | 
				
			||||||
| 
						 | 
					@ -52,4 +56,20 @@ public class RukuzhengliController {
 | 
				
			||||||
            return dcxService.LOC();
 | 
					            return dcxService.LOC();
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    @PostMapping(value = "/download")
 | 
				
			||||||
 | 
					    public void exportCompany(HttpServletResponse response, @RequestBody String  json) throws Exception {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        QueryPageUtil query =new QueryPageUtil();
 | 
				
			||||||
 | 
					        JSONObject jsonObject= JSONUtil.parseObj(json);
 | 
				
			||||||
 | 
					        query.setPageSize((int)jsonObject.get("pageSize"));
 | 
				
			||||||
 | 
					        query.setPageNum((int)jsonObject.get("pageNum"));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        JSONObject param= (JSONObject)jsonObject.get("param");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        com.yc.wms.bean.Rukuzhengli j = JSONUtil.toBean(param.toString(), com.yc.wms.bean.Rukuzhengli.class);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        dcxService.download( (List<Map<String,Object>>)dcxService.readJson(query,j).getData(), response);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -15,6 +15,10 @@ import org.springframework.web.bind.annotation.RequestBody;
 | 
				
			||||||
import org.springframework.web.bind.annotation.RequestMapping;
 | 
					import org.springframework.web.bind.annotation.RequestMapping;
 | 
				
			||||||
import org.springframework.web.bind.annotation.RestController;
 | 
					import org.springframework.web.bind.annotation.RestController;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import javax.servlet.http.HttpServletResponse;
 | 
				
			||||||
 | 
					import java.util.List;
 | 
				
			||||||
 | 
					import java.util.Map;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@RestController
 | 
					@RestController
 | 
				
			||||||
@Slf4j
 | 
					@Slf4j
 | 
				
			||||||
@RequestMapping("/Xuliehaoqingdan")
 | 
					@RequestMapping("/Xuliehaoqingdan")
 | 
				
			||||||
| 
						 | 
					@ -36,4 +40,20 @@ public class XuliehaoqingdanController {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        return xuliehaoqingdan.QueryJson(query,x);
 | 
					        return xuliehaoqingdan.QueryJson(query,x);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    @PostMapping(value = "/download")
 | 
				
			||||||
 | 
					    public void exportCompany(HttpServletResponse response, @RequestBody String  json) throws Exception {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        QueryPageUtil query =new QueryPageUtil();
 | 
				
			||||||
 | 
					        JSONObject jsonObject= JSONUtil.parseObj(json);
 | 
				
			||||||
 | 
					        query.setPageSize((int)jsonObject.get("pageSize"));
 | 
				
			||||||
 | 
					        query.setPageNum((int)jsonObject.get("pageNum"));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        JSONObject param= (JSONObject)jsonObject.get("param");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        com.yc.wms.bean.Xuliehao j = JSONUtil.toBean(param.toString(), com.yc.wms.bean.Xuliehao.class);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        xuliehaoqingdan.download( (List<Map<String,Object>>)xuliehaoqingdan.QueryJson(query,j).getData(), response);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -12,6 +12,10 @@ import org.springframework.web.bind.annotation.RequestBody;
 | 
				
			||||||
import org.springframework.web.bind.annotation.RequestMapping;
 | 
					import org.springframework.web.bind.annotation.RequestMapping;
 | 
				
			||||||
import org.springframework.web.bind.annotation.RestController;
 | 
					import org.springframework.web.bind.annotation.RestController;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import javax.servlet.http.HttpServletResponse;
 | 
				
			||||||
 | 
					import java.util.List;
 | 
				
			||||||
 | 
					import java.util.Map;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@RestController
 | 
					@RestController
 | 
				
			||||||
@Slf4j
 | 
					@Slf4j
 | 
				
			||||||
@RequestMapping("/Zhengliqingdan")
 | 
					@RequestMapping("/Zhengliqingdan")
 | 
				
			||||||
| 
						 | 
					@ -54,5 +58,21 @@ public class ZhengliqingdanController {
 | 
				
			||||||
    public Result ZONE() {
 | 
					    public Result ZONE() {
 | 
				
			||||||
        return zhengliqingdan.ZONE();
 | 
					        return zhengliqingdan.ZONE();
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    @PostMapping(value = "/download")
 | 
				
			||||||
 | 
					    public void exportCompany(HttpServletResponse response, @RequestBody String  json) throws Exception {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        QueryPageUtil query =new QueryPageUtil();
 | 
				
			||||||
 | 
					        JSONObject jsonObject= JSONUtil.parseObj(json);
 | 
				
			||||||
 | 
					        query.setPageSize((int)jsonObject.get("pageSize"));
 | 
				
			||||||
 | 
					        query.setPageNum((int)jsonObject.get("pageNum"));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        JSONObject param= (JSONObject)jsonObject.get("param");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        com.yc.wms.bean.Zhengliqingdan j = JSONUtil.toBean(param.toString(), com.yc.wms.bean.Zhengliqingdan.class);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        zhengliqingdan.download( (List<Map<String,Object>>)zhengliqingdan.QueryJson(query,j).getData(), response);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -4,6 +4,10 @@ package com.yc.wms.service;
 | 
				
			||||||
import com.yc.wms.until.QueryPageUtil;
 | 
					import com.yc.wms.until.QueryPageUtil;
 | 
				
			||||||
import com.yc.wms.until.Result;
 | 
					import com.yc.wms.until.Result;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import javax.servlet.http.HttpServletResponse;
 | 
				
			||||||
 | 
					import java.util.List;
 | 
				
			||||||
 | 
					import java.util.Map;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * <p>
 | 
					 * <p>
 | 
				
			||||||
 *   入库汇总:
 | 
					 *   入库汇总:
 | 
				
			||||||
| 
						 | 
					@ -22,4 +26,6 @@ public interface Kucunhuizong {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    //库区下拉
 | 
					    //库区下拉
 | 
				
			||||||
    Result ku();
 | 
					    Result ku();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    void download(List<Map<String,Object>> all, HttpServletResponse response) throws Exception;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -3,6 +3,10 @@ package com.yc.wms.service;
 | 
				
			||||||
import com.yc.wms.until.QueryPageUtil;
 | 
					import com.yc.wms.until.QueryPageUtil;
 | 
				
			||||||
import com.yc.wms.until.Result;
 | 
					import com.yc.wms.until.Result;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import javax.servlet.http.HttpServletResponse;
 | 
				
			||||||
 | 
					import java.util.List;
 | 
				
			||||||
 | 
					import java.util.Map;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
public interface Kucunrizhi {
 | 
					public interface Kucunrizhi {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // 条件查询加分页
 | 
					    // 条件查询加分页
 | 
				
			||||||
| 
						 | 
					@ -10,4 +14,6 @@ public interface Kucunrizhi {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    //日志类型
 | 
					    //日志类型
 | 
				
			||||||
    Result Log();
 | 
					    Result Log();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    void download(List<Map<String,Object>> all, HttpServletResponse response) throws Exception;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -3,6 +3,10 @@ package com.yc.wms.service;
 | 
				
			||||||
import com.yc.wms.until.QueryPageUtil;
 | 
					import com.yc.wms.until.QueryPageUtil;
 | 
				
			||||||
import com.yc.wms.until.Result;
 | 
					import com.yc.wms.until.Result;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import javax.servlet.http.HttpServletResponse;
 | 
				
			||||||
 | 
					import java.util.List;
 | 
				
			||||||
 | 
					import java.util.Map;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
public interface Liaoxiangjiankong {
 | 
					public interface Liaoxiangjiankong {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // 条件查询加分页
 | 
					    // 条件查询加分页
 | 
				
			||||||
| 
						 | 
					@ -10,4 +14,6 @@ public interface Liaoxiangjiankong {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    //下拉
 | 
					    //下拉
 | 
				
			||||||
    Result Type();
 | 
					    Result Type();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    void download(List<Map<String,Object>> all, HttpServletResponse response) throws Exception;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -4,8 +4,14 @@ import com.yc.wms.bean.Pandianming;
 | 
				
			||||||
import com.yc.wms.until.QueryPageUtil;
 | 
					import com.yc.wms.until.QueryPageUtil;
 | 
				
			||||||
import com.yc.wms.until.Result;
 | 
					import com.yc.wms.until.Result;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import javax.servlet.http.HttpServletResponse;
 | 
				
			||||||
 | 
					import java.util.List;
 | 
				
			||||||
 | 
					import java.util.Map;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
public interface Pandianmingxi {
 | 
					public interface Pandianmingxi {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // 条件查询加分页
 | 
					    // 条件查询加分页
 | 
				
			||||||
    Result QueryJson(QueryPageUtil query, Pandianming pandianming);
 | 
					    Result QueryJson(QueryPageUtil query, Pandianming pandianming);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    void download(List<Map<String,Object>> all, HttpServletResponse response) throws Exception;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -3,6 +3,10 @@ package com.yc.wms.service;
 | 
				
			||||||
import com.yc.wms.until.QueryPageUtil;
 | 
					import com.yc.wms.until.QueryPageUtil;
 | 
				
			||||||
import com.yc.wms.until.Result;
 | 
					import com.yc.wms.until.Result;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import javax.servlet.http.HttpServletResponse;
 | 
				
			||||||
 | 
					import java.util.List;
 | 
				
			||||||
 | 
					import java.util.Map;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * <p>
 | 
					 * <p>
 | 
				
			||||||
 *   入库整理:
 | 
					 *   入库整理:
 | 
				
			||||||
| 
						 | 
					@ -21,4 +25,6 @@ public interface Rukuzhengli {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    //查询下拉列表
 | 
					    //查询下拉列表
 | 
				
			||||||
    Result LOC();
 | 
					    Result LOC();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    void download(List<Map<String,Object>> all, HttpServletResponse response) throws Exception;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -5,8 +5,14 @@ import com.yc.wms.bean.Xuliehao;
 | 
				
			||||||
import com.yc.wms.until.QueryPageUtil;
 | 
					import com.yc.wms.until.QueryPageUtil;
 | 
				
			||||||
import com.yc.wms.until.Result;
 | 
					import com.yc.wms.until.Result;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import javax.servlet.http.HttpServletResponse;
 | 
				
			||||||
 | 
					import java.util.List;
 | 
				
			||||||
 | 
					import java.util.Map;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
public interface Xuliehaoqingdan {
 | 
					public interface Xuliehaoqingdan {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // 条件查询加分页
 | 
					    // 条件查询加分页
 | 
				
			||||||
    Result QueryJson(QueryPageUtil query, Xuliehao xuliehao);
 | 
					    Result QueryJson(QueryPageUtil query, Xuliehao xuliehao);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    void download(List<Map<String,Object>> all, HttpServletResponse response) throws Exception;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -4,6 +4,10 @@ package com.yc.wms.service;
 | 
				
			||||||
import com.yc.wms.until.QueryPageUtil;
 | 
					import com.yc.wms.until.QueryPageUtil;
 | 
				
			||||||
import com.yc.wms.until.Result;
 | 
					import com.yc.wms.until.Result;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import javax.servlet.http.HttpServletResponse;
 | 
				
			||||||
 | 
					import java.util.List;
 | 
				
			||||||
 | 
					import java.util.Map;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * <p>
 | 
					 * <p>
 | 
				
			||||||
 *  服务类
 | 
					 *  服务类
 | 
				
			||||||
| 
						 | 
					@ -25,4 +29,6 @@ public interface Zhengliqingdan {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    //查询下拉列表库区
 | 
					    //查询下拉列表库区
 | 
				
			||||||
    Result ZONE();
 | 
					    Result ZONE();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    void download(List<Map<String,Object>> all, HttpServletResponse response) throws Exception;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -324,12 +324,44 @@ public class JianhuojiemianImpl implements Jianhuojiemian {
 | 
				
			||||||
        List<Map<String, Object>> list = new ArrayList<>();
 | 
					        List<Map<String, Object>> list = new ArrayList<>();
 | 
				
			||||||
        for (Map<String,Object> company : all) {
 | 
					        for (Map<String,Object> company : all) {
 | 
				
			||||||
            Map<String,Object> map = new LinkedHashMap<>();
 | 
					            Map<String,Object> map = new LinkedHashMap<>();
 | 
				
			||||||
            System.out.println(company);
 | 
					            map.put("工单号", company.get("pt_code"));
 | 
				
			||||||
            map.put("id", company.get("id"));
 | 
					            map.put("需求日期", company.get("ORDER_DATE"));
 | 
				
			||||||
            map.put("pt_code", company.get("pt_code"));
 | 
					            map.put("工作站", company.get("END_REGION"));
 | 
				
			||||||
            map.put("ORDER_DATE", company.get("ORDER_DATE"));
 | 
					            map.put("分拨墙", company.get("s_name"));
 | 
				
			||||||
            map.put("z_name", company.get("z_name"));
 | 
					            map.put("库区", company.get("z_name"));
 | 
				
			||||||
            map.put("sourceType", company.get("sourceType"));
 | 
					            map.put("SAP类型", company.get("sourceType"));
 | 
				
			||||||
 | 
					            map.put("单据类型", company.get("bt_name"));
 | 
				
			||||||
 | 
					            map.put("子任务号", company.get("BILLCODE"));
 | 
				
			||||||
 | 
					            map.put("描述", company.get("i_name"));
 | 
				
			||||||
 | 
					            map.put("料号", company.get("i_code"));
 | 
				
			||||||
 | 
					            map.put("单位", company.get("UNIT"));
 | 
				
			||||||
 | 
					            map.put("价值等级", company.get("SHIP_RULES"));
 | 
				
			||||||
 | 
					            map.put("源库位", company.get("lc1_code"));
 | 
				
			||||||
 | 
					            map.put("容器", company.get("LP"));
 | 
				
			||||||
 | 
					            map.put("目标容器", company.get("lc2_code"));
 | 
				
			||||||
 | 
					            map.put("合单位置", company.get("strBill4"));
 | 
				
			||||||
 | 
					            map.put("下发数量", company.get("yc_qty"));
 | 
				
			||||||
 | 
					            map.put("分配数量", company.get("PLAN_QUANTITY_MU"));
 | 
				
			||||||
 | 
					            map.put("拣货数量", company.get("MOVED_QUANTITY_MU"));
 | 
				
			||||||
 | 
					            map.put("状态", company.get("Status"));
 | 
				
			||||||
 | 
					            map.put("批次号", company.get("PROP_C1"));
 | 
				
			||||||
 | 
					            map.put("LOC", company.get("PROP_C2"));
 | 
				
			||||||
 | 
					            map.put("特殊标记", company.get("PROP_C3"));
 | 
				
			||||||
 | 
					            map.put("供应商编号", company.get("PROP_C5"));
 | 
				
			||||||
 | 
					            map.put("申请编号", company.get("PROP_C6"));
 | 
				
			||||||
 | 
					            map.put("申请人", company.get("PROP_C7"));
 | 
				
			||||||
 | 
					            map.put("暂存原因", company.get("PROP_C8"));
 | 
				
			||||||
 | 
					            map.put("工厂", company.get("PROP_C9"));
 | 
				
			||||||
 | 
					            map.put("加急标记", company.get("equated_Quantity"));
 | 
				
			||||||
 | 
					            map.put("序列号", company.get("BAR_CODE"));
 | 
				
			||||||
 | 
					            map.put("单号状态", company.get("INVENTORY_STATUS"));
 | 
				
			||||||
 | 
					            map.put("项号", company.get("LINE_NUMBER"));
 | 
				
			||||||
 | 
					            map.put("指定拣货人", company.get("w1_name"));
 | 
				
			||||||
 | 
					            map.put("实际拣货人", company.get("w4_name"));
 | 
				
			||||||
 | 
					            map.put("操作日期", company.get("OPERATE_TIME"));
 | 
				
			||||||
 | 
					            map.put("分配日期", company.get("CREATE_TIME"));
 | 
				
			||||||
 | 
					            map.put("波次号", company.get("wd_code"));
 | 
				
			||||||
 | 
					            map.put("任务号", company.get("t_code"));
 | 
				
			||||||
            list.add(map);
 | 
					            list.add(map);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        FileUtil.downloadExcel(list, response);
 | 
					        FileUtil.downloadExcel(list, response);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -3,15 +3,15 @@ package com.yc.wms.service.impl;
 | 
				
			||||||
import com.yc.wms.service.Kucunhuizong;
 | 
					import com.yc.wms.service.Kucunhuizong;
 | 
				
			||||||
import com.yc.wms.until.QueryPageUtil;
 | 
					import com.yc.wms.until.QueryPageUtil;
 | 
				
			||||||
import com.yc.wms.until.Result;
 | 
					import com.yc.wms.until.Result;
 | 
				
			||||||
 | 
					import com.yc.wms.utils.FileUtil;
 | 
				
			||||||
import lombok.extern.slf4j.Slf4j;
 | 
					import lombok.extern.slf4j.Slf4j;
 | 
				
			||||||
import org.springframework.beans.factory.annotation.Autowired;
 | 
					import org.springframework.beans.factory.annotation.Autowired;
 | 
				
			||||||
import org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate;
 | 
					import org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate;
 | 
				
			||||||
import org.springframework.stereotype.Service;
 | 
					import org.springframework.stereotype.Service;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import javax.servlet.http.HttpServletResponse;
 | 
				
			||||||
import java.text.SimpleDateFormat;
 | 
					import java.text.SimpleDateFormat;
 | 
				
			||||||
import java.util.HashMap;
 | 
					import java.util.*;
 | 
				
			||||||
import java.util.List;
 | 
					 | 
				
			||||||
import java.util.Map;
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
@Service
 | 
					@Service
 | 
				
			||||||
@Slf4j
 | 
					@Slf4j
 | 
				
			||||||
| 
						 | 
					@ -274,4 +274,74 @@ public class KucunhuizongImpl implements Kucunhuizong {
 | 
				
			||||||
        List<Map<String,Object>> list=jdbcTemplate.queryForList(sql,new HashMap<>());
 | 
					        List<Map<String,Object>> list=jdbcTemplate.queryForList(sql,new HashMap<>());
 | 
				
			||||||
        return Result.success(list);
 | 
					        return Result.success(list);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    @Override
 | 
				
			||||||
 | 
					    public void download(List<Map<String, Object>> all, HttpServletResponse response) throws Exception {
 | 
				
			||||||
 | 
					        List<Map<String, Object>> list = new ArrayList<>();
 | 
				
			||||||
 | 
					        for (Map<String,Object> company : all) {
 | 
				
			||||||
 | 
					            Map<String,Object> map = new LinkedHashMap<>();
 | 
				
			||||||
 | 
					            map.put("库位号", company.get("locCode"));
 | 
				
			||||||
 | 
					            map.put("料号", company.get("itemCode"));
 | 
				
			||||||
 | 
					            map.put("描述", company.get("itemName"));
 | 
				
			||||||
 | 
					            map.put("状态", company.get("status"));
 | 
				
			||||||
 | 
					            map.put("库存数量", company.get("quantity"));
 | 
				
			||||||
 | 
					            map.put("占用数量", company.get("queuedQuantity"));
 | 
				
			||||||
 | 
					            map.put("批次号", company.get("propC1"));
 | 
				
			||||||
 | 
					            map.put("LOC", company.get("propC2"));
 | 
				
			||||||
 | 
					            map.put("特殊标记", company.get("propC3"));
 | 
				
			||||||
 | 
					            map.put("部门", company.get("propC4"));
 | 
				
			||||||
 | 
					            map.put("供应商编号", company.get("propC5"));
 | 
				
			||||||
 | 
					            map.put("申请人编号", company.get("propC6"));
 | 
				
			||||||
 | 
					            map.put("申请人", company.get("propC7"));
 | 
				
			||||||
 | 
					            map.put("暂存原因", company.get("propC8"));
 | 
				
			||||||
 | 
					            map.put("工厂", company.get("propC9"));
 | 
				
			||||||
 | 
					            map.put("生产日期", company.get("prop_D1"));
 | 
				
			||||||
 | 
					            map.put("到日期", company.get("prop_D2"));
 | 
				
			||||||
 | 
					            map.put("库区", company.get("kqName"));
 | 
				
			||||||
 | 
					            if(company.get("lock").equals("1")){
 | 
				
			||||||
 | 
					                map.put("是否盘点", "是");
 | 
				
			||||||
 | 
					            }else {
 | 
				
			||||||
 | 
					                map.put("是否盘点", "否");
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					            map.put("AGV库位", company.get("LSname"));
 | 
				
			||||||
 | 
					            map.put("体积", company.get("VOLUME"));
 | 
				
			||||||
 | 
					            if(company.get("BE_WEIGHT").equals("1")){
 | 
				
			||||||
 | 
					                map.put("是否危化品", "是");
 | 
				
			||||||
 | 
					            }else {
 | 
				
			||||||
 | 
					                map.put("是否危化品", "否");
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					            map.put("库存价值等级", company.get("SHIP_RULES"));
 | 
				
			||||||
 | 
					            if(company.get("SINGLE_ITEM").equals("1")){
 | 
				
			||||||
 | 
					                map.put("是否批号管理", "是");
 | 
				
			||||||
 | 
					            }else {
 | 
				
			||||||
 | 
					                map.put("是否批号管理", "否");
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					            if(company.get("BE_MARK_WEIGHT").equals("1")){
 | 
				
			||||||
 | 
					                map.put("是否序列号", "是");
 | 
				
			||||||
 | 
					            }else {
 | 
				
			||||||
 | 
					                map.put("是否序列号", "否");
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					            map.put("单位", company.get("UNIT"));
 | 
				
			||||||
 | 
					            map.put("备注", company.get("STR_EXTEND1"));
 | 
				
			||||||
 | 
					            map.put("币种", company.get("STR_EXTEND2"));
 | 
				
			||||||
 | 
					            if(company.get("agvFlag").equals("1")){
 | 
				
			||||||
 | 
					                map.put("是否在GAV仓", "是");
 | 
				
			||||||
 | 
					            }else {
 | 
				
			||||||
 | 
					                map.put("是否在GAV仓", "否");
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					            map.put("库位类型", company.get("lts_name"));
 | 
				
			||||||
 | 
					            if(company.get("validity").equals("1")){
 | 
				
			||||||
 | 
					                map.put("是否有效期管理", "是");
 | 
				
			||||||
 | 
					            }else {
 | 
				
			||||||
 | 
					                map.put("是否有效期管理", "否");
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					            map.put("库存日期", company.get("storageDate"));
 | 
				
			||||||
 | 
					            map.put("退料标记", company.get("inv_status"));
 | 
				
			||||||
 | 
					            map.put("重量", company.get("WEIGHT"));
 | 
				
			||||||
 | 
					            list.add(map);
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        FileUtil.downloadExcel(list, response);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -3,15 +3,15 @@ package com.yc.wms.service.impl;
 | 
				
			||||||
import com.yc.wms.service.Kucunrizhi;
 | 
					import com.yc.wms.service.Kucunrizhi;
 | 
				
			||||||
import com.yc.wms.until.QueryPageUtil;
 | 
					import com.yc.wms.until.QueryPageUtil;
 | 
				
			||||||
import com.yc.wms.until.Result;
 | 
					import com.yc.wms.until.Result;
 | 
				
			||||||
 | 
					import com.yc.wms.utils.FileUtil;
 | 
				
			||||||
import lombok.extern.slf4j.Slf4j;
 | 
					import lombok.extern.slf4j.Slf4j;
 | 
				
			||||||
import org.springframework.beans.factory.annotation.Autowired;
 | 
					import org.springframework.beans.factory.annotation.Autowired;
 | 
				
			||||||
import org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate;
 | 
					import org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate;
 | 
				
			||||||
import org.springframework.stereotype.Service;
 | 
					import org.springframework.stereotype.Service;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import javax.servlet.http.HttpServletResponse;
 | 
				
			||||||
import java.text.SimpleDateFormat;
 | 
					import java.text.SimpleDateFormat;
 | 
				
			||||||
import java.util.HashMap;
 | 
					import java.util.*;
 | 
				
			||||||
import java.util.List;
 | 
					 | 
				
			||||||
import java.util.Map;
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
@Service
 | 
					@Service
 | 
				
			||||||
@Slf4j
 | 
					@Slf4j
 | 
				
			||||||
| 
						 | 
					@ -183,4 +183,34 @@ public class KucunrizhiImpl implements Kucunrizhi {
 | 
				
			||||||
        List<Map<String,Object>> list=jdbcTemplate.queryForList(sql,new HashMap<>());
 | 
					        List<Map<String,Object>> list=jdbcTemplate.queryForList(sql,new HashMap<>());
 | 
				
			||||||
        return Result.success(list);
 | 
					        return Result.success(list);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    @Override
 | 
				
			||||||
 | 
					    public void download(List<Map<String, Object>> all, HttpServletResponse response) throws Exception {
 | 
				
			||||||
 | 
					        List<Map<String, Object>> list = new ArrayList<>();
 | 
				
			||||||
 | 
					        for (Map<String,Object> company : all) {
 | 
				
			||||||
 | 
					            Map<String, Object> map = new LinkedHashMap<>();
 | 
				
			||||||
 | 
					            map.put("相关单号", company.get("RELATED_BILL"));
 | 
				
			||||||
 | 
					            map.put("日记类型", company.get("LOG_TYPE"));
 | 
				
			||||||
 | 
					            map.put("单据类型", company.get("NAME"));
 | 
				
			||||||
 | 
					            map.put("源库位", company.get("loc1_code"));
 | 
				
			||||||
 | 
					            map.put("目标库位", company.get("loc_code"));
 | 
				
			||||||
 | 
					            map.put("料号", company.get("i_code"));
 | 
				
			||||||
 | 
					            map.put("描述", company.get("i_name"));
 | 
				
			||||||
 | 
					            map.put("单位", company.get("UNIT"));
 | 
				
			||||||
 | 
					            map.put("发生数量", company.get("number"));
 | 
				
			||||||
 | 
					            map.put("操作人", company.get("OPERATOR"));
 | 
				
			||||||
 | 
					            map.put("发生日期", company.get("OCCUR_TIME"));
 | 
				
			||||||
 | 
					            map.put("备注", company.get("DESCRIPTION"));
 | 
				
			||||||
 | 
					            map.put("批号", company.get("PROP_C1"));
 | 
				
			||||||
 | 
					            map.put("LOC", company.get("PROP_C2"));
 | 
				
			||||||
 | 
					            map.put("特殊标记", company.get("PROP_C3"));
 | 
				
			||||||
 | 
					            map.put("供应商编号", company.get("PROP_C5"));
 | 
				
			||||||
 | 
					            map.put("暂存原因", company.get("PROP_C8"));
 | 
				
			||||||
 | 
					            map.put("工厂", company.get("PROP_C9"));
 | 
				
			||||||
 | 
					            map.put("工作站", company.get("endRegion"));
 | 
				
			||||||
 | 
					            map.put("容器", company.get("LP"));
 | 
				
			||||||
 | 
					            list.add(map);
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        FileUtil.downloadExcel(list, response);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -3,15 +3,15 @@ package com.yc.wms.service.impl;
 | 
				
			||||||
import com.yc.wms.bean.Liaoxiangjiankong;
 | 
					import com.yc.wms.bean.Liaoxiangjiankong;
 | 
				
			||||||
import com.yc.wms.until.QueryPageUtil;
 | 
					import com.yc.wms.until.QueryPageUtil;
 | 
				
			||||||
import com.yc.wms.until.Result;
 | 
					import com.yc.wms.until.Result;
 | 
				
			||||||
 | 
					import com.yc.wms.utils.FileUtil;
 | 
				
			||||||
import lombok.extern.slf4j.Slf4j;
 | 
					import lombok.extern.slf4j.Slf4j;
 | 
				
			||||||
import org.springframework.beans.factory.annotation.Autowired;
 | 
					import org.springframework.beans.factory.annotation.Autowired;
 | 
				
			||||||
import org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate;
 | 
					import org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate;
 | 
				
			||||||
import org.springframework.stereotype.Service;
 | 
					import org.springframework.stereotype.Service;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import javax.servlet.http.HttpServletResponse;
 | 
				
			||||||
import java.text.SimpleDateFormat;
 | 
					import java.text.SimpleDateFormat;
 | 
				
			||||||
import java.util.HashMap;
 | 
					import java.util.*;
 | 
				
			||||||
import java.util.List;
 | 
					 | 
				
			||||||
import java.util.Map;
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@Slf4j
 | 
					@Slf4j
 | 
				
			||||||
| 
						 | 
					@ -96,4 +96,20 @@ public class LiaoxiangjiankongImpl implements com.yc.wms.service.Liaoxiangjianko
 | 
				
			||||||
        List<Map<String,Object>> list=jdbcTemplate.queryForList(sql,new HashMap<>());
 | 
					        List<Map<String,Object>> list=jdbcTemplate.queryForList(sql,new HashMap<>());
 | 
				
			||||||
        return Result.success(list);
 | 
					        return Result.success(list);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    @Override
 | 
				
			||||||
 | 
					    public void download(List<Map<String, Object>> all, HttpServletResponse response) throws Exception {
 | 
				
			||||||
 | 
					        List<Map<String, Object>> list = new ArrayList<>();
 | 
				
			||||||
 | 
					        for (Map<String,Object> company : all) {
 | 
				
			||||||
 | 
					            Map<String, Object> map = new LinkedHashMap<>();
 | 
				
			||||||
 | 
					            map.put("类型", company.get("code"));
 | 
				
			||||||
 | 
					            map.put("总数", company.get("zs"));
 | 
				
			||||||
 | 
					            map.put("满不在库", company.get("mbzk"));
 | 
				
			||||||
 | 
					            map.put("满在库", company.get("mzk"));
 | 
				
			||||||
 | 
					            map.put("空不在库", company.get("kbzk"));
 | 
				
			||||||
 | 
					            map.put("空在库", company.get("kzk"));
 | 
				
			||||||
 | 
					            list.add(map);
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        FileUtil.downloadExcel(list, response);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -5,15 +5,15 @@ import com.yc.wms.bean.Pandianming;
 | 
				
			||||||
import com.yc.wms.service.Pandianmingxi;
 | 
					import com.yc.wms.service.Pandianmingxi;
 | 
				
			||||||
import com.yc.wms.until.QueryPageUtil;
 | 
					import com.yc.wms.until.QueryPageUtil;
 | 
				
			||||||
import com.yc.wms.until.Result;
 | 
					import com.yc.wms.until.Result;
 | 
				
			||||||
 | 
					import com.yc.wms.utils.FileUtil;
 | 
				
			||||||
import lombok.extern.slf4j.Slf4j;
 | 
					import lombok.extern.slf4j.Slf4j;
 | 
				
			||||||
import org.springframework.beans.factory.annotation.Autowired;
 | 
					import org.springframework.beans.factory.annotation.Autowired;
 | 
				
			||||||
import org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate;
 | 
					import org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate;
 | 
				
			||||||
import org.springframework.stereotype.Service;
 | 
					import org.springframework.stereotype.Service;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import javax.servlet.http.HttpServletResponse;
 | 
				
			||||||
import java.text.SimpleDateFormat;
 | 
					import java.text.SimpleDateFormat;
 | 
				
			||||||
import java.util.HashMap;
 | 
					import java.util.*;
 | 
				
			||||||
import java.util.List;
 | 
					 | 
				
			||||||
import java.util.Map;
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
@Service
 | 
					@Service
 | 
				
			||||||
@Slf4j
 | 
					@Slf4j
 | 
				
			||||||
| 
						 | 
					@ -202,4 +202,49 @@ public class PandianmingxiImpl implements Pandianmingxi {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        return  Result.success(Long.parseLong(listCount.get("nums").toString()),maps);
 | 
					        return  Result.success(Long.parseLong(listCount.get("nums").toString()),maps);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    @Override
 | 
				
			||||||
 | 
					    public void download(List<Map<String, Object>> all, HttpServletResponse response) throws Exception {
 | 
				
			||||||
 | 
					        List<Map<String, Object>> list = new ArrayList<>();
 | 
				
			||||||
 | 
					        for (Map<String,Object> company : all) {
 | 
				
			||||||
 | 
					            Map<String, Object> map = new LinkedHashMap<>();
 | 
				
			||||||
 | 
					            map.put("盘点计划单号", company.get("cp_code"));
 | 
				
			||||||
 | 
					            map.put("盘点单号", company.get("count_Code"));
 | 
				
			||||||
 | 
					            map.put("料号", company.get("i_code"));
 | 
				
			||||||
 | 
					            map.put("描述", company.get("i_name"));
 | 
				
			||||||
 | 
					            map.put("单位", company.get("UNIT"));
 | 
				
			||||||
 | 
					            map.put("数量", company.get("QUANTITY"));
 | 
				
			||||||
 | 
					            map.put("盘点数量", company.get("COUNT_QUANTITY"));
 | 
				
			||||||
 | 
					            map.put("差异数", company.get("DELTA_QUANTITY"));
 | 
				
			||||||
 | 
					            map.put("库位号", company.get("lc_code"));
 | 
				
			||||||
 | 
					            map.put("库区", company.get("z_name"));
 | 
				
			||||||
 | 
					            map.put("工作站", company.get("targetArea"));
 | 
				
			||||||
 | 
					            map.put("领取人", company.get("w1_name"));
 | 
				
			||||||
 | 
					            map.put("盘点人", company.get("w_name"));
 | 
				
			||||||
 | 
					            map.put("序列号", company.get("barCode"));
 | 
				
			||||||
 | 
					            map.put("批次号", company.get("PROP_C1"));
 | 
				
			||||||
 | 
					            map.put("到期日", company.get("PROP_D2"));
 | 
				
			||||||
 | 
					            map.put("LOC", company.get("PROP_C2"));
 | 
				
			||||||
 | 
					            map.put("特殊标记", company.get("PROP_C3"));
 | 
				
			||||||
 | 
					            map.put("供应商", company.get("PROP_C5"));
 | 
				
			||||||
 | 
					            map.put("工厂", company.get("PROP_C9"));
 | 
				
			||||||
 | 
					            map.put("任务下发日期", company.get("issued_Date"));
 | 
				
			||||||
 | 
					            map.put("开始盘点日期", company.get("Open_Date"));
 | 
				
			||||||
 | 
					            map.put("盘点结束日期", company.get("end_Date"));
 | 
				
			||||||
 | 
					            if(company.get("sfcy").equals("1")){
 | 
				
			||||||
 | 
					                map.put("是否差异", "是");
 | 
				
			||||||
 | 
					            }else {
 | 
				
			||||||
 | 
					                map.put("是否差异", "否");
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					            if(company.get("NEED_COUNT").equals("1")){
 | 
				
			||||||
 | 
					                map.put("是否盘点", "是");
 | 
				
			||||||
 | 
					            }else {
 | 
				
			||||||
 | 
					                map.put("是否盘点", "否");
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					            list.add(map);
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        FileUtil.downloadExcel(list, response);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -3,15 +3,15 @@ package com.yc.wms.service.impl;
 | 
				
			||||||
import com.yc.wms.bean.Rukuzhengli;
 | 
					import com.yc.wms.bean.Rukuzhengli;
 | 
				
			||||||
import com.yc.wms.until.QueryPageUtil;
 | 
					import com.yc.wms.until.QueryPageUtil;
 | 
				
			||||||
import com.yc.wms.until.Result;
 | 
					import com.yc.wms.until.Result;
 | 
				
			||||||
 | 
					import com.yc.wms.utils.FileUtil;
 | 
				
			||||||
import lombok.extern.slf4j.Slf4j;
 | 
					import lombok.extern.slf4j.Slf4j;
 | 
				
			||||||
import org.springframework.beans.factory.annotation.Autowired;
 | 
					import org.springframework.beans.factory.annotation.Autowired;
 | 
				
			||||||
import org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate;
 | 
					import org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate;
 | 
				
			||||||
import org.springframework.stereotype.Service;
 | 
					import org.springframework.stereotype.Service;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import javax.servlet.http.HttpServletResponse;
 | 
				
			||||||
import java.text.SimpleDateFormat;
 | 
					import java.text.SimpleDateFormat;
 | 
				
			||||||
import java.util.HashMap;
 | 
					import java.util.*;
 | 
				
			||||||
import java.util.List;
 | 
					 | 
				
			||||||
import java.util.Map;
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
@Service
 | 
					@Service
 | 
				
			||||||
@Slf4j
 | 
					@Slf4j
 | 
				
			||||||
| 
						 | 
					@ -208,4 +208,41 @@ public class RukuzhengliImpl implements com.yc.wms.service.Rukuzhengli {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        return Result.success(list);
 | 
					        return Result.success(list);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    @Override
 | 
				
			||||||
 | 
					    public void download(List<Map<String, Object>> all, HttpServletResponse response) throws Exception {
 | 
				
			||||||
 | 
					        List<Map<String, Object>> list = new ArrayList<>();
 | 
				
			||||||
 | 
					        for (Map<String,Object> company : all) {
 | 
				
			||||||
 | 
					            Map<String, Object> map = new LinkedHashMap<>();
 | 
				
			||||||
 | 
					            map.put("采购单号", company.get("sourceId"));
 | 
				
			||||||
 | 
					            map.put("凭证号", company.get("strBill7"));
 | 
				
			||||||
 | 
					            map.put("行号", company.get("strBill8"));
 | 
				
			||||||
 | 
					            map.put("料号", company.get("code"));
 | 
				
			||||||
 | 
					            map.put("描述", company.get("name"));
 | 
				
			||||||
 | 
					            map.put("单位", company.get("unit"));
 | 
				
			||||||
 | 
					            map.put("加急标记", company.get("strBill11"));
 | 
				
			||||||
 | 
					            map.put("批次", company.get("PROP_C1"));
 | 
				
			||||||
 | 
					            map.put("LOC", company.get("PROP_C2"));
 | 
				
			||||||
 | 
					            map.put("特殊标记", company.get("PROP_C3"));
 | 
				
			||||||
 | 
					            map.put("供应商编号", company.get("PROP_C5"));
 | 
				
			||||||
 | 
					            map.put("工厂", company.get("PROP_C9"));
 | 
				
			||||||
 | 
					            map.put("收货数量", company.get("EXPECTED_QUANTITY"));
 | 
				
			||||||
 | 
					            map.put("整理数量", company.get("RECEIVED_QUANTITY"));
 | 
				
			||||||
 | 
					            map.put("收货日期", company.get("ORDER_DATE"));
 | 
				
			||||||
 | 
					            map.put("序列号", company.get("strBill2"));
 | 
				
			||||||
 | 
					            map.put("整理日期", company.get("RECEIVE_DATE"));
 | 
				
			||||||
 | 
					            map.put("整理人", company.get("USER_NAME"));
 | 
				
			||||||
 | 
					            map.put("预入库日期", company.get("DELIVERY_DATE"));
 | 
				
			||||||
 | 
					            map.put("预入库操作人", company.get("RELATED_BILL5"));
 | 
				
			||||||
 | 
					            map.put("备注", company.get("description"));
 | 
				
			||||||
 | 
					            if(company.get("PROP_C1").equals("0")){
 | 
				
			||||||
 | 
					                map.put("是否质检", "否");
 | 
				
			||||||
 | 
					            }else{
 | 
				
			||||||
 | 
					                map.put("是否质检", "是");
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					            map.put("SAP接口号", company.get("CODE"));
 | 
				
			||||||
 | 
					            list.add(map);
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        FileUtil.downloadExcel(list, response);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -4,15 +4,15 @@ import com.yc.wms.bean.Xuliehao;
 | 
				
			||||||
import com.yc.wms.service.Xuliehaoqingdan;
 | 
					import com.yc.wms.service.Xuliehaoqingdan;
 | 
				
			||||||
import com.yc.wms.until.QueryPageUtil;
 | 
					import com.yc.wms.until.QueryPageUtil;
 | 
				
			||||||
import com.yc.wms.until.Result;
 | 
					import com.yc.wms.until.Result;
 | 
				
			||||||
 | 
					import com.yc.wms.utils.FileUtil;
 | 
				
			||||||
import lombok.extern.slf4j.Slf4j;
 | 
					import lombok.extern.slf4j.Slf4j;
 | 
				
			||||||
import org.springframework.beans.factory.annotation.Autowired;
 | 
					import org.springframework.beans.factory.annotation.Autowired;
 | 
				
			||||||
import org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate;
 | 
					import org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate;
 | 
				
			||||||
import org.springframework.stereotype.Service;
 | 
					import org.springframework.stereotype.Service;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import javax.servlet.http.HttpServletResponse;
 | 
				
			||||||
import java.text.SimpleDateFormat;
 | 
					import java.text.SimpleDateFormat;
 | 
				
			||||||
import java.util.HashMap;
 | 
					import java.util.*;
 | 
				
			||||||
import java.util.List;
 | 
					 | 
				
			||||||
import java.util.Map;
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
@Service
 | 
					@Service
 | 
				
			||||||
@Slf4j
 | 
					@Slf4j
 | 
				
			||||||
| 
						 | 
					@ -235,4 +235,31 @@ public class XuliehaoqingdanImpl implements Xuliehaoqingdan {
 | 
				
			||||||
        return  Result.success(Long.parseLong(listCount.get("nums").toString()),maps);
 | 
					        return  Result.success(Long.parseLong(listCount.get("nums").toString()),maps);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    @Override
 | 
				
			||||||
 | 
					    public void download(List<Map<String, Object>> all, HttpServletResponse response) throws Exception {
 | 
				
			||||||
 | 
					        List<Map<String, Object>> list = new ArrayList<>();
 | 
				
			||||||
 | 
					        for (Map<String,Object> company : all) {
 | 
				
			||||||
 | 
					            Map<String, Object> map = new LinkedHashMap<>();
 | 
				
			||||||
 | 
					            map.put("库位号", company.get("lc_code"));
 | 
				
			||||||
 | 
					            map.put("料号", company.get("i_code"));
 | 
				
			||||||
 | 
					            map.put("序列号", company.get("BAR_CODE"));
 | 
				
			||||||
 | 
					            map.put("描述", company.get("i_name"));
 | 
				
			||||||
 | 
					            map.put("单位", company.get("UNIT"));
 | 
				
			||||||
 | 
					            map.put("状态", company.get("STATUS"));
 | 
				
			||||||
 | 
					            map.put("库存数", company.get("QUANTITY"));
 | 
				
			||||||
 | 
					            map.put("占用数", company.get("QUEUED_QUANTITY"));
 | 
				
			||||||
 | 
					            map.put("批次号", company.get("PROP_C1"));
 | 
				
			||||||
 | 
					            map.put("LOC", company.get("PROP_C2"));
 | 
				
			||||||
 | 
					            map.put("特殊标记", company.get("PROP_C3"));
 | 
				
			||||||
 | 
					            map.put("供应商", company.get("PROP_C5"));
 | 
				
			||||||
 | 
					            map.put("工厂", company.get("PROP_C9"));
 | 
				
			||||||
 | 
					            map.put("到期日", company.get("PROP_D2"));
 | 
				
			||||||
 | 
					            map.put("库区", company.get("z_name"));
 | 
				
			||||||
 | 
					            map.put("存货日期", company.get("STORAGE_DATE"));
 | 
				
			||||||
 | 
					            map.put("是否差异", company.get("sfcy"));
 | 
				
			||||||
 | 
					            list.add(map);
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        FileUtil.downloadExcel(list, response);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -3,15 +3,15 @@ package com.yc.wms.service.impl;
 | 
				
			||||||
import com.yc.wms.service.Zhengliqingdan;
 | 
					import com.yc.wms.service.Zhengliqingdan;
 | 
				
			||||||
import com.yc.wms.until.QueryPageUtil;
 | 
					import com.yc.wms.until.QueryPageUtil;
 | 
				
			||||||
import com.yc.wms.until.Result;
 | 
					import com.yc.wms.until.Result;
 | 
				
			||||||
 | 
					import com.yc.wms.utils.FileUtil;
 | 
				
			||||||
import lombok.extern.slf4j.Slf4j;
 | 
					import lombok.extern.slf4j.Slf4j;
 | 
				
			||||||
import org.springframework.beans.factory.annotation.Autowired;
 | 
					import org.springframework.beans.factory.annotation.Autowired;
 | 
				
			||||||
import org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate;
 | 
					import org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate;
 | 
				
			||||||
import org.springframework.stereotype.Service;
 | 
					import org.springframework.stereotype.Service;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import javax.servlet.http.HttpServletResponse;
 | 
				
			||||||
import java.text.SimpleDateFormat;
 | 
					import java.text.SimpleDateFormat;
 | 
				
			||||||
import java.util.HashMap;
 | 
					import java.util.*;
 | 
				
			||||||
import java.util.List;
 | 
					 | 
				
			||||||
import java.util.Map;
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
@Service
 | 
					@Service
 | 
				
			||||||
@Slf4j
 | 
					@Slf4j
 | 
				
			||||||
| 
						 | 
					@ -268,4 +268,40 @@ public class ZhengliqingdanImpl implements Zhengliqingdan {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        return Result.success(list);
 | 
					        return Result.success(list);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    @Override
 | 
				
			||||||
 | 
					    public void download(List<Map<String, Object>> all, HttpServletResponse response) throws Exception {
 | 
				
			||||||
 | 
					        List<Map<String, Object>> list = new ArrayList<>();
 | 
				
			||||||
 | 
					        for (Map<String,Object> company : all) {
 | 
				
			||||||
 | 
					            Map<String, Object> map = new LinkedHashMap<>();
 | 
				
			||||||
 | 
					            map.put("采购单号", company.get("sourceId"));
 | 
				
			||||||
 | 
					            map.put("凭证号", company.get("strBill7"));
 | 
				
			||||||
 | 
					            map.put("行号", company.get("strBill8"));
 | 
				
			||||||
 | 
					            map.put("料号", company.get("i_CODE"));
 | 
				
			||||||
 | 
					            map.put("描述", company.get("NAME"));
 | 
				
			||||||
 | 
					            map.put("单位", company.get("UNIT"));
 | 
				
			||||||
 | 
					            map.put("收货日期", company.get("ORDER_DATE"));
 | 
				
			||||||
 | 
					            map.put("整理日期", company.get("RECEIVE_DATE"));
 | 
				
			||||||
 | 
					            map.put("整理人", company.get("OPERATOR"));
 | 
				
			||||||
 | 
					            map.put("上架人", company.get("w_NAME"));
 | 
				
			||||||
 | 
					            map.put("容器", company.get("LP"));
 | 
				
			||||||
 | 
					            map.put("批号", company.get("PROP_C1"));
 | 
				
			||||||
 | 
					            map.put("LOC", company.get("PROP_C2"));
 | 
				
			||||||
 | 
					            map.put("特殊标记", company.get("PROP_C3"));
 | 
				
			||||||
 | 
					            map.put("供应商编号", company.get("PROP_C5"));
 | 
				
			||||||
 | 
					            map.put("工厂", company.get("PROP_C9"));
 | 
				
			||||||
 | 
					            map.put("序列号", company.get("BAR_CODE"));
 | 
				
			||||||
 | 
					            if(company.get("BE_MOVED").equals("1")){
 | 
				
			||||||
 | 
					                map.put("是否上架", "是");
 | 
				
			||||||
 | 
					            }else {
 | 
				
			||||||
 | 
					                map.put("是否上架", "否");
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					            map.put("备注", company.get("description"));
 | 
				
			||||||
 | 
					            map.put("SAP接口", company.get("a_CODE"));
 | 
				
			||||||
 | 
					            map.put("库位号", company.get("lc_CODE"));
 | 
				
			||||||
 | 
					            list.add(map);
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        FileUtil.downloadExcel(list, response);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue