|
@@ -23,7 +23,7 @@
|
|
|
<div class="center">
|
|
|
<ws-form ref="deptBudgetList" :model="deptBudgetList" :rules="rules">
|
|
|
<h2>
|
|
|
- {{ deptBudgetList1.warehouseName }}库
|
|
|
+ {{ deptBudgetList1.warehouseName }}
|
|
|
<span class="position"> {{ deptBudgetList1.binNumber }}仓位 </span>
|
|
|
</h2>
|
|
|
<!-- 货名 -->
|
|
@@ -248,8 +248,9 @@ export default {
|
|
|
// .占比=损耗量÷(累计入库-实际库存)
|
|
|
num = Math.floor((loss / defect) * 1000000) / 1000
|
|
|
}
|
|
|
-
|
|
|
- return num
|
|
|
+ // this.deptBudgetList.inventoryRatio = this.deptBudgetList.inventoryRatio.toFixed(3)
|
|
|
+ // this.deptBudgetList.inventoryRatio = num
|
|
|
+ return num
|
|
|
},
|
|
|
},
|
|
|
activated() {
|
|
@@ -258,6 +259,7 @@ export default {
|
|
|
// this.getVesselData();
|
|
|
this.loaddata()
|
|
|
this.showType = this.isShow
|
|
|
+ console.log(this.deptBudgetList)
|
|
|
},
|
|
|
|
|
|
mounted() {
|
|
@@ -284,6 +286,14 @@ export default {
|
|
|
},
|
|
|
//提交按钮
|
|
|
submit() {
|
|
|
+ if(this.deptBudgetList.physicalInventory <= 0){
|
|
|
+ this.$message({
|
|
|
+ message: '请填写实际库存!',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
this.$refs.deptBudgetList.validate((valid) => {
|
|
|
if (valid) {
|
|
|
this.deptBudgetList.surplusInventory =
|
|
@@ -315,7 +325,7 @@ export default {
|
|
|
}
|
|
|
this.deptBudgetList.compId = this.compId
|
|
|
this.deptBudgetList.contractType = 1
|
|
|
-
|
|
|
+ console.log(this.deptBudgetList)
|
|
|
submitioss(this.deptBudgetList)
|
|
|
.toPromise()
|
|
|
.then((response) => {
|
|
@@ -378,7 +388,11 @@ export default {
|
|
|
this.ioss()
|
|
|
},
|
|
|
ioss() {
|
|
|
- ioss(this.deptBudgetList)
|
|
|
+ ioss({baseId:this.deptBudgetList.baseId,
|
|
|
+positionId: this.deptBudgetList.positionId,
|
|
|
+goodsNameKey:this.deptBudgetList.goodsNameKey,
|
|
|
+goodsName:this.deptBudgetList.goodsName,
|
|
|
+})
|
|
|
.toPromise()
|
|
|
.then((response) => {
|
|
|
this.deptBudgetList = response
|