|
@@ -259,16 +259,18 @@ export default {
|
|
|
this.loaddata()
|
|
|
this.showType = this.isShow
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
mounted() {
|
|
|
this.deptBudgetList.baseId = this.$route.query.baseId
|
|
|
this.deptBudgetList.positionId = this.$route.query.positionId
|
|
|
this.deptBudgetList.warehouseName = this.$route.query.warehouseName
|
|
|
this.deptBudgetList.binNumber = this.$route.query.binNumber
|
|
|
this.deptBudgetList1.warehouseName = this.$route.query.warehouseName
|
|
|
- this.deptBudgetList1.binNumber = this.$route.query.binNumber
|
|
|
+ this.deptBudgetList1.binNumber = this.deptBudgetList.binNumber
|
|
|
this.deptBudgetList1.baseId = this.$route.query.baseId
|
|
|
- this.deptBudgetList1.positionId = this.$route.query.positionId
|
|
|
+ this.deptBudgetList1.positionId = this.deptBudgetList.positionId
|
|
|
+ this.loaddata()
|
|
|
+ // 货名
|
|
|
// this.deptBudgetList.inventoryRatio=((deptBudgetList.cumulativeStockIn-deptBudgetList.cumulativeStockOut)-deptBudgetList.physicalInventory)/(deptBudgetList.cumulativeStockIn-deptBudgetList.physicalInventory)*100
|
|
|
// this.deptBudgetList.ioss=(deptBudgetList.cumulativeStockIn-deptBudgetList.cumulativeStockOut)-deptBudgetList.physicalInventory
|
|
|
// this.deptBudgetList1.goodsNameKey=this.deptBudgetList.goodsNameKey
|
|
@@ -312,7 +314,7 @@ export default {
|
|
|
}
|
|
|
this.deptBudgetList.compId = this.compId
|
|
|
this.deptBudgetList.contractType = 1
|
|
|
-
|
|
|
+
|
|
|
submitioss(this.deptBudgetList)
|
|
|
.toPromise()
|
|
|
.then((response) => {
|
|
@@ -361,6 +363,14 @@ export default {
|
|
|
this.getList()
|
|
|
},
|
|
|
changeioss(e) {
|
|
|
+
|
|
|
+ if(!this.deptBudgetList.baseId){
|
|
|
+ this.deptBudgetList.baseId = this.$route.query.baseId
|
|
|
+ this.deptBudgetList.positionId = this.deptBudgetList1.positionId
|
|
|
+ this.deptBudgetList.binNumber = this.deptBudgetList1.binNumber
|
|
|
+ }
|
|
|
+ console.log(this.deptBudgetList)
|
|
|
+ console.log(this.deptBudgetList.positionId)
|
|
|
for (var i = 0; i < this.goodnameList.length; i++) {
|
|
|
if (this.goodnameList[i].goodsName == e) {
|
|
|
this.deptBudgetList.goodsNameKey = this.goodnameList[i].goodsNameKey
|