From fbdb1d15b6cf692d27598806eee6be6f16e1f36d Mon Sep 17 00:00:00 2001 From: yangfeng <wanwan926_4@163.com> Date: 星期五, 22 九月 2023 17:54:55 +0800 Subject: [PATCH] 产品出入库明细接口联调、调拨列表接口联调、出入库搜索功能增加 --- src/views/overview/AddOverviewDialog.vue | 32 +++++++++++++++++--------------- 1 files changed, 17 insertions(+), 15 deletions(-) diff --git a/src/views/overview/AddOverviewDialog.vue b/src/views/overview/AddOverviewDialog.vue index 7e31f48..b984d55 100644 --- a/src/views/overview/AddOverviewDialog.vue +++ b/src/views/overview/AddOverviewDialog.vue @@ -8,7 +8,7 @@ > <!-- 澶� --> <div slot="title" class="dialog-header"> - <span>{{ editCommonConfig.title + addName }}</span> + <span>{{ editCommonConfig.title === "鏌ョ湅" ? editCommonConfig.title : editCommonConfig.title + addName }}</span> <div class="header_btns"> <span class="btn"> <i class="el-icon-printer"></i> @@ -160,7 +160,7 @@ <div class="purchase-view"> <div class="left"> <div class="second-label">鍏朵粬淇℃伅</div> - <el-form-item v-if="workType !== 1" label="閫佽揣绛栫暐" prop="client_name"> + <!-- <el-form-item v-if="workType !== 1" label="閫佽揣绛栫暐" prop="client_name"> <el-select v-model="editConfig.infomation.memberId" placeholder="璇烽�夋嫨" @@ -171,7 +171,7 @@ <el-option v-for="item in memberOptions" :key="item.id" :label="item.username" :value="item.id"> </el-option> </el-select> - </el-form-item> + </el-form-item> --> <el-form-item label="璐熻矗浜�" prop="contacterName"> <el-select v-model="editConfig.infomation.contacterName" @@ -321,7 +321,7 @@ detailId: 0, isNoDetail: false, // 娣诲姞璇︽儏鏄庣粏琛屾椂鏄惁鏈�夋嫨 tableColumn: [], - receiptType: this.addName, // 鍏ュ簱绫诲瀷 + receiptType: "", // 鍏ュ簱绫诲瀷 companyObj: {}, contacterObj: {}, isValidateClick: false // 楠岃瘉鏄惁鏄剧ず @@ -333,6 +333,7 @@ this.setDetailTableForm() this.getCompanyList() this.getLocationList() + this.receiptType = this.editConfig.title === "鏌ョ湅" ? this.editConfig.infomation.operationTypeName : this.addName }, methods: { // 鑾峰彇鍏徃鍒楄〃 @@ -364,13 +365,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 +443,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 ? "" : this.companyObj.label + contacterID = Object.keys(this.contacterObj).length === 0 ? 0 : this.contacterObj.value + contacterName = Object.keys(this.contacterObj).length === 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 +465,7 @@ number: "", operationDate: data.operationDate || "", operationTypeId: this.editConfig.operationTypeId, + operationTypeName: this.receiptType, sourceNumber: data.sourceNumber || "", status: 3, toLocationId: data.toLocationId || 0 @@ -667,7 +669,7 @@ ::v-deep { .el-dialog__headerbtn { position: absolute; - top: 18px; + top: 15px; } .el-button { &:hover { -- Gitblit v1.8.0