手持机部分

This commit is contained in:
张怡蓉
2025-07-24 09:05:46 +08:00
parent cadf2c881c
commit fd5ae47572
6 changed files with 41 additions and 10 deletions

View File

@@ -354,6 +354,7 @@ export default {
// Material Information
materialCode: 'Material Code',
materialDesc: 'Material Desc',
stockId: 'Stock ID',
lotNo: 'Lot No.',
outQuantity: 'Out Quantity',

View File

@@ -155,6 +155,7 @@
<el-table-column :label="$t('outJobManagement.stockId')" align="left" prop="stockId" /> <!-- 库存ID -->
<el-table-column :label="$t('outJobManagement.subDocumentId')" align="left" prop="inOrOutDId" /> <!-- 子单据ID -->
<el-table-column :label="$t('outJobManagement.materialCode')" align="left" prop="productId" /> <!-- 物料编码 -->
<el-table-column :label="$t('outJobManagement.materialDesc')" align="left" prop="extraField.materialDesc" /> <!-- 物料编码 -->
<el-table-column :label="$t('outJobManagement.outQuantity')" align="right" prop="outQuantity" /> <!-- 出库数量 -->
</el-table>
@@ -370,6 +371,14 @@ export default {
this.$modal.msgError("请选择需要手动完成的任务");
return;
}
// // 检查选中任务的状态是否为3(执行中)
// const invalidTasks = this.mydoJobList.filter(item =>
// this.ids.includes(item.jobId) && item.status !== '3'
// );
// if (invalidTasks.length > 0) {
// this.$modal.msgError("只能手动完成状态为[执行中]的作业");
// return;
// }
this.$modal.confirm('是否确认手动完成选中的任务?').then(() => {
return handFinish(this.ids.join(','));
}).then(() => {
@@ -383,6 +392,14 @@ export default {
this.$modal.msgError("请选择需要手动作废的任务");
return;
}
// 检查选中任务的状态是否小于3(未执行)
const invalidTasks = this.mydoJobList.filter(item =>
this.ids.includes(item.jobId) && item.status >= '3'
);
if (invalidTasks.length > 0) {
this.$modal.msgError("只能手动作废状态为[未执行]的作业");
return;
}
this.$modal.confirm('是否确认手动作废选中的任务?').then(() => {
return hangInvalidJob(this.ids.join(','));
}).then(() => {
@@ -390,6 +407,7 @@ export default {
this.getList();
}).catch(() => {});
}
}
}
</script>