|
|
@ -72,6 +72,9 @@ |
|
|
},{ |
|
|
},{ |
|
|
label: '批次', |
|
|
label: '批次', |
|
|
key: 'batch_sn' |
|
|
key: 'batch_sn' |
|
|
|
|
|
},{ |
|
|
|
|
|
key: 'stock_number', |
|
|
|
|
|
label: '库存数量' |
|
|
},{ |
|
|
},{ |
|
|
key: 'delivery_number', |
|
|
key: 'delivery_number', |
|
|
label: '出库数量' |
|
|
label: '出库数量' |
|
|
@ -112,6 +115,7 @@ |
|
|
warehouse_list[i].operation = {button: true, key: 'delete', value: '删除'}; |
|
|
warehouse_list[i].operation = {button: true, key: 'delete', value: '删除'}; |
|
|
warehouse_list[i].unit = warehouse_list[i].unit.unit_name; |
|
|
warehouse_list[i].unit = warehouse_list[i].unit.unit_name; |
|
|
warehouse_list[i].category = warehouse_list[i].category.m_cate_name; |
|
|
warehouse_list[i].category = warehouse_list[i].category.m_cate_name; |
|
|
|
|
|
warehouse_list[i].stock_number = warehouse_list[i].stock; |
|
|
contents.push(warehouse_list[i]); |
|
|
contents.push(warehouse_list[i]); |
|
|
} |
|
|
} |
|
|
this.contents = contents; |
|
|
this.contents = contents; |
|
|
@ -129,10 +133,13 @@ |
|
|
let list = res.data.sheet || []; |
|
|
let list = res.data.sheet || []; |
|
|
let warehouse_list = {}; |
|
|
let warehouse_list = {}; |
|
|
list.map(item => { |
|
|
list.map(item => { |
|
|
|
|
|
console.log('======',item) |
|
|
|
|
|
console.log('===库存===',item.warehouse.stock) |
|
|
warehouse_list[item.id] = { |
|
|
warehouse_list[item.id] = { |
|
|
batch_sn: item?.purchase?.batch_sn || '', |
|
|
batch_sn: item?.purchase?.batch_sn || '', |
|
|
brand: item?.material?.brand || '', |
|
|
brand: item?.material?.brand || '', |
|
|
checked: true, |
|
|
checked: true, |
|
|
|
|
|
stock: item.warehouse.stock, |
|
|
m_sn: item?.material?.m_sn || '', |
|
|
m_sn: item?.material?.m_sn || '', |
|
|
material_id: item?.material?.id || 0, |
|
|
material_id: item?.material?.id || 0, |
|
|
material_name: item?.material?.m_name || '', |
|
|
material_name: item?.material?.m_name || '', |
|
|
|