Merge remote-tracking branch 'origin/dev-cq' into dev-cq
This commit is contained in:
commit
8e18c4c351
|
|
@ -86,7 +86,13 @@ public class PurchaseCheckServiceCenterController extends BaseController
|
||||||
@PostMapping("/putInExport")
|
@PostMapping("/putInExport")
|
||||||
public void putInExport(HttpServletResponse response, PurchaseCheckInfo purchaseCheckInfo)
|
public void putInExport(HttpServletResponse response, PurchaseCheckInfo purchaseCheckInfo)
|
||||||
{
|
{
|
||||||
List<PurchaseInput> list = purchaseCheckServiceCenterService.putInExportList(purchaseCheckInfo);
|
List<PurchaseInput> list = new ArrayList<>();
|
||||||
|
//判断该组织是否开启综合服务中心审核
|
||||||
|
Long companyId = SecurityUtils.getLoginUser().getSysUser().getCompanyId();
|
||||||
|
int re =purchaseCheckServiceCenterService.selectExamineType(companyId);
|
||||||
|
if (re>0){
|
||||||
|
list=purchaseCheckServiceCenterService.putInExportList(purchaseCheckInfo);
|
||||||
|
}
|
||||||
ExcelUtil<PurchaseInput> util = new ExcelUtil<>(PurchaseInput.class);
|
ExcelUtil<PurchaseInput> util = new ExcelUtil<>(PurchaseInput.class);
|
||||||
util.exportExcel(response, list, "新购工机具入库");
|
util.exportExcel(response, list, "新购工机具入库");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -21,6 +21,10 @@ public class BackApplyDto {
|
||||||
@ApiModelProperty(value = "退料ID")
|
@ApiModelProperty(value = "退料ID")
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
|
/** 退料内部ID */
|
||||||
|
@ApiModelProperty(value = "退料内部ID")
|
||||||
|
private Long innerId;
|
||||||
|
|
||||||
@ApiModelProperty(value="同一退料单中不同器具状态")
|
@ApiModelProperty(value="同一退料单中不同器具状态")
|
||||||
private String status;
|
private String status;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -473,6 +473,7 @@ public class BackApplyServiceImpl implements BackApplyService {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
//审核成功,赋值任务状态38
|
||||||
if (num == taskIdById.size()) {
|
if (num == taskIdById.size()) {
|
||||||
dto.setTaskStatus("38");
|
dto.setTaskStatus("38");
|
||||||
backApplyMapper.updateTmTaskAll(dto);
|
backApplyMapper.updateTmTaskAll(dto);
|
||||||
|
|
@ -489,7 +490,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.setInnerId(backApplyListDto.getId());
|
||||||
|
dto.setAuditNum(backApplyDetail.getPreNum());
|
||||||
re = backApplyMapper.auditAll(dto);
|
re = backApplyMapper.auditAll(dto);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -348,7 +348,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
LEFT JOIN back_apply_details bad on bad.parent_id=bai.id
|
LEFT JOIN back_apply_details bad on bad.parent_id=bai.id
|
||||||
SET bad.audit_num=#{auditNum},bai.direct_audit_by=#{createBy},bai.status=#{status},bai.direct_audit_time=NOW()
|
SET bad.audit_num=#{auditNum},bai.direct_audit_by=#{createBy},bai.status=#{status},bai.direct_audit_time=NOW()
|
||||||
WHERE
|
WHERE
|
||||||
bai.id = #{id}
|
bai.id = #{innerId}
|
||||||
<if test="companyId != null and companyId != ''">
|
<if test="companyId != null and companyId != ''">
|
||||||
and bai.company_id = #{companyId}
|
and bai.company_id = #{companyId}
|
||||||
</if>
|
</if>
|
||||||
|
|
|
||||||
|
|
@ -246,7 +246,7 @@
|
||||||
label="操作"
|
label="操作"
|
||||||
align="center"
|
align="center"
|
||||||
class-name="small-padding fixed-width"
|
class-name="small-padding fixed-width"
|
||||||
v-if="!isView"
|
v-if="!isView || isCheck || isEdit"
|
||||||
>
|
>
|
||||||
<template slot-scope="scope" v-if="scope.row.roleId !== 1">
|
<template slot-scope="scope" v-if="scope.row.roleId !== 1">
|
||||||
<el-button
|
<el-button
|
||||||
|
|
@ -425,6 +425,12 @@ export default {
|
||||||
return false
|
return false
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
isShow: {
|
||||||
|
type: Boolean,
|
||||||
|
default: () => {
|
||||||
|
return false
|
||||||
|
},
|
||||||
|
},
|
||||||
partsTaskId: {
|
partsTaskId: {
|
||||||
type: [String, Number],
|
type: [String, Number],
|
||||||
},
|
},
|
||||||
|
|
@ -467,7 +473,7 @@ export default {
|
||||||
},
|
},
|
||||||
taskId: '',
|
taskId: '',
|
||||||
// isView: false,
|
// isView: false,
|
||||||
isShow: false,
|
// isShow: false,
|
||||||
// isEdit: false,
|
// isEdit: false,
|
||||||
// isCheck: false,
|
// isCheck: false,
|
||||||
addForm: {
|
addForm: {
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,7 @@
|
||||||
:isEdit="isEdit"
|
:isEdit="isEdit"
|
||||||
:isCheck="isCheck"
|
:isCheck="isCheck"
|
||||||
:isDisabled="isDisabled"
|
:isDisabled="isDisabled"
|
||||||
|
:isShow="isShow"
|
||||||
@addParts="addParts"
|
@addParts="addParts"
|
||||||
@queryParts="queryParts"
|
@queryParts="queryParts"
|
||||||
@editParts="editParts"
|
@editParts="editParts"
|
||||||
|
|
@ -36,11 +37,12 @@ export default {
|
||||||
return {
|
return {
|
||||||
isShowComponent: 'Home',
|
isShowComponent: 'Home',
|
||||||
pageContent: '新增配件',
|
pageContent: '新增配件',
|
||||||
partsTaskId: '',
|
partsTaskId: undefined,
|
||||||
isView: false,
|
isView: false,
|
||||||
isEdit: false,
|
isEdit: false,
|
||||||
isCheck: false,
|
isCheck: false,
|
||||||
isDisabled: false,
|
isDisabled: false,
|
||||||
|
isShow: false,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
@ -48,12 +50,19 @@ export default {
|
||||||
addParts() {
|
addParts() {
|
||||||
this.pageContent = '新增配件'
|
this.pageContent = '新增配件'
|
||||||
this.isShowComponent = 'AddParts'
|
this.isShowComponent = 'AddParts'
|
||||||
|
this.partsTaskId = ''
|
||||||
|
this.isView = false
|
||||||
|
this.isDisabled = false
|
||||||
|
this.isCheck = false
|
||||||
|
this.isShow = true
|
||||||
},
|
},
|
||||||
/* 查询配件 */
|
/* 查询配件 */
|
||||||
queryParts(taskId) {
|
queryParts(taskId) {
|
||||||
|
this.pageContent = '配件详情'
|
||||||
this.partsTaskId = taskId
|
this.partsTaskId = taskId
|
||||||
this.isView = true
|
this.isView = true
|
||||||
this.isDisabled = true
|
this.isDisabled = true
|
||||||
|
this.isCheck = false
|
||||||
this.isShowComponent = 'AddParts'
|
this.isShowComponent = 'AddParts'
|
||||||
},
|
},
|
||||||
/* 新增 修改保存成功 */
|
/* 新增 修改保存成功 */
|
||||||
|
|
@ -62,17 +71,23 @@ export default {
|
||||||
},
|
},
|
||||||
/* 编辑配件 */
|
/* 编辑配件 */
|
||||||
editParts(taskId) {
|
editParts(taskId) {
|
||||||
|
this.pageContent = '编辑配件'
|
||||||
this.partsTaskId = taskId
|
this.partsTaskId = taskId
|
||||||
this.isView = true
|
this.isView = true
|
||||||
this.isEdit = true
|
this.isEdit = true
|
||||||
|
this.isCheck = false
|
||||||
|
this.isShow = false
|
||||||
|
this.isDisabled = false
|
||||||
this.isShowComponent = 'AddParts'
|
this.isShowComponent = 'AddParts'
|
||||||
},
|
},
|
||||||
/* 验收配件 */
|
/* 验收配件 */
|
||||||
acceptParts(taskId) {
|
acceptParts(taskId) {
|
||||||
|
this.pageContent = '配件验收'
|
||||||
this.partsTaskId = taskId
|
this.partsTaskId = taskId
|
||||||
this.isView = true
|
this.isView = true
|
||||||
this.isDisabled = true
|
this.isDisabled = true
|
||||||
this.isCheck = true
|
this.isCheck = true
|
||||||
|
this.isShow = false
|
||||||
this.isShowComponent = 'AddParts'
|
this.isShowComponent = 'AddParts'
|
||||||
},
|
},
|
||||||
/* 返回按钮 */
|
/* 返回按钮 */
|
||||||
|
|
|
||||||
|
|
@ -872,11 +872,11 @@ export default {
|
||||||
/** 导出按钮操作 */
|
/** 导出按钮操作 */
|
||||||
handleExport() {
|
handleExport() {
|
||||||
this.download(
|
this.download(
|
||||||
'material/purchaseCheckInfo/putInExport',
|
'material/purchaseCheckServiceCenter/putInExport',
|
||||||
{
|
{
|
||||||
...this.queryParams,
|
...this.queryParams,
|
||||||
},
|
},
|
||||||
`新购工机具入库_${new Date().getTime()}.xlsx`,
|
`综合服务中心_${new Date().getTime()}.xlsx`,
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
/** 刷新缓存按钮操作 */
|
/** 刷新缓存按钮操作 */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue