提交即出库
This commit is contained in:
parent
f7858c9d09
commit
476bbed2a6
@ -158,6 +158,10 @@ public class StorageController {
|
||||
}
|
||||
updateReqVO = BeanUtils.toBean(targetDo, StorageSaveReqVO.class);
|
||||
|
||||
//出库即审核
|
||||
if (updateReqVO.getStockType() == 2) {
|
||||
updateReqVO.setStatus(4);
|
||||
}
|
||||
storageService.updateStorage(updateReqVO);
|
||||
int status = targetDo.getStatus();
|
||||
StorageSaveReqVO saveReqVO;
|
||||
@ -265,7 +269,7 @@ public class StorageController {
|
||||
}
|
||||
}
|
||||
storageService.updateLogList(targetDo.getId(),status,targetDo.getStockType(),targetDo.getStockNo());
|
||||
if (saveReqVO.getInOutFlag()){
|
||||
if (saveReqVO.getInOutFlag() != null && saveReqVO.getInOutFlag()) {
|
||||
//增加出库日志
|
||||
storageService.updateLogList(targetDo.getId(), saveReqVO.getStatus(), saveReqVO.getStockType(), saveReqVO.getStockNo());
|
||||
}
|
||||
|
||||
@ -127,6 +127,13 @@
|
||||
{{ warehouseList.find((tag) => tag.id === scope.row.whId)?.whName }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="即入即出" align="center" prop="inOutFlag" min-width="100" >
|
||||
<template #default="scope">
|
||||
<el-tag :type="scope.row.inOutFlag ? 'success' : 'info'">
|
||||
{{ scope.row.inOutFlag ? '是' : '否' }}
|
||||
</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="领料人" align="center" prop="materialReceiver" min-width="120">
|
||||
<template #default="scope">
|
||||
{{ userList.find((user) => user.id === scope.row.materialReceiver)?.nickname }}
|
||||
@ -180,9 +187,13 @@
|
||||
<el-button link type="primary" @click="openDetail('update', scope.row.id)" v-if="scope.row.status != 3&&scope.row.status != 4">
|
||||
编辑
|
||||
</el-button>
|
||||
<!-- <el-button link type="danger" @click="handleDelete(scope.row.id)" v-if="scope.row.status == 4">-->
|
||||
<!-- 作废-->
|
||||
<!-- </el-button>-->
|
||||
<el-button link type="primary" @click="openDetail('review', scope.row.id)">
|
||||
查看详情
|
||||
</el-button>
|
||||
|
||||
<!-- <el-button
|
||||
link
|
||||
type="danger"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user