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

This commit is contained in:
BianLzhaoMin 2024-06-18 15:12:59 +08:00
commit 9ee26edfa7
8 changed files with 95 additions and 7 deletions

View File

@ -198,4 +198,19 @@ public class BackApplyInfo {
* 报废数量 * 报废数量
*/ */
private Integer bfNum; private Integer bfNum;
/**
* 报废原因
*/
private String scrapReason;
/**
* 报废类型0自然报废1人为报废
*/
private String scrapType;
/**
* 图片地址
*/
private String fileUrl;
} }

View File

@ -312,6 +312,15 @@
<if test="remark != null and remark != ''"> <if test="remark != null and remark != ''">
remark, remark,
</if> </if>
<if test="scrapReason != null and scrapReason != ''">
scrap_reason,
</if>
<if test="scrapType != null and scrapType != ''">
scrap_type,
</if>
<if test="fileUrl != null and fileUrl != ''">
file_url,
</if>
<if test="companyId != null"> <if test="companyId != null">
company_id, company_id,
</if> </if>
@ -343,6 +352,15 @@
<if test="remark != null and remark != ''"> <if test="remark != null and remark != ''">
#{remark}, #{remark},
</if> </if>
<if test="scrapReason != null and scrapReason != ''">
#{scrapReason},
</if>
<if test="scrapType != null and scrapType != ''">
#{scrapType},
</if>
<if test="fileUrl != null and fileUrl != ''">
#{fileUrl},
</if>
<if test="companyId != null"> <if test="companyId != null">
#{companyId}, #{companyId},
</if> </if>
@ -512,6 +530,15 @@
<if test="companyId != null"> <if test="companyId != null">
company_id, company_id,
</if> </if>
<if test="scrapReason != null and scrapReason != ''">
audit_remark,
</if>
<if test="scrapType != null and scrapType != ''">
scrap_type,
</if>
<if test="fileUrl != null and fileUrl != ''">
file_url,
</if>
create_time create_time
) )
values ( values (
@ -538,6 +565,15 @@
<if test="companyId != null"> <if test="companyId != null">
#{companyId}, #{companyId},
</if> </if>
<if test="scrapReason != null and scrapReason != ''">
#{scrapReason},
</if>
<if test="scrapType != null and scrapType != ''">
#{scrapType},
</if>
<if test="fileUrl != null and fileUrl != ''">
#{fileUrl},
</if>
NOW() NOW()
) )
</insert> </insert>
@ -749,7 +785,10 @@
bcd.parent_id as parentId, bcd.parent_id as parentId,
bcd.create_by as createBy, bcd.create_by as createBy,
bcd.ma_id as maId, bcd.ma_id as maId,
bai.company_id as companyId bai.company_id as companyId,
bcd.scrap_reason as scrapReason,
bcd.scrap_type as scrapType,
bcd.file_url as fileUrl
FROM FROM
back_check_details bcd back_check_details bcd
LEFT JOIN back_apply_info bai on bai.id=bcd.parent_id LEFT JOIN back_apply_info bai on bai.id=bcd.parent_id

View File

@ -522,6 +522,10 @@
AND bpl.lot_id = #{record.projectId} AND bpl.lot_id = #{record.projectId}
</if> </if>
<if test="record.taskStatus != null and record.taskStatus != ''">
AND tt.task_status = #{record.taskStatus}
</if>
<if test="record.keyWord != null and record.keyWord != ''"> <if test="record.keyWord != null and record.keyWord != ''">
AND (bai.agreement_code like concat('%', #{record.keyWord}, '%') or AND (bai.agreement_code like concat('%', #{record.keyWord}, '%') or
tt.code like concat('%', #{record.keyWord}, '%')) tt.code like concat('%', #{record.keyWord}, '%'))
@ -665,7 +669,7 @@
tt.*, su.phonenumber AS phoneNumber, sd.dept_name as deptName, tt.*, su.phonenumber AS phoneNumber, sd.dept_name as deptName,
bpi.lot_id as proId, bpi.pro_id as projectId,bpi.lot_name as proName, bpi.lot_id as proId, bpi.pro_id as projectId,bpi.lot_name as proName,
bui.unit_id as unitId,bui.unit_name as unitName, bui.unit_id as unitId,bui.unit_name as unitName,
tt.create_by as applyFor,d.`name` as taskName, su.nick_name as applyFor,d.`name` as taskName,
su2.user_name as companyAuditBy, su2.user_name as companyAuditBy,
lai.company_audit_time as companyAuditTime, lai.company_audit_time as companyAuditTime,
@ -687,7 +691,7 @@
bai.agreement_id as agreementId bai.agreement_id as agreementId
FROM FROM
tm_task tt tm_task tt
LEFT JOIN sys_user su ON tt.create_by = su.user_name LEFT JOIN sys_user su ON tt.create_by = su.user_id
LEFT JOIN sys_dept sd ON su.dept_id = sd.dept_id LEFT JOIN sys_dept sd ON su.dept_id = sd.dept_id
LEFT JOIN tm_task_agreement tta ON tt.task_id = tta.task_id LEFT JOIN tm_task_agreement tta ON tt.task_id = tta.task_id
LEFT JOIN bm_agreement_info bai ON bai.agreement_id = tta.agreement_id LEFT JOIN bm_agreement_info bai ON bai.agreement_id = tta.agreement_id

View File

@ -492,7 +492,8 @@ public class BackApplyServiceImpl implements BackApplyService {
if (CollUtil.isNotEmpty(dto.getBackApplyList())) { if (CollUtil.isNotEmpty(dto.getBackApplyList())) {
for (BackApplyListDto backApplyListDto : dto.getBackApplyList()) { for (BackApplyListDto backApplyListDto : dto.getBackApplyList()) {
for (BackApplyInfo backApplyDetail : backApplyListDto.getBackApplyDetails()) { for (BackApplyInfo backApplyDetail : backApplyListDto.getBackApplyDetails()) {
dto.setAuditNum(backApplyDetail.getNum()); dto.setId(backApplyListDto.getId());
dto.setAuditNum(backApplyDetail.getPreNum());
re = backApplyMapper.auditAll(dto); re = backApplyMapper.auditAll(dto);
} }
} }

View File

@ -57,6 +57,24 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="任务状态" prop="taskStatus">
<el-select
v-model="queryParams.taskStatus"
filterable
clearable
style="width: 240px"
placeholder="请选择"
>
<el-option
v-for="item in taskStatusList"
:key="item.id"
:label="item.name"
:value="item.id"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item label="申请日期"> <el-form-item label="申请日期">
<el-date-picker <el-date-picker
v-model="queryParams.time" v-model="queryParams.time"
@ -379,6 +397,14 @@ export default {
unitList: [], // unitList: [], //
proList: [], // proList: [], //
currentUserName: sessionStorage.getItem('userName'), currentUserName: sessionStorage.getItem('userName'),
taskStatusList: [
{ name: '待分公司审核', id: 30 },
{ name: '待分管部门审核', id: 31 },
{ name: '待内部审核', id: 32 },
{ name: '待出库', id: 33 },
{ name: '出库进行中', id: 34 },
{ name: '完成', id: 35 },
],
} }
}, },
created() { created() {
@ -404,6 +430,7 @@ export default {
souceBy: 0, souceBy: 0,
pageSize: this.queryParams.pageSize, pageSize: this.queryParams.pageSize,
pageNum: this.queryParams.pageNum, pageNum: this.queryParams.pageNum,
taskStatus: this.queryParams.taskStatus,
} }
const res = await getLeaseAuditListAll(params) const res = await getLeaseAuditListAll(params)

View File

@ -617,7 +617,11 @@ export default {
this.queryParams.leaseApplyDetails.forEach((v) => { this.queryParams.leaseApplyDetails.forEach((v) => {
this.$set(v, 'applyFor', this.queryParams.applyFor) this.$set(v, 'applyFor', this.queryParams.applyFor)
this.$set(v, 'updateTimes', this.queryParams.updateTimes) this.$set(v, 'updateTimes', this.queryParams.updateTimes)
this.$set(v, 'taskName', v.statusName) if (!res.rows[0].directAuditRemark) {
this.$set(v, 'taskName', this.queryParams.taskName)
} else {
this.$set(v, 'taskName', v.statusName)
}
this.$set(v, 'createTime', this.queryParams.createTimes) this.$set(v, 'createTime', this.queryParams.createTimes)
this.$set(v, 'updateTime', this.queryParams.updateTimes) this.$set(v, 'updateTime', this.queryParams.updateTimes)
}) })

View File

@ -563,7 +563,6 @@ export default {
modelList: [], modelList: [],
// //
statusList: [ statusList: [
{ label: '全部', taskState: null },
{ label: '待审核', taskState: 122 }, { label: '待审核', taskState: 122 },
{ label: '入库审核中', taskState: 105 }, { label: '入库审核中', taskState: 105 },
{ label: '已驳回', taskState: 106 }, { label: '已驳回', taskState: 106 },

View File

@ -510,7 +510,6 @@ export default {
modelList: [], modelList: [],
// //
statusList: [ statusList: [
{ label: '全部', taskState: null },
{ label: '待通知', taskState: 24 }, { label: '待通知', taskState: 24 },
{ label: '待验收', taskState: 25 }, { label: '待验收', taskState: 25 },
{ label: '验收合格', taskState: 26 }, { label: '验收合格', taskState: 26 },