盘点流程测试
This commit is contained in:
@@ -120,16 +120,6 @@ public class CheckStockinServiceImpl implements ICheckStockinService
|
|||||||
if (!"3".equals(old.getStatus())){
|
if (!"3".equals(old.getStatus())){
|
||||||
throw new RuntimeException("单据状态非正执行状态!");
|
throw new RuntimeException("单据状态非正执行状态!");
|
||||||
}
|
}
|
||||||
//对比扫码数量 与实际入库数量是否一致
|
|
||||||
CheckStockinDetail checkStockinParam = new CheckStockinDetail();
|
|
||||||
checkStockinParam.setStockCheckGuid(checkStockin.getStockGuid());
|
|
||||||
List<CheckStockinDetail> list = checkStockinDetailService.selectCheckStockinDetailList(checkStockinParam);
|
|
||||||
if (CollUtil.isNotEmpty(list)){
|
|
||||||
boolean b = list.stream().allMatch(x -> x.getAssignNum().equals(x.getScanNum()));
|
|
||||||
if (!b){
|
|
||||||
throw new RuntimeException("扫码数量与实际入库数量不一致!");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
insertCheckStockinHistory(checkStockin);
|
insertCheckStockinHistory(checkStockin);
|
||||||
}
|
}
|
||||||
return AjaxResult.success();
|
return AjaxResult.success();
|
||||||
|
|||||||
@@ -195,6 +195,7 @@ public class MydoJobServiceImpl implements IMydoJobService {
|
|||||||
//修改货位
|
//修改货位
|
||||||
BasCargoSpace basCargoSpace = new BasCargoSpace();
|
BasCargoSpace basCargoSpace = new BasCargoSpace();
|
||||||
basCargoSpace.setStatus("2");
|
basCargoSpace.setStatus("2");
|
||||||
|
basCargoSpace.setTrayCode(job.getTrayCode());
|
||||||
basCargoSpace.setCargoSpaceId(job.getCargoSpaceId());
|
basCargoSpace.setCargoSpaceId(job.getCargoSpaceId());
|
||||||
basCargoSpaceService.updateBasCargoSpace(basCargoSpace);
|
basCargoSpaceService.updateBasCargoSpace(basCargoSpace);
|
||||||
//插入历史表
|
//插入历史表
|
||||||
|
|||||||
@@ -259,6 +259,7 @@ public class PdaServiceImp implements PdaService{
|
|||||||
checkCommitRecord.setQuantity(mydoJobDetail.getInQuantity());
|
checkCommitRecord.setQuantity(mydoJobDetail.getInQuantity());
|
||||||
checkCommitRecord.setTrayCode(trayCodeMakeSure.getTrayCode());
|
checkCommitRecord.setTrayCode(trayCodeMakeSure.getTrayCode());
|
||||||
checkCommitRecord.setStockId(mydoJobDetail.getStockId());
|
checkCommitRecord.setStockId(mydoJobDetail.getStockId());
|
||||||
|
checkCommitRecord.setSpare1(mydoJobDetail.getInOrOutDId());
|
||||||
checkCommitRecordService.insertCheckCommitRecord(checkCommitRecord);
|
checkCommitRecordService.insertCheckCommitRecord(checkCommitRecord);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -585,6 +585,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// ****************盘点差异管理*****************
|
// ****************盘点差异管理*****************
|
||||||
checkDifference: {
|
checkDifference: {
|
||||||
|
createTime: 'createTime',
|
||||||
checkGuid: 'Check ID',
|
checkGuid: 'Check ID',
|
||||||
checkStockDetailId: 'Check Document ID',
|
checkStockDetailId: 'Check Document ID',
|
||||||
stockId: 'Stock ID',
|
stockId: 'Stock ID',
|
||||||
|
|||||||
@@ -400,7 +400,7 @@ export default {
|
|||||||
cartonNo: '箱号',
|
cartonNo: '箱号',
|
||||||
packingMethod: '包装方式',
|
packingMethod: '包装方式',
|
||||||
quantity: '计划数量',
|
quantity: '计划数量',
|
||||||
scanNum: '扫码数量',
|
scanNum: '分配数量',
|
||||||
assignNum: '实际数量',
|
assignNum: '实际数量',
|
||||||
stockCheckIdRequired: '盘点单据ID不能为空',
|
stockCheckIdRequired: '盘点单据ID不能为空',
|
||||||
checkTypeRequired: '盘库类型不能为空',
|
checkTypeRequired: '盘库类型不能为空',
|
||||||
@@ -562,6 +562,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// ****************盘点差异管理*****************
|
// ****************盘点差异管理*****************
|
||||||
checkDifference: {
|
checkDifference: {
|
||||||
|
createTime: '创建时间',
|
||||||
checkGuid: '盘点id',
|
checkGuid: '盘点id',
|
||||||
checkStockDetailId: '盘点单据id',
|
checkStockDetailId: '盘点单据id',
|
||||||
stockId: '库存id',
|
stockId: '库存id',
|
||||||
|
|||||||
@@ -400,7 +400,7 @@ export default {
|
|||||||
cartonNo: '箱号',
|
cartonNo: '箱号',
|
||||||
packingMethod: '包装方式',
|
packingMethod: '包装方式',
|
||||||
quantity: '计划数量',
|
quantity: '计划数量',
|
||||||
scanNum: '扫码数量',
|
scanNum: '分配数量',
|
||||||
assignNum: '实际数量',
|
assignNum: '实际数量',
|
||||||
stockCheckIdRequired: '盘点单据ID不能为空',
|
stockCheckIdRequired: '盘点单据ID不能为空',
|
||||||
checkTypeRequired: '盘库类型不能为空',
|
checkTypeRequired: '盘库类型不能为空',
|
||||||
@@ -562,6 +562,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// ****************盘点差异管理*****************
|
// ****************盘点差异管理*****************
|
||||||
checkDifference: {
|
checkDifference: {
|
||||||
|
createTime: '创建时间',
|
||||||
checkGuid: '盘点id',
|
checkGuid: '盘点id',
|
||||||
checkStockDetailId: '盘点单据id',
|
checkStockDetailId: '盘点单据id',
|
||||||
stockId: '库存id',
|
stockId: '库存id',
|
||||||
|
|||||||
@@ -143,7 +143,7 @@
|
|||||||
|
|
||||||
<el-table v-loading="loading" :data="differenceList" @selection-change="handleSelectionChange">
|
<el-table v-loading="loading" :data="differenceList" @selection-change="handleSelectionChange">
|
||||||
<el-table-column type="selection" width="55" align="center" />
|
<el-table-column type="selection" width="55" align="center" />
|
||||||
<el-table-column :label="$t('checkDifference.checkGuid')" align="center" prop="checkGuid" /> <!-- 盘点id -->
|
<!-- <el-table-column :label="$t('checkDifference.checkGuid')" align="center" prop="checkGuid" /> <!– 盘点id –>-->
|
||||||
<el-table-column :label="$t('checkDifference.checkStockDetailId')" align="center" prop="checkStockDetailId" /> <!-- 盘点单据id -->
|
<el-table-column :label="$t('checkDifference.checkStockDetailId')" align="center" prop="checkStockDetailId" /> <!-- 盘点单据id -->
|
||||||
<el-table-column :label="$t('checkDifference.stockId')" align="center" prop="stockId" /> <!-- 库存id -->
|
<el-table-column :label="$t('checkDifference.stockId')" align="center" prop="stockId" /> <!-- 库存id -->
|
||||||
<el-table-column :label="$t('checkDifference.trayCode')" align="center" prop="trayCode" /> <!-- 托盘 -->
|
<el-table-column :label="$t('checkDifference.trayCode')" align="center" prop="trayCode" /> <!-- 托盘 -->
|
||||||
@@ -155,8 +155,9 @@
|
|||||||
<el-table-column :label="$t('checkDifference.oldQuantity')" align="center" prop="oldQuantity" /> <!-- 原值 -->
|
<el-table-column :label="$t('checkDifference.oldQuantity')" align="center" prop="oldQuantity" /> <!-- 原值 -->
|
||||||
<el-table-column :label="$t('checkDifference.newQuantity')" align="center" prop="newQuantity" /> <!-- 新值 -->
|
<el-table-column :label="$t('checkDifference.newQuantity')" align="center" prop="newQuantity" /> <!-- 新值 -->
|
||||||
<el-table-column :label="$t('checkDifference.recordType')" align="center" prop="recordType" /> <!-- 操作方式 -->
|
<el-table-column :label="$t('checkDifference.recordType')" align="center" prop="recordType" /> <!-- 操作方式 -->
|
||||||
<el-table-column :label="$t('checkDifference.productGuid')" align="center" prop="productGuid" /> <!-- 物料guid -->
|
<el-table-column :label="$t('checkDifference.createTime')" align="center" prop="createTime" /> <!-- 创建时间 -->
|
||||||
<el-table-column :label="$t('checkDifference.operation')" align="center" class-name="small-padding fixed-width"> <!-- 操作 -->
|
<!-- <el-table-column :label="$t('checkDifference.productGuid')" align="center" prop="productGuid" /> <!– 物料guid –>-->
|
||||||
|
<!-- <el-table-column :label="$t('checkDifference.operation')" align="center" class-name="small-padding fixed-width"> <!– 操作 –>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
size="mini"
|
||||||
@@ -164,16 +165,16 @@
|
|||||||
icon="el-icon-edit"
|
icon="el-icon-edit"
|
||||||
@click="handleUpdate(scope.row)"
|
@click="handleUpdate(scope.row)"
|
||||||
v-hasPermi="['check:difference:edit']"
|
v-hasPermi="['check:difference:edit']"
|
||||||
>{{$t('checkDifference.edit')}}</el-button> <!-- 修改 -->
|
>{{$t('checkDifference.edit')}}</el-button> <!– 修改 –>
|
||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
size="mini"
|
||||||
type="text"
|
type="text"
|
||||||
icon="el-icon-delete"
|
icon="el-icon-delete"
|
||||||
@click="handleDelete(scope.row)"
|
@click="handleDelete(scope.row)"
|
||||||
v-hasPermi="['check:difference:remove']"
|
v-hasPermi="['check:difference:remove']"
|
||||||
>{{$t('checkDifference.delete')}}</el-button> <!-- 删除 -->
|
>{{$t('checkDifference.delete')}}</el-button> <!– 删除 –>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>-->
|
||||||
</el-table>
|
</el-table>
|
||||||
|
|
||||||
<pagination
|
<pagination
|
||||||
|
|||||||
@@ -215,8 +215,8 @@
|
|||||||
icon="el-icon-delete"
|
icon="el-icon-delete"
|
||||||
size="mini"
|
size="mini"
|
||||||
:disabled="multiple"
|
:disabled="multiple"
|
||||||
@click="handleManualVoid"
|
@click="handleCompletedManually({type: 'invalid'})"
|
||||||
v-hasPermi="['job:checkMydoJob:manualInvalidation']"
|
v-hasPermi="['job:mydoJob:manualInvalidation']"
|
||||||
>{{$t('checkJobIn.manualVoid')}}</el-button> <!--手动作废-->
|
>{{$t('checkJobIn.manualVoid')}}</el-button> <!--手动作废-->
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="1.5">
|
<el-col :span="1.5">
|
||||||
@@ -226,8 +226,8 @@
|
|||||||
icon="el-icon-edit"
|
icon="el-icon-edit"
|
||||||
size="mini"
|
size="mini"
|
||||||
:disabled="multiple"
|
:disabled="multiple"
|
||||||
@click="handleManualFinish"
|
@click="handleCompletedManually({type: 'completed'})"
|
||||||
v-hasPermi="['job:checkMydoJob:manualCompleted']"
|
v-hasPermi="['job:mydoJob:manualCompleted']"
|
||||||
>{{$t('checkJobIn.manualFinish')}}</el-button> <!--手动完成-->
|
>{{$t('checkJobIn.manualFinish')}}</el-button> <!--手动完成-->
|
||||||
</el-col>
|
</el-col>
|
||||||
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||||
@@ -336,7 +336,15 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { listMydoJob, getMydoJob, delMydoJob, addMydoJob, updateMydoJob } from "@/api/job/inmydoJob"
|
import {
|
||||||
|
listMydoJob,
|
||||||
|
getMydoJob,
|
||||||
|
delMydoJob,
|
||||||
|
addMydoJob,
|
||||||
|
updateMydoJob,
|
||||||
|
manualInvalidation,
|
||||||
|
manualCompleted
|
||||||
|
} from "@/api/job/inmydoJob"
|
||||||
import { listMydoJobDetail } from "@/api/job/mydoJobDetail"
|
import { listMydoJobDetail } from "@/api/job/mydoJobDetail"
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
@@ -506,15 +514,29 @@ export default {
|
|||||||
|
|
||||||
// 手动完成/作废
|
// 手动完成/作废
|
||||||
handleCompletedManually(row) {
|
handleCompletedManually(row) {
|
||||||
|
console.log("1111")
|
||||||
const jobIds = this.ids;
|
const jobIds = this.ids;
|
||||||
if (jobIds.length === 0) {
|
if (jobIds.length === 0) {
|
||||||
this.$modal.msgError(this.$t('checkJobIn.selectData'));
|
this.$modal.msgError("请选择要操作的数据");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (jobIds.length > 1) {
|
||||||
|
this.$modal.msgError("请选择一条任务");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
var data = {
|
||||||
|
"jobId": jobIds[0],
|
||||||
|
}
|
||||||
if (row.type === 'invalid'){
|
if (row.type === 'invalid'){
|
||||||
//手动作废
|
//手动作废
|
||||||
|
manualInvalidation(data).then(response => {
|
||||||
|
this.$modal.msgSuccess("操作成功");
|
||||||
|
})
|
||||||
}else if (row.type === 'completed'){
|
}else if (row.type === 'completed'){
|
||||||
//手动完成
|
//手动完成
|
||||||
|
manualCompleted(data).then(response => {
|
||||||
|
this.$modal.msgSuccess("操作成功");
|
||||||
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
/** 导出按钮操作 */
|
/** 导出按钮操作 */
|
||||||
|
|||||||
Reference in New Issue
Block a user