首次阅片添加提示
continuous-integration/drone/push Build was killed
Details
continuous-integration/drone/push Build was killed
Details
parent
83274ec639
commit
bc06616115
|
@ -218,3 +218,11 @@ export function getCustomTag(param) {
|
|||
data: param
|
||||
})
|
||||
}
|
||||
|
||||
export function confirmTaskReminder(param) {
|
||||
return request({
|
||||
url: `/ReadingImageTask/confirmTaskReminder`,
|
||||
method: 'post',
|
||||
data: param
|
||||
})
|
||||
}
|
||||
|
|
|
@ -163,10 +163,12 @@
|
|||
</span>
|
||||
</el-dialog>
|
||||
|
||||
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import { getNextTask, readClinicalData, verifyDefaultQuestionBeAnswer } from '@/api/trials'
|
||||
import { confirmTaskReminder } from '@/api/reading'
|
||||
import ReadPage from './components/ReadPage'
|
||||
import CustomizeReadPage from './customize/CustomizeReadPage'
|
||||
import ReportPage from './components/ReportPage'
|
||||
|
@ -225,7 +227,8 @@ export default {
|
|||
isFullscreen: false,
|
||||
tipVisible: false,
|
||||
closeCDVisible: false,
|
||||
cdVisitTaskId: ''
|
||||
cdVisitTaskId: '',
|
||||
isConfirmTaskReminder: false
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
|
@ -327,6 +330,7 @@ export default {
|
|||
this.CriterionType = res.Result.CriterionType
|
||||
this.digitPlaces = res.Result.DigitPlaces
|
||||
this.IseCRFShowInDicomReading = res.Result.IseCRFShowInDicomReading
|
||||
this.isConfirmTaskReminder = res.Result.IsConfirmReminder
|
||||
localStorage.setItem('CriterionType', res.Result.CriterionType)
|
||||
localStorage.setItem('digitPlaces', res.Result.DigitPlaces)
|
||||
this.readingCategory = res.Result.ReadingCategory
|
||||
|
@ -341,6 +345,9 @@ export default {
|
|||
this.activeName = 'read'
|
||||
this.tabs = [this.activeName]
|
||||
}
|
||||
if (!this.isConfirmTaskReminder && res.Result.IsBaseLineTask ) {
|
||||
this.handleConfirmReminder()
|
||||
}
|
||||
if (this.firstTaskReadingCategory === 1 && res.Result.ReadingCategory === 1 && this.isReadingTaskViewInOrder && flag) {
|
||||
this.activeName = 'read'
|
||||
this.tabs = [this.activeName]
|
||||
|
@ -470,6 +477,28 @@ export default {
|
|||
})
|
||||
})
|
||||
},
|
||||
async handleConfirmReminder() {
|
||||
let i = this.$d.CriterionType.findIndex(i=>i.value === parseInt(this.criterionType))
|
||||
if (i === -1) return
|
||||
let criterionName = this.$d.CriterionType[i].label
|
||||
let msg = this.$t('trials:reading:criterion:message').replace('xxx', criterionName)
|
||||
this.$alert(msg, this.$t('common:message:prompt'), {
|
||||
callback: action => {
|
||||
let params = {
|
||||
visitTaskId: this.visitTaskId,
|
||||
}
|
||||
const loading = this.$loading({ fullscreen: true })
|
||||
confirmTaskReminder(params).then(res=>{
|
||||
loading.close()
|
||||
this.isConfirmTaskReminder = true
|
||||
this.$message.success(this.$t("common:message:confirmSuccessfully"))
|
||||
}).catch(e=>{
|
||||
console.log(e)
|
||||
loading.close()
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
handleConfirmCD() {
|
||||
this.loading = true
|
||||
var visitTaskId = this.visitTaskId
|
||||
|
|
Loading…
Reference in New Issue