|
@@ -128,12 +128,16 @@ import {approveTaskWithVariables, rejectTask} from '@/api/bpm/task';
|
|
|
packingNo: item.packageNo,
|
|
packingNo: item.packageNo,
|
|
|
quantity: item[filterArr.numKey],
|
|
quantity: item[filterArr.numKey],
|
|
|
categoryId: item.categoryId,
|
|
categoryId: item.categoryId,
|
|
|
- batchNo: item.batchNo
|
|
|
|
|
|
|
+ batchNo: item.batchNo,
|
|
|
|
|
+ systemBatchNo: item.systemBatchNo
|
|
|
};
|
|
};
|
|
|
});
|
|
});
|
|
|
console.log('params~~~', params);
|
|
console.log('params~~~', params);
|
|
|
try {
|
|
try {
|
|
|
- await storageApi.addSubtractStockPacking(params);
|
|
|
|
|
|
|
+ const result = await storageApi.addSubtractStockPacking(params);
|
|
|
|
|
+ if (result && result.code !== 0 && result.code !== '0') {
|
|
|
|
|
+ throw new Error(result.message || '库存调整失败');
|
|
|
|
|
+ }
|
|
|
} catch (error) {
|
|
} catch (error) {
|
|
|
this.$message.error('保存失败');
|
|
this.$message.error('保存失败');
|
|
|
return;
|
|
return;
|