Commit 42977a60 authored by zhangyanni's avatar zhangyanni

需求有效期不能小于当前时间

parent ee010f17
......@@ -1259,12 +1259,21 @@
if (valid) {
that.ruleForm.requirementEndTime = publicFunc.getDataFormatFunc(that.ruleForm.requirementEndTime, 0);
that.ruleForm.targetLabel = this.flagList1 ? this.flagList1.join(",") : "";
if(new Date(this.detailInfo.requirementEndTime+" 00:00:00").getTime()<new Date().getTime()){
this.$alert('需求有效期不能小于当前时间', "提示", {
confirmButtonText: '确定',
callback: action => {
}
});
return false;
}
this.$confirm('您的需求已更改,点击确认该需求会重新提交审核,通过后会更新为最新修改结果,确认将修改的内容提交审核吗?', '提示', {
confirmButtonText: '确认',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.submitDataFunc();
// this.submitDataFunc();
}).catch(() => {
that.$message({
type: 'info',
......
......@@ -1352,6 +1352,15 @@
this.ruleForm.companyLabel = this.flagList?this.flagList.join(","):"";
this.ruleForm.requirementEndTime = publicFunc.getDataFormatFunc(this.ruleForm.requirementEndTime,0);
this.ruleForm.companyLabel = this.flagList1?this.flagList1.join(","):"";
if(new Date(this.detailInfo.requirementEndTime+" 00:00:00").getTime()<new Date().getTime()){
this.$alert('需求有效期不能小于当前时间', "提示", {
confirmButtonText: '确定',
callback: action => {
}
});
return false;
}
if (!this.ruleForm.companyLogoUrl) return false;
this.$confirm('您的需求已更改,点击确认该需求会重新提交审核,通过后会更新为最新修改结果,确认将修改的内容提交审核吗?', '提示', {
confirmButtonText: '确认',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment