|
@@ -307,10 +307,14 @@ export default {
|
|
|
})
|
|
|
switch (this.ins) {
|
|
|
case 1:
|
|
|
- this.dialogDaily = true
|
|
|
- this.$nextTick(() => {
|
|
|
- this.$refs.DailyReport.init(7, [e])
|
|
|
- })
|
|
|
+ if (taskData.status !== 3) {
|
|
|
+ this.$message({ message: '存在状态不是【测试中】的任务,请将任务状态为【测试中】才可准出,请检查!', type: 'warning' })
|
|
|
+ } else {
|
|
|
+ this.dialogDaily = true
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.$refs.DailyReport.init(7, [e])
|
|
|
+ })
|
|
|
+ }
|
|
|
break
|
|
|
case 2:
|
|
|
if (taskData.status !== 3) {
|