Преглед на файлове

月报设置:状态修复

洪海涛 преди 4 години
родител
ревизия
4e7dab2ecd
променени са 2 файла, в които са добавени 7 реда и са изтрити 6 реда
  1. 1 1
      src/views/monthlyReport/components/monthlyEards.vue
  2. 6 5
      src/views/monthlyReport/index.vue

+ 1 - 1
src/views/monthlyReport/components/monthlyEards.vue

@@ -3,7 +3,7 @@
     <div class="Layout-flex report-header">
       <span>{{ data.bizName }}</span>
       <el-button v-show="data.status === 20 || data.status === 30" type="text" @click="$router.push({ path: '/monthlyReport/edit', query: { pageType: data.status === 0 ? 'edit' : 'read', reportId: data.parentId, subReportId: data.subReportId }})">查看更多</el-button>
-      <el-button v-show="data.status < 20" type="text" @click="$router.push({ path: '/monthlyReport/edit', query: { pageType: 'edit', subReportId: data.subReportId, reportId: data.parentId }})">填写</el-button>
+      <!--<el-button v-show="data.status < 20" type="text" @click="$router.push({ path: '/monthlyReport/edit', query: { pageType: 'edit', subReportId: data.subReportId, reportId: data.parentId }})">填写</el-button>-->
     </div>
     <div class="report-title">
       <svg-icon class="report-icon-title" icon-class="icon-red" />重点问题

+ 6 - 5
src/views/monthlyReport/index.vue

@@ -80,7 +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'
+// import { sendConfirm } from '@/api/qualityMonthlyReport/edit'
 
 export default {
   name: '',
@@ -155,10 +155,11 @@ export default {
     },
     async sendConfirm() {
       console.log(this.reportStatus)
-      const res = await sendConfirm({ id: this.reportStatus.id })
-      if (res.code === 200) {
-        this.getAvaliableInfo()
-      }
+      this.$router.push({ path: '/monthlyReport/edit', query: { pageType: 'editAll', reportId: this.reportStatus.id }})
+      // const res = await sendConfirm({ id: this.reportStatus.id })
+      // if (res.code === 200) {
+      //   this.getAvaliableInfo()
+      // }
     },
     getReportStatus(e) {
       this.monthlyReportIndex(e.id)