Merge branch 'dev' of http://192.168.0.56:3000/bonus/devicesmgt into dev
This commit is contained in:
commit
f42b926b71
|
|
@ -51,10 +51,8 @@
|
|||
mt.type_name like concat('%', #{keyWord}, '%')
|
||||
)
|
||||
</if>
|
||||
<if test="startTime != null and startTime != '' and endTime != null and endTime != '' " >
|
||||
and (lod.create_time like concat('%', #{startTime}, '%') or
|
||||
lod.create_time like concat('%', #{endTime}, '%')
|
||||
)
|
||||
<if test="startTime != null and startTime != '' and endTime != null and endTime != ''">
|
||||
AND lod.create_time BETWEEN CONCAT(#{startTime}, ' 00:00:00') AND CONCAT(#{endTime}, ' 23:59:59')
|
||||
</if>
|
||||
ORDER BY lod.create_time DESC
|
||||
</select>
|
||||
|
|
|
|||
|
|
@ -110,7 +110,7 @@
|
|||
AND tt.task_status = #{repairStatus}
|
||||
</if>
|
||||
<if test="startTime != null and startTime != '' and endTime != null and endTime != ''">
|
||||
AND ts.create_time between #{startTime} and #{endTime}
|
||||
AND tt.create_time BETWEEN CONCAT(#{startTime}, ' 00:00:00') AND CONCAT(#{endTime}, ' 23:59:59')
|
||||
</if>
|
||||
GROUP BY rd.task_id,bui.unit_name,bpi.lot_name,bai.code,su.user_name
|
||||
order by tt.create_time desc
|
||||
|
|
@ -172,7 +172,7 @@
|
|||
AND tt.task_status = #{repairStatus}
|
||||
</if>
|
||||
<if test="startTime != null and startTime != '' and endTime != null and endTime != ''">
|
||||
AND ts.create_time between #{startTime} and #{endTime}
|
||||
AND tt.create_time BETWEEN CONCAT(#{startTime}, ' 00:00:00') AND CONCAT(#{endTime}, ' 23:59:59')
|
||||
</if>
|
||||
ORDER BY
|
||||
tt.create_time DESC
|
||||
|
|
|
|||
|
|
@ -0,0 +1,59 @@
|
|||
package com.bonus.sgzb.material.controller;
|
||||
|
||||
import com.bonus.sgzb.common.core.utils.poi.ExcelUtil;
|
||||
import com.bonus.sgzb.common.core.web.controller.BaseController;
|
||||
import com.bonus.sgzb.common.core.web.domain.AjaxResult;
|
||||
import com.bonus.sgzb.common.log.annotation.Log;
|
||||
import com.bonus.sgzb.common.log.enums.BusinessType;
|
||||
import com.bonus.sgzb.material.domain.BackRecord;
|
||||
import com.bonus.sgzb.material.domain.LeaseRecord;
|
||||
import com.bonus.sgzb.material.service.BackRecordService;
|
||||
import com.bonus.sgzb.material.service.LeaseRecordService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @description 综合查询--退料记录查询
|
||||
* @author hay
|
||||
* @date 2024/2/26 14:15
|
||||
*/
|
||||
@Api(tags = "综合查询--退料记录查询")
|
||||
@RestController
|
||||
@RequestMapping("/backRecord")
|
||||
public class BackRecordController extends BaseController {
|
||||
@Autowired
|
||||
private BackRecordService backRecordService;
|
||||
|
||||
/**
|
||||
* 退料记录列表
|
||||
*/
|
||||
@ApiOperation(value = "综合查询--退料记录列表")
|
||||
@GetMapping("/getBackRecordList")
|
||||
public AjaxResult getBackRecordList(BackRecord bean) {
|
||||
startPage();
|
||||
List<BackRecord> list = backRecordService.getBackRecordList(bean);
|
||||
return AjaxResult.success(getDataTable(list));
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出综合查询退料记录列表
|
||||
*/
|
||||
@ApiOperation("导出综合查询退料记录列表")
|
||||
@Log(title = "导出综合查询退料记录列表", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, BackRecord bean)
|
||||
{
|
||||
List<BackRecord> list = backRecordService.getBackRecordList(bean);
|
||||
ExcelUtil<BackRecord> util = new ExcelUtil<BackRecord>(BackRecord.class);
|
||||
util.exportExcel(response, list, "综合查询--退料记录");
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,57 @@
|
|||
package com.bonus.sgzb.material.controller;
|
||||
|
||||
import com.bonus.sgzb.common.core.utils.poi.ExcelUtil;
|
||||
import com.bonus.sgzb.common.core.web.controller.BaseController;
|
||||
import com.bonus.sgzb.common.core.web.domain.AjaxResult;
|
||||
import com.bonus.sgzb.common.log.annotation.Log;
|
||||
import com.bonus.sgzb.common.log.enums.BusinessType;
|
||||
import com.bonus.sgzb.material.domain.BackApplyInfo;
|
||||
import com.bonus.sgzb.material.domain.LeaseRecord;
|
||||
import com.bonus.sgzb.material.domain.PurchaseCheckInfo;
|
||||
import com.bonus.sgzb.material.service.BackApplyService;
|
||||
import com.bonus.sgzb.material.service.LeaseRecordService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @description 综合查询--领料记录查询
|
||||
* @author hay
|
||||
* @date 2024/2/26 14:15
|
||||
*/
|
||||
@Api(tags = "综合查询--领料记录查询")
|
||||
@RestController
|
||||
@RequestMapping("/leaseRecord")
|
||||
public class LeaseRecordController extends BaseController {
|
||||
@Autowired
|
||||
private LeaseRecordService leaseRecordService;
|
||||
|
||||
/**
|
||||
* 领料记录列表
|
||||
*/
|
||||
@ApiOperation(value = "综合查询--领料记录列表")
|
||||
@GetMapping("/getLeaseRecordList")
|
||||
public AjaxResult getLeaseRecordList(LeaseRecord bean) {
|
||||
startPage();
|
||||
List<LeaseRecord> list = leaseRecordService.getLeaseRecordList(bean);
|
||||
return AjaxResult.success(getDataTable(list));
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出综合查询领料记录列表
|
||||
*/
|
||||
@ApiOperation("导出综合查询领料记录列表")
|
||||
@Log(title = "导出综合查询领料记录列表", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, LeaseRecord bean)
|
||||
{
|
||||
List<LeaseRecord> list = leaseRecordService.getLeaseRecordList(bean);
|
||||
ExcelUtil<LeaseRecord> util = new ExcelUtil<LeaseRecord>(LeaseRecord.class);
|
||||
util.exportExcel(response, list, "综合查询--领料记录");
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,186 @@
|
|||
package com.bonus.sgzb.material.domain;
|
||||
|
||||
import com.bonus.sgzb.common.core.annotation.Excel;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @description 综合查询--退料查询
|
||||
* @author hay
|
||||
* @date 2024/2/26 14:51
|
||||
*/
|
||||
@ApiModel(description = "退料查询")
|
||||
@Data
|
||||
public class BackRecord {
|
||||
|
||||
private static final long serialVersionUID = 2227217051604273598L;
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private Integer id;
|
||||
|
||||
/**
|
||||
* 类型名称
|
||||
*/
|
||||
@ApiModelProperty(value = "类型名称")
|
||||
@Excel(name = "机具名称")
|
||||
private String typeName;
|
||||
|
||||
/**
|
||||
* 规格ID
|
||||
*/
|
||||
@ApiModelProperty(value = "规格ID")
|
||||
private Integer typeId;
|
||||
|
||||
/**
|
||||
* 规格型号
|
||||
*/
|
||||
@ApiModelProperty(value = "规格型号")
|
||||
@Excel(name = "机具规格")
|
||||
private String typeModelName;
|
||||
|
||||
/**
|
||||
* 退料单号
|
||||
*/
|
||||
@ApiModelProperty(value = "退料单号")
|
||||
@Excel(name = "退料单号")
|
||||
private String code;
|
||||
|
||||
/**
|
||||
* 协议号
|
||||
*/
|
||||
@ApiModelProperty(value = "协议号")
|
||||
private String agreementCode;
|
||||
|
||||
/**
|
||||
* 设备编码
|
||||
*/
|
||||
@ApiModelProperty(value = "设备编码")
|
||||
@Excel(name = "设备编码")
|
||||
private String maCode;
|
||||
|
||||
/**
|
||||
* 计量单位
|
||||
*/
|
||||
@ApiModelProperty(value = "计量单位")
|
||||
private String unit;
|
||||
|
||||
/**
|
||||
* 退料数量
|
||||
*/
|
||||
@ApiModelProperty(value = "退料数量")
|
||||
@Excel(name = "退料数量",cellType = Excel.ColumnType.NUMERIC)
|
||||
private Double backNum;
|
||||
|
||||
/**
|
||||
* 退料人
|
||||
*/
|
||||
@ApiModelProperty(value = "退料人")
|
||||
@Excel(name = "退料人")
|
||||
private String backPerson;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 创建者
|
||||
*/
|
||||
@ApiModelProperty(value = "创建者")
|
||||
private String createBy;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@Excel(name = "退料日期", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date createTime;
|
||||
|
||||
/**
|
||||
* 更新者
|
||||
*/
|
||||
@ApiModelProperty(value = "更新者")
|
||||
private String updateBy;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
@ApiModelProperty(value = "更新时间 ")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date updateTime;
|
||||
|
||||
/**
|
||||
* 退料单位Id
|
||||
*/
|
||||
@ApiModelProperty(value = "退料单位Id")
|
||||
private Integer unitId;
|
||||
|
||||
/**
|
||||
* 退料单位
|
||||
*/
|
||||
@ApiModelProperty(value = "退料单位")
|
||||
@Excel(name = "退料单位")
|
||||
private String unitName;
|
||||
|
||||
/**
|
||||
* 退料工程Id
|
||||
*/
|
||||
@ApiModelProperty(value = "退料工程Id")
|
||||
private Integer proId;
|
||||
|
||||
/**
|
||||
* 退料工程
|
||||
*/
|
||||
@ApiModelProperty(value = "退料工程")
|
||||
@Excel(name = "退料工程")
|
||||
private String proName;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
@ApiModelProperty(value = "备注")
|
||||
private String remark;
|
||||
|
||||
/**
|
||||
* 关键字
|
||||
*/
|
||||
@ApiModelProperty(value = "关键字")
|
||||
private String keyWord;
|
||||
|
||||
@ApiModelProperty(value="开始时间")
|
||||
private String startTime;
|
||||
|
||||
@ApiModelProperty(value="结束时间")
|
||||
private String endTime;
|
||||
|
||||
|
||||
/**
|
||||
* 设备所属类型
|
||||
*/
|
||||
@ApiModelProperty(value = "数据所属组织")
|
||||
private Integer companyId;
|
||||
|
||||
/**
|
||||
* 装备管理方式(0编号 1计数)
|
||||
*/
|
||||
@ApiModelProperty(value = "装备管理方式")
|
||||
private int manageType;
|
||||
|
||||
/**
|
||||
* 装备管理方式(0编号 1计数)
|
||||
*/
|
||||
@ApiModelProperty(value = "装备管理方式名称")
|
||||
private String manageTypeName;
|
||||
|
||||
/**
|
||||
* 实时库存
|
||||
*/
|
||||
@ApiModelProperty(value = "实时库存")
|
||||
private Double num;
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,182 @@
|
|||
package com.bonus.sgzb.material.domain;
|
||||
|
||||
import com.bonus.sgzb.common.core.annotation.Excel;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @description 综合查询--领料查询
|
||||
* @author hay
|
||||
* @date 2024/2/26 14:51
|
||||
*/
|
||||
@ApiModel(description = "领料查询")
|
||||
@Data
|
||||
public class LeaseRecord{
|
||||
|
||||
private static final long serialVersionUID = 2227217051604273598L;
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private Integer id;
|
||||
|
||||
/**
|
||||
* 类型名称
|
||||
*/
|
||||
@ApiModelProperty(value = "类型名称")
|
||||
@Excel(name = "机具名称")
|
||||
private String typeName;
|
||||
|
||||
/**
|
||||
* 规格ID
|
||||
*/
|
||||
@ApiModelProperty(value = "规格ID")
|
||||
private Integer typeId;
|
||||
|
||||
/**
|
||||
* 规格型号
|
||||
*/
|
||||
@ApiModelProperty(value = "规格型号")
|
||||
@Excel(name = "机具规格")
|
||||
private String typeModelName;
|
||||
|
||||
/**
|
||||
* 协议号
|
||||
*/
|
||||
@ApiModelProperty(value = "协议号")
|
||||
@Excel(name = "协议号")
|
||||
private String agreementCode;
|
||||
|
||||
/**
|
||||
* 设备编码
|
||||
*/
|
||||
@ApiModelProperty(value = "设备编码")
|
||||
@Excel(name = "设备编码")
|
||||
private String maCode;
|
||||
|
||||
/**
|
||||
* 计量单位
|
||||
*/
|
||||
@ApiModelProperty(value = "计量单位")
|
||||
@Excel(name = "单位")
|
||||
private String unit;
|
||||
|
||||
/**
|
||||
* 预领料数
|
||||
*/
|
||||
@ApiModelProperty(value = "预领料数")
|
||||
@Excel(name = "领料数量",cellType = Excel.ColumnType.NUMERIC)
|
||||
private Double preNum;
|
||||
|
||||
/**
|
||||
* 领料人
|
||||
*/
|
||||
@ApiModelProperty(value = "领料人")
|
||||
@Excel(name = "领料人")
|
||||
private String leasePerson;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 创建者
|
||||
*/
|
||||
@ApiModelProperty(value = "创建者")
|
||||
private String createBy;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@Excel(name = "领料日期", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date createTime;
|
||||
|
||||
/**
|
||||
* 更新者
|
||||
*/
|
||||
@ApiModelProperty(value = "更新者")
|
||||
private String updateBy;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
@ApiModelProperty(value = "更新时间 ")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date updateTime;
|
||||
|
||||
/**
|
||||
* 领料单位Id
|
||||
*/
|
||||
@ApiModelProperty(value = "领料单位Id")
|
||||
private Integer unitId;
|
||||
|
||||
/**
|
||||
* 领料单位
|
||||
*/
|
||||
@ApiModelProperty(value = "领料单位")
|
||||
@Excel(name = "领料单位")
|
||||
private String unitName;
|
||||
|
||||
/**
|
||||
* 领料工程Id
|
||||
*/
|
||||
@ApiModelProperty(value = "领料工程Id")
|
||||
private Integer proId;
|
||||
|
||||
/**
|
||||
* 领料工程
|
||||
*/
|
||||
@ApiModelProperty(value = "领料工程")
|
||||
@Excel(name = "领料工程")
|
||||
private String proName;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
@ApiModelProperty(value = "备注")
|
||||
private String remark;
|
||||
|
||||
/**
|
||||
* 关键字
|
||||
*/
|
||||
@ApiModelProperty(value = "关键字")
|
||||
private String keyWord;
|
||||
|
||||
@ApiModelProperty(value="开始时间")
|
||||
private String startTime;
|
||||
|
||||
@ApiModelProperty(value="结束时间")
|
||||
private String endTime;
|
||||
|
||||
|
||||
/**
|
||||
* 设备所属类型
|
||||
*/
|
||||
@ApiModelProperty(value = "数据所属组织")
|
||||
private Integer companyId;
|
||||
|
||||
/**
|
||||
* 装备管理方式(0编号 1计数)
|
||||
*/
|
||||
@ApiModelProperty(value = "装备管理方式")
|
||||
private int manageType;
|
||||
|
||||
/**
|
||||
* 装备管理方式(0编号 1计数)
|
||||
*/
|
||||
@ApiModelProperty(value = "装备管理方式名称")
|
||||
private String manageTypeName;
|
||||
|
||||
/**
|
||||
* 实时库存
|
||||
*/
|
||||
@ApiModelProperty(value = "实时库存")
|
||||
private Double num;
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,23 @@
|
|||
package com.bonus.sgzb.material.mapper;
|
||||
|
||||
import com.bonus.sgzb.material.domain.BackRecord;
|
||||
import com.bonus.sgzb.material.domain.LeaseRecord;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @description 综合查询--退料记录查询
|
||||
* @author hay
|
||||
* @date 2024/2/26 14:19
|
||||
*/
|
||||
@Mapper
|
||||
public interface BackRecordMapper {
|
||||
|
||||
/**
|
||||
* 综合查询--退料记录列表
|
||||
* @param bean
|
||||
* @return List<BackRecord>
|
||||
*/
|
||||
List<BackRecord> getBackRecordList(BackRecord bean);
|
||||
}
|
||||
|
|
@ -0,0 +1,26 @@
|
|||
package com.bonus.sgzb.material.mapper;
|
||||
|
||||
import com.bonus.sgzb.material.domain.BackApplyInfo;
|
||||
import com.bonus.sgzb.material.domain.LeaseRecord;
|
||||
import com.bonus.sgzb.material.domain.TypeTreeNode;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @description 综合查询--领料记录查询
|
||||
* @author hay
|
||||
* @date 2024/2/26 14:19
|
||||
*/
|
||||
@Mapper
|
||||
public interface LeaseRecordMapper {
|
||||
|
||||
/**
|
||||
* 综合查询--领料记录列表
|
||||
* @param bean
|
||||
* @return List<LeaseRecord>
|
||||
*/
|
||||
List<LeaseRecord> getLeaseRecordList(LeaseRecord bean);
|
||||
}
|
||||
|
|
@ -0,0 +1,21 @@
|
|||
package com.bonus.sgzb.material.service;
|
||||
|
||||
import com.bonus.sgzb.material.domain.BackRecord;
|
||||
import com.bonus.sgzb.material.domain.LeaseRecord;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @description 综合查询--退料记录查询
|
||||
* @author hay
|
||||
* @date 2024/2/26 14:19
|
||||
*/
|
||||
public interface BackRecordService {
|
||||
|
||||
/**
|
||||
* 综合查询--退料记录列表
|
||||
* @param bean
|
||||
* @return List<BackRecord>
|
||||
*/
|
||||
List<BackRecord> getBackRecordList(BackRecord bean);
|
||||
}
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
package com.bonus.sgzb.material.service;
|
||||
|
||||
import com.bonus.sgzb.common.core.web.domain.AjaxResult;
|
||||
import com.bonus.sgzb.material.domain.BackApplyInfo;
|
||||
import com.bonus.sgzb.material.domain.LeaseRecord;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @description 综合查询--领料记录查询
|
||||
* @author hay
|
||||
* @date 2024/2/26 14:19
|
||||
*/
|
||||
public interface LeaseRecordService {
|
||||
|
||||
/**
|
||||
* 综合查询--领料记录列表
|
||||
* @param bean
|
||||
* @return List<LeaseRecord>
|
||||
*/
|
||||
List<LeaseRecord> getLeaseRecordList(LeaseRecord bean);
|
||||
}
|
||||
|
|
@ -0,0 +1,29 @@
|
|||
package com.bonus.sgzb.material.service.impl;
|
||||
|
||||
import com.bonus.sgzb.material.domain.BackRecord;
|
||||
import com.bonus.sgzb.material.domain.LeaseRecord;
|
||||
import com.bonus.sgzb.material.mapper.BackRecordMapper;
|
||||
import com.bonus.sgzb.material.mapper.LeaseRecordMapper;
|
||||
import com.bonus.sgzb.material.service.BackRecordService;
|
||||
import com.bonus.sgzb.material.service.LeaseRecordService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author hay
|
||||
* @date 2023/12/20 14:55
|
||||
*/
|
||||
@Service
|
||||
public class BackRecordServiceImpl implements BackRecordService {
|
||||
|
||||
@Autowired
|
||||
private BackRecordMapper backRecordMapper;
|
||||
|
||||
|
||||
@Override
|
||||
public List<BackRecord> getBackRecordList(BackRecord bean) {
|
||||
return backRecordMapper.getBackRecordList(bean);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,43 @@
|
|||
package com.bonus.sgzb.material.service.impl;
|
||||
|
||||
import cn.hutool.core.collection.CollUtil;
|
||||
import com.bonus.sgzb.common.core.utils.DateUtils;
|
||||
import com.bonus.sgzb.common.core.utils.StringUtils;
|
||||
import com.bonus.sgzb.common.core.web.domain.AjaxResult;
|
||||
import com.bonus.sgzb.common.security.utils.SecurityUtils;
|
||||
import com.bonus.sgzb.material.domain.BackApplyInfo;
|
||||
import com.bonus.sgzb.material.domain.LeaseRecord;
|
||||
import com.bonus.sgzb.material.domain.TypeTreeNode;
|
||||
import com.bonus.sgzb.material.mapper.BackApplyMapper;
|
||||
import com.bonus.sgzb.material.mapper.LeaseRecordMapper;
|
||||
import com.bonus.sgzb.material.mapper.TaskMapper;
|
||||
import com.bonus.sgzb.material.service.BackApplyService;
|
||||
import com.bonus.sgzb.material.service.LeaseRecordService;
|
||||
import com.bonus.sgzb.material.vo.GlobalContants;
|
||||
import com.bonus.sgzb.material.vo.TypeTreeBuild;
|
||||
import org.apache.commons.collections4.CollectionUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* @author hay
|
||||
* @date 2023/12/20 14:55
|
||||
*/
|
||||
@Service
|
||||
public class LeaseRecordServiceImpl implements LeaseRecordService {
|
||||
|
||||
@Autowired
|
||||
private LeaseRecordMapper leaseRecordMapper;
|
||||
|
||||
|
||||
@Override
|
||||
public List<LeaseRecord> getLeaseRecordList(LeaseRecord bean) {
|
||||
return leaseRecordMapper.getLeaseRecordList(bean);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,54 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.bonus.sgzb.material.mapper.BackRecordMapper">
|
||||
|
||||
<select id="getBackRecordList" resultType="com.bonus.sgzb.material.domain.BackRecord">
|
||||
SELECT
|
||||
mt2.type_name AS typeName,
|
||||
mt.type_name AS typeModelName,
|
||||
baif.`code`,
|
||||
mm.ma_code AS maCode,
|
||||
bcd.back_num AS backNum,
|
||||
su.user_name AS backPerson,
|
||||
bcd.create_time AS createTime,
|
||||
bpl.lot_name AS proName,
|
||||
bui.unit_name AS unitName
|
||||
FROM
|
||||
back_check_details bcd
|
||||
LEFT JOIN back_apply_info baif ON baif.id = bcd.parent_id
|
||||
LEFT JOIN tm_task_agreement tta ON tta.task_id = baif.task_id
|
||||
LEFT JOIN bm_agreement_info bai ON bai.agreement_id = tta.agreement_id
|
||||
LEFT JOIN bm_project_lot bpl ON bpl.lot_id = bai.project_id
|
||||
LEFT JOIN bm_unit_info bui ON bui.unit_id = bai.unit_id
|
||||
LEFT JOIN ma_type mt ON mt.type_id = bcd.type_id
|
||||
LEFT JOIN ma_type mt2 ON mt2.type_id = mt.parent_id
|
||||
LEFT JOIN ma_machine mm ON mm.ma_id = bcd.ma_id
|
||||
LEFT JOIN sys_user su ON su.user_id = baif.back_person
|
||||
where 1 = 1
|
||||
<if test="keyWord != null and keyWord != ''">
|
||||
and (baif.`code` like concat('%',#{keyWord},'%') or
|
||||
mm.ma_code like concat('%',#{keyWord},'%') or
|
||||
su.user_name like concat('%',#{keyWord},'%'))
|
||||
</if>
|
||||
<if test="typeName != null and typeName != ''">
|
||||
and mt2.type_name like concat('%',#{typeName},'%')
|
||||
</if>
|
||||
<if test="typeModelName != null and typeModelName != ''">
|
||||
and mt.type_name like concat('%',#{typeModelName},'%')
|
||||
</if>
|
||||
<if test="unitId != null">
|
||||
and bui.unit_id = #{unitId}
|
||||
</if>
|
||||
<if test="proId != null">
|
||||
and bpl.lot_id = #{proId}
|
||||
</if>
|
||||
<if test="startTime != null and startTime != '' and endTime != null and endTime != ''">
|
||||
AND bcd.create_time BETWEEN CONCAT(#{startTime}, ' 00:00:00') AND CONCAT(#{endTime}, ' 23:59:59')
|
||||
</if>
|
||||
<if test="agreementCode != null and agreementCode != ''">
|
||||
and bai.agreement_code like concat('%',#{agreementCode},'%')
|
||||
</if>
|
||||
</select>
|
||||
</mapper>
|
||||
|
|
@ -0,0 +1,52 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.bonus.sgzb.material.mapper.LeaseRecordMapper">
|
||||
|
||||
<select id="getLeaseRecordList" resultType="com.bonus.sgzb.material.domain.LeaseRecord">
|
||||
SELECT mt2.type_name as typeName,
|
||||
mt.type_name as typeModelName,
|
||||
bai.agreement_code as agreementCode,
|
||||
mm.ma_code as maCode,
|
||||
mt.unit_name as unit,
|
||||
lod.out_num as preNum,
|
||||
su.user_name as leasePerson,
|
||||
lod.create_time as createTime,
|
||||
bpl.lot_name as proName,
|
||||
bui.unit_name as unitName
|
||||
FROM lease_out_details lod
|
||||
LEFT JOIN lease_apply_info lai on lai.id = lod.parent_id
|
||||
LEFT JOIN tm_task_agreement tta on tta.task_id = lai.task_id
|
||||
LEFT JOIN bm_agreement_info bai on bai.agreement_id = tta.agreement_id
|
||||
LEFT JOIN bm_project_lot bpl on bpl.lot_id = bai.project_id
|
||||
LEFT JOIN bm_unit_info bui on bui.unit_id = bai.unit_id
|
||||
LEFT JOIN ma_type mt on mt.type_id = lod.type_id
|
||||
LEFT JOIN ma_type mt2 on mt2.type_id = mt.parent_id
|
||||
LEFT JOIN ma_machine mm on mm.ma_id = lod.ma_id
|
||||
LEFT JOIN sys_user su on su.user_id = lai.lease_person
|
||||
where 1 = 1
|
||||
<if test="keyWord != null and keyWord != ''">
|
||||
and (bai.agreement_code like concat('%',#{keyWord},'%') or
|
||||
mm.ma_code like concat('%',#{keyWord},'%') or
|
||||
mt.unit_name like concat('%',#{keyWord},'%') or
|
||||
su.user_name like concat('%',#{keyWord},'%'))
|
||||
</if>
|
||||
<if test="typeName != null and typeName != ''">
|
||||
and mt2.type_name like concat('%',#{typeName},'%')
|
||||
</if>
|
||||
<if test="typeModelName != null and typeModelName != ''">
|
||||
and mt.type_name like concat('%',#{typeModelName},'%')
|
||||
</if>
|
||||
<if test="unitId != null">
|
||||
and bui.unit_id = #{unitId}
|
||||
</if>
|
||||
<if test="proId != null">
|
||||
and bpl.lot_id = #{proId}
|
||||
</if>
|
||||
<if test="startTime != null and startTime != '' and endTime != null and endTime != ''">
|
||||
AND lod.create_time BETWEEN CONCAT(#{startTime}, ' 00:00:00') AND CONCAT(#{endTime}, ' 23:59:59')
|
||||
</if>
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
|
|
@ -27,9 +27,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<if test="taskCode != null and taskCode != ''">
|
||||
and tt.`code` like concat('%', #{taskCode}, '%')
|
||||
</if>
|
||||
<if test="startTime != null and startTime != '' and endTime != '' and endTime != ''">
|
||||
AND (tt.create_time like concat('%', #{startTime}, '%')
|
||||
OR tt.create_time like concat('%', #{endTime}, '%'))
|
||||
<if test="startTime != null and startTime != '' and endTime != null and endTime != ''">
|
||||
AND tt.create_time BETWEEN CONCAT(#{startTime}, ' 00:00:00') AND CONCAT(#{endTime}, ' 23:59:59')
|
||||
</if>
|
||||
<if test="keyWord != null and keyWord != ''">
|
||||
and sd2.`name` like concat('%', #{keyWord}, '%') or
|
||||
|
|
|
|||
|
|
@ -0,0 +1,52 @@
|
|||
import request from '@/utils/request'
|
||||
|
||||
//综合查询
|
||||
// 查询领料记录列表
|
||||
export function backRecord(query) {
|
||||
return request({
|
||||
url: '/material/backRecord/getBackRecordList',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 列表导出
|
||||
export function exportList(params = {}){
|
||||
return request({
|
||||
url: '/material/backRecord/export',
|
||||
method: 'post',
|
||||
data: params
|
||||
})
|
||||
}
|
||||
|
||||
// 获取 来往单位 列表
|
||||
export function getUnitData(params = {}){
|
||||
return request({
|
||||
url: '/system/select/getUnitCbx',
|
||||
method: 'post',
|
||||
data: params
|
||||
})
|
||||
}
|
||||
|
||||
// 获取 工程 列表
|
||||
export function getProData(params = {}){
|
||||
return request({
|
||||
url: '/system/select/getSectionEngineeringCbx',
|
||||
method: 'post',
|
||||
data: params
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
@ -4,11 +4,21 @@ import request from '@/utils/request'
|
|||
// 查询领料记录列表
|
||||
export function leaseRecord(query) {
|
||||
return request({
|
||||
url: '/base/lease/leaseRecord',
|
||||
url: '/material/leaseRecord/getLeaseRecordList',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 列表导出
|
||||
export function exportList(params = {}){
|
||||
return request({
|
||||
url: '/material/leaseRecord/export',
|
||||
method: 'post',
|
||||
data: params
|
||||
})
|
||||
}
|
||||
|
||||
// 获取 来往单位 列表
|
||||
export function getUnitData(params = {}){
|
||||
return request({
|
||||
|
|
|
|||
|
|
@ -0,0 +1,254 @@
|
|||
<template>
|
||||
<div class="app-container" id="backRecord">
|
||||
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="80px">
|
||||
<el-form-item label="退料日期">
|
||||
<el-date-picker
|
||||
v-model="queryParams.time"
|
||||
type="daterange"
|
||||
value-format="yyyy-MM-dd"
|
||||
range-separator="至"
|
||||
start-placeholder="开始日期"
|
||||
end-placeholder="结束日期">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="往来单位">
|
||||
<el-select v-model="queryParams.unitId" clearable @change="GetProData" style="width: 240px" placeholder="请选择">
|
||||
<el-option
|
||||
v-for="item in unitList"
|
||||
:key="item.id"
|
||||
:label="item.name"
|
||||
:value="item.id">
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="工程名称">
|
||||
<el-select v-model="queryParams.proId" clearable @change="GetUnitData" style="width: 240px" placeholder="请选择">
|
||||
<el-option
|
||||
v-for="item in proList"
|
||||
:key="item.id"
|
||||
:label="item.name"
|
||||
:value="item.id">
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="协议号" prop="agreementCode">
|
||||
<el-input
|
||||
v-model="queryParams.agreementCode"
|
||||
placeholder="请输入协议号"
|
||||
clearable
|
||||
:maxlength="20"
|
||||
style="width: 240px"
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="机具名称" prop="typeName">
|
||||
<el-input
|
||||
v-model="queryParams.typeName"
|
||||
placeholder="请输入机具名称"
|
||||
clearable
|
||||
:maxlength="20"
|
||||
style="width: 240px"
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="规格型号" prop="typeModelName">
|
||||
<el-input
|
||||
v-model="queryParams.typeModelName"
|
||||
placeholder="请输入规格型号"
|
||||
clearable
|
||||
:maxlength="20"
|
||||
style="width: 240px"
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="关键字" prop="keyWord">
|
||||
<el-input
|
||||
v-model="queryParams.keyWord"
|
||||
placeholder="请输入关键字"
|
||||
clearable
|
||||
:maxlength="20"
|
||||
style="width: 240px"
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
|
||||
|
||||
<el-form-item>
|
||||
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">查询</el-button>
|
||||
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
|
||||
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="warning"
|
||||
plain
|
||||
icon="el-icon-download"
|
||||
size="mini"
|
||||
@click="handleExport"
|
||||
>导出</el-button>
|
||||
</el-col>
|
||||
|
||||
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||
|
||||
|
||||
<el-table v-loading="loading" :data="leaseAuditList">
|
||||
<!-- <el-table-column type="selection" width="55" align="center" /> -->
|
||||
<el-table-column label="序号" align="center" type="index" />
|
||||
<el-table-column label="机具名称" align="center" prop="typeName" :show-overflow-tooltip="true" />
|
||||
<el-table-column label="机具规格" align="center" prop="typeModelName" :show-overflow-tooltip="true" />
|
||||
<el-table-column label="退料单号" align="center" prop="code" :show-overflow-tooltip="true" />
|
||||
<el-table-column label="设备编码" align="center" prop="maCode" :show-overflow-tooltip="true" />
|
||||
<el-table-column label="退料数量" align="center" prop="backNum" :show-overflow-tooltip="true" />
|
||||
<el-table-column label="退料人" align="center" prop="backPerson" :show-overflow-tooltip="true" />
|
||||
<el-table-column label="退料日期" align="center" prop="createTime" :show-overflow-tooltip="true" />
|
||||
<el-table-column label="退料单位" align="center" prop="unitName" :show-overflow-tooltip="true" />
|
||||
<el-table-column label="退料工程" align="center" prop="proName" :show-overflow-tooltip="true" />
|
||||
</el-table>
|
||||
|
||||
<pagination
|
||||
v-show="total>0"
|
||||
:total="total"
|
||||
:page.sync="queryParams.pageNum"
|
||||
:limit.sync="queryParams.pageSize"
|
||||
:page-sizes="[5,10,15,20,30]"
|
||||
@pagination="getList"
|
||||
/>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { backRecord,exportList,getUnitData,getProData } from "@/api/stquery/backRecord";
|
||||
|
||||
export default {
|
||||
name: "backRecord",
|
||||
dicts: ['sys_normal_disable'],
|
||||
data() {
|
||||
return {
|
||||
// 遮罩层
|
||||
loading: true,
|
||||
// 选中数组
|
||||
ids: [],
|
||||
// 非单个禁用
|
||||
single: true,
|
||||
// 非多个禁用
|
||||
multiple: true,
|
||||
// 显示搜索条件
|
||||
showSearch: true,
|
||||
// 总条数
|
||||
total: 0,
|
||||
// 字典表格数据
|
||||
leaseAuditList: [],
|
||||
// 日期范围
|
||||
dateRange: [],
|
||||
// 查询参数
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
dictName: undefined,
|
||||
dictType: undefined,
|
||||
status: undefined,
|
||||
|
||||
time:null, //申请时间
|
||||
unitId:null, //来往单位id
|
||||
proId:null, //工程id
|
||||
|
||||
types: 1, // 1申请列表 2审核列表
|
||||
},
|
||||
unitList:[], //来往单位集合
|
||||
proList:[], //工程集合
|
||||
};
|
||||
},
|
||||
created() {
|
||||
this.getList();
|
||||
this.getUnitList();
|
||||
this.getProList();
|
||||
},
|
||||
methods: {
|
||||
// 获取 申请列表
|
||||
async getList() {
|
||||
this.loading = true;
|
||||
|
||||
const params = {
|
||||
unitId:this.queryParams.unitId,
|
||||
proId:this.queryParams.proId,
|
||||
keyWord:this.queryParams.keyWord,
|
||||
agreementCode:this.queryParams.agreementCode,
|
||||
typeName:this.queryParams.typeName,
|
||||
typeModelName:this.queryParams.typeModelName,
|
||||
startTime:this.queryParams.time && this.queryParams.time[0],
|
||||
endTime:this.queryParams.time && this.queryParams.time[1],
|
||||
pageSize: this.queryParams.pageSize,
|
||||
pageNum: this.queryParams.pageNum
|
||||
}
|
||||
|
||||
const res = await backRecord(params)
|
||||
this.loading = false;
|
||||
this.leaseAuditList = res.data.rows;
|
||||
this.total = res.data.total;
|
||||
|
||||
},
|
||||
|
||||
// 获取 来往单位 列表数据
|
||||
async getUnitList(){
|
||||
const params = {
|
||||
id:this.queryParams.proId
|
||||
}
|
||||
const res = await getUnitData(params)
|
||||
this.unitList = res.data
|
||||
console.log('GetUnitData ======================',res)
|
||||
},
|
||||
// 获取 工程名称 列表数据
|
||||
async getProList(){
|
||||
const params = {
|
||||
id:this.queryParams.unitId
|
||||
}
|
||||
const res = await getProData(params)
|
||||
this.proList = res.data
|
||||
console.log('GetProData ======================',res)
|
||||
},
|
||||
|
||||
|
||||
// 表单重置
|
||||
reset() {
|
||||
this.form = {
|
||||
dictId: undefined,
|
||||
dictName: undefined,
|
||||
dictType: undefined,
|
||||
status: "0",
|
||||
remark: undefined
|
||||
};
|
||||
this.resetForm("form");
|
||||
},
|
||||
/** 搜索按钮操作 */
|
||||
handleQuery() {
|
||||
this.queryParams.pageNum = 1;
|
||||
this.getList();
|
||||
},
|
||||
/** 重置按钮操作 */
|
||||
resetQuery() {
|
||||
this.dateRange = [];
|
||||
this.resetForm("queryForm");
|
||||
this.handleQuery();
|
||||
},
|
||||
|
||||
/** 导出按钮操作 */
|
||||
handleExport() {
|
||||
this.download('material/backRecord/export', {
|
||||
...this.queryParams
|
||||
}, `综合查询_退料记录_${new Date().getTime()}.xlsx`)
|
||||
}
|
||||
|
||||
}
|
||||
};
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
::v-deep.el-table .fixed-width .el-button--mini {
|
||||
width: 60px !important;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
</style>
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
<template>
|
||||
<div class="app-container" id="leaseRecord">
|
||||
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="80px">
|
||||
<el-form-item label="申请日期">
|
||||
<el-form-item label="领料日期">
|
||||
<el-date-picker
|
||||
v-model="queryParams.time"
|
||||
type="daterange"
|
||||
|
|
@ -31,6 +31,26 @@
|
|||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="机具名称" prop="typeName">
|
||||
<el-input
|
||||
v-model="queryParams.typeName"
|
||||
placeholder="请输入机具名称"
|
||||
clearable
|
||||
:maxlength="20"
|
||||
style="width: 240px"
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="规格型号" prop="typeModelName">
|
||||
<el-input
|
||||
v-model="queryParams.typeModelName"
|
||||
placeholder="请输入规格型号"
|
||||
clearable
|
||||
:maxlength="20"
|
||||
style="width: 240px"
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="关键字" prop="keyWord">
|
||||
<el-input
|
||||
v-model="queryParams.keyWord"
|
||||
|
|
@ -61,22 +81,21 @@
|
|||
</el-col>
|
||||
|
||||
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||
</el-row>
|
||||
|
||||
<el-table v-loading="loading" :data="leaseAuditList" >
|
||||
|
||||
<el-table v-loading="loading" :data="leaseAuditList">
|
||||
<!-- <el-table-column type="selection" width="55" align="center" /> -->
|
||||
<el-table-column label="序号" align="center" type="index" />
|
||||
<el-table-column label="领料单号" align="center" prop="code" :show-overflow-tooltip="true" />
|
||||
<el-table-column label="机具名称" align="center" prop="typeName" :show-overflow-tooltip="true" />
|
||||
<el-table-column label="机具规格" align="center" prop="typeModelName" :show-overflow-tooltip="true" />
|
||||
<el-table-column label="协议号" align="center" prop="agreementCode" :show-overflow-tooltip="true" />
|
||||
<el-table-column label="设备编码" align="center" prop="maCode" :show-overflow-tooltip="true" />
|
||||
<el-table-column label="单位" align="center" prop="unit" :show-overflow-tooltip="true" />
|
||||
<el-table-column label="领料数量" align="center" prop="preNum" :show-overflow-tooltip="true" />
|
||||
<el-table-column label="领料人" align="center" prop="leasePerson" :show-overflow-tooltip="true" />
|
||||
<el-table-column label="领料日期" align="center" prop="createTime" :show-overflow-tooltip="true" />
|
||||
<el-table-column label="领料单位" align="center" prop="unitName" :show-overflow-tooltip="true" />
|
||||
<el-table-column label="领料工程" align="center" prop="proName" :show-overflow-tooltip="true" />
|
||||
<el-table-column label="协议号" align="center" prop="agreementCode" :show-overflow-tooltip="true" />
|
||||
<el-table-column label="机具名称" align="center" prop="applyFor" :show-overflow-tooltip="true" />
|
||||
<el-table-column label="机具规格" align="center" prop="createTimes" :show-overflow-tooltip="true" />
|
||||
<el-table-column label="设备编码" align="center" prop="taskName" :show-overflow-tooltip="true" />
|
||||
<el-table-column label="领料数量" align="center" prop="taskName" :show-overflow-tooltip="true" />
|
||||
<el-table-column label="领料人" align="center" prop="leasePerson" :show-overflow-tooltip="true" />
|
||||
<el-table-column label="联系电话" align="center" prop="leasePhone" :show-overflow-tooltip="true" />
|
||||
<el-table-column label="领料日期" align="center" prop="leasePhone" :show-overflow-tooltip="true" />
|
||||
</el-table>
|
||||
|
||||
<pagination
|
||||
|
|
@ -94,7 +113,7 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import { leaseRecord,getUnitData,getProData } from "@/api/stquery/stquery";
|
||||
import { leaseRecord,exportList,getUnitData,getProData } from "@/api/stquery/stquery";
|
||||
|
||||
export default {
|
||||
name: "leaseRecord",
|
||||
|
|
@ -121,7 +140,6 @@ export default {
|
|||
queryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
|
||||
dictName: undefined,
|
||||
dictType: undefined,
|
||||
status: undefined,
|
||||
|
|
@ -148,8 +166,10 @@ export default {
|
|||
|
||||
const params = {
|
||||
unitId:this.queryParams.unitId,
|
||||
projectId:this.queryParams.proId,
|
||||
proId:this.queryParams.proId,
|
||||
keyWord:this.queryParams.keyWord,
|
||||
typeName:this.queryParams.typeName,
|
||||
typeModelName:this.queryParams.typeModelName,
|
||||
startTime:this.queryParams.time && this.queryParams.time[0],
|
||||
endTime:this.queryParams.time && this.queryParams.time[1],
|
||||
pageSize: this.queryParams.pageSize,
|
||||
|
|
@ -208,9 +228,9 @@ export default {
|
|||
|
||||
/** 导出按钮操作 */
|
||||
handleExport() {
|
||||
this.download('base/tm_task/applyExport', {
|
||||
this.download('material/leaseRecord/export', {
|
||||
...this.queryParams
|
||||
}, `领料申请单_${new Date().getTime()}.xlsx`)
|
||||
}, `综合查询_领料记录_${new Date().getTime()}.xlsx`)
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue