新增MES库区管理功能,包含免密接口、数据处理逻辑及相关控制器、服务和实体的实现。支持库区的增删改查操作,优化用户体验并增强系统的实时数据同步能力。
This commit is contained in:
@@ -7,13 +7,13 @@ export const columns: BasicColumn[] = [
|
||||
title: '条码',
|
||||
align: 'center',
|
||||
dataIndex: 'barcode',
|
||||
width: 160,
|
||||
width: 200,
|
||||
},
|
||||
{
|
||||
title: '批次号',
|
||||
align: 'center',
|
||||
dataIndex: 'batchNo',
|
||||
width: 160,
|
||||
width: 180,
|
||||
},
|
||||
{
|
||||
title: '入场日期',
|
||||
|
||||
@@ -123,12 +123,14 @@
|
||||
}
|
||||
|
||||
async function handlePriorityChange(record, checked: boolean) {
|
||||
const newVal = checked ? '1' : '0';
|
||||
const oldVal = record.priorityPickup;
|
||||
record.priorityPickup = newVal;
|
||||
try {
|
||||
await updatePriority(record.id, checked ? '1' : '0');
|
||||
record.priorityPickup = checked ? '1' : '0';
|
||||
createMessage.success('优先出库设置已更新');
|
||||
await updatePriority(record.id, newVal);
|
||||
} catch {
|
||||
createMessage.error('更新失败,请重试');
|
||||
record.priorityPickup = oldVal;
|
||||
createMessage.error('优先出库更新失败,请重试');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user