|
@ -246,10 +246,12 @@ |
|
|
<el-form-item label="起始年月" prop="timeScope"> |
|
|
<el-form-item label="起始年月" prop="timeScope"> |
|
|
<el-date-picker |
|
|
<el-date-picker |
|
|
v-model="form.timeScope" |
|
|
v-model="form.timeScope" |
|
|
|
|
|
value-format="yyyy-MM-dd" |
|
|
type="daterange" |
|
|
type="daterange" |
|
|
range-separator="至" |
|
|
range-separator="至" |
|
|
start-placeholder="开始日期" |
|
|
start-placeholder="开始日期" |
|
|
end-placeholder="结束日期"> |
|
|
end-placeholder="结束日期" |
|
|
|
|
|
> |
|
|
</el-date-picker> |
|
|
</el-date-picker> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
@ -428,7 +430,10 @@ export default { |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
// 表单参数 |
|
|
// 表单参数 |
|
|
form: {}, |
|
|
form: { |
|
|
|
|
|
timeScope: [], |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
// 表单校验 |
|
|
// 表单校验 |
|
|
rules: { |
|
|
rules: { |
|
|
timeScope: [ |
|
|
timeScope: [ |
|
@ -571,10 +576,9 @@ export default { |
|
|
const id = row.id || this.ids; |
|
|
const id = row.id || this.ids; |
|
|
getFunds(id).then((response) => { |
|
|
getFunds(id).then((response) => { |
|
|
|
|
|
|
|
|
this.timeScope.push(response.data.startYear) |
|
|
|
|
|
this.timeScope.push(response.data.endYear) |
|
|
|
|
|
|
|
|
|
|
|
this.form = response.data; |
|
|
this.form = response.data; |
|
|
|
|
|
|
|
|
|
|
|
this.form.timeScope= [response.data.startYear,response.data.endYear]; |
|
|
this.open = true; |
|
|
this.open = true; |
|
|
this.title = "修改资金支付"; |
|
|
this.title = "修改资金支付"; |
|
|
}); |
|
|
}); |
|
@ -584,6 +588,8 @@ export default { |
|
|
this.$refs["form"].validate((valid) => { |
|
|
this.$refs["form"].validate((valid) => { |
|
|
if (valid) { |
|
|
if (valid) { |
|
|
if (this.form.id != null) { |
|
|
if (this.form.id != null) { |
|
|
|
|
|
this.form.startYear = this.form.timeScope[0]; |
|
|
|
|
|
this.form.endYear = this.form.timeScope[1]; |
|
|
updateFunds(this.form).then((response) => { |
|
|
updateFunds(this.form).then((response) => { |
|
|
if (response.code === 200) { |
|
|
if (response.code === 200) { |
|
|
this.msgSuccess("修改成功"); |
|
|
this.msgSuccess("修改成功"); |
|
@ -666,27 +672,10 @@ export default { |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*expandChange(row) { |
|
|
|
|
|
if(!row.loadDetails){ |
|
|
|
|
|
|
|
|
|
|
|
//根据loadDetails判定是否已经加载了数据 |
|
|
|
|
|
getRecord(row.id).then((res)=>{ |
|
|
|
|
|
row.details = res.data; |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
setTimeout(() =>{ |
|
|
|
|
|
row.loadDetails= true //加载成功之后更新标识 |
|
|
|
|
|
this.$message({ |
|
|
|
|
|
showClose: true, |
|
|
|
|
|
message: '数据加载成功' |
|
|
|
|
|
}) |
|
|
|
|
|
},1000) |
|
|
|
|
|
} |
|
|
|
|
|
},*/ |
|
|
|
|
|
// 表格中下载 |
|
|
// 表格中下载 |
|
|
downloadProjectFile(scope, index) { |
|
|
downloadProjectFile(scope, index) { |
|
|
// console.log(scope); |
|
|
// console.log(scope); |
|
|
let file = JSON.parse(scope.row.projectProposalAttachment)[index]; |
|
|
let file = JSON.parse(scope.row.paymentBill)[index]; |
|
|
this.handleProjectPreview(file); |
|
|
this.handleProjectPreview(file); |
|
|
}, |
|
|
}, |
|
|
// 查看信息中, 下载 |
|
|
// 查看信息中, 下载 |
|
|