From dd845fb8c3972ba17b070e486ebf36f87378a587 Mon Sep 17 00:00:00 2001 From: yangfeng <wanwan926_4@163.com> Date: 星期五, 22 九月 2023 10:39:19 +0800 Subject: [PATCH] 出入库编辑接口联调、公共组件样式优化、添加产品页面优化 --- src/views/overview/AddOverviewDialog.vue | 21 +++++++++++---------- 1 files changed, 11 insertions(+), 10 deletions(-) diff --git a/src/views/overview/AddOverviewDialog.vue b/src/views/overview/AddOverviewDialog.vue index a2df069..94908bd 100644 --- a/src/views/overview/AddOverviewDialog.vue +++ b/src/views/overview/AddOverviewDialog.vue @@ -364,13 +364,13 @@ this.showEdit = false this.showFooter = true this.isValidateClick = false - } else if (this.editConfig.infomation.status === "瀹屾垚") { + } else if (this.editConfig.infomation.status === 4) { this.showButton = true this.showEdit = false this.isDelClick = true this.showFooter = false this.isValidateClick = false - } else if (this.editConfig.infomation.status === "宸插彇娑�") { + } else if (this.editConfig.infomation.status === 5) { this.showButton = true this.showEdit = false this.showFooter = false @@ -442,15 +442,15 @@ let contacterID = 0 let contacterName = "" if (this.editConfig.title === "鏂板缓") { - companyID = this.companyObj.length === 0 ? 0 : this.companyObj.value - companyName = this.companyObj.length === 0 ? 0 : this.companyObj.label - contacterID = this.contacterObj.length === 0 ? 0 : this.contacterObj.value - contacterName = this.contacterObj.length === 0 ? 0 : this.contacterObj.label + companyID = Object.keys(this.companyObj).length === 0 ? 0 : this.companyObj.value + companyName = Object.keys(this.companyObj).length === 0 ? 0 : this.companyObj.label + contacterID = Object.keys(this.contacterObj).length === 0 ? 0 : this.contacterObj.value + contacterName = Object.keys(this.contacterObj).length === 0 ? 0 : this.contacterObj.label } else { - companyID = this.companyObj.length === 0 ? data.companyID : this.companyObj.value - companyName = this.companyObj.length === 0 ? data.companyName : this.companyObj.label - contacterID = this.contacterObj.length === 0 ? data.contacterID : this.contacterObj.value - contacterName = this.contacterObj.length === 0 ? data.contacterName : this.contacterObj.label + companyID = Object.keys(this.companyObj).length === 0 ? data.companyID : this.companyObj.value + companyName = Object.keys(this.companyObj).length === 0 ? data.companyName : this.companyObj.label + contacterID = Object.keys(this.contacterObj).length === 0 ? data.contacterID : this.contacterObj.value + contacterName = Object.keys(this.contacterObj).length === 0 ? data.contacterName : this.contacterObj.label } let params = { comment: data.comment || "", @@ -464,6 +464,7 @@ number: "", operationDate: data.operationDate || "", operationTypeId: this.editConfig.operationTypeId, + operationTypeName: this.receiptType, sourceNumber: data.sourceNumber || "", status: 3, toLocationId: data.toLocationId || 0 -- Gitblit v1.8.0