|
|
|
|
@ -438,13 +438,12 @@ export default {
|
|
|
|
|
|
|
|
|
|
canAllocate(row) {
|
|
|
|
|
const year = row.budget_year || {}
|
|
|
|
|
return year.status === 'ACTIVE' && year.current_phase === 'DOWN'
|
|
|
|
|
return year.status === 'ACTIVE'
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
canOpenSummary(row) {
|
|
|
|
|
const year = row.budget_year || {}
|
|
|
|
|
return Boolean(this.getLeadSubmission(row)) ||
|
|
|
|
|
(year.status === 'ACTIVE' && year.current_phase === 'UP')
|
|
|
|
|
return Boolean(this.getLeadSubmission(row)) || year.status === 'ACTIVE'
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
openSplitDialog(row) {
|
|
|
|
|
@ -465,7 +464,10 @@ export default {
|
|
|
|
|
this.currentSummaryPackage = { ...row }
|
|
|
|
|
// 根据是否已有提交记录判断模式
|
|
|
|
|
const submission = this.getLeadSubmission(row)
|
|
|
|
|
this.summaryMode = !submission ? 'create' : submission.status === 'draft' ? 'edit' : 'view'
|
|
|
|
|
const isActiveYear = row.budget_year && row.budget_year.status === 'ACTIVE'
|
|
|
|
|
this.summaryMode = !isActiveYear
|
|
|
|
|
? 'view'
|
|
|
|
|
: !submission ? 'create' : submission.status === 'draft' ? 'edit' : 'view'
|
|
|
|
|
this.summarySubmitVisible = true
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|