- {{ language==='en'?question.QuestionEnName:question.QuestionName }}
+
+ {{ language === 'en' ? question.QuestionEnName : question.QuestionName }}
+
+
+ {{ language === 'en' ? question.QuestionEnName : question.QuestionName }}
- {{ language==='en'?question.QuestionEnName:question.QuestionName }}
-
-
+ v-else-if="question.ClinicalQuestionType === 'table' && ((question.ClinicalQuestionShowEnum === 1 && question.ParentTriggerValue === questionForm[question.ParentId].toString()) || question.ClinicalQuestionShowEnum === 0)"
+ style="font-weight: bold;font-size: 14px;margin: 5px 0px;">
{{ question.QuestionName }}
-
+
{{ $t('trials:readingUnit:qsList:title:add') }}
-
-
-
+
+
+
{{ $t('common:button:edit') }}
-
+
{{ $t('common:button:delete') }}
@@ -54,187 +40,109 @@
+ v-if="(question.ClinicalQuestionShowEnum === 1 && question.ParentTriggerValue === questionForm[question.ParentId].toString()) || question.ClinicalQuestionShowEnum === 0"
+ :label="`${question.QuestionName}`" :prop="question.Id" :rules="[
+ {
+ required: (question.IsRequired === 0 || (question.IsRequired === 1 && question.RelevanceId && (question.RelevanceValue === questionForm[question.RelevanceId].toString()))) && question.ClinicalQuestionType !== 'summary' && question.ClinicalQuestionType !== 'group' && question.ClinicalQuestionType !== 'table',
+ message: this.$t('common:ruleMessage:specify'), trigger: ['blur', 'change']
+ }
+ ]" :class="[question.Type === 'group' ? 'mb' : question.Type === 'upload' ? 'uploadWrapper' : '']">
-
+ :max-length="question.MaxAnswerLength ? question.MaxAnswerLength : 200" />
-
+
- {formItemChange(val, question)})"
- >
+ @change="((val) => { formItemChange(val, question) })">
-
+
-
+
-
-
+
+
-
+
-
+
- {formItemChange(val, question)})"
- >
+ { formItemChange(val, question) })">
-
+
{{ item.label }}
-
+
{{ val }}
-
-
+
+
{{ val }}
-
+
{{ question.Unit }}
-
- {{ questionForm[JSON.parse(question.CalculateQuestions)[0].TableQuestionId] }}~{{ questionForm[JSON.parse(question.CalculateQuestions)[0].QuestionId] }}
+
+ {{ questionForm[JSON.parse(question.CalculateQuestions)[0].TableQuestionId] }}~{{
+ questionForm[JSON.parse(question.CalculateQuestions)[0].QuestionId] }}
-
- {{ questionForm[JSON.parse(question.CalculateQuestions)[0].TableQuestionId] }}~{{ questionForm.CreateTime ? questionForm.CreateTime : parseTime(new Date(), '{y}-{m}-{d}') }}
+
+ {{ questionForm[JSON.parse(question.CalculateQuestions)[0].TableQuestionId] }}~{{ questionForm.CreateTime ?
+ questionForm.CreateTime : parseTime(new Date(), '{y}-{m}-{d}') }}
-
+
{{ $t('trials:components:clinicalDataQS:msg:birthDay') }}
-
-
+
+
-
-
-
+
+
+