-
-
+
+
-
-
-
+
+
+
@@ -39,9 +39,9 @@
:picker-options="pickerOptions" @change="baseInfo.intoDate=formatDateTime(baseInfo.intoDate)">
-
+
@@ -284,14 +284,18 @@ export default {
//查询查询食堂下拉结构
getWarehouseInInfoApi(param).then((response) => {
this.baseInfo = response.data;
- this.materialList = this.baseInfo.imsIntoInventoryDetailAddList;
+ this.materialList = this.baseInfo.imsIntoInventoryDetailVOList;
+ this.$set(this.baseInfo,'areaId',Number(this.baseInfo.areaId))
this.materialList.forEach(item=>{
this.$set(item,"unitPrice",Number(item.unitPrice)/100)
})
drpWareHousePageApi({ areaId:this.baseInfo.areaId }).then((response) => {
this.wareHouseOptions = response.rows||[];
- this.$set(this.baseInfo,'warehouseId',this.baseInfo.warehouseId)
+ this.$set(this.baseInfo,'warehouseId',Number(this.baseInfo.warehouseId))
});
+ supplierPageApi({ isPaging:1,areaIdList:[] }).then((response) => {
+ this.supplierOptions = response.rows||[];
+ });
});
},
//区域树
@@ -415,9 +419,9 @@ export default {
if (valid) {
let param = Object.assign({},this.baseInfo);
param.intoDate = this.formatDateTime(this.baseInfo.intoDate)
- param.orderAmount=0
+ param.totalAmount=0
param.totalNum=0
- param.status=1
+ param.status=2
param.imsIntoInventoryDetailAddList = []
this.noMaterial = false;
if(this.materialList.length>0){
@@ -428,7 +432,7 @@ export default {
let obj = Object.assign({}, item)
obj.unitPrice = Number(obj.unitPrice)*100
obj.totalPrice = (Number(obj.unitPrice)*Number(obj.purNum))
- param.totalAmount = param.orderAmount+obj.totalPrice;
+ param.totalAmount = param.totalAmount+obj.totalPrice;
param.totalNum = param.totalNum+Number(obj.purNum)
param.imsIntoInventoryDetailAddList.push(obj)
}
@@ -475,7 +479,7 @@ export default {
if (valid) {
let param = Object.assign({},this.baseInfo);
param.intoDate = this.formatDateTime(this.baseInfo.intoDate)
- param.orderAmount=0
+ param.totalAmount=0
param.totalNum=0
param.status=2
param.imsIntoInventoryDetailAddList = []
@@ -488,7 +492,7 @@ export default {
let obj = Object.assign({}, item)
obj.unitPrice = Number(obj.unitPrice)*100
obj.totalPrice = (Number(obj.unitPrice)*Number(obj.purNum))
- param.totalAmount = param.orderAmount+obj.totalPrice;
+ param.totalAmount = param.totalAmount+obj.totalPrice;
param.totalNum = param.totalNum+Number(obj.purNum)
param.imsIntoInventoryDetailAddList.push(obj)
}
diff --git a/src/views/foodManage/stockManage/warehouseIn/index.vue b/src/views/foodManage/stockManage/warehouseIn/index.vue
index eb6f2ff9..857d3ac8 100644
--- a/src/views/foodManage/stockManage/warehouseIn/index.vue
+++ b/src/views/foodManage/stockManage/warehouseIn/index.vue
@@ -15,8 +15,8 @@
:picker-options="pickerOptions" >
-
-
+
+
@@ -79,15 +79,15 @@
{{(queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1}}
-
+
待入库
已入库
-
-
+
+
采购入库
@@ -99,22 +99,20 @@
期初入库
-
-
-
-
+
+
- {{ (scope.row.orderAmount/100).toFixed(2) }}
+ {{ (scope.row.totalAmount/100).toFixed(2) }}
-
-
-
-
-
+
+
+
+
+