修改已知问题

This commit is contained in:
qq787203167
2022-05-25 15:49:09 +08:00
parent eb7d4b1b85
commit 6ed55e0fa3
5 changed files with 24 additions and 13 deletions
@@ -3,9 +3,9 @@
<div class="doc-detail-wrap"> <div class="doc-detail-wrap">
<div class="doc-detail-header" style="position: fixed;top: 0"> <div class="doc-detail-header" style="position: fixed;top: 0">
<div class="doc-detail-title"> <div class="doc-detail-title">
<span style="line-height: 66px;display: inline-block;float: left"> <!-- <span style="line-height: 66px;display: inline-block;float: left">-->
<a-icon type="home" style="margin-right: 6px;"/> <!-- <a-icon type="home" style="margin-right: 6px;"/>-->
</span> <!-- </span>-->
<a-tooltip placement="topLeft"> <a-tooltip placement="topLeft">
<template slot="title"> <template slot="title">
<span <span
@@ -149,6 +149,7 @@
} }
}, },
mounted() { mounted() {
this.formInline.approvalOpinion = ''
}, },
methods: { methods: {
clickButtonToUpload(item) { clickButtonToUpload(item) {
@@ -192,7 +193,10 @@
callBack(this.formInline) callBack(this.formInline)
} }
}) })
} },
submitNoRule(callBack) {
callBack(this.formInline)
},
} }
} }
</script> </script>
@@ -225,6 +225,7 @@
} }
}, },
mounted() { mounted() {
this.formInline.approvalOpinion = ''
this.$route.query.isDisplay = JSON.parse(this.$route.query.isDisplay) this.$route.query.isDisplay = JSON.parse(this.$route.query.isDisplay)
if (this.queryBy && this.$route.query.TaskKey == 'fqrsh') { if (this.queryBy && this.$route.query.TaskKey == 'fqrsh') {
this.formInline.reviewResult = this.queryBy.reviewResult || undefined this.formInline.reviewResult = this.queryBy.reviewResult || undefined
@@ -162,7 +162,9 @@
sendBack(handlingTime) { sendBack(handlingTime) {
this.textLoading = this.$t('Returning') this.textLoading = this.$t('Returning')
this.loading = true this.loading = true
this.completeTask({ flag: 1 }, handlingTime) this.$refs.examineInformationRef.submitNoRule((res) => {
this.completeTask({ ...res,flag: 1 }, handlingTime,)
})
}, },
queryTaskDetailByTask(callback) { queryTaskDetailByTask(callback) {
this.loading = true this.loading = true
@@ -268,15 +268,19 @@
if (this.$route.query.TaskKey == 'zrrclrw') { if (this.$route.query.TaskKey == 'zrrclrw') {
let dataSource = this.$refs.engineeringConfirmationRef.dataSource let dataSource = this.$refs.engineeringConfirmationRef.dataSource
let isTrue let isTrue
for (let i = 0; i < dataSource.length; i++) { if (dataSource && dataSource.length > 0) {
if (dataSource[i].status == 'haveDone' || !dataSource[i].status) { for (let i = 0; i < dataSource.length; i++) {
isTrue = true if (dataSource[i].status == 'haveDone' || !dataSource[i].status) {
} else { isTrue = true
isTrue = false } else {
this.$message.warning(this.$t('pleaseSubmitStatus')) isTrue = false
this.loading = false this.$message.warning(this.$t('pleaseSubmitStatus'))
return this.loading = false
return
}
} }
} else {
isTrue = true
} }
if (isTrue) { if (isTrue) {
this.completeTask(res) this.completeTask(res)