|
|
@@ -63,7 +63,7 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column label="差异">
|
|
|
<template slot-scope="scope">
|
|
|
- {{ scope.row.sumPrice }}
|
|
|
+ {{ scope.row.diffCount }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="备注">
|
|
|
@@ -201,14 +201,14 @@ export default {
|
|
|
if(val=='inventoryEntryInfos'){
|
|
|
const inventoryEntryInfos = Goods.map(item => {
|
|
|
item.updateNumber = 1
|
|
|
- item.sumPrice = item.createProductNumber - 1
|
|
|
+ item.diffCount = item.createProductNumber - 1
|
|
|
return item
|
|
|
})
|
|
|
this.dataForm.inventoryEntryInfos = this.dataForm.inventoryEntryInfos && this.dataForm.inventoryEntryInfos.length ? this.dataForm.inventoryEntryInfos.concat(inventoryEntryInfos) : this.dataForm.inventoryEntryInfos = inventoryEntryInfos
|
|
|
}else{
|
|
|
const inventoryOutInfos = Goods.map(item => {
|
|
|
item.updateNumber = 1
|
|
|
- item.sumPrice = item.createProductNumber - 1
|
|
|
+ item.diffCount = item.createProductNumber - 1
|
|
|
return item
|
|
|
})
|
|
|
this.dataForm.inventoryOutInfos = this.dataForm.inventoryOutInfos && this.dataForm.inventoryOutInfos.length ? this.dataForm.inventoryOutInfos.concat(inventoryOutInfos) : this.dataForm.inventoryOutInfos = inventoryOutInfos
|
|
|
@@ -249,7 +249,7 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
handleChange(row) {
|
|
|
- row.sumPrice = row.createProductNumber - row.updateNumber
|
|
|
+ row.diffCount = row.createProductNumber - row.updateNumber
|
|
|
},
|
|
|
roBack() {
|
|
|
// const { callback } = this.$route.params
|