Merge branch '0.8.X' of http://49.232.154.205:10100/DeXun/klp-oa into 0.8.X
This commit is contained in:
@@ -2,25 +2,36 @@
|
|||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
<el-alert title="以下操作关联的钢卷已是历史钢卷,可手动标记完成" type="warning" show-icon :closable="false" class="mb8" />
|
<el-alert title="以下操作关联的钢卷已是历史钢卷,可手动标记完成" type="warning" show-icon :closable="false" class="mb8" />
|
||||||
<KLPTable v-loading="loading" :data="list">
|
<KLPTable v-loading="loading" :data="list">
|
||||||
<el-table-column label="当前钢卷号" align="center" prop="currentCoilNo"/>
|
<el-table-column label="当前钢卷号" align="center" prop="currentCoilNo" width="150" />
|
||||||
<el-table-column label="入场钢卷号" align="center" prop="enterCoilNo" width="180" />
|
<el-table-column label="入场钢卷号" align="center" prop="enterCoilNo" width="150" />
|
||||||
<el-table-column label="操作类型" align="center" prop="actionType" width="100">
|
<el-table-column label="物品名称" align="center" prop="itemName" width="120" />
|
||||||
|
<el-table-column label="材质" align="center" prop="material" width="100" />
|
||||||
|
<el-table-column label="规格" align="center" prop="specification" width="110" />
|
||||||
|
<el-table-column label="生产厂家" align="center" prop="manufacturer" width="100" />
|
||||||
|
<el-table-column label="锌层" align="center" prop="zincLayer" width="100" />
|
||||||
|
<el-table-column label="操作类型" align="center" prop="actionType" width="120">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<dict-tag :options="dict.type.wms_coil_action_type" :value="scope.row.actionType" />
|
<span>{{ actionTypeMap[scope.row.actionType] || scope.row.actionType }}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="操作状态" align="center" prop="actionStatus" width="100">
|
<el-table-column label="操作状态" align="center" prop="actionStatus" width="90">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<dict-tag :options="dict.type.wms_action_status" :value="scope.row.actionStatus" />
|
<el-tag :type="actionStatusTag(scope.row.actionStatus)">{{ actionStatusMap[scope.row.actionStatus] || scope.row.actionStatus }}</el-tag>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="逻辑库区" align="center" prop="warehouseName" width="150" />
|
<el-table-column label="逻辑库区" align="center" prop="warehouseName" width="130" />
|
||||||
<el-table-column label="实际库区" align="center" prop="actualWarehouseName" width="150" />
|
<el-table-column label="实际库区" align="center" prop="actualWarehouseName" width="130" />
|
||||||
<el-table-column label="创建时间" align="center" prop="createTime" width="160">
|
<el-table-column label="创建人" align="center" prop="createByName" width="100" />
|
||||||
|
<el-table-column label="创建时间" align="center" prop="createTime" width="150">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span>{{ parseTime(scope.row.createTime, '{y}-{m}-{d} {h}:{i}') }}</span>
|
<span>{{ parseTime(scope.row.createTime, '{y}-{m}-{d} {h}:{i}') }}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
<el-table-column label="完成时间" align="center" prop="completeTime" width="150">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ parseTime(scope.row.completeTime, '{y}-{m}-{d} {h}:{i}') }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column label="操作" align="center" width="160" fixed="right">
|
<el-table-column label="操作" align="center" width="160" fixed="right">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button size="mini" type="primary" icon="el-icon-check"
|
<el-button size="mini" type="primary" icon="el-icon-check"
|
||||||
@@ -40,7 +51,6 @@ import { listStalePendingAction, completeAction, cancelAction } from "@/api/wms/
|
|||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "StaleAction",
|
name: "StaleAction",
|
||||||
dicts: ['wms_coil_action_type', 'wms_action_status'],
|
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
loading: true,
|
loading: true,
|
||||||
@@ -50,6 +60,25 @@ export default {
|
|||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 20,
|
pageSize: 20,
|
||||||
},
|
},
|
||||||
|
actionTypeMap: {
|
||||||
|
11: '酸连轧工序',
|
||||||
|
120: '分条',
|
||||||
|
201: '酸轧合卷',
|
||||||
|
202: '镀锌合卷',
|
||||||
|
203: '脱脂合卷',
|
||||||
|
204: '拉矫平整合卷',
|
||||||
|
205: '双机架合卷',
|
||||||
|
206: '镀铬合卷',
|
||||||
|
502: '脱脂工序',
|
||||||
|
504: '双机架工序',
|
||||||
|
506: '纵剪分条工序',
|
||||||
|
},
|
||||||
|
actionStatusMap: {
|
||||||
|
0: '待处理',
|
||||||
|
1: '处理中',
|
||||||
|
2: '已完成',
|
||||||
|
3: '已取消',
|
||||||
|
},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
@@ -64,6 +93,10 @@ export default {
|
|||||||
this.loading = false;
|
this.loading = false;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
actionStatusTag(status) {
|
||||||
|
const map = { 0: 'warning', 1: 'primary', 2: 'success', 3: 'info' };
|
||||||
|
return map[status] || '';
|
||||||
|
},
|
||||||
handleComplete(row) {
|
handleComplete(row) {
|
||||||
this.$modal.confirm('确认完成操作ID为"' + row.actionId + '"的记录?').then(() => {
|
this.$modal.confirm('确认完成操作ID为"' + row.actionId + '"的记录?').then(() => {
|
||||||
return completeAction(row.actionId, '-');
|
return completeAction(row.actionId, '-');
|
||||||
|
|||||||
@@ -147,6 +147,16 @@ public class WmsTransferOrderItemController extends BaseController {
|
|||||||
return toAjax(iWmsTransferOrderItemService.confirmTransfer(bo));
|
return toAjax(iWmsTransferOrderItemService.confirmTransfer(bo));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量确认调拨
|
||||||
|
*/
|
||||||
|
@Log(title = "调拨单明细", businessType = BusinessType.UPDATE)
|
||||||
|
@RepeatSubmit()
|
||||||
|
@PostMapping("/batchConfirm")
|
||||||
|
public R<Void> batchConfirm(@Validated(AddGroup.class) @RequestBody List<WmsTransferOrderItemBo> boList) {
|
||||||
|
return toAjax(iWmsTransferOrderItemService.batchConfirmTransfer(boList));
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 取消调拨
|
* 取消调拨
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -64,6 +64,11 @@ public interface IWmsTransferOrderItemService {
|
|||||||
*/
|
*/
|
||||||
Boolean confirmTransfer(WmsTransferOrderItemBo bo);
|
Boolean confirmTransfer(WmsTransferOrderItemBo bo);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量确认调拨
|
||||||
|
*/
|
||||||
|
Boolean batchConfirmTransfer(List<WmsTransferOrderItemBo> boList);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 取消调拨
|
* 取消调拨
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -600,6 +600,23 @@ public class WmsTransferOrderItemServiceImpl implements IWmsTransferOrderItemSer
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量确认调拨
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
@Transactional(rollbackFor = Exception.class)
|
||||||
|
public Boolean batchConfirmTransfer(List<WmsTransferOrderItemBo> boList) {
|
||||||
|
if (boList == null || boList.isEmpty()) {
|
||||||
|
throw new IllegalArgumentException("调拨明细列表不能为空");
|
||||||
|
}
|
||||||
|
|
||||||
|
for (WmsTransferOrderItemBo bo : boList) {
|
||||||
|
confirmTransfer(bo);
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 取消调拨
|
* 取消调拨
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user