From 860caf69d5f6846b17690f651f5b082efcbc37d0 Mon Sep 17 00:00:00 2001 From: zhangdi <15053473693@163.com> Date: Tue, 20 Jan 2026 15:15:10 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8E=B7=E5=8F=96=E6=95=B0=E6=8D=AE=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/firstOrder/components/inDialog.vue | 10 ++-- src/views/firstOrder/components/outDialog.vue | 55 ++++++++++--------- src/views/secondOrder/components/inDialog.vue | 12 +++- .../secondOrder/components/outDialog.vue | 32 +++++------ 4 files changed, 59 insertions(+), 50 deletions(-) diff --git a/src/views/firstOrder/components/inDialog.vue b/src/views/firstOrder/components/inDialog.vue index 4fad5a1..8ae2baf 100644 --- a/src/views/firstOrder/components/inDialog.vue +++ b/src/views/firstOrder/components/inDialog.vue @@ -567,6 +567,8 @@ import { editList, getStatistics, } from "@/api/firstOrder/inbound"; +import { mapGetters } from "vuex"; + export default { props: { repairVisible: { @@ -608,10 +610,7 @@ export default { quarterName: "", purchaseEndInfo: "", //采购单信息 userInfoVO: { - userId: "用户ID", - name: "用户名称", - mainErDepartment: "1", - mainErDepartmentName: "主管部门名称", + }, ldOnePutStorageDetailVOList: [], //入库明细 }, @@ -624,6 +623,7 @@ export default { }; }, computed: { + ...mapGetters(["userInfo"]), inDate() { const now = new Date(); const year = now.getFullYear(); @@ -644,6 +644,7 @@ export default { } this.getBatchOptions(); this.getMaterialList(); + this.sizeForm.userInfoVO = this.userInfo; }, methods: { // 批量 更改明细表数据 @@ -979,6 +980,7 @@ export default { this.sizeForm.option = ""; } try { + const res = await submitData(this.sizeForm); if (res.data.success) { this.$message({ diff --git a/src/views/firstOrder/components/outDialog.vue b/src/views/firstOrder/components/outDialog.vue index 33d0e22..1f2166d 100644 --- a/src/views/firstOrder/components/outDialog.vue +++ b/src/views/firstOrder/components/outDialog.vue @@ -199,7 +199,7 @@ @@ -380,7 +379,6 @@ 易耗品 耐用品 @@ -433,6 +431,8 @@ import { import consumableDialog from "./consumableDialog.vue"; import batchSelectionDialog from "./batchSelectionDialog.vue"; import { getStatistics } from "@/api/firstOrder/inbound"; +import { mapGetters } from "vuex"; + export default { components: { consumableDialog, @@ -487,12 +487,7 @@ export default { materialType: "1", //物资类型 status: "", //1暂存 2提交 // materialld: '',//物资Id - userInfoVO: { - userId: "用户ID", - name: "用户名称", - mainErDepartment: "1", - mainErDepartmentName: "主管部门名称", - }, + userInfoVO: {}, }, // inTableData: [], inBatchDialogVisible: false, //选择采购单的数据 @@ -508,6 +503,7 @@ export default { }; }, computed: { + ...mapGetters(["userInfo"]), outDate() { const now = new Date(); const year = now.getFullYear(); @@ -524,6 +520,7 @@ export default { this.inInit(); } this.getDetailedItems(); + this.sizeForm.userInfoVO = this.userInfo; // this.getMaterialList() }, methods: { @@ -572,15 +569,18 @@ export default { // if ( (this.sizeForm.options == 1 && - this.inBatchForm.optionType == "NY")||(this.sizeForm.options == 2 && - this.sizeForm.optionType == "NY") + this.inBatchForm.optionType == "NY") || + (this.sizeForm.options == 2 && this.sizeForm.optionType == "NY") ) { const detailList = this.sizeForm.inTableData.filter( (item) => item.materialCode === stat.materialCode && item.materialName === stat.materialName ); - detail.theOutboundQuantity = detailList.reduce((acc, cur) => acc + cur.num, 0); + detail.theOutboundQuantity = detailList.reduce( + (acc, cur) => acc + cur.num, + 0 + ); } return { @@ -947,8 +947,11 @@ export default { this.sizeForm.outDate = ldOneOutStorage.outDate; this.sizeForm.options = Number(ldOneOutStorage.options); this.sizeForm.optionType = ldOneOutStorage.optionType; - this.batchSelectionVisible = false - console.log( res.data.result.ldOneOutStorageDetails, "this.sizeForm.options"); + this.batchSelectionVisible = false; + console.log( + res.data.result.ldOneOutStorageDetails, + "this.sizeForm.options" + ); this.$set( this.sizeForm, "inTableData", @@ -1019,7 +1022,7 @@ export default { padding-right: 10px; } ::v-deep.el-table th.el-table__cell { - background: #F5F7FA; - font-weight: 500; + background: #f5f7fa; + font-weight: 500; } diff --git a/src/views/secondOrder/components/inDialog.vue b/src/views/secondOrder/components/inDialog.vue index a82f6db..4c8123e 100644 --- a/src/views/secondOrder/components/inDialog.vue +++ b/src/views/secondOrder/components/inDialog.vue @@ -88,6 +88,8 @@