qinzhipeng_v 5 anos atrás
pai
commit
57fb0c4a16

+ 12 - 4
src/views/Platform/presentation/acceptTheReport.vue

@@ -137,12 +137,20 @@ export default {
       fromCreateData: {}
       fromCreateData: {}
     }
     }
   },
   },
-  created() {
-    this.idGet()
+  watch: {
+    message: {
+      handler(newV) {
+        console.log(newV, 'ccnidsncinsdicnsidcnsdncios')
+        this.$nextTick(() => {
+          this.idGet(newV)
+        })
+      },
+      immediate: true
+    }
   },
   },
   methods: {
   methods: {
-    idGet() {
-      this.fromCreateData = this.message
+    idGet(val) {
+      this.fromCreateData = val
 
 
       if (this.fromCreateData.type === 2) {
       if (this.fromCreateData.type === 2) {
         this.towShow = false
         this.towShow = false

+ 56 - 11
src/views/projectManage/taskList/components/reportList.vue

@@ -6,7 +6,7 @@
           <div class="title-left-icon" />
           <div class="title-left-icon" />
           <div class="title-left-name">提测报告</div>
           <div class="title-left-name">提测报告</div>
         </div>
         </div>
-        <el-button class="task-report-btn" type="text" @click="getTest(10086)">{{ dataStatus?'查看历史':"回到最新" }}</el-button>
+        <el-button class="task-report-btn" type="text" @click="getTest()">{{ dataStatus?'回到最新':"查看历史" }}</el-button>
       </div>
       </div>
       <div class="detail-info">
       <div class="detail-info">
         <el-table
         <el-table
@@ -18,8 +18,8 @@
         >
         >
           <el-table-column label="标题名称" min-width="120">
           <el-table-column label="标题名称" min-width="120">
             <template slot-scope="scope">
             <template slot-scope="scope">
-              <a v-if="dataStatus" href="javascript:void(0)" style="color:#20a0ff" @click="toReportView(scope.row, 2)">{{ scope.row.reportName }}</a>
-              <a v-if="!dataStatus" href="javascript:void(0)" style="color:#20a0ff" @click="toReportView(scope.row, 2)">{{ scope.row.name }}</a>
+              <a v-if="!dataStatus" href="javascript:void(0)" style="color:#20a0ff" @click="toReportView(scope.row, 2)">{{ scope.row.reportName }}</a>
+              <a v-if="dataStatus" href="javascript:void(0)" style="color:#20a0ff" @click="OldDaily(scope.row ,'提测报告')">{{ scope.row.name }}</a>
               <br>{{ scope.row.returnReason }}
               <br>{{ scope.row.returnReason }}
             </template>
             </template>
           </el-table-column>
           </el-table-column>
@@ -30,14 +30,14 @@
           </el-table-column>
           </el-table-column>
           <el-table-column label="报告人" min-width="100" align="center">
           <el-table-column label="报告人" min-width="100" align="center">
             <template slot-scope="scope">
             <template slot-scope="scope">
-              <span v-if="dataStatus">{{ scope.row.reportorObject === null ? '' : scope.row.reportorObject.name }}</span>
-              <span v-if="!dataStatus">{{ scope.row.createrObject.name }}</span>
+              <span v-if="!dataStatus">{{ scope.row.reportorObject === null ? '' : scope.row.reportorObject.name }}</span>
+              <span v-if="dataStatus">{{ scope.row.createrObject.name }}</span>
             </template>
             </template>
           </el-table-column>
           </el-table-column>
           <el-table-column label="创建日期" min-width="100" align="center">
           <el-table-column label="创建日期" min-width="100" align="center">
             <template slot-scope="scope">{{ scope.row.gmtCreate }}</template>
             <template slot-scope="scope">{{ scope.row.gmtCreate }}</template>
           </el-table-column>
           </el-table-column>
-          <el-table-column v-if="dataStatus" label="操作" width="200">
+          <el-table-column v-if="!dataStatus" label="操作" width="200">
             <template slot-scope="scope">
             <template slot-scope="scope">
               <div v-if="scope.row.status === 1 ? false : true">
               <div v-if="scope.row.status === 1 ? false : true">
                 <span v-if="scope.row.status === 3 ? true : false" class="btn" @click="back(1,scope.row.id, scope.row)">通过</span>
                 <span v-if="scope.row.status === 3 ? true : false" class="btn" @click="back(1,scope.row.id, scope.row)">通过</span>
@@ -90,7 +90,7 @@
         <el-table :data="dailyData" size="small" :header-cell-style="{ color: 'rgb(74, 74, 74)', fontSize: '14px', fontWeight: '500' }" show-overflow-tooltip="true">
         <el-table :data="dailyData" size="small" :header-cell-style="{ color: 'rgb(74, 74, 74)', fontSize: '14px', fontWeight: '500' }" show-overflow-tooltip="true">
           <el-table-column label="标题名称" min-width="120">
           <el-table-column label="标题名称" min-width="120">
             <template slot-scope="scope">
             <template slot-scope="scope">
-              <a href="javascript:void(0)" style="color:#20a0ff" @click="toReportView(scope.row, 0)">{{ scope.row.reportName }}</a>
+              <a href="javascript:void(0)" style="color:#20a0ff" @click="dailyDataStatus ? OldDaily(scope.row ,'测试日报') :toReportView(scope.row, 0)">{{ scope.row.reportName }}</a>
             </template>
             </template>
           </el-table-column>
           </el-table-column>
           <el-table-column label="状态" min-width="100" align="center">
           <el-table-column label="状态" min-width="100" align="center">
@@ -156,7 +156,7 @@
         <el-table :data="clientData" size="small" :header-cell-style="{ color: 'rgb(74, 74, 74)', fontSize: '14px', fontWeight: '500' }" show-overflow-tooltip="true">
         <el-table :data="clientData" size="small" :header-cell-style="{ color: 'rgb(74, 74, 74)', fontSize: '14px', fontWeight: '500' }" show-overflow-tooltip="true">
           <el-table-column label="标题名称" min-width="120">
           <el-table-column label="标题名称" min-width="120">
             <template slot-scope="scope">
             <template slot-scope="scope">
-              <a href="javascript:void(0)" style="color:#20a0ff" @click="toReportView(scope.row, 1)">{{ scope.row.reportName }}</a>
+              <a href="javascript:void(0)" style="color:#20a0ff" @click="releaseDataStatus ? OldDaily(scope.row ,'准出报告') : toReportView(scope.row, 1)">{{ scope.row.reportName }}</a>
             </template>
             </template>
           </el-table-column>
           </el-table-column>
           <el-table-column label="状态" min-width="100" align="center">
           <el-table-column label="状态" min-width="100" align="center">
@@ -216,6 +216,19 @@
     <Test-report v-if="dialogTest" ref="TestReport" />
     <Test-report v-if="dialogTest" ref="TestReport" />
     <Daily-report v-if="dialogDaily" ref="DailyReport" />
     <Daily-report v-if="dialogDaily" ref="DailyReport" />
     <ReleaseReport v-if="dialogClient" ref="ClientReport" />
     <ReleaseReport v-if="dialogClient" ref="ClientReport" />
+
+    <el-dialog :title="title" :visible.sync="reportDaily" class="public_task" width="70%" :close-on-click-modal="false">
+      <div class="blueStripe" />
+      <div v-if="title === '测试日报'" style=" margin-bottom: 2%; height: 600px; overflow:scroll; overflow-x: hidden">
+        <testPresenyL v-if="testPresenyL" :message="message" />
+      </div>
+      <div v-if="title === '准出报告'" style=" margin-bottom: 2%; height: 600px; overflow:scroll; overflow-x: hidden">
+        <ResultPageyL v-if="ResultPageyL" :message="message" />
+      </div>
+      <div v-if="title === '提测报告'" style=" margin-bottom: 2%; height: 600px; overflow:scroll; overflow-x: hidden">
+        <acceptTheReport v-if="acceptTheReport" :message="message" />
+      </div>
+    </el-dialog>
   </div>
   </div>
 </template>
 </template>
 <script>
 <script>
@@ -226,6 +239,9 @@ import {
   launchTestDelete
   launchTestDelete
 } from '@/api/taskIndex' // ajax
 } from '@/api/taskIndex' // ajax
 import '@/styles/PublicStyle/index.scss'
 import '@/styles/PublicStyle/index.scss'
+import testPresenyL from '@/views/reportManagement/daily/components/testPresenyL.vue' // 老日报数据
+import ResultPageyL from '@/views/reportManagement/ReleaseReport/components/ResultPageyL.vue' // 老准出报告
+import acceptTheReport from '@/views/reportManagement/Testing/components/acceptTheReport.vue' // 老提测报告
 import TestReport from '@/views/reportManagement/components/TestingReport' // 提测
 import TestReport from '@/views/reportManagement/components/TestingReport' // 提测
 import DailyReport from '@/views/reportManagement/components/DailyReport' // 日报
 import DailyReport from '@/views/reportManagement/components/DailyReport' // 日报
 import ReleaseReport from '@/views/reportManagement/components/ReleaseReport' // 准出
 import ReleaseReport from '@/views/reportManagement/components/ReleaseReport' // 准出
@@ -235,10 +251,18 @@ export default {
   components: {
   components: {
     TestReport,
     TestReport,
     DailyReport,
     DailyReport,
-    ReleaseReport
+    ReleaseReport,
+    acceptTheReport,
+    testPresenyL,
+    ResultPageyL
   },
   },
   data() {
   data() {
     return {
     return {
+      title: '测试日报',
+      ResultPageyL: false,
+      acceptTheReport: false,
+      testPresenyL: false,
+      reportDaily: false,
       userInformation: localStorage.getItem('username'),
       userInformation: localStorage.getItem('username'),
       userNames: localStorage.getItem('realname'),
       userNames: localStorage.getItem('realname'),
       taskId: Number(this.$route.query.id), // 任务id
       taskId: Number(this.$route.query.id), // 任务id
@@ -286,15 +310,18 @@ export default {
   },
   },
   methods: {
   methods: {
     async getTest(val) { // 获取提测
     async getTest(val) { // 获取提测
-      val === 10086 ? this.dataStatus = !this.dataStatus : ''
       if (this.dataStatus) {
       if (this.dataStatus) {
+        this.dataStatus = false
         const data = { taskId: this.taskId, bizId: localStorage.getItem('bizId'), curIndex: this.testPages.curIndex, pageSize: this.testPages.pageSize }
         const data = { taskId: this.taskId, bizId: localStorage.getItem('bizId'), curIndex: this.testPages.curIndex, pageSize: this.testPages.pageSize }
         const res = await reportdelivertestGetByTaskId(data)
         const res = await reportdelivertestGetByTaskId(data)
         if (res.code === 200) {
         if (res.code === 200) {
           this.testData = res.data.list
           this.testData = res.data.list
           this.testPages.total = res.data.total
           this.testPages.total = res.data.total
         }
         }
-      } else {
+        return false
+      }
+      if (!this.dataStatus) {
+        this.dataStatus = true
         const params = { taskId: this.taskId, curIndex: this.testPages.curIndex, pageSize: this.testPages.pageSize }
         const params = { taskId: this.taskId, curIndex: this.testPages.curIndex, pageSize: this.testPages.pageSize }
         const res = await launchTest(params)
         const res = await launchTest(params)
         if (res.code === 200) {
         if (res.code === 200) {
@@ -389,6 +416,24 @@ export default {
       }
       }
     },
     },
 
 
+    OldDaily(val, name) {
+      this.title = name
+      this.reportDaily = true
+      if (this.title === '测试日报') {
+        this.testPresenyL = true
+        this.message = val
+      }
+      if (this.title === '准出报告') {
+        this.ResultPageyL = true
+        this.message = val
+      }
+      if (this.title === '提测报告') {
+        console.log(val, 'cdnscjsbd')
+        this.acceptTheReport = true
+        this.message = val
+      }
+    },
+
     async dailySend(e) { // 测试日报删除
     async dailySend(e) { // 测试日报删除
       console.log(e)
       console.log(e)
       const res = await dailyReportDelete({}, this.CallBackId)
       const res = await dailyReportDelete({}, this.CallBackId)

+ 1 - 1
src/views/reportManagement/ReleaseReport/newReleaeTemplate.vue

@@ -33,7 +33,7 @@
         </el-col>
         </el-col>
       </el-row>
       </el-row>
 
 
-      <el-row v-if="from.isDelay === 1 || from.releasePlanTime > from.releaseActualTime" style="margin: 20px 0">
+      <el-row v-if="from.isDelay === 1 || from.releasePlanTime < from.releaseActualTime" style="margin: 20px 0">
         <!-- 准出是否延期 1 延期,0未延期 -->
         <!-- 准出是否延期 1 延期,0未延期 -->
         <el-col :span="24" class="Layout_space_between">
         <el-col :span="24" class="Layout_space_between">
           <span class="from-namea"><span v-if="!releaseType" style="color:red;">*</span>准出延期原因 : </span>
           <span class="from-namea"><span v-if="!releaseType" style="color:red;">*</span>准出延期原因 : </span>

+ 1 - 1
src/views/reportManagement/ReleaseReport/releaePreview.vue

@@ -33,7 +33,7 @@
         </el-col>
         </el-col>
       </el-row>
       </el-row>
 
 
-      <el-row v-if="fromCreateData.releasePlanTime > fromCreateData.releaseActualTime">
+      <el-row v-if="fromCreateData.releasePlanTime < fromCreateData.releaseActualTime">
         <el-col :span="24" class="Layout_space_between">
         <el-col :span="24" class="Layout_space_between">
           <span class="parent-style">准出延期原因 : {{ fromCreateData.delayReason }}</span>
           <span class="parent-style">准出延期原因 : {{ fromCreateData.delayReason }}</span>
         </el-col>
         </el-col>

+ 11 - 4
src/views/reportManagement/Testing/components/acceptTheReport.vue

@@ -137,12 +137,19 @@ export default {
       fromCreateData: {}
       fromCreateData: {}
     }
     }
   },
   },
-  created() {
-    this.idGet()
+  watch: {
+    message: {
+      handler(newV) {
+        this.$nextTick(() => {
+          this.idGet(newV)
+        })
+      },
+      immediate: true
+    }
   },
   },
   methods: {
   methods: {
-    idGet() {
-      this.fromCreateData = this.message
+    idGet(val) {
+      this.fromCreateData = val
 
 
       if (this.fromCreateData.type === 2) {
       if (this.fromCreateData.type === 2) {
         this.towShow = false
         this.towShow = false

+ 1 - 1
src/views/reportManagement/Testing/newTestingTemplate.vue

@@ -29,7 +29,7 @@
         </el-col>
         </el-col>
       </el-row>
       </el-row>
 
 
-      <el-row v-if="from.isDelay === 1" class="from-margin">
+      <el-row v-if="from.deliverTestPlanTime < from.deliverTestActualTime " class="from-margin">
         <el-col :span="24" class="Layout_space_between">
         <el-col :span="24" class="Layout_space_between">
           <span class="from-namea"><span v-if="!releaseType" style="color:red;">*</span>提测延期原因 : </span>
           <span class="from-namea"><span v-if="!releaseType" style="color:red;">*</span>提测延期原因 : </span>
           <el-input v-model="from.delayReason" size="small" :disabled="releaseType" placeholder="请输入准出原因" style="width: 100%;" />
           <el-input v-model="from.delayReason" size="small" :disabled="releaseType" placeholder="请输入准出原因" style="width: 100%;" />

+ 1 - 0
src/views/reportManagement/testPresentation.vue

@@ -493,6 +493,7 @@ export default {
         this.message = val
         this.message = val
       }
       }
       if (this.title === '提测报告') {
       if (this.title === '提测报告') {
+        console.log(val, 'cdnscjsbd')
         this.acceptTheReport = true
         this.acceptTheReport = true
         this.message = val
         this.message = val
       }
       }