|
@@ -1128,18 +1128,17 @@ export default {
|
|
|
this.detailsCollection()
|
|
|
for (let i = 0; i < this.dataList.length; i++) {
|
|
|
if (this.dataList[i].deptid === (null || "")) {
|
|
|
- return this.$message.error(`请输入明细列表第${i + 1}行的任务部门`);
|
|
|
+ return this.$message.error(`请输入明细列表中的任务部门`);
|
|
|
}
|
|
|
- if (this.dataList[i].beginTime === (null || "")) {
|
|
|
- return this.$message.error(`请输入明细列表第${i + 1}行的开始日期`);
|
|
|
+ if (this.dataList[i].beginTime === (null || "") && this.dataList[i].projectType != 0) {
|
|
|
+ return this.$message.error(`请输入明细列表中的开始日期`);
|
|
|
}
|
|
|
- if (this.dataList[i].actualDate === (null || "")) {
|
|
|
- return this.$message.error(`请输入明细列表第${i + 1}行的结束`);
|
|
|
+ if (this.dataList[i].actualDate === (null || "") && this.dataList[i].projectType != 0) {
|
|
|
+ return this.$message.error(`请输入明细列表中的结束日期`);
|
|
|
}
|
|
|
- if (this.dataList[i].frequency === (null || "")) {
|
|
|
- return this.$message.error(`请输入明细列表第${i + 1}行的频率`);
|
|
|
+ if (this.dataList[i].frequency === (null || "") && this.dataList[i].projectType == 0) {
|
|
|
+ return this.$message.error(`请输入明细列表中的频率`);
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
this.buttonLoading = true
|
|
|
|