diff --git a/src/views/foodManage/stockManage/warehouseIn/detail.vue b/src/views/foodManage/stockManage/warehouseIn/detail.vue index b28e03fd..4c0f54db 100644 --- a/src/views/foodManage/stockManage/warehouseIn/detail.vue +++ b/src/views/foodManage/stockManage/warehouseIn/detail.vue @@ -4,7 +4,7 @@ - {{baseInfo.inToWareHouseCode}} + {{baseInfo.intoCode}} @@ -26,12 +26,8 @@ - {{ baseInfo.inToWareHouseTime }} - - - - {{ baseInfo.remark }} - + {{ baseInfo.intoDate }} + @@ -56,18 +52,21 @@ 称重 --> - + + + + - + - + @@ -163,7 +162,7 @@ export default { //查询查询食堂下拉结构 getWarehouseInInfoApi(param).then((response) => { this.baseInfo = response.data; - this.materialLis = this.baseInfo.orderGoodsDetailList; + this.materialLis = this.baseInfo.imsIntoInventoryDetailVOList; }); }, // 多选框选中数据 diff --git a/src/views/foodManage/stockManage/warehouseIn/edit.vue b/src/views/foodManage/stockManage/warehouseIn/edit.vue index 5ed1e0d3..8b78ed3e 100644 --- a/src/views/foodManage/stockManage/warehouseIn/edit.vue +++ b/src/views/foodManage/stockManage/warehouseIn/edit.vue @@ -2,8 +2,8 @@
- - + + - - - + + + @@ -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}} - + - - + + - - - - + + - - - - - + + + + +