同意重阅申请更改
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
|
this.signVisible = false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
confirmReReading(row, type, open, signInfo) {
|
async confirmReReading(row, type, open, signInfo) {
|
||||||
if (open) {
|
if (open) {
|
||||||
this.rowData = { ...row }
|
this.rowData = { ...row }
|
||||||
this.ConfirmReReadingVisible = true
|
this.ConfirmReReadingVisible = true
|
||||||
|
@ -795,41 +795,41 @@ export default {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (type === 2) {
|
if (type === 2) {
|
||||||
this.$refs.reasonForm.validate((valid) => {
|
let valid = await this.$refs.reasonForm.validate()
|
||||||
if (!valid) return
|
if (!valid) return
|
||||||
var params = {
|
var params = {
|
||||||
data: {
|
data: {
|
||||||
ConfirmReReadingList: [
|
ConfirmReReadingList: [
|
||||||
{
|
{
|
||||||
Id: row.Id,
|
Id: row.Id,
|
||||||
OriginalReReadingTaskId: row.OriginalReReadingTaskId,
|
OriginalReReadingTaskId: row.OriginalReReadingTaskId,
|
||||||
RootReReadingTaskId: row.RootReReadingTaskId,
|
RootReReadingTaskId: row.RootReReadingTaskId,
|
||||||
NewReReadingTaskId: row.NewReReadingTaskId
|
NewReReadingTaskId: row.NewReReadingTaskId
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
RequestReReadingRejectReason: this.ConfirmReReadingForm.RequestReReadingRejectReason,
|
RequestReReadingRejectReason: this.ConfirmReReadingForm.RequestReReadingRejectReason,
|
||||||
TrialId: this.$route.query.trialId,
|
TrialId: this.$route.query.trialId,
|
||||||
RequestReReadingResultEnum: type
|
RequestReReadingResultEnum: type
|
||||||
},
|
},
|
||||||
signInfo: signInfo
|
signInfo: signInfo
|
||||||
}
|
}
|
||||||
this.loading = true
|
this.loading = true
|
||||||
this.btnLoading = true
|
this.btnLoading = true
|
||||||
confirmReReading(params).then(() => {
|
try {
|
||||||
this.loading = false
|
await confirmReReading(params)
|
||||||
this.btnLoading = false
|
this.loading = false
|
||||||
// 同意申请成功/拒绝申请成功
|
this.btnLoading = false
|
||||||
this.$message.success(`${type === 1 ? this.$t('trials:rereadTrack:message:msg3') : this.$t('trials:rereadTrack:message:msg4')}`)
|
// 同意申请成功/拒绝申请成功
|
||||||
this.$refs['signForm'].btnLoading = false
|
this.$message.success(`${type === 1 ? this.$t('trials:rereadTrack:message:msg3') : this.$t('trials:rereadTrack:message:msg4')}`)
|
||||||
this.signVisible = false
|
this.$refs['signForm'].btnLoading = false
|
||||||
this.getList()
|
this.signVisible = false
|
||||||
this.ConfirmReReadingVisible = false
|
this.getList()
|
||||||
}).catch(() => {
|
this.ConfirmReReadingVisible = false
|
||||||
this.loading = false
|
} catch (e) {
|
||||||
this.$refs['signForm'].btnLoading = false
|
this.loading = false
|
||||||
this.btnLoading = false
|
this.$refs['signForm'].btnLoading = false
|
||||||
})
|
this.btnLoading = false
|
||||||
})
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
var params = {
|
var params = {
|
||||||
|
@ -849,21 +849,29 @@ export default {
|
||||||
}
|
}
|
||||||
this.loading = true
|
this.loading = true
|
||||||
this.btnLoading = true
|
this.btnLoading = true
|
||||||
confirmReReading(params).then(() => {
|
try {
|
||||||
|
let res = await confirmReReading(params)
|
||||||
this.loading = false
|
this.loading = false
|
||||||
this.btnLoading = 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
|
this.$refs['signForm'].btnLoading = false
|
||||||
this.signVisible = false
|
if (res.ErrorMessage) {
|
||||||
this.getList()
|
let alert = await this.$alert(res.ErrorMessage)
|
||||||
}).catch(() => {
|
if (alert !== "confirm") return
|
||||||
|
this.ReReadingOrBackVisible = false
|
||||||
|
this.signVisible = false
|
||||||
|
this.getList()
|
||||||
|
} 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.loading = false
|
||||||
this.$refs['signForm'].btnLoading = false
|
this.$refs['signForm'].btnLoading = false
|
||||||
this.btnLoading = false
|
this.btnLoading = false
|
||||||
})
|
}
|
||||||
},
|
},
|
||||||
assignSubjectTaskToDoctor(row, type) {
|
assignSubjectTaskToDoctor(row, type) {
|
||||||
this.rowData = { ...row }
|
this.rowData = { ...row }
|
||||||
|
|
Loading…
Reference in New Issue