|
@@ -21,15 +21,15 @@
|
|
|
<div class="content-wrapper">
|
|
|
<div class="content-reportName">
|
|
|
{{ reportName }}
|
|
|
- <el-button v-if="reportStatus.status === 30" type="text" @click="$router.push({ path: '/monthlyReport/edit', query: { pageType: 'read', reportId: reportValue }})"> 查看完整报告</el-button>
|
|
|
- <el-button v-if="reportStatus.status === 20 || reportStatus.status === 10" type="text" @click="$router.push({ path: '/monthlyReport/edit', query: { pageType: 'edit', reportId: res.data.id }})"> 发布确认</el-button>
|
|
|
+ <el-button v-if="reportStatus.status === 30" type="text" @click="$router.push({ path: '/monthlyReport/edit', query: { pageType: 'readAll', reportId: reportValue }})"> 查看完整报告</el-button>
|
|
|
+ <el-button v-if="reportStatus.status === 20 || reportStatus.status === 10" type="text" @click="sendConfirm(reportData)"> 发布确认</el-button>
|
|
|
</div>
|
|
|
- <div v-if="tagData.analysisList || tagData.confirmeList" class="report-bottom">
|
|
|
+ <div v-show="tagData.analysisList || tagData.confirmeList || tagData.toBeConfirmList" class="report-bottom">
|
|
|
<i class="el-icon-warning report-icon-warning" />
|
|
|
<span v-if="tagData.analysisList"> 本月质量月报<b>{{ tagData.analysisList }}</b>有您负责的重点问题需要分析反馈,请点击<b>{{ tagData.analysisList }}</b>的"查看更多"按钮进入填写!</span>
|
|
|
- <span v-if="tagData.confirmeList && tagData.toBeConfirmList"> 已确认业务线<b>{{ tagData.confirmeList }}</b> ,未确认业务线<b>{{ tagData.toBeConfirmList }}</b>。 </span>
|
|
|
+ <span v-if="tagData.confirmeList || tagData.toBeConfirmList"> 已确认业务线<b>{{ tagData.confirmeList }}</b> ,未确认业务线<b>{{ tagData.toBeConfirmList }}</b>。 </span>
|
|
|
</div>
|
|
|
- <el-row :gutter="12" style="height: calc(100vh - 160px); overflow-y: auto;">
|
|
|
+ <el-row :gutter="12" style="height: calc(100vh - 150px); overflow-y: auto;">
|
|
|
<el-col v-for="(i, k) in tagData.subReportList" :key="k" :span="8">
|
|
|
<monthlyEards :datas="i" />
|
|
|
</el-col>
|
|
@@ -80,6 +80,7 @@ import normalDialog from '@/components/dialog/normalDialog'
|
|
|
import headerCom from './components/header'
|
|
|
import monthlyEards from './components/monthlyEards'
|
|
|
import { getAvaliableInfo, monthlyReportIndex, getReportBizInfo, createMonthlyReport } from '@/api/qualityMonthlyReport'
|
|
|
+import { sendConfirm } from '@/api/qualityMonthlyReport/edit'
|
|
|
|
|
|
export default {
|
|
|
name: '',
|
|
@@ -143,15 +144,20 @@ export default {
|
|
|
const data = { ...this.setReportData, startTime: this.setReportData.startAndEnd[0], endTime: this.setReportData.startAndEnd[1] }
|
|
|
createMonthlyReport(data).then(res => {
|
|
|
if (res.code === 200) {
|
|
|
- console.log(res)
|
|
|
this.loading = false
|
|
|
- // this.$store.commit('monthlyReportEdit/INIT_PAGE_DATA', { ...res.data })
|
|
|
this.$router.push({ path: '/monthlyReport/edit', query: { pageType: 'editAll', reportId: res.data.id }})
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
+ async sendConfirm() {
|
|
|
+ console.log(this.reportStatus)
|
|
|
+ const res = await sendConfirm({ id: this.reportStatus.id })
|
|
|
+ if (res.code === 200) {
|
|
|
+ this.getAvaliableInfo()
|
|
|
+ }
|
|
|
+ },
|
|
|
getReportStatus(e) {
|
|
|
this.monthlyReportIndex(e.id)
|
|
|
this.reportName = e.reportName
|