【bug】bug修改

This commit is contained in:
fengachen
2021-12-23 17:53:45 +08:00
parent 9cd215f04e
commit 46e4660485
2 changed files with 27 additions and 16 deletions
@@ -134,8 +134,12 @@ export default {
}
},
methods: {
open(record) {
this.getProofInfo(record)
async open(record) {
let flag = await this.getProofInfo(record)
if(!flag){
this.$message.warn('项目已审核')
return
}
this.form.resetFields()
let userInfo = Vue.ls.get(USER_INFO)
// 默认隐藏说明
@@ -187,19 +191,25 @@ export default {
} else {
httpMethod = getLastProofInfo
}
httpMethod(param).then(res => {
if (res.success) {
this.proofInfo = res.result
// 标协会员、证书的缴费凭证文件、缴费金额、缴费日期、申请人字段和普通项目、工作组项目、资料网员的不一致
if (record.projectType.toString() === '5' || record.projectType.toString() === '6') {
this.proofInfo.proof = res.result.paymentRecord
this.proofInfo.amountReceived = res.result.amountReceivable
this.proofInfo.paymentDate = res.result.submissionTime
this.proofInfo.applicantName = res.result.liaisonMan
return new Promise(resolve => {
httpMethod(param).then(res => {
if (res.success && res.result !== '无数据') {
this.proofInfo = res.result
// 标协会员、证书的缴费凭证文件、缴费金额、缴费日期、申请人字段和普通项目、工作组项目、资料网员的不一致
if (record.projectType.toString() === '5' || record.projectType.toString() === '6') {
this.proofInfo.proof = res.result.paymentRecord
this.proofInfo.amountReceived = res.result.amountReceivable
this.proofInfo.paymentDate = res.result.submissionTime
this.proofInfo.applicantName = res.result.liaisonMan
}
this.getProofType(record)
resolve(true)
}else{
resolve(false)
}
this.getProofType(record)
}
})
})
}
},
handleOk() {