Merge branch 'dev-nx' of http://192.168.0.56:3000/bonus/devicesmgt into dev-nx

This commit is contained in:
BianLzhaoMin 2024-07-01 17:12:46 +08:00
commit c28056e68c
18 changed files with 118 additions and 56 deletions

View File

@ -203,33 +203,33 @@ public class LeaseOutDetailsServiceImpl implements LeaseOutDetailsService {
// 首先更新领料任务详情表的领料数及状态lease_apply_details // 首先更新领料任务详情表的领料数及状态lease_apply_details
res = leaseOutDetailsMapper.updateLeaseApplyDetailsOutNum(record); res = leaseOutDetailsMapper.updateLeaseApplyDetailsOutNum(record);
LeaseApplyDetails leaseApplyDetails = leaseOutDetailsMapper.getLeaseApplyDetails(record); LeaseApplyDetails leaseApplyDetails = leaseOutDetailsMapper.getLeaseApplyDetails(record);
if (leaseApplyDetails.getPreNum().equals(leaseApplyDetails.getAlNum()) || leaseApplyDetails.getAuditNum().equals(leaseApplyDetails.getAlNum())){ if (leaseApplyDetails.getPreNum().equals(leaseApplyDetails.getAlNum()) || leaseApplyDetails.getAuditNum().equals(leaseApplyDetails.getAlNum())) {
leaseOutDetailsMapper.updateLeaseApplyDetails(record); leaseOutDetailsMapper.updateLeaseApplyDetails(record);
} }
if (res > 0) {
// 插入领料出库明细表lease_out_details
res = leaseOutDetailsMapper.insertSelective(record);
if (res > 0) { if (res > 0) {
// 插入领料出库明细表lease_out_details if (record.getManageType() == 2) {
res = leaseOutDetailsMapper.insertSelective(record); // 成套机具减少 (ma_type 设备规格表)的库存数量
if (res > 0) { res = leaseOutDetailsMapper.updateMaTypeStockNum(record);
if (record.getManageType() == 2) { // 成套机具减少 (ma_type 设备规格表)配件的库存数量
// 成套机具减少 (ma_type 设备规格表)的库存数量 List<TmTask> typeIds = leaseOutDetailsMapper.getMaTypeDetails(record);
res = leaseOutDetailsMapper.updateMaTypeStockNum(record); typeIds.removeIf(item -> item == null);
// 成套机具减少 (ma_type 设备规格表)配件的库存数量 for (TmTask typeId : typeIds) {
List<TmTask> typeIds = leaseOutDetailsMapper.getMaTypeDetails(record); MachinePart machinePart = leaseOutDetailsMapper.getMachineParts(typeId);
typeIds.removeIf(item -> item == null); machinePart.setPartNum((typeId.getPartNum() * record.getOutNum()));
for (TmTask typeId : typeIds) { typeId.setNum(machinePart.getNum() - machinePart.getPartNum());
MachinePart machinePart = leaseOutDetailsMapper.getMachineParts(typeId); res = leaseOutDetailsMapper.updateMaTypeStockNumCt(typeId);
machinePart.setPartNum((typeId.getPartNum() * record.getOutNum()));
typeId.setNum(machinePart.getNum() - machinePart.getPartNum());
res = leaseOutDetailsMapper.updateMaTypeStockNumCt(typeId);
}
} else {
// 普通机具减少 (ma_type 设备规格表)的库存数量
res = leaseOutDetailsMapper.updateMaTypeStockNum(record);
} }
// 更新 (ma_machine 设备表)的状态 } else {
leaseOutDetailsMapper.updateMaMachineStatus(record); // 普通机具减少 (ma_type 设备规格表)的库存数量
res = leaseOutDetailsMapper.updateMaTypeStockNum(record);
} }
// 更新 (ma_machine 设备表)的状态
leaseOutDetailsMapper.updateMaMachineStatus(record);
} }
}
return res; return res;
} }
@ -239,7 +239,7 @@ public class LeaseOutDetailsServiceImpl implements LeaseOutDetailsService {
List<LeaseApplyDetails> leaseApplyDetailsList = leaseApplyDetailsMapper.getByParentId(record.getParentId()); List<LeaseApplyDetails> leaseApplyDetailsList = leaseApplyDetailsMapper.getByParentId(record.getParentId());
int i = 0; int i = 0;
for (LeaseApplyDetails bean : leaseApplyDetailsList) { for (LeaseApplyDetails bean : leaseApplyDetailsList) {
if (Objects.equals(bean.getPreNum(), bean.getAlNum())) { if (Objects.equals(bean.getPreNum(), bean.getAlNum()) || "2".equals(bean.getStatus())) {
i++; i++;
} }
} }

View File

@ -2,10 +2,12 @@ package com.bonus.sgzb.base.domain;
import com.bonus.sgzb.common.core.annotation.Excel; import com.bonus.sgzb.common.core.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import java.sql.Timestamp; import java.sql.Timestamp;
import java.util.Date;
import java.util.List; import java.util.List;
@Data @Data
@ -59,6 +61,14 @@ public class BmProjectInfo {
/**数据所属组织*/ /**数据所属组织*/
@ApiModelProperty(value = "数据所属组织") @ApiModelProperty(value = "数据所属组织")
private String companyId; private String companyId;
/**开工日期*/
@ApiModelProperty(value = "开工日期")
@JsonFormat(pattern = "yyyy-MM-dd")
private String startDate;
/**竣工日期*/
@ApiModelProperty(value = "竣工日期")
@JsonFormat(pattern = "yyyy-MM-dd")
private String completionDate;
/**数据所属组织*/ /**数据所属组织*/
@Excel(name = "所属上级") @Excel(name = "所属上级")

View File

@ -2,10 +2,12 @@ package com.bonus.sgzb.base.domain;
import com.bonus.sgzb.common.core.annotation.Excel; import com.bonus.sgzb.common.core.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import java.sql.Timestamp; import java.sql.Timestamp;
import java.util.Date;
import java.util.List; import java.util.List;
@Data @Data
@ -112,6 +114,20 @@ public class BmProjectLot {
*/ */
@ApiModelProperty(value = "数据所属组织") @ApiModelProperty(value = "数据所属组织")
private String companyId; private String companyId;
/**
/**
* 开工日期
*/
@ApiModelProperty(value = "开工日期")
@JsonFormat(pattern = "yyyy-MM-dd")
private String startDate;
/**
/**
* 竣工日期
*/
@ApiModelProperty(value = "竣工日期")
@JsonFormat(pattern = "yyyy-MM-dd")
private String completionDate;
/** /**
* 数据所属组织 * 数据所属组织
*/ */

View File

@ -169,23 +169,28 @@ public class LargeScreenServiceImpl implements ILargeScreenService {
@Override @Override
public PageResultVo getAcceptanceDetailStorage(ParamsDto dto) { public PageResultVo getAcceptanceDetailStorage(ParamsDto dto) {
extracted(dto); extracted(dto);
// 分页 List<StorageDetailVo> result = mapper.getAcceptanceDetailStorage(dto);
PageHelper.startPage(dto.getPageNum() == 0 ? 1 : dto.getPageNum(), dto.getPageSize()); List<StorageDetailVo> filteredResult = result.stream()
PageResultVo pageResult = new PageResultVo();
List<StorageDetailVo> result;
result = mapper.getAcceptanceDetailStorage(dto);
result = result.stream()
.filter(storageDetail -> storageDetail.getPurchaseNum() != 0 || .filter(storageDetail -> storageDetail.getPurchaseNum() != 0 ||
storageDetail.getCheckNum() != 0 || storageDetail.getCheckNum() != 0 ||
storageDetail.getInputNum() != 0) storageDetail.getInputNum() != 0)
.collect(Collectors.toList()); .collect(Collectors.toList());
// 分页信息 // 手动计算分页信息
PageInfo<StorageDetailVo> pageInfo = new PageInfo<>(result); int pageNum = dto.getPageNum() == 0 ? 1 : dto.getPageNum();
pageResult.setTotal(pageInfo.getTotal()); int pageSize = dto.getPageSize();
pageResult.setTotalPageCount(pageInfo.getPages()); int total = filteredResult.size();
pageResult.setRows(result); int totalPages = (int) Math.ceil((double) total / pageSize);
pageResult.setPageNum (dto.getPageNum()); // 手动分页获取当前页的数据
pageResult.setPageSize(dto.getPageSize()); int startIndex = (pageNum - 1) * pageSize;
int endIndex = Math.min(startIndex + pageSize, total);
List<StorageDetailVo> currentPageData = filteredResult.subList(startIndex, endIndex);
// 构建返回结果对象
PageResultVo pageResult = new PageResultVo();
pageResult.setTotal(total);
pageResult.setTotalPageCount(totalPages);
pageResult.setRows(currentPageData);
pageResult.setPageNum(pageNum);
pageResult.setPageSize(pageSize);
return pageResult; return pageResult;
} }

View File

@ -1075,6 +1075,7 @@
mt.type_id AS typeId, mt.type_id AS typeId,
mm.ma_code AS maCode, mm.ma_code AS maCode,
mm.ma_id AS maId, mm.ma_id AS maId,
bad.remark AS remark,
sd.NAME AS maStatus sd.NAME AS maStatus
FROM FROM
ma_type mt ma_type mt
@ -1084,9 +1085,11 @@
LEFT JOIN sys_dic sd ON sd.id = mm.ma_status LEFT JOIN sys_dic sd ON sd.id = mm.ma_status
WHERE WHERE
mm.ma_status = '16' mm.ma_status = '16'
AND mt.type_id = #{typeId}
AND sai.`type_id` = #{typeId}
AND sai.agreement_id = #{agreementId} AND sai.agreement_id = #{agreementId}
<if test="typeId != null and typeId !=''">
AND mt.type_id = #{typeId}
AND sai.`type_id` = #{typeId}
</if>
<if test="maCode != null and maCode !=''"> <if test="maCode != null and maCode !=''">
AND mm.ma_code like concat('%', #{maCode}, '%') AND mm.ma_code like concat('%', #{maCode}, '%')
</if> </if>

View File

@ -671,15 +671,15 @@
bui.unit_id as unitId,bui.unit_name as unitName, bui.unit_id as unitId,bui.unit_name as unitName,
su.nick_name as applyFor,d.`name` as taskName, su.nick_name as applyFor,d.`name` as taskName,
su2.user_name as companyAuditBy, su2.nick_name as companyAuditBy,
lai.company_audit_time as companyAuditTime, lai.company_audit_time as companyAuditTime,
lai.company_audit_remark as companyAuditRemark, lai.company_audit_remark as companyAuditRemark,
su3.user_name as deptAuditBy, su3.nick_name as deptAuditBy,
lai.dept_audit_time as deptAuditTime, lai.dept_audit_time as deptAuditTime,
lai.dept_audit_remark as deptAuditRemark, lai.dept_audit_remark as deptAuditRemark,
su4.user_name as directAuditBy, su4.nick_name as directAuditBy,
lai.direct_audit_time as directAuditTime, lai.direct_audit_time as directAuditTime,
lai.direct_audit_remark as directAuditRemark, lai.direct_audit_remark as directAuditRemark,
lai.lease_type as leaseType, lai.lease_type as leaseType,

View File

@ -32,7 +32,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="getProjectInfoAll" parameterType="com.bonus.sgzb.base.domain.BmProjectInfo" resultMap="BmProjectInfoResult"> <select id="getProjectInfoAll" parameterType="com.bonus.sgzb.base.domain.BmProjectInfo" resultMap="BmProjectInfoResult">
<!--<include refid="bmProjectInfo"/>--> <!--<include refid="bmProjectInfo"/>-->
select a.pro_id, a.pro_name, a.status, a.type_id, a.link_man, a.telphone, a.dept_id, a.del_flag, a.create_by, select a.pro_id, a.pro_name, a.status, a.type_id, a.link_man, a.telphone, a.dept_id, a.del_flag, a.create_by,
a.create_time,a.update_by, a.update_time, a.remark, a.company_id, b.dept_name, c.name a.create_time,a.update_by, a.update_time, a.remark, a.company_id, b.dept_name, c.name,a.start_date,a.completion_date
from bm_project_info a from bm_project_info a
left join sys_dept b on a.dept_id = b.dept_id left join sys_dept b on a.dept_id = b.dept_id
left join sys_dic c on a.type_id = c.id left join sys_dic c on a.type_id = c.id
@ -165,6 +165,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="updateBy != null and updateBy != ''">update_by,</if> <if test="updateBy != null and updateBy != ''">update_by,</if>
<if test="remark != null and remark != ''">remark,</if> <if test="remark != null and remark != ''">remark,</if>
<if test="companyId != null and companyId != ''">company_id,</if> <if test="companyId != null and companyId != ''">company_id,</if>
<if test="startDate != null and startDate != ''">start_date,</if>
<if test="completionDate != null and completionDate != ''">completion_date,</if>
create_time create_time
)values( )values(
<if test="proName != null and proName != ''">#{proName},</if> <if test="proName != null and proName != ''">#{proName},</if>
@ -178,6 +180,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="updateBy != null and updateBy != ''">#{updateBy},</if> <if test="updateBy != null and updateBy != ''">#{updateBy},</if>
<if test="remark != null and remark != ''">#{remark},</if> <if test="remark != null and remark != ''">#{remark},</if>
<if test="companyId != null and companyId != ''">#{companyId},</if> <if test="companyId != null and companyId != ''">#{companyId},</if>
<if test="startDate != null and startDate != ''">#{startDate},</if>
<if test="completionDate != null and completionDate != ''">#{completionDate},</if>
sysdate() sysdate()
) )
</insert> </insert>
@ -194,8 +198,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="delFlag != null and delFlag != ''">del_flag = #{delFlag},</if> <if test="delFlag != null and delFlag != ''">del_flag = #{delFlag},</if>
<if test="createBy != null and createBy != ''">create_by =#{createBy},</if> <if test="createBy != null and createBy != ''">create_by =#{createBy},</if>
<if test="updateBy != null and updateBy != ''">update_by =#{updateBy},</if> <if test="updateBy != null and updateBy != ''">update_by =#{updateBy},</if>
<if test="remark != null and remark != ''">remark = #{remark},</if> <if test="startDate != null and startDate != ''">start_date = #{startDate},</if>
<if test="companyId != null and companyId != ''">company_id = #{companyId},</if> <if test="completionDate != null and completionDate != ''">completion_date = #{completionDate},</if>
update_time = sysdate() update_time = sysdate()
</set> </set>
where pro_id = #{proId} where pro_id = #{proId}

View File

@ -37,7 +37,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="getProjectLotAll" parameterType="com.bonus.sgzb.base.domain.BmProjectLot" resultMap="BmProjectLotResult"> <select id="getProjectLotAll" parameterType="com.bonus.sgzb.base.domain.BmProjectLot" resultMap="BmProjectLotResult">
<!--<include refid="bmProjectInfo"/>--> <!--<include refid="bmProjectInfo"/>-->
select a.lot_id, a.pro_id, a.lot_name, a.status, a.type_id, a.link_man, a.telphone, a.own_pro, a.dept_id, a.is_share, select a.lot_id, a.pro_id, a.lot_name, a.status, a.type_id, a.link_man, a.telphone, a.own_pro, a.dept_id, a.is_share,
a.lon, a.lat, a.del_flag, a.create_by, a.create_time,a.remark,a.company_id ,b.dept_name, c.name a.lon, a.lat, a.del_flag, a.create_by, a.create_time,a.remark,a.company_id ,b.dept_name, c.name,a.start_date,a.completion_date
from bm_project_lot a from bm_project_lot a
left join sys_dept b on a.dept_id = b.dept_id left join sys_dept b on a.dept_id = b.dept_id
left join sys_dic c on a.type_id = c.id left join sys_dic c on a.type_id = c.id
@ -115,6 +115,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="updateTime != null and updateTime != ''">update_time,</if> <if test="updateTime != null and updateTime != ''">update_time,</if>
<if test="remark != null and remark != ''">remark,</if> <if test="remark != null and remark != ''">remark,</if>
<if test="companyId != null and companyId != ''">company_id,</if> <if test="companyId != null and companyId != ''">company_id,</if>
<if test="startDate != null and startDate != ''">start_date,</if>
<if test="completionDate != null and completionDate != ''">completion_date,</if>
create_time create_time
)values( )values(
<if test="lotName != null and lotName != ''">#{lotName},</if> <if test="lotName != null and lotName != ''">#{lotName},</if>
@ -130,6 +132,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="updateBy != null and updateBy != ''">#{updateBy},</if> <if test="updateBy != null and updateBy != ''">#{updateBy},</if>
<if test="remark != null and remark != ''">#{remark},</if> <if test="remark != null and remark != ''">#{remark},</if>
<if test="companyId != null and companyId != ''">#{companyId},</if> <if test="companyId != null and companyId != ''">#{companyId},</if>
<if test="startDate != null and startDate != ''">#{startDate},</if>
<if test="completionDate != null and completionDate != ''">#{completionDate},</if>
sysdate() sysdate()
) )
</insert> </insert>
@ -149,6 +153,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="updateBy != null and updateBy != ''">update_by =#{updateBy},</if> <if test="updateBy != null and updateBy != ''">update_by =#{updateBy},</if>
<if test="remark != null and remark != ''">remark = #{remark},</if> <if test="remark != null and remark != ''">remark = #{remark},</if>
<if test="companyId != null and companyId != ''">company_id = #{companyId},</if> <if test="companyId != null and companyId != ''">company_id = #{companyId},</if>
<if test="startDate != null and startDate != ''">start_date = #{startDate},</if>
<if test="completionDate != null and completionDate != ''">completion_date = #{completionDate},</if>
update_time = sysdate() update_time = sysdate()
</set> </set>
where lot_id = #{lotId} where lot_id = #{lotId}

View File

@ -157,4 +157,6 @@ public interface BackApplyMapper {
BackApplyDetailsPo getBackApplyDetailsByParentId(ScrapApplyDetails scrapApplyDetail); BackApplyDetailsPo getBackApplyDetailsByParentId(ScrapApplyDetails scrapApplyDetail);
void insertBackApplyDetails(BackApplyDetailsPo backApplyDetailsPoNew); void insertBackApplyDetails(BackApplyDetailsPo backApplyDetailsPoNew);
void updateBackApplyDetailsByParentId(BackApplyDetailsPo backApplyDetailsPoNew);
} }

View File

@ -270,8 +270,17 @@ public class ScrapApplyDetailsServiceImpl implements IScrapApplyDetailsService {
backApplyDetailsPoNew.setCreateBy(backApplyDetailsPo.getCreateBy()); backApplyDetailsPoNew.setCreateBy(backApplyDetailsPo.getCreateBy());
backApplyDetailsPoNew.setCompanyId(backApplyDetailsPo.getCompanyId()); backApplyDetailsPoNew.setCompanyId(backApplyDetailsPo.getCompanyId());
backApplyDetailsPoNew.setRemark(scrapApplyDetail.getAuditRemark()); backApplyDetailsPoNew.setRemark(scrapApplyDetail.getAuditRemark());
backApplyMapper.insertBackApplyDetails(backApplyDetailsPoNew); //在存入的时候判断是否有同类型的机具如果有数量加1,针对编码的机具
scrapApplyDetail.setParentId(backApplyInfoPo.getId());
scrapApplyDetail.setTypeId(Long.valueOf(backApplyDetailsPo.getTypeId()));
BackApplyDetailsPo backApplyDetailsPoResult = backApplyMapper.getBackApplyDetailsByParentId(scrapApplyDetail);
if (backApplyDetailsPoResult!=null){
backApplyDetailsPoNew.setPreNum(backApplyDetailsPoResult.getPreNum().add(BigDecimal.ONE));
backApplyDetailsPoNew.setAuditNum(backApplyDetailsPoResult.getAuditNum().add(BigDecimal.ONE));
backApplyMapper.updateBackApplyDetailsByParentId(backApplyDetailsPoNew);
}else {
backApplyMapper.insertBackApplyDetails(backApplyDetailsPoNew);
}
//修改协议表的状态 //修改协议表的状态
SltAgreementInfo sltAgreementInfo = new SltAgreementInfo(); SltAgreementInfo sltAgreementInfo = new SltAgreementInfo();
sltAgreementInfo.setAgreementId(agreementId.toString()); sltAgreementInfo.setAgreementId(agreementId.toString());

View File

@ -521,6 +521,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
WHERE WHERE
bai.id = #{id} bai.id = #{id}
</update> </update>
<update id="updateBackApplyDetailsByParentId">
UPDATE back_apply_details set pre_num = #{preNum} ,audit_num = #{auditNum}
WHERE parent_id = #{parentId} and type_id = #{typeId}
</update>
<delete id="del"> <delete id="del">
DELETE DELETE

View File

@ -196,7 +196,7 @@
bui.unit_name AS unitName, bui.unit_name AS unitName,
pisi.`CODE` AS kindName, pisi.`CODE` AS kindName,
mt2.type_name AS typeName, mt2.type_name AS typeName,
su.user_name AS modelName, su.nick_name AS modelName,
pisi.CREATE_DATE AS createDate, pisi.CREATE_DATE AS createDate,
pisi.REMARKS AS remark, pisi.REMARKS AS remark,
ROW_NUMBER() OVER (PARTITION BY pisi.`CODE` ORDER BY pisi.CREATE_DATE DESC) AS row_num ROW_NUMBER() OVER (PARTITION BY pisi.`CODE` ORDER BY pisi.CREATE_DATE DESC) AS row_num

View File

@ -61,6 +61,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="startTime != null and startTime != '' and endTime != null and 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') AND lod.create_time BETWEEN CONCAT(#{startTime}, ' 00:00:00') AND CONCAT(#{endTime}, ' 23:59:59')
</if> </if>
order by lod.create_time desc
</select> </select>
<select id="getSltAgreementInfo" resultType="com.bonus.sgzb.base.api.domain.SltAgreementInfo"> <select id="getSltAgreementInfo" resultType="com.bonus.sgzb.base.api.domain.SltAgreementInfo">
SELECT SELECT

View File

@ -269,7 +269,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectPutInListList" resultMap="PurchasePartInfoResult"> <select id="selectPutInListList" resultMap="PurchasePartInfoResult">
SELECT SELECT
pci.task_id, pci.purchase_time, pci.arrival_time, pci.purchaser, us.user_name as create_by, pci.create_time, pci.task_id, pci.purchase_time, pci.arrival_time, pci.purchaser, us.nick_name as create_by, pci.create_time,
pci.update_by, pci.update_by,
pci.update_time, pci.remark, pci.company_id ,tk.code,tk.task_status taskStatus,GROUP_CONCAT(distinct mpt1.pa_name) purchasingTypeName, pci.update_time, pci.remark, pci.company_id ,tk.code,tk.task_status taskStatus,GROUP_CONCAT(distinct mpt1.pa_name) purchasingTypeName,
CASE CASE

View File

@ -178,7 +178,7 @@ WHERE ma_machine.ma_code =
select pci.id,pci.task_id, pci.purchase_time, pci.arrival_time, pci.purchaser, pci.create_by, pci.create_time, select pci.id,pci.task_id, pci.purchase_time, pci.arrival_time, pci.purchaser, pci.create_by, pci.create_time,
pci.update_by, pci.update_by,
pci.update_time, pci.remark, pci.company_id ,dict.name purchasingStatus,tk.code,tk.task_status pci.update_time, pci.remark, pci.company_id ,dict.name purchasingStatus,tk.code,tk.task_status
taskStatus,su.user_name purchaserName, taskStatus,su.nick_name purchaserName,
tk.create_by, tk.create_by,
CASE tk.task_status CASE tk.task_status
WHEN 28 THEN WHEN 28 THEN
@ -190,9 +190,9 @@ WHERE ma_machine.ma_code =
END as inputTime, END as inputTime,
CASE tk.task_status CASE tk.task_status
WHEN 28 THEN WHEN 28 THEN
us.user_name us.nick_name
WHEN 123 THEN WHEN 123 THEN
us.user_name us.nick_name
ELSE ELSE
'' ''
END as inputUser END as inputUser

View File

@ -11,7 +11,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
iad.input_num as inputNum,mm.ma_code as maCode, iad.input_num as inputNum,mm.ma_code as maCode,
tt.create_time as returnTime, tt.create_time as returnTime,
iad.create_time as submitStorageTime, iad.create_time as submitStorageTime,
us.user_name as submitToStoragePersonnel,iad.remark as remark us.nick_name as submitToStoragePersonnel,iad.remark as remark
FROM input_apply_details iad FROM input_apply_details iad
LEFT JOIN tm_task tt ON iad.task_id = tt.task_id LEFT JOIN tm_task tt ON iad.task_id = tt.task_id
LEFT JOIN tm_task_agreement tta on tta.task_id = tt.task_id LEFT JOIN tm_task_agreement tta on tta.task_id = tt.task_id

View File

@ -239,6 +239,7 @@ export default {
proId: null, //id proId: null, //id
types: 1, // 1 2 types: 1, // 1 2
maType: '1', // 1 2
}, },
unitList: [], // unitList: [], //
proList: [], // proList: [], //
@ -320,11 +321,11 @@ export default {
/** 导出按钮操作 */ /** 导出按钮操作 */
handleExport() { handleExport() {
this.download( this.download(
'material/backRecord/export', 'material/storageStatus/export',
{ {
...this.queryParams, ...this.queryParams,
}, },
`综合查询_退料记录_${new Date().getTime()}.xlsx`, `综合查询_机具仓储状态_${new Date().getTime()}.xlsx`,
) )
}, },

View File

@ -239,6 +239,7 @@ export default {
proId: null, //id proId: null, //id
types: 1, // 1 2 types: 1, // 1 2
maType: '2', // 1 2
}, },
unitList: [], // unitList: [], //
proList: [], // proList: [], //
@ -320,11 +321,11 @@ export default {
/** 导出按钮操作 */ /** 导出按钮操作 */
handleExport() { handleExport() {
this.download( this.download(
'material/backRecord/export', 'material/storageStatus/export',
{ {
...this.queryParams, ...this.queryParams,
}, },
`综合查询_退料记录_${new Date().getTime()}.xlsx`, `综合查询_调试仓储状态_${new Date().getTime()}.xlsx`,
) )
}, },