同意重阅申请更改
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
ca18abe26e
commit
de638b1436
|
@ -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 }
|
||||
|
|
Loading…
Reference in New Issue