|
|
@@ -28,8 +28,23 @@
|
|
|
<el-button :loading="submitLoading" size="small" type="primary" @click="handleEditSubmit">保存</el-button>
|
|
|
</template>
|
|
|
<template v-else>
|
|
|
- <el-button v-if="isProcessingTask" size="small" @click="handleAddWorkHour">工时</el-button>
|
|
|
- <el-button v-if="isProcessingTask" size="small" type="primary" @click="handleCompleteTask">完成</el-button>
|
|
|
+ <el-button v-if="isProcessingTask && isWorkHourAllowedType" size="small" @click="handleAddWorkHour">
|
|
|
+ 工时
|
|
|
+ </el-button>
|
|
|
+ <el-button
|
|
|
+ v-if="isProcessingTask && !isReleaseTask"
|
|
|
+ size="small"
|
|
|
+ type="primary"
|
|
|
+ @click="handleCompleteTask">
|
|
|
+ 完成
|
|
|
+ </el-button>
|
|
|
+ <el-button
|
|
|
+ v-if="isProcessingTask && isReleaseTask"
|
|
|
+ size="small"
|
|
|
+ type="primary"
|
|
|
+ @click="handleReleaseCompleteTask">
|
|
|
+ 发版完成
|
|
|
+ </el-button>
|
|
|
<el-button size="small" @click="handleClose">关闭</el-button>
|
|
|
</template>
|
|
|
</div>
|
|
|
@@ -500,8 +515,16 @@
|
|
|
<complete-dialog
|
|
|
:task-data="detailData"
|
|
|
:task-id="detailData && detailData.id"
|
|
|
+ :test-result="detailData && detailData.testResult"
|
|
|
:visible.sync="completeDialogVisible"
|
|
|
@refresh="handleRefreshData" />
|
|
|
+
|
|
|
+ <!-- 发版完成弹窗 -->
|
|
|
+ <release-complete-dialog
|
|
|
+ :task-data="detailData"
|
|
|
+ :task-id="detailData && detailData.id"
|
|
|
+ :visible.sync="releaseCompleteDialogVisible"
|
|
|
+ @refresh="handleRefreshData" />
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
@@ -519,10 +542,19 @@
|
|
|
import WorkHourListDialog from './WorkHourListDialog.vue'
|
|
|
import WorkHourDialog from './WorkHourDialog.vue'
|
|
|
import CompleteDialog from './CompleteDialog.vue'
|
|
|
+ import ReleaseCompleteDialog from './ReleaseCompleteDialog.vue'
|
|
|
|
|
|
export default {
|
|
|
name: 'TaskDetailDialog',
|
|
|
- components: { Editor, Toolbar, ReleaseTaskListDialog, WorkHourListDialog, WorkHourDialog, CompleteDialog },
|
|
|
+ components: {
|
|
|
+ Editor,
|
|
|
+ Toolbar,
|
|
|
+ ReleaseTaskListDialog,
|
|
|
+ WorkHourListDialog,
|
|
|
+ WorkHourDialog,
|
|
|
+ CompleteDialog,
|
|
|
+ ReleaseCompleteDialog,
|
|
|
+ },
|
|
|
props: {
|
|
|
visible: {
|
|
|
type: Boolean,
|
|
|
@@ -547,6 +579,7 @@
|
|
|
workHourListDialogVisible: false,
|
|
|
workHourDialogVisible: false,
|
|
|
completeDialogVisible: false,
|
|
|
+ releaseCompleteDialogVisible: false,
|
|
|
// 参会人员列表(需求评审类型)
|
|
|
participantList: [],
|
|
|
// 快速登记相关
|
|
|
@@ -644,6 +677,9 @@
|
|
|
isProcessingTask() {
|
|
|
return this.detailData && String(this.detailData.taskStatus) === '20'
|
|
|
},
|
|
|
+ isWorkHourAllowedType() {
|
|
|
+ return this.detailData && ['20', '25', '30', '35'].includes(String(this.detailData.taskType))
|
|
|
+ },
|
|
|
},
|
|
|
watch: {
|
|
|
visible(val) {
|
|
|
@@ -699,9 +735,13 @@
|
|
|
handleCompleteTask() {
|
|
|
this.completeDialogVisible = true
|
|
|
},
|
|
|
+ handleReleaseCompleteTask() {
|
|
|
+ this.releaseCompleteDialogVisible = true
|
|
|
+ },
|
|
|
handleRefreshData() {
|
|
|
this.workHourDialogVisible = false
|
|
|
this.completeDialogVisible = false
|
|
|
+ this.releaseCompleteDialogVisible = false
|
|
|
if (this.detailData && this.detailData.id) {
|
|
|
this.fetchRecordList()
|
|
|
this.fetchAttachmentList()
|
|
|
@@ -778,6 +818,7 @@
|
|
|
this.workHourListDialogVisible = false
|
|
|
this.workHourDialogVisible = false
|
|
|
this.completeDialogVisible = false
|
|
|
+ this.releaseCompleteDialogVisible = false
|
|
|
this.isTaskDescExpanded = false
|
|
|
// 重置参会人员
|
|
|
this.participantList = []
|