同意重阅申请更改
continuous-integration/drone/push Build is passing Details

uat_us
caiyiling 2024-07-25 14:08:50 +08:00
parent ca18abe26e
commit de638b1436
1 changed files with 53 additions and 45 deletions

View File

@ -785,7 +785,7 @@ export default {
this.signVisible = false
}
},
confirmReReading(row, type, open, signInfo) {
async confirmReReading(row, type, open, signInfo) {
if (open) {
this.rowData = { ...row }
this.ConfirmReReadingVisible = true
@ -795,7 +795,7 @@ export default {
return
}
if (type === 2) {
this.$refs.reasonForm.validate((valid) => {
let valid = await this.$refs.reasonForm.validate()
if (!valid) return
var params = {
data: {
@ -815,7 +815,8 @@ export default {
}
this.loading = true
this.btnLoading = true
confirmReReading(params).then(() => {
try {
await confirmReReading(params)
this.loading = false
this.btnLoading = false
// /
@ -824,12 +825,11 @@ export default {
this.signVisible = false
this.getList()
this.ConfirmReReadingVisible = false
}).catch(() => {
} catch (e) {
this.loading = false
this.$refs['signForm'].btnLoading = false
this.btnLoading = false
})
})
}
return
}
var params = {
@ -849,21 +849,29 @@ export default {
}
this.loading = true
this.btnLoading = true
confirmReReading(params).then(() => {
try {
let res = await confirmReReading(params)
this.loading = false
this.btnLoading = false
// this.$message.success(`${type === 1 ? '' : ''}`)
// /
this.$message.success(`${type === 1 ? this.$t('trials:rereadTrack:message:msg3') : this.$t('trials:rereadTrack:message:msg4')}`)
this.ReReadingOrBackVisible = false
this.$refs['signForm'].btnLoading = false
if (res.ErrorMessage) {
let alert = await this.$alert(res.ErrorMessage)
if (alert !== "confirm") return
this.ReReadingOrBackVisible = false
this.signVisible = false
this.getList()
}).catch(() => {
} else {
// /
this.$message.success(`${type === 1 ? this.$t('trials:rereadTrack:message:msg3') : this.$t('trials:rereadTrack:message:msg4')}`)
this.signVisible = false
this.getList()
}
} catch (e) {
this.loading = false
this.$refs['signForm'].btnLoading = false
this.btnLoading = false
})
}
},
assignSubjectTaskToDoctor(row, type) {
this.rowData = { ...row }