|
|
@ -185,12 +185,12 @@ |
|
|
|
prop="projectInvestmentEstimate" |
|
|
|
min-width="120" |
|
|
|
/> |
|
|
|
<el-table-column |
|
|
|
<!-- <el-table-column |
|
|
|
label="批复意见" |
|
|
|
align="center" |
|
|
|
prop="approvalOpinion" |
|
|
|
min-width="180" |
|
|
|
/> |
|
|
|
/> --> |
|
|
|
<!-- <el-table-column |
|
|
|
label="可行性研究报告文件" |
|
|
|
align="center" |
|
|
@ -433,7 +433,7 @@ |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="24"> |
|
|
|
<el-form-item label="项目内容" prop="content"> |
|
|
|
<el-form-item label="项目内容" prop="projectContent"> |
|
|
|
<el-input |
|
|
|
v-model="form.projectContent" |
|
|
|
placeholder="请输入项目内容" |
|
|
@ -566,6 +566,10 @@ |
|
|
|
<template slot="label"> 审批时间 </template> |
|
|
|
{{ this.reportMsg.approvalTime }} |
|
|
|
</el-descriptions-item> |
|
|
|
<el-descriptions-item> |
|
|
|
<template slot="label"> 批复意见 </template> |
|
|
|
{{ this.reportMsg.approvalOpinion }} |
|
|
|
</el-descriptions-item> |
|
|
|
|
|
|
|
<el-descriptions-item span="2"> |
|
|
|
<template slot="label"> 可行性研究报告文件 </template> |
|
|
@ -720,6 +724,13 @@ export default { |
|
|
|
form: {}, |
|
|
|
// 表单校验 |
|
|
|
rules: { |
|
|
|
reportTime: [ |
|
|
|
{ |
|
|
|
message: "上报时间不能晚于审批时间", |
|
|
|
trigger: "blur", |
|
|
|
validate: this.compareTime, |
|
|
|
}, |
|
|
|
], |
|
|
|
compilingUnit: [ |
|
|
|
{ max: 250, message: "字符长度最大为250", trigger: "blur" }, |
|
|
|
], |
|
|
@ -736,9 +747,11 @@ export default { |
|
|
|
}, |
|
|
|
], |
|
|
|
approvalOpinion: [ |
|
|
|
{ max: 250, message: "字符长度最大为250", trigger: "blur" }, |
|
|
|
{ max: 1000, message: "字符长度最大为1000", trigger: "blur" }, |
|
|
|
], |
|
|
|
projectContent: [ |
|
|
|
{ max: 1000, message: "字符长度最大为1000", trigger: "blur" }, |
|
|
|
], |
|
|
|
content: [{ max: 250, message: "字符长度最大为250", trigger: "blur" }], |
|
|
|
}, |
|
|
|
projectType: "", |
|
|
|
proNo: "", |
|
|
@ -762,6 +775,18 @@ export default { |
|
|
|
}); |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
compareTime() { |
|
|
|
if (this.form.reportTime && this.form.approvalTime) { |
|
|
|
// dateStr = dateStr.substring(0,19); |
|
|
|
let dateStr1 = this.form.reportTime.replace(/-/g, "/"); |
|
|
|
let dateStr2 = this.form.approvalTime.replace(/-/g, "/"); |
|
|
|
let timeTamp1 = new Date(dateStr1).getTime(); |
|
|
|
let timeTamp2 = new Date(dateStr2).getTime(); |
|
|
|
console.log(1111, timeTamp1, timeTamp2); |
|
|
|
if (timeTamp1 > timeTamp2) return false; |
|
|
|
return true; |
|
|
|
} |
|
|
|
}, |
|
|
|
formatAdcd(row) { |
|
|
|
if (row.adcd) { |
|
|
|
let provinceCode = row.adcd.slice(0, 2); |
|
|
|