- 客户收到付款就的航空技术的发货的收费但是.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;
}