+ v-if="readingTaskState < 2 && task.VisitTaskId === visitTaskId && (scope.row.Type === 'input' || scope.row.Type === 'number' || scope.row.Type === 'select' || scope.row.Type === 'textarea' || scope.row.Type === 'radio')">
+ v-if="!((task.IsBaseLine && scope.row.LimitEdit === 1) || (!task.IsBaseLine && scope.row.LimitEdit === 2) || scope.row.LimitEdit === 0)" />
+ size="mini" />
{{ questionForm[scope.row.QuestionId][scope.row.xfIndex][scope.row.TableQuestionId] }}
+ v-else-if="questionForm[scope.row.QuestionId] instanceof Array && (scope.row.Type === 'input' || scope.row.Type === 'textarea')">{{
+ questionForm[scope.row.QuestionId][scope.row.xfIndex][scope.row.TableQuestionId] }}
- {{ questionForm[scope.row.QuestionId] }}
+ v-model="questionForm[scope.row.QuestionId]" size="mini" />
+ {{
+ questionForm[scope.row.QuestionId] }}
+ size="mini" clearable :multiple="scope.row.OptionTypeEnum === 1">
-
+
+ v-else-if="questionForm[scope.row.QuestionId] instanceof Array && questionForm[scope.row.QuestionId][scope.row.xfIndex] && (scope.row.Type === 'select' || scope.row.Type === 'radio')">
{{
- Array.isArray(questionForm[scope.row.QuestionId][scope.row.xfIndex][scope.row.TableQuestionId])
- ?
- questionForm[scope.row.QuestionId][scope.row.xfIndex][scope.row.TableQuestionId].join(',') :
- questionForm[scope.row.QuestionId][scope.row.xfIndex][scope.row.TableQuestionId]
+ Array.isArray(questionForm[scope.row.QuestionId][scope.row.xfIndex][scope.row.TableQuestionId])
+ ?
+ questionForm[scope.row.QuestionId][scope.row.xfIndex][scope.row.TableQuestionId].join(',') :
+ questionForm[scope.row.QuestionId][scope.row.xfIndex][scope.row.TableQuestionId]
}}
+ v-model="questionForm[scope.row.QuestionId]" size="mini" clearable
+ :multiple="scope.row.OptionTypeEnum === 1">
-
+
{{
- questionForm[scope.row.QuestionId] && Array.isArray(questionForm[scope.row.QuestionId]) ?
- questionForm[scope.row.QuestionId].join(',') :
- questionForm[scope.row.QuestionId]
+ questionForm[scope.row.QuestionId] && Array.isArray(questionForm[scope.row.QuestionId]) ?
+ questionForm[scope.row.QuestionId].join(',') :
+ questionForm[scope.row.QuestionId]
}}
{ questionId = scope.row.QuestionId }"
- >
+ @focus="() => { questionId = scope.row.QuestionId }">
{{ scope.row.Unit !== 4 ? $fd('ValueUnit',
- scope.row.Unit) : scope.row.CustomUnit }}
+ scope.row.Unit) : scope.row.CustomUnit }}
%
-
+ v-else-if="questionForm[scope.row.QuestionId] instanceof Array && scope.row.Type === 'number' && (scope.row.xfIndex || scope.row.xfIndex === 0)">
+
{{
- isNaN(parseInt(questionForm[scope.row.QuestionId][scope.row.xfIndex][scope.row.TableQuestionId]))
- ?
- questionForm[scope.row.QuestionId][scope.row.xfIndex][scope.row.TableQuestionId] :
- `${questionForm[scope.row.QuestionId][scope.row.xfIndex][scope.row.TableQuestionId]}
+ isNaN(parseInt(questionForm[scope.row.QuestionId][scope.row.xfIndex][scope.row.TableQuestionId]))
+ ?
+ questionForm[scope.row.QuestionId][scope.row.xfIndex][scope.row.TableQuestionId] :
+ `${questionForm[scope.row.QuestionId][scope.row.xfIndex][scope.row.TableQuestionId]}
${scope.row.Unit !== 4 ? $fd('ValueUnit', scope.row.Unit) : scope.row.CustomUnit}` }}
{{
- isNaN(parseInt(questionForm[scope.row.QuestionId][scope.row.xfIndex][scope.row.TableQuestionId]))
- ?
- questionForm[scope.row.QuestionId][scope.row.xfIndex][scope.row.TableQuestionId] :
- `${questionForm[scope.row.QuestionId][scope.row.xfIndex][scope.row.TableQuestionId]}
+ isNaN(parseInt(questionForm[scope.row.QuestionId][scope.row.xfIndex][scope.row.TableQuestionId]))
+ ?
+ questionForm[scope.row.QuestionId][scope.row.xfIndex][scope.row.TableQuestionId] :
+ `${questionForm[scope.row.QuestionId][scope.row.xfIndex][scope.row.TableQuestionId]}
%` }}
{{
- isNaN(parseInt(questionForm[scope.row.QuestionId][scope.row.xfIndex][scope.row.TableQuestionId]))
- ?
- questionForm[scope.row.QuestionId][scope.row.xfIndex][scope.row.TableQuestionId] :
- `${questionForm[scope.row.QuestionId][scope.row.xfIndex][scope.row.TableQuestionId]}`
+ isNaN(parseInt(questionForm[scope.row.QuestionId][scope.row.xfIndex][scope.row.TableQuestionId]))
+ ?
+ questionForm[scope.row.QuestionId][scope.row.xfIndex][scope.row.TableQuestionId] :
+ `${questionForm[scope.row.QuestionId][scope.row.xfIndex][scope.row.TableQuestionId]}`
}}
{ questionId = scope.row.QuestionId }"
- >
+ @focus="() => { questionId = scope.row.QuestionId }">
{{ scope.row.Unit !== 4 ? $fd('ValueUnit',
- scope.row.Unit) : scope.row.CustomUnit }}
+ scope.row.Unit) : scope.row.CustomUnit }}
%
-
+
{{ isNaN(parseInt(questionForm[scope.row.QuestionId])) ?
- questionForm[scope.row.QuestionId] : `${questionForm[scope.row.QuestionId]} ${scope.row.Unit !== 4
- ?
- $fd('ValueUnit', scope.row.Unit) : scope.row.CustomUnit}` }}
+ questionForm[scope.row.QuestionId] : `${questionForm[scope.row.QuestionId]} ${scope.row.Unit !== 4
+ ?
+ $fd('ValueUnit', scope.row.Unit) : scope.row.CustomUnit}` }}
{{ isNaN(parseInt(questionForm[scope.row.QuestionId])) ?
- questionForm[scope.row.QuestionId] : `${questionForm[scope.row.QuestionId]} %` }}
+ questionForm[scope.row.QuestionId] : `${questionForm[scope.row.QuestionId]} %` }}
{{ isNaN(parseInt(questionForm[scope.row.QuestionId])) ? questionForm[scope.row.QuestionId] :
- questionForm[scope.row.QuestionId] }}
+ questionForm[scope.row.QuestionId] }}
-