|
@@ -655,13 +655,16 @@ export default {
|
|
|
// 返回默认的物料明细项,确保数据完整性
|
|
|
return {
|
|
|
...material,
|
|
|
- id: material.id || '',
|
|
|
- itemId: material.itemId || '',
|
|
|
- warehouseId: material.warehouseId || '',
|
|
|
+ id: String(material.id || ''),
|
|
|
+ mainItemCategoryId: String(material.mainItemCategoryId || ''),
|
|
|
+ itemId: String(material.itemId || ''),
|
|
|
+ warehouseId: String(material.warehouseId || ''),
|
|
|
createTime: material.createTime || new Date().toISOString(),
|
|
|
updateTime: material.updateTime || new Date().toISOString(),
|
|
|
dataSource: MaterialDetailDataSource.REMOTE,
|
|
|
isDeletable: false,
|
|
|
+ availableQuantity: 0,
|
|
|
+ confirmQuantity: 0,
|
|
|
orderQuantity: 0,
|
|
|
unitPrice: 0,
|
|
|
taxRate: 0,
|