From b7c27bbd3582654855821e4283fb60ecd841dafa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8C=83=E5=BC=BA=E5=BC=BA?= <787203167> Date: Tue, 13 Jun 2023 17:46:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=B9=E6=8E=A5Pre-Homo=E6=B5=81=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/phoneView/preHomoMangement.vue | 77 +++++++++++++++++-- 1 file changed, 70 insertions(+), 7 deletions(-) diff --git a/jero-web/src/views/phoneView/preHomoMangement.vue b/jero-web/src/views/phoneView/preHomoMangement.vue index 1ab62ac88..317f58ccd 100644 --- a/jero-web/src/views/phoneView/preHomoMangement.vue +++ b/jero-web/src/views/phoneView/preHomoMangement.vue @@ -60,7 +60,7 @@
{{item.fileName}}
@@ -71,17 +71,23 @@ - +
- 客户收到付款就的航空技术的发货的收费但是.pdf + {{item.fileName}}
-
- 客户收到付款就的航空技术的发货的收费但是.pdf +
+ {{queryForm.deliveryResult == '1' ? $t('yes') :$t('not')}} +
+
+ {{queryForm.deliveryResult}}
@@ -228,6 +234,7 @@ import { Dialog, Toast } from 'vant' import Vue from 'vue' import { ACCESS_TOKEN } from '@/store/mutation-types' + import { kkFileView } from '@/utils/kkfileView' import axios from 'axios' export default { @@ -245,6 +252,7 @@ queryProject: {}, dataSourceFile: [], deliverablesResultFile: [], + deliveryResultList: [], url: { queryProjectCertificationInventoryById: '/phone/toDoCenter/queryProjectCertificationInventoryById', saveBatch: '/project/projectCertificationInventoryEO/saveBatch' @@ -259,6 +267,39 @@ iconClick() { this.$router.go(-1) }, + + getFileInfos(item) { + getAction('sys/common/getFileInfos', { id: item }).then((res) => { + if (res.success) { + this.deliveryResultList = res.result + this.deliveryResultList.forEach((val) => { + let fileName = val.fileName + let index1 = fileName.lastIndexOf('.') + let index2 = fileName.length + let fileSuffix = fileName.substring(index1, index2) + val.fileSuffix = fileSuffix + }) + } else { + this.deliveryResultList = [] + } + }) + }, + getDeliveryResult(item) { + getAction('sys/common/getFileInfos', { id: item }).then((res) => { + if (res.success) { + this.dataSourceFile = res.result + this.dataSourceFile.forEach((val) => { + let fileName = val.fileName + let index1 = fileName.lastIndexOf('.') + let index2 = fileName.length + let fileSuffix = fileName.substring(index1, index2) + val.fileSuffix = fileSuffix + }) + } else { + this.dataSourceFile = [] + } + }) + }, disposeResultChange(value) { if (value == 'rzgcssc_tg') { this.form.reasonForReturn = '' @@ -274,6 +315,8 @@ this.form = { ...this.form } }, onSubmit() { + this.textLoading = this.$t('Submitting') + this.show = true if (this.$route.query.taskDefinitionKey == 'Task Review') { this.ApprovedClick() } else if (this.$route.query.taskDefinitionKey == 'Task handling') { @@ -293,6 +336,7 @@ if (res.success) { Toast(this.$t('OperationSuccessful')) this.$router.go(-1) + this.show = false } else { Toast(this.$t('operationFailed')) } @@ -326,6 +370,7 @@ if (res.success) { Toast(this.$t('OperationSuccessful')) this.$router.go(-1) + this.show = false } else { Toast(this.$t('operationFailed')) } @@ -342,6 +387,13 @@ getAction(this.url.queryProjectCertificationInventoryById, { id: this.$route.query.id }).then((res) => { if (res.success) { this.queryForm = res.result || {} + if (this.queryForm.deliveryResult && this.queryForm.valueType == 'file') { + this.getFileInfos(this.queryForm.deliveryResult) + } + if (this.queryForm.deliverableTemplate) { + this.getDeliveryResult(this.queryForm.deliverableTemplate) + } + this.queryForm = { ...this.queryForm } } else { this.queryForm = {} } @@ -381,6 +433,9 @@ this.fileList.splice(index, 1) this.form.disposeResult.splice(index, 1) this.form = { ...this.form } + }, + deliverablesResultFileClick(item) { + kkFileView(item.fileName, item.id) } } } @@ -500,6 +555,14 @@ word-break: break-all; } + .content-box-type-text-one-select { + font-size: 0.38rem; + font-family: PingFang SC-Regular, PingFang SC; + font-weight: 500; + color: #040B29; + word-break: break-all; + } + .content-box-type-text-one:last-child { margin-bottom: 0.1rem; }