From 44aecc47333d587b52ba755bbdcdba54ad19aee9 Mon Sep 17 00:00:00 2001 From: zzyuan <781948537@qq.com> Date: Wed, 9 Jul 2025 14:47:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=93=E5=AD=98=E6=8E=A5=E5=8F=A3=E5=AF=B9?= =?UTF-8?q?=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../stockManage/totalStock/index.vue | 10 +++++-- .../stockManage/warehouseIn/detail.vue | 4 +-- .../stockManage/warehouseOut/detail.vue | 4 +-- .../stockManage/warehouseOut/edit.vue | 29 +++++++------------ .../stockManage/warehouseOut/index.vue | 4 +-- 5 files changed, 24 insertions(+), 27 deletions(-) diff --git a/src/views/foodManage/stockManage/totalStock/index.vue b/src/views/foodManage/stockManage/totalStock/index.vue index f4a65291..55c918a8 100644 --- a/src/views/foodManage/stockManage/totalStock/index.vue +++ b/src/views/foodManage/stockManage/totalStock/index.vue @@ -64,7 +64,7 @@ {{(queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1}} - + @@ -73,7 +73,11 @@ - + + + - +
- + @@ -68,7 +68,7 @@ diff --git a/src/views/foodManage/stockManage/warehouseOut/detail.vue b/src/views/foodManage/stockManage/warehouseOut/detail.vue index 900dd130..28d5e155 100644 --- a/src/views/foodManage/stockManage/warehouseOut/detail.vue +++ b/src/views/foodManage/stockManage/warehouseOut/detail.vue @@ -172,12 +172,12 @@ export default { getContractInfo(){ console.log(this.pageJson) let param = { - orderGoodsId:this.pageJson.orderGoodsId + outId:this.pageJson.outId } //查询查询食堂下拉结构 getWarehouseOutInfoApi(param).then((response) => { this.baseInfo = response.data; - this.materialLis = this.baseInfo.orderGoodsDetailList; + this.materialLis = this.baseInfo.imsOutInventoryDetailVOList; }); }, // 多选框选中数据 diff --git a/src/views/foodManage/stockManage/warehouseOut/edit.vue b/src/views/foodManage/stockManage/warehouseOut/edit.vue index 4e6af3e0..fa7e73d1 100644 --- a/src/views/foodManage/stockManage/warehouseOut/edit.vue +++ b/src/views/foodManage/stockManage/warehouseOut/edit.vue @@ -234,13 +234,13 @@ export default { getContractInfo(){ console.log(this.pageJson) let param = { - orderGoodsId:this.pageJson.orderGoodsId + outId:this.pageJson.outId } //查询查询食堂下拉结构 getWarehouseOutInfoApi(param).then((response) => { this.baseInfo = response.data; - this.materialList = this.baseInfo.imsOutInventoryDetailAddList; - // this.materialList.forEach(item=>{ + this.materialList = this.baseInfo.imsOutInventoryDetailVOList; + // this.materialList.forEach(item=>{ // this.$set(item,"unitPrice",Number(item.unitPrice)/100) // }) drpWareHousePageApi({ areaId:this.baseInfo.areaId }).then((response) => { @@ -343,8 +343,7 @@ export default { handleSelectionChange2(selection) { this.batchChosenMaterial = selection; this.batchChosenMaterial.forEach(item=>{ - this.$set(item,"fetchNum",0) - // this.$set(item,"unitPrice",item.unitPrice/100) + this.$set(item,"fetchNum",0) }) }, confirmChosen(){ @@ -373,11 +372,8 @@ export default { if(item.fetchNum==0){ this.noMaterial = true }else{ - let obj = Object.assign({}, item) - // obj.unitPrice = Number(obj.unitPrice)*100 - // obj.totalPrice = (Number(obj.unitPrice)*Number(obj.fetchNum)) - // param.totalAmount = param.totalAmount+obj.totalPrice; - // param.totalNum = param.totalNum+Number(obj.fetchNum) + let obj = Object.assign({}, item) + param.totalNum = param.totalNum+Number(obj.fetchNum) param.imsOutInventoryDetailAddList.push(obj) } }) @@ -394,7 +390,7 @@ export default { this.$modal.msgError("请添加货品!"); }else{ this.loadingBtn=true; - if (this.baseInfo.orderGoodsId != undefined) { + if (this.baseInfo.outId != undefined) { editWarehouseOutApi(param).then((response) => { this.$modal.msgSuccess("修改成功"); this.loadingBtn=false @@ -433,12 +429,9 @@ export default { if(item.fetchNum==0){ this.noMaterial = true }else{ - let obj = Object.assign({}, item) - // obj.unitPrice = Number(obj.unitPrice)*100 - // obj.totalPrice = (Number(obj.unitPrice)*Number(obj.fetchNum)) - // param.totalAmount = param.totalAmount+obj.totalPrice; - // param.totalNum = param.totalNum+Number(obj.fetchNum) - param.imsOutInventoryDetailAddList.push(obj) + let obj = Object.assign({}, item) + param.totalNum = param.totalNum+Number(obj.fetchNum) + param.imsOutInventoryDetailAddList.push(obj) } }) } @@ -454,7 +447,7 @@ export default { this.$modal.msgError("请添加货品!"); }else{ this.loadingBtn=true; - if (this.baseInfo.orderGoodsId != undefined) { + if (this.baseInfo.outId != undefined) { editWarehouseOutApi(param).then((response) => { this.$modal.msgSuccess("修改成功"); this.loadingBtn=false diff --git a/src/views/foodManage/stockManage/warehouseOut/index.vue b/src/views/foodManage/stockManage/warehouseOut/index.vue index ed2384cb..38796517 100644 --- a/src/views/foodManage/stockManage/warehouseOut/index.vue +++ b/src/views/foodManage/stockManage/warehouseOut/index.vue @@ -107,9 +107,9 @@ --> - +