|
@@ -366,8 +366,9 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
// 月报更新
|
|
|
- upDateReport(key = 'cb') {
|
|
|
+ upDateReport(key = 'cb', confirmReportBack) {
|
|
|
this.$store.dispatch(`monthlyReportEdit/${this.pageType.search(/All/) > -1 ? 'upDateReport' : 'upDateSubReport'}`, () => {
|
|
|
+ confirmReportBack && confirmReportBack()
|
|
|
if (key === 'cb') {
|
|
|
this.$router.push({ path: '/monthlyReport/index' })
|
|
|
}
|
|
@@ -375,12 +376,13 @@ export default {
|
|
|
},
|
|
|
// 月报确认
|
|
|
confirmReport() {
|
|
|
- this.upDateReport('nocb')
|
|
|
- this.$store.dispatch('monthlyReportEdit/confirmReport', {
|
|
|
- id: this.$route.query.subReportId,
|
|
|
- callback: () => {
|
|
|
- this.$router.push({ path: '/monthlyReport/index' })
|
|
|
- }
|
|
|
+ this.upDateReport('nocb', () => {
|
|
|
+ this.$store.dispatch('monthlyReportEdit/confirmReport', {
|
|
|
+ id: this.$route.query.subReportId,
|
|
|
+ callback: () => {
|
|
|
+ this.$router.push({ path: '/monthlyReport/index' })
|
|
|
+ }
|
|
|
+ })
|
|
|
})
|
|
|
},
|
|
|
deleteReport(key) {
|
|
@@ -420,12 +422,13 @@ export default {
|
|
|
// this.$message('发送操作已取消!')
|
|
|
return
|
|
|
}
|
|
|
- this.upDateReport('nocb')
|
|
|
- this.$store.dispatch('monthlyReportEdit/sendReport', {
|
|
|
- id: this.$route.query.reportId,
|
|
|
- callback: () => {
|
|
|
- this.$router.push({ path: '/monthlyReport/index' })
|
|
|
- }
|
|
|
+ this.upDateReport('nocb', () => {
|
|
|
+ this.$store.dispatch('monthlyReportEdit/sendReport', {
|
|
|
+ id: this.$route.query.reportId,
|
|
|
+ callback: () => {
|
|
|
+ this.$router.push({ path: '/monthlyReport/index' })
|
|
|
+ }
|
|
|
+ })
|
|
|
})
|
|
|
},
|
|
|
// 月报退回
|