学生资助-手写签名改为从学生资料获取

This commit is contained in:
2026-03-12 12:13:15 +08:00
parent 5550482a51
commit 867d98bba1
6 changed files with 111 additions and 67 deletions

View File

@@ -450,6 +450,7 @@
import { addApply, updateApply, getApply, infoCheck, getStuByXh, getxh, extraInfo, stuInfoView, getOwnFamily, getCurrentYear, queryByStuNo, getKnrdYear } from '@/api/finance/poverty'
import uploadFile from "@/plugins/upload.js"
import { queryAffixs, getAffixItems, deleteAffix } from '@/api/affix'
import { getUserProfile } from '@/api/system/user'
import config from '@/config'
export default {
data() {
@@ -626,6 +627,9 @@ import config from '@/config'
this.formData.xb = res.data.gender
this.formData.phone = res.data.phone
// 获取用户签名
this.getUserSignature()
// 获取扩展信息
this.getOwnInfo()
// 获取家庭成员信息
@@ -639,6 +643,22 @@ import config from '@/config'
this.loading = false
})
},
// 获取用户签名
getUserSignature() {
getUserProfile().then(res => {
if (res.code === 200 && res.data) {
const signature = res.data.signature
if (signature) {
// 设置表单签名字段
this.formData.sqrqm = signature
// 构造完整的图片URL
this.signImg = this.baseUrl + signature
}
}
}).catch(err => {
console.error('获取用户签名失败:', err)
})
},
// 获取申请详情
getApplyDetail() {
if (!this.applyId) return