|
@@ -1010,16 +1010,24 @@ export default {
|
|
|
createReport(e, ele) {
|
|
|
switch (e) {
|
|
|
case 1: // 提测
|
|
|
- this.dialogVisible1 = true
|
|
|
- this.$nextTick(() => { this.$refs.TestReport.init(1, ele) })
|
|
|
+ if (this.task_form.statusString !== '开发中') {
|
|
|
+ this.$message({ message: '存在状态不是【开发中】的任务,请将任务状态为【开发中】才可提测,请检查!', type: 'warning' })
|
|
|
+ } else {
|
|
|
+ this.dialogVisible1 = true
|
|
|
+ this.$nextTick(() => { this.$refs.TestReport.init(1, ele) })
|
|
|
+ }
|
|
|
break
|
|
|
case 2: // 日报
|
|
|
this.dialogDaily = true
|
|
|
this.$nextTick(() => { this.$refs.DailyReport.init(1) })
|
|
|
break
|
|
|
case 3:
|
|
|
- this.dialogClient = true
|
|
|
- this.$nextTick(() => { this.$refs.ClientReport.init(1, ele) })
|
|
|
+ if (this.task_form.statusString !== '测试中') {
|
|
|
+ this.$message({ message: '存在状态不是【测试中】的任务,请将任务状态为【测试中】才可准出,请检查!', type: 'warning' })
|
|
|
+ } else {
|
|
|
+ this.dialogClient = true
|
|
|
+ this.$nextTick(() => { this.$refs.ClientReport.init(1, ele) })
|
|
|
+ }
|
|
|
break
|
|
|
case 4:
|
|
|
this.modalShow = true
|