From ce5d1ceab7912d4b305f14ac818a4f057f3aa0c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=9C=84?= Date: Wed, 3 Jan 2024 15:15:34 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E6=9C=AA=E7=AC=A6=E5=90=88=E9=A1=B9?= =?UTF-8?q?=E4=BA=BA=E5=91=98=E4=BF=9D=E5=AD=98=E8=8D=89=E7=A8=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../noMatchTrackingProcess/NoMatchTrackingProcess.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/views/workCenter/noMatchTrackingProcess/NoMatchTrackingProcess.vue b/src/views/workCenter/noMatchTrackingProcess/NoMatchTrackingProcess.vue index 52ea1e83..457cd5d8 100644 --- a/src/views/workCenter/noMatchTrackingProcess/NoMatchTrackingProcess.vue +++ b/src/views/workCenter/noMatchTrackingProcess/NoMatchTrackingProcess.vue @@ -422,6 +422,7 @@ export default { this.businessInfo = draftResult.businessInfo this.dataSource = draftResult.dataSource || [] this.approvalInfo = draftResult.approvalInfo + this.draftInitPersonInfo(draftResult.userInfo || {}) } else { this.processInfo = result.basicProcessInfoDTO || {} this.dataSource = result.businessInfoDTO.processProjectNotMetLinks || [] @@ -521,13 +522,14 @@ export default { const processInfo = Object.assign(this.processInfo, this.processInfoForm.getFieldsValue()) const businessInfo = Object.assign(this.businessInfo, this.businessInfoForm.getFieldsValue()) const approvalInfo = Object.assign(this.approvalInfo, this.approvalInfoForm.getFieldsValue()) - const checkValueArr = Object.values({ ...processInfo, ...businessInfo, ...approvalInfo }) + const userInfo = this.$refs.personnelInfo.getDataObj() + const checkValueArr = Object.values({ ...processInfo, ...businessInfo, ...approvalInfo, ...userInfo }) if (!checkValueArr.some(tt => !tt) && this.dataSource.length === 0) { // 提示至少填写一项 this.$message.warning(this.$t('pleaseFillInAtLeastOneItem')) return } - const formData = { processInfo, businessInfo, approvalInfo, dataSource: this.dataSource } + const formData = { processInfo, businessInfo, approvalInfo, dataSource: this.dataSource, userInfo } this.loading = true saveNoMatchTrackingProcess({ infoJsonStr: JSON.stringify(formData) }).then(res => { if (res.success) {