新购入库问题修改

This commit is contained in:
hayu 2024-04-13 13:31:25 +08:00
parent 376020f506
commit 273780187a
6 changed files with 25 additions and 40 deletions

View File

@ -336,39 +336,17 @@ public class PurchaseMacodeInfoServiceImpl implements IPurchaseMacodeInfoService
checkDetailsMapper.updatePurchaseCheckDetailsByTaskId(taskId, typeId);
}
}
//判断是否全部已操作通过或不通过
int count=purchaseMacodeInfoMapper.isOperateAll(taskId);
if (count<=0){
//是否为全部不通过
int count1 = purchaseMacodeInfoMapper.selectPurchaseCheckDetailsStatus(taskId);
if (count1>0){
TmTask task = new TmTask();
task.setTaskId(taskId);
task.setTaskStatus(28);
task.setUpdateBy(String.valueOf(SecurityUtils.getLoginUser().getUserid()));
task.setUpdateTime(DateUtils.getNowDate());
taskMapper.updateTmTask(task);
}else {
TmTask task = new TmTask();
task.setTaskId(taskId);
task.setTaskStatus(107);
task.setUpdateBy(String.valueOf(SecurityUtils.getLoginUser().getUserid()));
task.setUpdateTime(DateUtils.getNowDate());
taskMapper.updateTmTask(task);
}
//全部审核任务状态改为已审核
TmTask task = new TmTask();
task.setTaskId(taskId);
task.setTaskStatus(28);
task.setUpdateBy(String.valueOf(SecurityUtils.getLoginUser().getUserid()));
task.setUpdateTime(DateUtils.getNowDate());
taskMapper.updateTmTask(task);
}
// // 当全部审核的时候任务改为入库状态
// Integer count = purchaseMacodeInfoMapper.selectMacodeInfoStatusByTaskId(taskId);
// if (count <= 0) {
// TmTask task = new TmTask();
// task.setTaskId(taskId);
// task.setTaskStatus(28);
// task.setUpdateBy(String.valueOf(SecurityUtils.getLoginUser().getUserid()));
// task.setUpdateTime(DateUtils.getNowDate());
// taskMapper.updateTmTask(task);
// }
return 1;
}

View File

@ -227,11 +227,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
left join ma_supplier_info msi on pcd.supplier_id = msi.supplier_id
left join tm_task tk on pcd.task_id = tk.task_id
where 1=1
and pcd.status !=3
AND (
(pcd.bind_num IS NULL OR pcd.bind_num = 0) AND pcd.STATUS != 5
OR (pcd.bind_num IS NOT NULL AND pcd.bind_num != 0)
)
and pcd.check_result='通过'
-- and pcd.status !=3
-- AND (
-- (pcd.bind_num IS NULL OR pcd.bind_num = 0) AND pcd.STATUS != 5
-- OR (pcd.bind_num IS NOT NULL AND pcd.bind_num != 0)
-- )
<if test="taskId != null ">and pcd.task_id = #{taskId}</if>
<if test="keyWord != null and keyWord != ''">and (mt.type_name like concat('%',#{keyWord},'%')
or mt1.type_name like concat('%',#{keyWord}) or msi.supplier like concat('%',#{keyWord}))

View File

@ -101,7 +101,10 @@
<span v-if="scope.row.status==1">已验收</span>
<span v-if="scope.row.status==2">待通知</span>
<span v-if="scope.row.status==3">验收不通过</span>
<span v-if="scope.row.status==4">已入库</span>
<span v-if="scope.row.status==4">已审核</span>
<span v-if="scope.row.status==5">已审核</span>
<span v-if="scope.row.status==6">入库待审核</span>
<span v-if="scope.row.status==7">已审核</span>
</template>
</el-table-column>
<el-table-column
@ -336,7 +339,7 @@
@click="addUser(scope.row)"
>添加</el-button>
</template>
</template>
</el-table-column>-->
</el-table>
@ -853,4 +856,4 @@ export default {
display: none;
}
}
</style>
</style>

View File

@ -217,6 +217,7 @@
icon="el-icon-edit"
v-if="
scope.row.purchasingStatus != '已入库' &&
scope.row.purchasingStatus != '已审核' &&
scope.row.purchasingStatus != '已验收合格' &&
scope.row.purchasingStatus != '待审核' &&
scope.row.purchasingStatus != '驳回'
@ -243,6 +244,7 @@
v-if="
scope.row.purchasingStatus == '已验收合格' ||
scope.row.purchasingStatus == '已入库' ||
scope.row.purchasingStatus == '已审核' ||
scope.row.purchasingStatus == '待审核'
"
@click="handlePrint(scope.row)"
@ -255,6 +257,7 @@
icon="el-icon-delete"
v-if="
scope.row.purchasingStatus != '已入库' &&
scope.row.purchasingStatus != '已审核' &&
scope.row.purchasingStatus != '已验收合格' &&
scope.row.purchasingStatus != '待审核'
"

View File

@ -134,8 +134,8 @@
<span v-if="scope.row.taskStatus == '26'">已验收合格</span>
<span v-if="scope.row.taskStatus == '105'">入库待审核</span>
<span v-if="scope.row.taskStatus == '106'">已驳回</span>
<span v-if="scope.row.taskStatus == '28'">入库</span>
<span v-if="scope.row.taskStatus == '107'">入库驳回</span>
<span v-if="scope.row.taskStatus == '28'">审核</span>
<span v-if="scope.row.taskStatus == '107'">已审核</span>
</template>
</el-table-column>
<el-table-column

View File

@ -142,7 +142,7 @@
<el-table-column label="状态" align="center" prop="taskStatus">
<template slot-scope="scope">
<span v-if="scope.row.taskStatus == '26'">已验收合格</span>
<span v-if="scope.row.taskStatus == '28'">入库</span>
<span v-if="scope.row.taskStatus == '28'">审核</span>
<span v-if="scope.row.taskStatus == '105'">待审核</span>
<span v-if="scope.row.taskStatus == '107'">已驳回</span>
</template>