|
@@ -12,7 +12,7 @@
|
|
|
<span v-if="details.status === 0 ? true : false" class="didi-hover" @click="report_click(3,details)">发送</span>
|
|
|
<span v-if="details.status === 0 ? true : false" style="margin: 0 30px;" class="didi-hover" @click="report_click(2,details)">编辑</span>
|
|
|
<span v-if="details.status === 0 ? true : false" class="didi-hover" @click="dialog_testData = true, AsTp = '删除'">删除</span>
|
|
|
- <span v-if="details.status === 2 ? true : false" class="didi-hover" @click="report_click(2,details)">重新提测</span>
|
|
|
+ <span v-if="details.status === 2 ? true : false" class="didi-hover" @click="report_click(1, details)">重新提测</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
</el-header>
|
|
@@ -168,7 +168,7 @@
|
|
|
import { EncryptId, analysisBizId_id } from '@/utils/crypto-js.js'
|
|
|
import { mapGetters } from 'vuex'
|
|
|
import '@/styles/PublicStyle/index.scss'
|
|
|
-import { reportdelivertestGetReportById, reportreleaseDelete, reportdelivertestGetRequiresByTaskIds, reportdelivertestUpdate } from '@/api/reportTemplate'
|
|
|
+import { reportdelivertestGetReportById, reportreleaseDelete, reportdelivertestGetRequiresByTaskIds, reportdelivertestUpdate, reportdelivertestCheckStatus } from '@/api/reportTemplate'
|
|
|
import TestingReport from '@/views/reportManagement/components/TestingReport' // 提测
|
|
|
export default {
|
|
|
components: {
|
|
@@ -219,11 +219,25 @@ export default {
|
|
|
},
|
|
|
|
|
|
report_click(e, data) { // 提测报告
|
|
|
- this.report_data = data
|
|
|
- this.dialogDaily = true
|
|
|
- this.$nextTick(() => {
|
|
|
- this.$refs.DailyReport.init(e, data)
|
|
|
- })
|
|
|
+ if (e === 1) {
|
|
|
+ reportdelivertestCheckStatus(data.taskIds).then(response => {
|
|
|
+ if (response.code === 200) {
|
|
|
+ this.report_data = data
|
|
|
+ this.dialogDaily = true
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.$refs.DailyReport.init(e, data)
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ this.report_data = data
|
|
|
+ this.dialogDaily = true
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.$refs.DailyReport.init(e, data)
|
|
|
+ })
|
|
|
+ }
|
|
|
},
|
|
|
async deleteDaily() { // 删除提测报告
|
|
|
if (this.AsTp === '打回' || this.AsTp === '通过') {
|