|
|
|
|
@ -488,9 +488,7 @@ |
|
|
|
|
<el-table-column prop="date" label="入库后库存"> |
|
|
|
|
<el-table-column label="数量"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
{{ |
|
|
|
|
scope.row.totalQuantity |
|
|
|
|
}} |
|
|
|
|
{{ scope.row.totalQuantity }} |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="unitPrice" label="单价"> |
|
|
|
|
@ -609,9 +607,7 @@ export default { |
|
|
|
|
status: "", //状态 |
|
|
|
|
quarterName: "", |
|
|
|
|
purchaseEndInfo: "", //采购单信息 |
|
|
|
|
userInfoVO: { |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
userInfoVO: {}, |
|
|
|
|
ldOnePutStorageDetailVOList: [], //入库明细 |
|
|
|
|
}, |
|
|
|
|
inTableData: [], |
|
|
|
|
@ -653,7 +649,8 @@ export default { |
|
|
|
|
this.statisticsList = res.data.result; |
|
|
|
|
this.statisticsList = this.statisticsList.map((stat) => { |
|
|
|
|
const detail = this.sizeForm.inTableData.find( |
|
|
|
|
(item) => item.materialCode === stat.materialCode && item.type === stat.type |
|
|
|
|
(item) => |
|
|
|
|
item.materialCode === stat.materialCode && item.type === stat.type |
|
|
|
|
); |
|
|
|
|
return { |
|
|
|
|
...stat, |
|
|
|
|
@ -670,7 +667,8 @@ export default { |
|
|
|
|
this.statisticsList = res.data.result; |
|
|
|
|
this.statisticsList = this.statisticsList.map((stat) => { |
|
|
|
|
const detail = this.sizeForm.singleData.find( |
|
|
|
|
(item) => item.materialId === stat.materialId&& item.type === stat.type |
|
|
|
|
(item) => |
|
|
|
|
item.materialId === stat.materialId && item.type === stat.type |
|
|
|
|
); |
|
|
|
|
return { |
|
|
|
|
...stat, |
|
|
|
|
@ -683,19 +681,19 @@ export default { |
|
|
|
|
}, |
|
|
|
|
//本次入库数量 |
|
|
|
|
syncInboundQuantity(row) { |
|
|
|
|
row.theInboundQuantity = Number(row.theInboundQuantity); |
|
|
|
|
if(this.sizeForm.option == 1){ |
|
|
|
|
// row.theInboundQuantity = Number(row.theInboundQuantity); |
|
|
|
|
if (this.sizeForm.option == 1) { |
|
|
|
|
this.getStatistics(); |
|
|
|
|
}else{ |
|
|
|
|
} else { |
|
|
|
|
this.getStatisticsSingle(); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
//单价 |
|
|
|
|
syncUnitPrice(row) { |
|
|
|
|
row.unitPrice = Number(row.unitPrice); |
|
|
|
|
if(this.sizeForm.option == 1){ |
|
|
|
|
if (this.sizeForm.option == 1) { |
|
|
|
|
this.getStatistics(); |
|
|
|
|
}else{ |
|
|
|
|
} else { |
|
|
|
|
this.getStatisticsSingle(); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
@ -818,7 +816,7 @@ export default { |
|
|
|
|
this.sizeForm.inTableData = res.data.result; |
|
|
|
|
this.sizeForm.inTableData.forEach((item) => { |
|
|
|
|
item.theInboundQuantity = 0; |
|
|
|
|
if(item.type == 'YH'){ |
|
|
|
|
if (item.type == "YH") { |
|
|
|
|
item.unitPrice = 0; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
@ -980,7 +978,6 @@ export default { |
|
|
|
|
this.sizeForm.option = ""; |
|
|
|
|
} |
|
|
|
|
try { |
|
|
|
|
|
|
|
|
|
const res = await submitData(this.sizeForm); |
|
|
|
|
if (res.data.success) { |
|
|
|
|
this.$message({ |
|
|
|
|
@ -1030,9 +1027,9 @@ export default { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if(this.sizeForm.option == 1){ |
|
|
|
|
if (this.sizeForm.option == 1) { |
|
|
|
|
this.getStatistics(); |
|
|
|
|
}else{ |
|
|
|
|
} else { |
|
|
|
|
this.getStatisticsSingle(); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
@ -1059,7 +1056,7 @@ export default { |
|
|
|
|
padding-right: 10px; |
|
|
|
|
} |
|
|
|
|
::v-deep.el-table th.el-table__cell { |
|
|
|
|
background: #F5F7FA; |
|
|
|
|
background: #f5f7fa; |
|
|
|
|
font-weight: 500; |
|
|
|
|
} |
|
|
|
|
</style> |
|
|
|
|
|