|
@@ -61,7 +61,6 @@
|
|
<ws-form-item label="损耗量(吨)" span="1" prop="ioss">
|
|
<ws-form-item label="损耗量(吨)" span="1" prop="ioss">
|
|
{{(deptBudgetList.cumulativeStockIn-deptBudgetList.cumulativeStockOut)-deptBudgetList.physicalInventory > 0 ? (deptBudgetList.cumulativeStockIn-deptBudgetList.cumulativeStockOut)-deptBudgetList.physicalInventory : 0}}
|
|
{{(deptBudgetList.cumulativeStockIn-deptBudgetList.cumulativeStockOut)-deptBudgetList.physicalInventory > 0 ? (deptBudgetList.cumulativeStockIn-deptBudgetList.cumulativeStockOut)-deptBudgetList.physicalInventory : 0}}
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
-
|
|
|
|
<!--库损比例-->
|
|
<!--库损比例-->
|
|
<ws-form-item label="库损比例" span="1" prop="inventoryRatio">
|
|
<ws-form-item label="库损比例" span="1" prop="inventoryRatio">
|
|
<!-- .占比=损耗量÷(累计入库-实际库存) -->
|
|
<!-- .占比=损耗量÷(累计入库-实际库存) -->
|
|
@@ -178,9 +177,9 @@ export default {
|
|
this.deptBudgetList.binNumber = this.$route.query.binNumber
|
|
this.deptBudgetList.binNumber = this.$route.query.binNumber
|
|
this.deptBudgetList1.warehouseName = this.$route.query.warehouseName
|
|
this.deptBudgetList1.warehouseName = this.$route.query.warehouseName
|
|
this.deptBudgetList1.binNumber = this.$route.query.binNumber
|
|
this.deptBudgetList1.binNumber = this.$route.query.binNumber
|
|
- this.deptBudgetList1.baseId=this.this.$route.query.baseId
|
|
|
|
|
|
+ this.deptBudgetList1.baseId=this.$route.query.baseId
|
|
this.deptBudgetList1.positionId=this.$route.query.positionId
|
|
this.deptBudgetList1.positionId=this.$route.query.positionId
|
|
- this.deptBudgetList1.goodsNameKey=this.deptBudgetList.goodsNameKey
|
|
|
|
|
|
+ // this.deptBudgetList1.goodsNameKey=this.deptBudgetList.goodsNameKey
|
|
// this.getList()
|
|
// this.getList()
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
@@ -196,10 +195,14 @@ export default {
|
|
this.deptBudgetList.loss=(this.deptBudgetList.cumulativeStockIn-this.deptBudgetList.cumulativeStockOut)-this.deptBudgetList.physicalInventory
|
|
this.deptBudgetList.loss=(this.deptBudgetList.cumulativeStockIn-this.deptBudgetList.cumulativeStockOut)-this.deptBudgetList.physicalInventory
|
|
this.deptBudgetList.inventoryRatio=((this.deptBudgetList.cumulativeStockIn-this.deptBudgetList.cumulativeStockOut)-this.deptBudgetList.physicalInventory)/(this.deptBudgetList.cumulativeStockIn-this.deptBudgetList.physicalInventory)
|
|
this.deptBudgetList.inventoryRatio=((this.deptBudgetList.cumulativeStockIn-this.deptBudgetList.cumulativeStockOut)-this.deptBudgetList.physicalInventory)/(this.deptBudgetList.cumulativeStockIn-this.deptBudgetList.physicalInventory)
|
|
this.deptBudgetList.baseId=this.deptBudgetList1.baseId
|
|
this.deptBudgetList.baseId=this.deptBudgetList1.baseId
|
|
- this.deptBudgetList.positionId=this.deptBudgetList1.positionId
|
|
|
|
- this.deptBudgetList.binNumber=this.deptBudgetList1.binNumber
|
|
|
|
- this.deptBudgetList.warehouseName=this.deptBudgetList1.warehouseName
|
|
|
|
- this.deptBudgetList.goodsNameKey=this.deptBudgetList1.goodsNameKey
|
|
|
|
|
|
+ this.deptBudgetList.positionId=this.deptBudgetList1.positionId
|
|
|
|
+ this.deptBudgetList.binNumber=this.deptBudgetList1.binNumber
|
|
|
|
+ this.deptBudgetList.warehouseName=this.deptBudgetList1.warehouseName
|
|
|
|
+ for (var i = 0; i < this.goodnameList.length; i++) {
|
|
|
|
+ if (this.goodnameList[i].goodsName == this.deptBudgetList.goodsName) {
|
|
|
|
+ this.deptBudgetList.goodsNameKey = this.goodnameList[i].goodsNameKey
|
|
|
|
+ }
|
|
|
|
+ }
|
|
this.deptBudgetList.compId = this.compId
|
|
this.deptBudgetList.compId = this.compId
|
|
this.deptBudgetList.contractType = 1
|
|
this.deptBudgetList.contractType = 1
|
|
console.log(this.deptBudgetList)
|
|
console.log(this.deptBudgetList)
|
|
@@ -214,7 +217,6 @@ export default {
|
|
return false
|
|
return false
|
|
}
|
|
}
|
|
})
|
|
})
|
|
- // this.$router.push({ path: 'warehouseManagementList' })
|
|
|
|
},
|
|
},
|
|
dateFormat(fmt, date) {
|
|
dateFormat(fmt, date) {
|
|
let ret
|
|
let ret
|
|
@@ -252,20 +254,11 @@ export default {
|
|
this.getList()
|
|
this.getList()
|
|
},
|
|
},
|
|
changeioss(e){
|
|
changeioss(e){
|
|
- console.log(e)
|
|
|
|
for (var i = 0; i < this.goodnameList.length; i++) {
|
|
for (var i = 0; i < this.goodnameList.length; i++) {
|
|
if (this.goodnameList[i].goodsName == e) {
|
|
if (this.goodnameList[i].goodsName == e) {
|
|
this.deptBudgetList.goodsNameKey = this.goodnameList[i].goodsNameKey
|
|
this.deptBudgetList.goodsNameKey = this.goodnameList[i].goodsNameKey
|
|
}
|
|
}
|
|
- }
|
|
|
|
- // console.log(this.deptBudgetList)
|
|
|
|
- // for (var i = 0; i < this.packtypeList.length; i++) {
|
|
|
|
- // console.log(this.packtypeList[i].goodsName)
|
|
|
|
- // if (this.packtypeList[i].goodsName == e) {
|
|
|
|
- // this.getLook(this.packtypeList[i].id)
|
|
|
|
- // // console.log(this.packtypeList[i].positionId)
|
|
|
|
- // }
|
|
|
|
- // }
|
|
|
|
|
|
+ }
|
|
this.ioss()
|
|
this.ioss()
|
|
},
|
|
},
|
|
ioss(){
|
|
ioss(){
|
|
@@ -274,9 +267,7 @@ export default {
|
|
)
|
|
)
|
|
.toPromise()
|
|
.toPromise()
|
|
.then((response) => {
|
|
.then((response) => {
|
|
- this.deptBudgetList=response
|
|
|
|
- console.log(this.deptBudgetList)
|
|
|
|
-
|
|
|
|
|
|
+ this.deptBudgetList=response
|
|
})
|
|
})
|
|
},
|
|
},
|
|
loaddata() {
|
|
loaddata() {
|
|
@@ -287,35 +278,6 @@ export default {
|
|
this.goodnameList = response
|
|
this.goodnameList = response
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- // getList() {
|
|
|
|
- // getList({
|
|
|
|
- // compId: sessionStorage.getItem('ws-pf_compId'),
|
|
|
|
- // contractType: this.contractType,
|
|
|
|
- // currentPage: this.currentPage,
|
|
|
|
- // pageSize: this.pageSize,
|
|
|
|
- // searchType: this.searchType,
|
|
|
|
- // searchKeyWord: this.searchKeyWord,
|
|
|
|
- // startDate: this.startDate,
|
|
|
|
- // endDate: this.endDate,
|
|
|
|
- // contrPage: this.contrPage,
|
|
|
|
- // })
|
|
|
|
- // .toPromise()
|
|
|
|
- // .then((response) => {
|
|
|
|
- // for (var i = 0; i < response.records.length; i++) {
|
|
|
|
- // if (response.records[i].addressUrl != null) {
|
|
|
|
- // response.records[i].addressUrlArray = response.records[
|
|
|
|
- // i
|
|
|
|
- // ].addressUrl.split(',')
|
|
|
|
- // } else {
|
|
|
|
- // response.records[i].addressUrlArray = []
|
|
|
|
- // }
|
|
|
|
- // }
|
|
|
|
- // this.deptCircularPage.currentPage = response.current
|
|
|
|
- // this.deptCircularPage.pageSize = response.size
|
|
|
|
- // this.deptBudgetTotal = response.total
|
|
|
|
- // this.contractList = response
|
|
|
|
- // })
|
|
|
|
- // },
|
|
|
|
selecttaskType(e) {
|
|
selecttaskType(e) {
|
|
for (var i = 0; i < this.taskTypeList.length; i++) {
|
|
for (var i = 0; i < this.taskTypeList.length; i++) {
|
|
if (this.taskTypeList[i].value == e) {
|
|
if (this.taskTypeList[i].value == e) {
|
|
@@ -335,7 +297,6 @@ export default {
|
|
this.historyList = response
|
|
this.historyList = response
|
|
})
|
|
})
|
|
},
|
|
},
|
|
-
|
|
|
|
// deletecontract(){},
|
|
// deletecontract(){},
|
|
//删除
|
|
//删除
|
|
approve() {},
|
|
approve() {},
|