reportList.vue 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591
  1. <template>
  2. <div>
  3. <section class="main-section">
  4. <div class="Layout_space_between">
  5. <div class="el-main-title">
  6. <div class="title-left-icon" />
  7. <div class="title-left-name">提测报告</div>
  8. </div>
  9. <el-button class="task-report-btn" type="text" @click="getTest()">{{ dataStatus?'回到最新':"查看历史" }}</el-button>
  10. </div>
  11. <div class="detail-info">
  12. <el-table
  13. :data="testData"
  14. size="small"
  15. :header-cell-style="{ color: 'rgb(74, 74, 74)', fontSize: '14px', fontWeight: '500' }"
  16. show-overflow-tooltip="true"
  17. max-height="300"
  18. >
  19. <el-table-column label="标题名称" min-width="120">
  20. <template slot-scope="scope">
  21. <a v-if="!dataStatus" href="javascript:void(0)" style="color:#20a0ff" @click="toReportView(scope.row, 2)">{{ scope.row.reportName }}</a>
  22. <a v-if="dataStatus" href="javascript:void(0)" style="color:#20a0ff" @click="OldDaily(scope.row ,'提测报告')">{{ scope.row.name }}</a>
  23. <br><div v-if="scope.row.returnReason" style="color:red;">打回原因:{{ scope.row.returnReason }}</div>
  24. </template>
  25. </el-table-column>
  26. <el-table-column label="状态" min-width="100" align="center">
  27. <template slot-scope="scope">
  28. <span :style="{color: stColors[scope.row.status]}"> {{ scope.row.statusString }} </span>
  29. </template>
  30. </el-table-column>
  31. <el-table-column label="报告人" min-width="100" align="center">
  32. <template slot-scope="scope">
  33. <span v-if="!dataStatus">{{ scope.row.reportorObject === null ? '' : scope.row.reportorObject.name }}</span>
  34. <span v-if="dataStatus">{{ scope.row.createrObject.name }}</span>
  35. </template>
  36. </el-table-column>
  37. <el-table-column label="创建日期" min-width="100" align="center">
  38. <template slot-scope="scope">{{ scope.row.gmtCreate }}</template>
  39. </el-table-column>
  40. <el-table-column v-if="!dataStatus" label="操作" width="200">
  41. <template slot-scope="scope">
  42. <div v-if="scope.row.status === 1 ? false : true">
  43. <span v-if="scope.row.status === 3 ? true : false" class="btn" @click="back(1,scope.row.id, scope.row)">通过</span>
  44. <span v-if="scope.row.status === 3 ? true : false" style="margin-left: 30px;" class="btn" @click="back(2,scope.row.id, scope.row)">打回</span>
  45. <span v-if="scope.row.status === 0 ? true : false" class="btn" @click="back(5,scope.row.id, scope.row)">发送</span>
  46. <span v-if="scope.row.status === 0 ? true : false" style="margin: 0 30px;" class="btn" @click="back(6,scope.row.id, scope.row)">编辑</span>
  47. <span v-if="scope.row.status === 0 ? true : false" class="btn" @click="back(4,scope.row.id, scope.row )">删除</span>
  48. <span v-if="scope.row.status === 2 ? true : false" class="btn" @click="back(3,scope.row.id, scope.row)">重新提测</span>
  49. <el-dialog :title="titName" :visible.sync="dialog_testData" width="30%" :close-on-click-modal="false">
  50. <div style="position: absolute; top: 23px; left: 12px;width:4px;height:17px;background:#409EFF;border-radius:1px;" />
  51. <div align="center">
  52. <div>是否{{ Str }}以下提测?</div>
  53. <div style="color: #f79232;">{{ requireName }}</div>
  54. </div>
  55. <el-input v-show="Str === '打回'" v-model="launchRepulseInfo" type="textarea" placeholder="请输入打回原因..." :rows="3" />
  56. <span slot="footer" class="dialog-footer">
  57. <el-button type="primary" size="mini" @click="passOrBackSend()">确 定</el-button>
  58. <el-button type="danger" size="mini" @click="endDialog">取 消</el-button>
  59. </span>
  60. </el-dialog>
  61. </div>
  62. </template>
  63. </el-table-column>
  64. </el-table>
  65. <el-col :span="24">
  66. <div align="right">
  67. <el-pagination
  68. :page-sizes="[5, 10, 15, testPages.total]"
  69. :current-page="testPages.curIndex"
  70. :page-size="testPages.pageSize"
  71. background
  72. layout="total, sizes, prev, pager, next, jumper"
  73. :total="testPages.total"
  74. @size-change="testSizeChange"
  75. @current-change="testCurrentChange"
  76. />
  77. </div>
  78. </el-col>
  79. </div>
  80. </section>
  81. <section class="main-section">
  82. <div class="Layout_space_between">
  83. <div class="el-main-title">
  84. <div class="title-left-icon" />
  85. <div class="title-left-name">测试日报</div>
  86. </div>
  87. <el-button class="task-report-btn" type="text" @click="getDaily(10011)">{{ dailyDataStatus?'查看历史':"回到最新" }}</el-button>
  88. </div>
  89. <div class="detail-info">
  90. <el-table :data="dailyData" size="small" :header-cell-style="{ color: 'rgb(74, 74, 74)', fontSize: '14px', fontWeight: '500' }" show-overflow-tooltip="true">
  91. <el-table-column label="标题名称" min-width="120">
  92. <template slot-scope="scope">
  93. <a href="javascript:void(0)" style="color:#20a0ff" @click="!dailyDataStatus ? OldDaily(scope.row ,'测试日报') :toReportView(scope.row, 0)">{{ scope.row.reportName }}</a>
  94. </template>
  95. </el-table-column>
  96. <el-table-column label="状态" min-width="100" align="center">
  97. <template slot-scope="scope">{{ scope.row.statusString }}</template>
  98. </el-table-column>
  99. <el-table-column label="报告人" min-width="100" align="center">
  100. <template slot-scope="scope">
  101. <span v-if="dailyDataStatus">{{ !scope.row.reportorObject? '':scope.row.reportorObject.name }}</span>
  102. <span v-if="!dailyDataStatus">{{ scope.row.createrObject.name }}</span>
  103. </template>
  104. </el-table-column>
  105. <el-table-column label="创建日期" min-width="100" align="center">
  106. <template slot-scope="scope">{{ scope.row.gmtCreate }}</template>
  107. </el-table-column>
  108. <el-table-column v-if="dailyDataStatus" label="操作" width="200">
  109. <template slot-scope="scope">
  110. <div>
  111. <span v-if="scope.row.status === 0 ? true : false" class="btn" @click="dailyButtom(5,scope.row.id, scope.row)">发送</span>
  112. <span v-if="scope.row.status === 0 ? true : false" style="margin: 0 30px;" class="btn" @click="dailyButtom(6,scope.row.id, scope.row)">编辑</span>
  113. <span v-if="scope.row.status === 0 ? true : false" class="btn" @click="dailyButtom(4,scope.row.id, scope.row )">删除</span>
  114. <span v-if="scope.row.status === 3 ? true : false" class="btn" @click="dailyButtom(3,scope.row.id, scope.row)">复制</span>
  115. <el-dialog :title="titName" :visible.sync="dialog_daily" width="30%" :close-on-click-modal="false">
  116. <div style="position: absolute; top: 23px; left: 12px;width:4px;height:17px;background:#409EFF;border-radius:1px;" />
  117. <div align="center">
  118. <div>是否{{ Str }}以下测试日报?</div>
  119. <div style="color: #f79232;">{{ requireName }}</div>
  120. </div>
  121. <el-input v-show="Str === '打回'" v-model="launchRepulseInfo" type="textarea" placeholder="请输入打回原因..." :rows="3" />
  122. <span slot="footer" class="dialog-footer">
  123. <el-button type="primary" size="mini" @click="dailySend(CallBackId)">确 定</el-button>
  124. <el-button type="danger" size="mini" @click="dialog_daily = false">取 消</el-button>
  125. </span>
  126. </el-dialog>
  127. </div>
  128. </template>
  129. </el-table-column>
  130. </el-table>
  131. <el-col :span="24">
  132. <div align="right">
  133. <el-pagination
  134. :page-sizes="[5, 10, 15, dailyPages.total]"
  135. :current-page="dailyPages.curIndex"
  136. :page-size="dailyPages.pageSize"
  137. background
  138. layout="total, sizes, prev, pager, next, jumper"
  139. :total="dailyPages.total"
  140. @size-change="dailySizeChange"
  141. @current-change="dailyCurrentChange"
  142. />
  143. </div>
  144. </el-col>
  145. </div>
  146. </section>
  147. <section class="main-section">
  148. <div class="Layout_space_between">
  149. <div class="el-main-title">
  150. <div class="title-left-icon" />
  151. <div class="title-left-name">准出报告</div>
  152. </div>
  153. <el-button class="task-report-btn" type="text" @click="getClient(10000)">{{ releaseDataStatus?'查看历史':"回到最新" }}</el-button>
  154. </div>
  155. <div class="detail-info">
  156. <el-table :data="clientData" size="small" :header-cell-style="{ color: 'rgb(74, 74, 74)', fontSize: '14px', fontWeight: '500' }" show-overflow-tooltip="true">
  157. <el-table-column label="标题名称" min-width="120">
  158. <template slot-scope="scope">
  159. <a href="javascript:void(0)" style="color:#20a0ff" @click="!releaseDataStatus ? OldDaily(scope.row ,'准出报告') : toReportView(scope.row, 1)">{{ scope.row.reportName }}</a>
  160. </template>
  161. </el-table-column>
  162. <el-table-column label="状态" min-width="100" align="center">
  163. <template slot-scope="scope">
  164. <span v-if="!releaseDataStatus">{{ scope.row.reportStatusString }}</span>
  165. <span v-if="releaseDataStatus">{{ scope.row.statusString }}</span>
  166. </template>
  167. </el-table-column>
  168. <el-table-column label="报告人" min-width="100" align="center">
  169. <template slot-scope="scope">
  170. <span v-if="!releaseDataStatus">{{ scope.row.createrObject.name }}</span>
  171. <span v-if="releaseDataStatus">{{ scope.row.reportorObject === null ? '' :scope.row.reportorObject.name }}</span>
  172. </template>
  173. </el-table-column>
  174. <el-table-column label="创建日期" min-width="100" align="center">
  175. <template slot-scope="scope">{{ scope.row.gmtCreate }}</template>
  176. </el-table-column>
  177. <el-table-column v-if="releaseDataStatus" label="操作" width="200">
  178. <template slot-scope="scope">
  179. <div v-if="scope.row.status === 3 ? false : true">
  180. <span v-if="scope.row.status === 0 ? true : false" class="btn" @click="clientButtom(5,scope.row.id, scope.row)">发送</span>
  181. <span v-if="scope.row.status === 0 ? true : false" style="margin: 0 30px;" class="btn" @click="clientButtom(6,scope.row.id, scope.row)">编辑</span>
  182. <span v-if="scope.row.status === 0 ? true : false" class="btn" @click="clientButtom(4,scope.row.id, scope.row )">删除</span>
  183. <el-dialog :title="titName" :visible.sync="dialog_client" width="30%" :close-on-click-modal="false">
  184. <div style="position: absolute; top: 23px; left: 12px;width:4px;height:17px;background:#409EFF;border-radius:1px;" />
  185. <div align="center">
  186. <div>是否{{ Str }}以下准出?</div>
  187. <div style="color: #f79232;">{{ requireName }}</div>
  188. </div>
  189. <el-input v-show="Str === '打回'" v-model="launchRepulseInfo" type="textarea" placeholder="请输入打回原因..." :rows="3" />
  190. <span slot="footer" class="dialog-footer">
  191. <el-button type="primary" size="mini" @click="clientSend()">确 定</el-button>
  192. <el-button type="danger" size="mini" @click="dialog_client = false">取 消</el-button>
  193. </span>
  194. </el-dialog>
  195. </div>
  196. </template>
  197. </el-table-column>
  198. </el-table>
  199. <el-col :span="24">
  200. <div align="right">
  201. <el-pagination
  202. :page-sizes="[5, 10, 15, clientPages.total]"
  203. :current-page="clientPages.curIndex"
  204. :page-size="clientPages.pageSize"
  205. background
  206. layout="total, sizes, prev, pager, next, jumper"
  207. :total="clientPages.total"
  208. @size-change="clientSizeChange"
  209. @current-change="clientCurrentChange"
  210. />
  211. </div>
  212. </el-col>
  213. </div>
  214. </section>
  215. <!-- 弹框 -->
  216. <Test-report v-if="dialogTest" ref="TestReport" />
  217. <Daily-report v-if="dialogDaily" ref="DailyReport" />
  218. <ReleaseReport v-if="dialogClient" ref="ClientReport" />
  219. <el-dialog :title="title" :visible.sync="reportDaily" class="public_task" width="70%" :close-on-click-modal="false">
  220. <div class="blueStripe" />
  221. <div v-if="title === '测试日报'" style=" margin-bottom: 2%; height: 600px; overflow:scroll; overflow-x: hidden">
  222. <testPresenyL v-if="testPresenyL" :message="message" />
  223. </div>
  224. <div v-if="title === '准出报告'" style=" margin-bottom: 2%; height: 600px; overflow:scroll; overflow-x: hidden">
  225. <ResultPageyL v-if="ResultPageyL" :message="message" />
  226. </div>
  227. <div v-if="title === '提测报告'" style=" margin-bottom: 2%; height: 600px; overflow:scroll; overflow-x: hidden">
  228. <acceptTheReport v-if="acceptTheReport" :message="message" />
  229. </div>
  230. </el-dialog>
  231. </div>
  232. </template>
  233. <script>
  234. import {
  235. dailyReport,
  236. projectTestReport,
  237. launchTest
  238. } from '@/api/taskIndex' // ajax
  239. import '@/styles/PublicStyle/index.scss'
  240. import testPresenyL from '@/views/reportManagement/daily/components/testPresenyL.vue' // 老日报数据
  241. import ResultPageyL from '@/views/reportManagement/ReleaseReport/components/ResultPageyL.vue' // 老准出报告
  242. import acceptTheReport from '@/views/reportManagement/Testing/components/acceptTheReport.vue' // 老提测报告
  243. import TestReport from '@/views/reportManagement/components/TestingReport' // 提测
  244. import DailyReport from '@/views/reportManagement/components/DailyReport' // 日报
  245. import ReleaseReport from '@/views/reportManagement/components/ReleaseReport' // 准出
  246. import { dailyReportDelete } from '@/api/testPresentetion' // 日报
  247. import { reportdelivertestGetByTaskId, reportreleaseGetByTaskId, dailyReportGetByTaskIdV2, reportdelivertestUpdate, reportdelivertestCheckStatus, reportreleaseDelete, reportdelivertestDelete } from '@/api/reportTemplate'
  248. export default {
  249. components: {
  250. TestReport,
  251. DailyReport,
  252. ReleaseReport,
  253. acceptTheReport,
  254. testPresenyL,
  255. ResultPageyL
  256. },
  257. data() {
  258. return {
  259. title: '测试日报',
  260. ResultPageyL: false,
  261. acceptTheReport: false,
  262. testPresenyL: false,
  263. reportDaily: false,
  264. userInformation: localStorage.getItem('username'),
  265. userNames: localStorage.getItem('realname'),
  266. taskId: Number(this.$route.query.id), // 任务id
  267. stColors: ['#409EFF', '#07BCA4', '#F56C6C', '#07BCA4'],
  268. dataStatus: true, // 数据状态
  269. releaseDataStatus: true, // 准出
  270. dailyDataStatus: true, // 日报
  271. dialog_testData: false, // 打回弹窗
  272. dialog_daily: false, // 测试报告dialog
  273. dialog_client: false, // 准出报告dialog
  274. launchRepulseInfo: '', // 打回原因
  275. CallBackStatus: '', // 打回状态
  276. CallBackId: '', // 打回id
  277. reportData: {},
  278. titName: '', // 打回title
  279. Str: '', // 打回操作名称
  280. requireName: '', // 归属需求name
  281. testData: [], // 提测信息
  282. testPages: { // 提测分页
  283. curIndex: 1,
  284. pageSize: 5,
  285. total: 0
  286. },
  287. dailyData: [], // 日报信息
  288. dailyPages: { // 提测分页
  289. curIndex: 1,
  290. pageSize: 5,
  291. total: 0
  292. },
  293. clientData: [], // 准出信息
  294. clientPages: {// 准出分页
  295. curIndex: 1,
  296. pageSize: 5,
  297. total: 0
  298. },
  299. dialogTest: false, // 新建提测报告
  300. dialogDaily: false, // 新建测试日报
  301. dialogClient: false // 新建准出报告
  302. }
  303. },
  304. created() {
  305. this.getTest()
  306. this.getDaily()
  307. this.getClient()
  308. },
  309. methods: {
  310. async getTest(val) { // 获取提测
  311. if (this.dataStatus) {
  312. this.dataStatus = false
  313. const data = { taskId: this.taskId, bizId: localStorage.getItem('bizId'), curIndex: this.testPages.curIndex, pageSize: this.testPages.pageSize }
  314. const res = await reportdelivertestGetByTaskId(data)
  315. if (res.code === 200) {
  316. this.testData = res.data.list
  317. this.testPages.total = res.data.total
  318. }
  319. return false
  320. }
  321. if (!this.dataStatus) {
  322. this.dataStatus = true
  323. const params = { taskId: this.taskId, curIndex: this.testPages.curIndex, pageSize: this.testPages.pageSize }
  324. const res = await launchTest(params)
  325. if (res.code === 200) {
  326. this.testData = res.data.list
  327. this.testPages.total = res.data.total
  328. }
  329. }
  330. },
  331. async getDaily(val) { // 获取日报
  332. val === 10011 ? this.dailyDataStatus = !this.dailyDataStatus : ''
  333. if (this.dailyDataStatus) {
  334. const indexPage = { taskId: this.taskId, bizId: localStorage.getItem('bizId'), curIndex: this.clientPages.curIndex, pageSize: this.clientPages.pageSize }
  335. const res = await dailyReportGetByTaskIdV2(indexPage)
  336. if (res.code === 200) {
  337. this.dailyData = res.data.list
  338. this.dailyPages.total = res.data.total
  339. }
  340. } else {
  341. const params = { taskId: this.taskId, curIndex: this.dailyPages.curIndex, pageSize: this.dailyPages.pageSize }
  342. const res = await dailyReport(params)
  343. if (res.code === 200) {
  344. this.dailyData = res.data.list
  345. this.dailyPages.total = res.data.total
  346. }
  347. }
  348. },
  349. async getClient(val) { // 获取准出
  350. val === 10000 ? this.releaseDataStatus = !this.releaseDataStatus : ''
  351. if (this.releaseDataStatus) {
  352. const indexPage = { taskId: this.taskId, bizId: localStorage.getItem('bizId'), curIndex: this.clientPages.curIndex, pageSize: this.clientPages.pageSize }
  353. const res = await reportreleaseGetByTaskId(indexPage)
  354. if (res.code === 200) {
  355. this.clientData = res.data.list
  356. this.clientPages.total = res.data.total
  357. }
  358. } else {
  359. const params = { taskId: this.taskId, curIndex: this.clientPages.curIndex, pageSize: this.clientPages.pageSize }
  360. const res = await projectTestReport(params)
  361. if (res.code === 200) {
  362. this.clientData = res.data.list
  363. this.clientPages.total = res.data.total
  364. }
  365. }
  366. },
  367. testSizeChange(e) { // 提测分页
  368. this.testPages.pageSize = e
  369. this.getTest()
  370. },
  371. testCurrentChange(e) { // 提测分页
  372. this.testPages.curIndex = e
  373. this.getTest()
  374. },
  375. dailySizeChange(e) { // 日报分页
  376. this.dailyPages.pageSize = e
  377. this.getDaily()
  378. },
  379. dailyCurrentChange(e) { // 日报分页
  380. this.dailyPages.curIndex = e
  381. this.getDaily()
  382. },
  383. clientSizeChange(e) { // 准出分页
  384. this.clientPages.pageSize = e
  385. this.getClient()
  386. },
  387. clientCurrentChange(e) { // 准出分页
  388. this.clientPages.curIndex = e
  389. this.getClient()
  390. },
  391. async passOrBackSend() { // 提测打回
  392. this.dialog_testData = false
  393. if (this.Str === '通过' || this.Str === '打回') {
  394. const data = {
  395. id: this.reportData.id,
  396. moduleId: this.reportData.moduleId,
  397. bizId: this.reportData.bizId,
  398. taskIds: [this.taskId],
  399. reportName: this.reportData.reportName,
  400. returnReason: this.launchRepulseInfo,
  401. status: this.Str === '打回' ? 2 : 1
  402. }
  403. const res = await reportdelivertestUpdate(data)
  404. if (res.code === 200) {
  405. this.dataStatus = true
  406. this.getTest()
  407. this.$message({ message: res.msg, type: 'success', offset: 150 })
  408. }
  409. } else if (this.Str === '删除') {
  410. const res = await reportdelivertestDelete({}, this.reportData.id)
  411. if (res.code === 200) {
  412. this.getTest()
  413. this.$message({ type: 'success', message: '删除成功' })
  414. }
  415. }
  416. },
  417. OldDaily(val, name) {
  418. this.title = name
  419. this.reportDaily = true
  420. if (this.title === '测试日报') {
  421. this.testPresenyL = true
  422. this.message = val
  423. }
  424. if (this.title === '准出报告') {
  425. this.ResultPageyL = true
  426. this.message = val
  427. }
  428. if (this.title === '提测报告') {
  429. console.log(val, 'cdnscjsbd')
  430. this.acceptTheReport = true
  431. this.message = val
  432. }
  433. },
  434. async dailySend(e) { // 测试日报删除
  435. console.log(e)
  436. const res = await dailyReportDelete({}, this.CallBackId)
  437. if (res.code === 200) {
  438. this.dialog_daily = false
  439. this.getDaily()
  440. this.$message({ type: 'success', message: '删除成功' })
  441. }
  442. },
  443. async clientSend() { // 准出报告删除
  444. const res = await reportreleaseDelete({}, this.CallBackId)
  445. if (res.code === 200) {
  446. this.dialog_client = false
  447. this.getClient()
  448. this.$message({ type: 'success', message: '删除成功' })
  449. }
  450. },
  451. endDialog() { // 结束对话框
  452. this.dialog_testData = false
  453. this.$message({ type: 'warning', message: '已取消' })
  454. },
  455. toReportView(ele, index) { // 进入报告详情页
  456. switch (index) {
  457. case 0:
  458. this.$router.push({ name: '日报详情', query: { id: ele.id }})
  459. break
  460. case 1:
  461. this.$router.push({ name: '准出详情', query: { id: ele.id }})
  462. break
  463. case 2:
  464. this.$router.push({ name: '提测详情', query: { id: ele.id }})
  465. break
  466. }
  467. },
  468. back(e, ele, data) { // 提测报告
  469. this.reportData = data
  470. this.dataStatus ? this.requireName = data.reportName : this.requireName = data.name
  471. this.CallBackStatus = e
  472. this.CallBackId = ele
  473. switch (e) {
  474. case 1:
  475. this.dialog_testData = true
  476. this.titName = '提测确认'
  477. this.Str = '通过'
  478. break
  479. case 2:
  480. this.dialog_testData = true
  481. this.titName = '提测确认'
  482. this.Str = '打回'
  483. break
  484. case 3:
  485. data.taskIds = [Number(this.taskId)]
  486. reportdelivertestCheckStatus([this.taskId]).then(res => {
  487. if (res.code === 200) {
  488. this.dialogTest = true
  489. this.$nextTick(() => {
  490. this.$refs.TestReport.init(4, data)
  491. })
  492. }
  493. })
  494. break
  495. case 4:
  496. this.dialog_testData = true
  497. this.titName = '删除确认'
  498. this.Str = '删除'
  499. break
  500. case 5:
  501. this.dialogTest = true
  502. this.$nextTick(() => {
  503. this.$refs.TestReport.init(3, data)
  504. })
  505. break
  506. case 6:
  507. this.dialogTest = true
  508. this.$nextTick(() => {
  509. this.$refs.TestReport.init(2, data)
  510. })
  511. break
  512. }
  513. },
  514. dailyButtom(e, ele, data) { // 测试报告
  515. this.requireName = data.reportName
  516. this.CallBackStatus = e
  517. this.CallBackId = ele
  518. switch (e) {
  519. case 3:
  520. this.dialogDaily = true
  521. this.$nextTick(() => {
  522. this.$refs.DailyReport.init(4, data)
  523. })
  524. break
  525. case 4:
  526. this.dialog_daily = true
  527. this.titName = '删除确认'
  528. this.Str = '删除'
  529. break
  530. case 5:
  531. this.dialogDaily = true
  532. this.$nextTick(() => {
  533. this.$refs.DailyReport.init(3, data)
  534. })
  535. break
  536. case 6:
  537. this.dialogDaily = true
  538. this.$nextTick(() => {
  539. this.$refs.DailyReport.init(2, data)
  540. })
  541. break
  542. }
  543. },
  544. clientButtom(e, ele, data) { // 准出报告
  545. this.requireName = data.reportName
  546. this.CallBackStatus = e
  547. this.CallBackId = ele
  548. switch (e) {
  549. case 4:
  550. this.dialog_client = true
  551. this.titName = '删除确认'
  552. this.Str = '删除'
  553. break
  554. case 5:
  555. this.dialogClient = true
  556. this.$nextTick(() => {
  557. this.$refs.ClientReport.init(3, data)
  558. })
  559. break
  560. case 6:
  561. this.dialogClient = true
  562. this.$nextTick(() => {
  563. this.$refs.ClientReport.init(2, data)
  564. })
  565. break
  566. }
  567. }
  568. }
  569. }
  570. </script>
  571. <style lang="scss" scoped>
  572. @import '@/styles/detail-pages.scss';
  573. .main-section {
  574. @include main-section;
  575. overflow: auto;
  576. .detail-info {
  577. padding: 0 34px 20px 34px;
  578. }
  579. }
  580. .btn{
  581. cursor: pointer;
  582. }
  583. .task-report-btn {
  584. margin-right: 30px;
  585. }
  586. </style>