|
|
@ -18,7 +18,7 @@ |
|
|
|
<a-textarea |
|
|
|
v-model="a.answer" |
|
|
|
v-else-if="a.type === 2" |
|
|
|
style="height: 100px" |
|
|
|
style="height: 100px; width: 100%" |
|
|
|
@change="onChange($event, a.type, a.id, a.recordId)" |
|
|
|
/> |
|
|
|
<a-radio-group v-model="a.answer" v-else-if="a.type === 3" @change="onChange($event, a.type, a.id, a.recordId)"> |
|
|
@ -35,12 +35,13 @@ |
|
|
|
</a-col> |
|
|
|
</a-row> |
|
|
|
</a-checkbox-group> |
|
|
|
<a-select v-model="a.answer" v-else-if="a.type === 5" style="width: 120px" @change="onChange($event, a.type, a.id, a.recordId)"> |
|
|
|
<a-select v-model="a.answer" v-else-if="a.type === 5" style="width: 100%" @change="onChange($event, a.type, a.id, a.recordId)"> |
|
|
|
<a-select-option v-for="(b, c) in a.optionVos" :key="c" :value="b.showValue"> {{ b.showValue }} </a-select-option> |
|
|
|
</a-select> |
|
|
|
<a-date-picker |
|
|
|
show-time |
|
|
|
placeholder="日期时间选择" |
|
|
|
style="width: 100%" |
|
|
|
v-else-if="a.type === 6" |
|
|
|
:default-value="a.answer ? $moment(a.answer, dateFormat) : ''" |
|
|
|
@change="onChange($event, a.type, a.id, a.recordId)" |
|
|
@ -54,10 +55,19 @@ |
|
|
|
@change="fileChange($event, a.id)" |
|
|
|
name="files" |
|
|
|
> |
|
|
|
<a-button v-show="fileList.length === 0"> <a-icon type="upload" /> 点击上传 </a-button> |
|
|
|
<a-button |
|
|
|
v-show=" |
|
|
|
!contentList.find(item => { |
|
|
|
return item.testQuestionsId === a.id; |
|
|
|
}) |
|
|
|
" |
|
|
|
> |
|
|
|
<a-icon type="upload" /> 点击上传 |
|
|
|
</a-button> |
|
|
|
</a-upload> |
|
|
|
<a-radio-group |
|
|
|
:default-value="getAnswer(a.answer)" |
|
|
|
style="width: 100%" |
|
|
|
v-else-if="a.type === 8" |
|
|
|
@change="onChange($event, a.type, a.id, a.recordId)" |
|
|
|
> |
|
|
@ -80,8 +90,8 @@ |
|
|
|
})) |
|
|
|
" |
|
|
|
> |
|
|
|
<a-form-item :label-col="formItemLayout.labelCol" :wrapper-col="formItemLayout.wrapperCol"> |
|
|
|
<a-input v-model="j.otherInformation" style="width: 200px" @change="inputChange(a.id, $event, j.showValue)"></a-input> |
|
|
|
<a-form-item> |
|
|
|
<a-input v-model="j.otherInformation" style="width: 100%" @change="inputChange(a.id, $event, j.showValue)"></a-input> |
|
|
|
</a-form-item> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -90,6 +100,7 @@ |
|
|
|
<a-checkbox-group |
|
|
|
:default-value="getList(a.optionVos)" |
|
|
|
v-else-if="a.type === 9" |
|
|
|
style="width: 100%" |
|
|
|
@change="onChange($event, a.type, a.id, a.recordId)" |
|
|
|
> |
|
|
|
<a-row> |
|
|
@ -99,10 +110,10 @@ |
|
|
|
<a-col :span="100"> |
|
|
|
<div v-for="(j, k) in a.optionVos" :key="k"> |
|
|
|
<div v-if="j.afterOperation === 1"> |
|
|
|
<a-form-item :label-col="formItemLayout.labelCol" :wrapper-col="formItemLayout.wrapperCol"> |
|
|
|
<a-form-item> |
|
|
|
<a-input |
|
|
|
v-model="j.otherInformation" |
|
|
|
style="width: 200px" |
|
|
|
style="width: 100%" |
|
|
|
@change="inputChange1(a.id, $event, j.showValue, a.recordId, a.optionVos)" |
|
|
|
></a-input> |
|
|
|
</a-form-item> |
|
|
@ -112,7 +123,7 @@ |
|
|
|
</a-row> |
|
|
|
</a-checkbox-group> |
|
|
|
<div v-else-if="a.type === 10"> |
|
|
|
<a-select :default-value="getAnswer(a.answer)" style="width: 120px" @change="onChange($event, a.type, a.id, a.recordId)"> |
|
|
|
<a-select :default-value="getAnswer(a.answer)" style="width: 100%" @change="onChange($event, a.type, a.id, a.recordId)"> |
|
|
|
<a-select-option v-for="(b, c) in a.optionVos" :key="c" :value="b.showValue"> {{ b.showValue }} </a-select-option> |
|
|
|
</a-select> |
|
|
|
<div v-for="(b, c) in a.optionVos" :key="c"> |
|
|
@ -128,14 +139,18 @@ |
|
|
|
})) |
|
|
|
" |
|
|
|
> |
|
|
|
<a-form-item :label-col="formItemLayout.labelCol" :wrapper-col="formItemLayout.wrapperCol"> |
|
|
|
<a-input v-model="b.otherInformation" style="width: 200px" @change="inputChange(a.id, $event, b.showValue)"></a-input> |
|
|
|
<a-form-item> |
|
|
|
<a-input v-model="b.otherInformation" style="width: 100%" @change="inputChange(a.id, $event, b.showValue)"></a-input> |
|
|
|
</a-form-item> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div v-else-if="a.type === 11"> |
|
|
|
<a-checkbox-group :default-value="getList(a.optionVos)" @change="onChange($event, a.type, a.id, a.recordId)"> |
|
|
|
<a-checkbox-group |
|
|
|
style="width: 100%" |
|
|
|
:default-value="getList(a.optionVos)" |
|
|
|
@change="onChange($event, a.type, a.id, a.recordId)" |
|
|
|
> |
|
|
|
<a-row> |
|
|
|
<a-col :span="24" v-for="(ques, indexNum) in a.optionVos" :key="indexNum"> |
|
|
|
<a-checkbox :value="ques.submitValue"> {{ ques.showValue }} </a-checkbox> |
|
|
@ -145,14 +160,14 @@ |
|
|
|
<div v-if="b.afterOperation > 0"> |
|
|
|
<a-input |
|
|
|
v-model="b.otherInformation" |
|
|
|
style="width: 200px" |
|
|
|
style="width: 100%" |
|
|
|
@change="inputChange1(a.id, $event, j.showValue, a.recordId, a.optionVos)" |
|
|
|
/> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</a-col> |
|
|
|
</a-row> |
|
|
|
说明: <a-textarea style="width: 200px" @change="explainChange(a.id, $event)" /> |
|
|
|
说明: <a-textarea style="width: 100%" @change="explainChange(a.id, $event)" /> |
|
|
|
</a-checkbox-group> |
|
|
|
</div> |
|
|
|
<!-- 当类型为12时,为单选+关联 --> |
|
|
@ -173,7 +188,7 @@ |
|
|
|
" |
|
|
|
> |
|
|
|
<div v-for="(h, i) in j.questionVos" :key="i"> |
|
|
|
<a-form-item :label-col="formItemLayout.labelCol" :wrapper-col="formItemLayout.wrapperCol"> |
|
|
|
<a-form-item :label-col="formItemLayout1.labelCol" :wrapper-col="formItemLayout1.wrapperCol"> |
|
|
|
<a-input |
|
|
|
v-if="j.afterOperation === 1" |
|
|
|
style="width: 200px" |
|
|
@ -182,11 +197,16 @@ |
|
|
|
<a-textarea v-else-if="j.afterOperation === 2" @change="inputChange(a.id, $event, j.showValue)"></a-textarea> |
|
|
|
<div v-else-if="j.afterOperation === 3"> |
|
|
|
<a-form-item :label-col="formItemLayout.labelCol" :wrapper-col="formItemLayout.wrapperCol" :label="h.question"> |
|
|
|
<a-input v-model="h.answer" v-if="h.type === 1" @change="onChange($event, h.type, h.id, h.recordId)" /> |
|
|
|
<a-input |
|
|
|
v-model="h.answer" |
|
|
|
style="width: 100%" |
|
|
|
v-if="h.type === 1" |
|
|
|
@change="onChange($event, h.type, h.id, h.recordId)" |
|
|
|
/> |
|
|
|
<a-textarea |
|
|
|
v-model="h.answer" |
|
|
|
v-else-if="h.type === 2" |
|
|
|
style="height: 100px" |
|
|
|
style="height: 100px; width: 100%" |
|
|
|
@change="onChange($event, h.type, h.id)" |
|
|
|
/> |
|
|
|
<a-radio-group v-model="h.answer" v-else-if="h.type === 3" @change="onChange($event, h.type, h.id, h.recordId)"> |
|
|
@ -218,6 +238,7 @@ |
|
|
|
<a-date-picker |
|
|
|
show-time |
|
|
|
placeholder="日期时间选择" |
|
|
|
style="width: 100%" |
|
|
|
v-else-if="h.type === 6" |
|
|
|
:default-value="h.answer ? $moment(h.answer, dateFormat) : ''" |
|
|
|
@change="onChange($event, h.type, h.id, h.recordId)" |
|
|
@ -231,10 +252,19 @@ |
|
|
|
@change="fileChange($event, h.id)" |
|
|
|
name="files" |
|
|
|
> |
|
|
|
<a-button v-show="fileList.length === 0"> <a-icon type="upload" /> 点击上传 </a-button> |
|
|
|
<a-button |
|
|
|
v-show=" |
|
|
|
!contentList.find(item => { |
|
|
|
return item.testQuestionsId === h.id; |
|
|
|
}) |
|
|
|
" |
|
|
|
> |
|
|
|
<a-icon type="upload" /> 点击上传 |
|
|
|
</a-button> |
|
|
|
</a-upload> |
|
|
|
<a-radio-group |
|
|
|
:default-value="getAnswer(h.answer)" |
|
|
|
style="width: 100%" |
|
|
|
v-else-if="h.type === 8" |
|
|
|
@change="onChange($event, h.type, h.id, h.recordId)" |
|
|
|
> |
|
|
@ -258,10 +288,10 @@ |
|
|
|
})) |
|
|
|
" |
|
|
|
> |
|
|
|
<a-form-item :label-col="formItemLayout.labelCol" :wrapper-col="formItemLayout.wrapperCol"> |
|
|
|
<a-form-item> |
|
|
|
<a-input |
|
|
|
v-model="m.otherInformation" |
|
|
|
style="width: 200px" |
|
|
|
style="width: 100%" |
|
|
|
@change="inputChange(h.id, $event, m.showValue)" |
|
|
|
></a-input> |
|
|
|
</a-form-item> |
|
|
@ -271,6 +301,7 @@ |
|
|
|
<a-checkbox-group |
|
|
|
:default-value="getList(h.optionVos)" |
|
|
|
v-else-if="h.type === 9" |
|
|
|
style="width: 100%" |
|
|
|
@change="onChange($event, h.type, h.id, h.recordId)" |
|
|
|
> |
|
|
|
<a-row> |
|
|
@ -280,10 +311,10 @@ |
|
|
|
<a-col :span="100"> |
|
|
|
<div v-for="(m, n) in h.optionVos" :key="n"> |
|
|
|
<div v-if="m.afterOperation === 1"> |
|
|
|
<a-form-item :label-col="formItemLayout.labelCol" :wrapper-col="formItemLayout.wrapperCol"> |
|
|
|
<a-form-item> |
|
|
|
<a-input |
|
|
|
v-model="m.otherInformation" |
|
|
|
style="width: 200px" |
|
|
|
style="width: 100%" |
|
|
|
@change="inputChange1(h.id, $event, m.showValue, h.recordId, h.optionVos)" |
|
|
|
></a-input> |
|
|
|
</a-form-item> |
|
|
@ -295,7 +326,7 @@ |
|
|
|
<div v-else-if="h.type === 10"> |
|
|
|
<a-select |
|
|
|
:default-value="getAnswer(h.answer)" |
|
|
|
style="width: 120px" |
|
|
|
style="width: 100%" |
|
|
|
@change="onChange($event, h.type, h.id, h.recordId)" |
|
|
|
> |
|
|
|
<a-select-option v-for="(b, c) in h.optionVos" :key="c" :value="b.showValue"> |
|
|
@ -315,10 +346,10 @@ |
|
|
|
})) |
|
|
|
" |
|
|
|
> |
|
|
|
<a-form-item :label-col="formItemLayout.labelCol" :wrapper-col="formItemLayout.wrapperCol"> |
|
|
|
<a-form-item> |
|
|
|
<a-input |
|
|
|
v-model="b.otherInformation" |
|
|
|
style="width: 200px" |
|
|
|
style="width: 100%" |
|
|
|
@change="inputChange(h.id, $event, b.showValue)" |
|
|
|
></a-input> |
|
|
|
</a-form-item> |
|
|
@ -326,7 +357,11 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div v-else-if="h.type === 11"> |
|
|
|
<a-checkbox-group :default-value="getList(h.optionVos)" @change="onChange($event, h.type, h.id, h.recordId)"> |
|
|
|
<a-checkbox-group |
|
|
|
style="width: 100%" |
|
|
|
:default-value="getList(h.optionVos)" |
|
|
|
@change="onChange($event, h.type, h.id, h.recordId)" |
|
|
|
> |
|
|
|
<a-row> |
|
|
|
<a-col :span="24" v-for="(ques, indexNum) in h.optionVos" :key="indexNum"> |
|
|
|
<a-checkbox :value="ques.submitValue"> {{ ques.showValue }} </a-checkbox> |
|
|
@ -336,14 +371,14 @@ |
|
|
|
<div v-if="b.afterOperation > 0"> |
|
|
|
<a-input |
|
|
|
v-model="b.otherInformation" |
|
|
|
style="width: 200px" |
|
|
|
style="width: 100%" |
|
|
|
@change="inputChange1(h.id, $event, b.showValue, h.recordId, h.optionVos)" |
|
|
|
></a-input> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</a-col> |
|
|
|
</a-row> |
|
|
|
说明: <a-input style="width: 200px" @change="explainChange(h.id, $event)" /> |
|
|
|
说明: <a-input style="width: 100%" @change="explainChange(h.id, $event)" /> |
|
|
|
</a-checkbox-group> |
|
|
|
</div> |
|
|
|
<!-- 当类型为12时,为单选+关联 --> |
|
|
@ -383,7 +418,8 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div v-else-if="h.type === 13"> |
|
|
|
<a-input-number v-model="h.answer" @change="onChange($event, h.type, h.id, h.recordId)" /> |
|
|
|
<a-input-number style="width: 200px%" v-model="h.answer" @change="onChange($event, h.type, h.id, h.recordId)" /> |
|
|
|
<span style="margin-left: 10px">{{ h.units }}</span> |
|
|
|
</div> |
|
|
|
<div v-else-if="h.type === 14">图片识别</div> |
|
|
|
</a-form-item> |
|
|
@ -394,7 +430,8 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div v-else-if="a.type === 13"> |
|
|
|
<a-input-number v-model="a.answer" @change="onChange($event, a.type, a.id, a.recordId)" /> |
|
|
|
<a-input-number v-model="a.answer" style="width: 200px" @change="onChange($event, a.type, a.id, a.recordId)" /> |
|
|
|
<span style="margin-left: 10px">{{ a.units }}</span> |
|
|
|
</div> |
|
|
|
<div v-else-if="a.type === 14">图片识别</div> |
|
|
|
</a-form-item> |
|
|
@ -412,7 +449,7 @@ |
|
|
|
<a-textarea |
|
|
|
v-model="e.answer" |
|
|
|
v-else-if="e.type === 2" |
|
|
|
style="height: 100px" |
|
|
|
style="height: 100px; width: 100%" |
|
|
|
@change="onChange($event, e.type, e.id, e.recordId)" |
|
|
|
/> |
|
|
|
<a-radio-group v-model="e.answer" v-else-if="e.type === 3" @change="onChange($event, e.type, e.id, e.recordId)"> |
|
|
@ -432,7 +469,7 @@ |
|
|
|
<a-select |
|
|
|
v-model="e.answer" |
|
|
|
v-else-if="e.type === 5" |
|
|
|
style="width: 120px" |
|
|
|
style="width: 100%" |
|
|
|
@change="onChange($event, e.type, e.id, e.recordId)" |
|
|
|
> |
|
|
|
<a-select-option v-for="(b, c) in e.optionVos" :key="c" :value="b.showValue"> {{ b.showValue }} </a-select-option> |
|
|
@ -441,6 +478,7 @@ |
|
|
|
show-time |
|
|
|
placeholder="日期时间选择" |
|
|
|
v-else-if="e.type === 6" |
|
|
|
style="width: 100%" |
|
|
|
:default-value="e.answer ? $moment(e.answer, dateFormat) : ''" |
|
|
|
@change="onChange($event, e.type, e.id, e.recordId)" |
|
|
|
/> |
|
|
@ -453,11 +491,20 @@ |
|
|
|
@change="fileChange($event, e.id, e.recordId)" |
|
|
|
name="files" |
|
|
|
> |
|
|
|
<a-button v-show="fileList.length === 0"> <a-icon type="upload" /> 点击上传 </a-button> |
|
|
|
<a-button |
|
|
|
v-show=" |
|
|
|
!contentList.find(item => { |
|
|
|
return item.testQuestionsId === e.id; |
|
|
|
}) |
|
|
|
" |
|
|
|
> |
|
|
|
<a-icon type="upload" /> 点击上传 |
|
|
|
</a-button> |
|
|
|
</a-upload> |
|
|
|
<a-radio-group |
|
|
|
:default-value="getAnswer(e.answer)" |
|
|
|
v-else-if="e.type === 8" |
|
|
|
style="width: 100%" |
|
|
|
@change="onChange($event, e.type, e.id, e.recordId)" |
|
|
|
> |
|
|
|
<a-radio-group @change="onChange($event, e.type, e.id)"> |
|
|
@ -478,8 +525,8 @@ |
|
|
|
})) |
|
|
|
" |
|
|
|
> |
|
|
|
<a-form-item :label-col="formItemLayout.labelCol" :wrapper-col="formItemLayout.wrapperCol"> |
|
|
|
<a-input v-model="j.otherInformation" style="width: 200px" @change="inputChange(e.id, $event, j.showValue)"></a-input> |
|
|
|
<a-form-item> |
|
|
|
<a-input v-model="j.otherInformation" style="width: 100%" @change="inputChange(e.id, $event, j.showValue)"></a-input> |
|
|
|
</a-form-item> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -487,6 +534,7 @@ |
|
|
|
<a-checkbox-group |
|
|
|
:default-value="getList(e.optionVos)" |
|
|
|
v-else-if="e.type === 9" |
|
|
|
style="width: 100%" |
|
|
|
@change="onChange($event, e.type, e.id, e.recordId)" |
|
|
|
> |
|
|
|
<a-row> |
|
|
@ -496,10 +544,10 @@ |
|
|
|
<a-col :span="100"> |
|
|
|
<div v-for="(j, k) in e.optionVos" :key="k"> |
|
|
|
<div v-if="j.afterOperation === 1"> |
|
|
|
<a-form-item :label-col="formItemLayout.labelCol" :wrapper-col="formItemLayout.wrapperCol"> |
|
|
|
<a-form-item> |
|
|
|
<a-input |
|
|
|
v-model="j.otherInformation" |
|
|
|
style="width: 200px" |
|
|
|
style="width: 100%" |
|
|
|
@change="inputChange1(e.id, $event, j.showValue, e.recordId, e.optionVos)" |
|
|
|
></a-input> |
|
|
|
</a-form-item> |
|
|
@ -509,7 +557,7 @@ |
|
|
|
</a-row> |
|
|
|
</a-checkbox-group> |
|
|
|
<div v-else-if="e.type === 10"> |
|
|
|
<a-select :default-value="getAnswer(e.answer)" style="width: 120px" @change="onChange($event, e.type, e.id, e.recordId)"> |
|
|
|
<a-select :default-value="getAnswer(e.answer)" style="width: 100%" @change="onChange($event, e.type, e.id, e.recordId)"> |
|
|
|
<a-select-option v-for="(b, c) in e.optionVos" :key="c" :value="b.showValue"> {{ b.showValue }} </a-select-option> |
|
|
|
</a-select> |
|
|
|
<div v-for="(b, c) in e.optionVos" :key="c"> |
|
|
@ -525,14 +573,14 @@ |
|
|
|
})) |
|
|
|
" |
|
|
|
> |
|
|
|
<a-form-item :label-col="formItemLayout.labelCol" :wrapper-col="formItemLayout.wrapperCol"> |
|
|
|
<a-input v-model="b.otherInformation" style="width: 200px" @change="inputChange(e.id, $event, b.showValue)"></a-input> |
|
|
|
<a-form-item> |
|
|
|
<a-input v-model="b.otherInformation" style="width: 100%" @change="inputChange(e.id, $event, b.showValue)"></a-input> |
|
|
|
</a-form-item> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div v-else-if="e.type === 11"> |
|
|
|
<a-checkbox-group :default-value="getList(e.optionVos)" @change="onChange($event, e.type, e.id, e.recordId)"> |
|
|
|
<a-checkbox-group style="100%" :default-value="getList(e.optionVos)" @change="onChange($event, e.type, e.id, e.recordId)"> |
|
|
|
<a-row> |
|
|
|
<a-col :span="24" v-for="(ques, indexNum) in e.optionVos" :key="indexNum"> |
|
|
|
<a-checkbox :value="ques.submitValue"> {{ ques.showValue }} </a-checkbox> |
|
|
@ -542,14 +590,14 @@ |
|
|
|
<div v-if="b.afterOperation > 0"> |
|
|
|
<a-input |
|
|
|
v-model="b.otherInformation" |
|
|
|
style="width: 200px" |
|
|
|
style="width: 100%" |
|
|
|
@change="inputChange1(e.id, $event, b.showValue, e.recordId, e.optionVos)" |
|
|
|
></a-input> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</a-col> |
|
|
|
</a-row> |
|
|
|
说明: <a-input style="width: 200px" @change="explainChange(e.id, $event)" /> |
|
|
|
说明: <a-input style="width: 100%" @change="explainChange(e.id, $event)" /> |
|
|
|
</a-checkbox-group> |
|
|
|
</div> |
|
|
|
<!-- 当类型为12时,为单选+关联 --> |
|
|
@ -573,7 +621,7 @@ |
|
|
|
<a-form-item :label-col="formItemLayout.labelCol" :wrapper-col="formItemLayout.wrapperCol" :label="h.question"> |
|
|
|
<a-input |
|
|
|
v-if="j.afterOperation === 1" |
|
|
|
style="width: 200px" |
|
|
|
style="width: 100%" |
|
|
|
@change="inputChange(e.id, $event, j.showValue)" |
|
|
|
></a-input> |
|
|
|
<a-textarea v-else-if="j.afterOperation === 2" @change="inputChange(e.id, $event, j.showValue)"></a-textarea> |
|
|
@ -583,7 +631,7 @@ |
|
|
|
<a-textarea |
|
|
|
v-model="h.answer" |
|
|
|
v-else-if="h.type === 2" |
|
|
|
style="height: 100px" |
|
|
|
style="height: 100%" |
|
|
|
@change="onChange($event, h.type, h.id, h.recordId)" |
|
|
|
/> |
|
|
|
<a-radio-group v-model="h.answer" v-else-if="h.type === 3" @change="onChange($event, h.type, h.id, h.recordId)"> |
|
|
@ -605,7 +653,7 @@ |
|
|
|
<a-select |
|
|
|
v-model="h.answer" |
|
|
|
v-else-if="h.type === 5" |
|
|
|
style="width: 120px" |
|
|
|
style="width: 100%" |
|
|
|
@change="onChange($event, h.type, h.id, h.recordId)" |
|
|
|
> |
|
|
|
<a-select-option v-for="(b, c) in h.optionVos" :key="c" :value="b.showValue"> |
|
|
@ -616,6 +664,7 @@ |
|
|
|
show-time |
|
|
|
placeholder="日期时间选择" |
|
|
|
v-else-if="h.type === 6" |
|
|
|
style="width: 100%" |
|
|
|
:default-value="h.answer ? $moment(h.answer, dateFormat) : ''" |
|
|
|
@change="onChange($event, h.type, h.id, h.recordId)" |
|
|
|
/> |
|
|
@ -628,11 +677,20 @@ |
|
|
|
@change="fileChange($event, h.id)" |
|
|
|
name="files" |
|
|
|
> |
|
|
|
<a-button v-show="fileList.length === 0"> <a-icon type="upload" /> 点击上传 </a-button> |
|
|
|
<a-button |
|
|
|
v-show=" |
|
|
|
!contentList.find(item => { |
|
|
|
return item.testQuestionsId === h.id; |
|
|
|
}) |
|
|
|
" |
|
|
|
> |
|
|
|
<a-icon type="upload" /> 点击上传 |
|
|
|
</a-button> |
|
|
|
</a-upload> |
|
|
|
<a-radio-group |
|
|
|
:default-value="getAnswer(h.answer)" |
|
|
|
v-else-if="h.type === 8" |
|
|
|
style="100%" |
|
|
|
@change="onChange($event, h.type, h.id, h.recordId)" |
|
|
|
> |
|
|
|
<!-- <a-radio-group @change="onChange($event, h.type, h.id, h.recordId)"> --> |
|
|
@ -655,10 +713,10 @@ |
|
|
|
})) |
|
|
|
" |
|
|
|
> |
|
|
|
<a-form-item :label-col="formItemLayout.labelCol" :wrapper-col="formItemLayout.wrapperCol"> |
|
|
|
<a-form-item> |
|
|
|
<a-input |
|
|
|
v-model="m.otherInformation" |
|
|
|
style="width: 200px" |
|
|
|
style="width: 100%" |
|
|
|
@change="inputChange(h.id, $event, m.showValue)" |
|
|
|
></a-input> |
|
|
|
</a-form-item> |
|
|
@ -668,6 +726,7 @@ |
|
|
|
<a-checkbox-group |
|
|
|
:default-value="getList(h.optionVos)" |
|
|
|
v-else-if="h.type === 9" |
|
|
|
style="width: 100%" |
|
|
|
@change="onChange($event, h.type, h.id, h.recordId)" |
|
|
|
> |
|
|
|
<a-row> |
|
|
@ -677,10 +736,10 @@ |
|
|
|
<a-col :span="100"> |
|
|
|
<div v-for="(m, n) in h.optionVos" :key="n"> |
|
|
|
<div v-if="m.afterOperation === 1"> |
|
|
|
<a-form-item :label-col="formItemLayout.labelCol" :wrapper-col="formItemLayout.wrapperCol"> |
|
|
|
<a-form-item> |
|
|
|
<a-input |
|
|
|
v-model="m.otherInformation" |
|
|
|
style="width: 200px" |
|
|
|
style="width: 100%" |
|
|
|
@change="inputChange1(h.id, $event, m.showValue, h.recordId, h.optionVos)" |
|
|
|
></a-input> |
|
|
|
</a-form-item> |
|
|
@ -692,7 +751,7 @@ |
|
|
|
<div v-else-if="h.type === 10"> |
|
|
|
<a-select |
|
|
|
:default-value="getAnswer(h.answer)" |
|
|
|
style="width: 120px" |
|
|
|
style="width: 100%" |
|
|
|
@change="onChange($event, h.type, h.id, h.recordId)" |
|
|
|
> |
|
|
|
<a-select-option v-for="(b, c) in h.optionVos" :key="c" :value="b.showValue"> |
|
|
@ -712,10 +771,10 @@ |
|
|
|
})) |
|
|
|
" |
|
|
|
> |
|
|
|
<a-form-item :label-col="formItemLayout.labelCol" :wrapper-col="formItemLayout.wrapperCol"> |
|
|
|
<a-form-item> |
|
|
|
<a-input |
|
|
|
v-model="b.otherInformation" |
|
|
|
style="width: 200px" |
|
|
|
style="width: 100%" |
|
|
|
@change="inputChange(h.id, $event, b.showValue)" |
|
|
|
></a-input> |
|
|
|
</a-form-item> |
|
|
@ -723,7 +782,11 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div v-else-if="h.type === 11"> |
|
|
|
<a-checkbox-group :default-value="getList(h.optionVos)" @change="onChange($event, h.type, h.id, h.recordId)"> |
|
|
|
<a-checkbox-group |
|
|
|
style="100%" |
|
|
|
:default-value="getList(h.optionVos)" |
|
|
|
@change="onChange($event, h.type, h.id, h.recordId)" |
|
|
|
> |
|
|
|
<a-row> |
|
|
|
<a-col :span="24" v-for="(ques, indexNum) in h.optionVos" :key="indexNum"> |
|
|
|
<a-checkbox :value="ques.submitValue"> {{ ques.showValue }} </a-checkbox> |
|
|
@ -733,14 +796,14 @@ |
|
|
|
<div v-if="b.afterOperation > 0"> |
|
|
|
<a-input |
|
|
|
v-model="b.otherInformation" |
|
|
|
style="width: 200px" |
|
|
|
style="width: 100%" |
|
|
|
@change="inputChange1(h.id, $event, b.showValue, h.recordId, h.optionVos)" |
|
|
|
></a-input> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</a-col> |
|
|
|
</a-row> |
|
|
|
说明: <a-input style="width: 200px" @change="explainChange(h.id, $event)" /> |
|
|
|
说明: <a-input style="width: 100%" @change="explainChange(h.id, $event)" /> |
|
|
|
</a-checkbox-group> |
|
|
|
</div> |
|
|
|
<!-- 当类型为12时,为单选+关联 --> |
|
|
@ -780,7 +843,12 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div v-else-if="h.type === 13"> |
|
|
|
<a-input-number v-model="h.answer" @change="onChange($event, h.type, h.id, h.recordId)" /> |
|
|
|
<a-input-number |
|
|
|
style="width: 200px" |
|
|
|
v-model="h.answer" |
|
|
|
@change="onChange($event, h.type, h.id, h.recordId)" |
|
|
|
/> |
|
|
|
<span style="margin-left: 10px">{{ h.units }}</span> |
|
|
|
</div> |
|
|
|
<div v-else-if="h.type === 14">图片识别</div> |
|
|
|
</a-form-item> |
|
|
@ -791,7 +859,8 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div v-else-if="e.type === 13"> |
|
|
|
<a-input-number v-model="e.answer" @change="onChange($event, e.type, e.id, e.recordId)" /> |
|
|
|
<a-input-number style="width: 200px" v-model="e.answer" @change="onChange($event, e.type, e.id, e.recordId)" /> |
|
|
|
<span style="margin-left: 10px">{{ e.units }}</span> |
|
|
|
</div> |
|
|
|
<div v-else-if="e.type === 14">图片识别</div> |
|
|
|
</a-form-item> |
|
|
@ -799,14 +868,23 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</a-form> |
|
|
|
<a-date-picker |
|
|
|
<!-- <a-date-picker |
|
|
|
v-if="list.length > 0" |
|
|
|
:default-value="$moment(dateChoose, dateFormat)" |
|
|
|
:format="dateFormat" |
|
|
|
class="white--text" |
|
|
|
@change="changeDate" |
|
|
|
/> |
|
|
|
<a-button class="white--text px-10" type="primary" @click="setData()" v-if="list.length > 0 && getCode" style="margin-top: 40px"> |
|
|
|
/> --> |
|
|
|
<div class="bot-right-tips"> |
|
|
|
当前选择患者的住院号为:<span style="color: green">{{ hospitalization }}</span> |
|
|
|
</div> |
|
|
|
<a-button |
|
|
|
class="white--text px-10 bot-right-btn" |
|
|
|
type="primary" |
|
|
|
@click="setData()" |
|
|
|
v-if="list.length > 0 && getCode" |
|
|
|
style="margin-top: 40px" |
|
|
|
> |
|
|
|
提交 |
|
|
|
</a-button> |
|
|
|
</div> |
|
|
@ -819,12 +897,17 @@ const formItemLayout = { |
|
|
|
labelCol: { span: 6 }, |
|
|
|
wrapperCol: { span: 12 }, |
|
|
|
}; |
|
|
|
const formItemLayout1 = { |
|
|
|
labelCol: { span: 0 }, |
|
|
|
wrapperCol: { span: 24 }, |
|
|
|
}; |
|
|
|
const tailItemLayout = { wrapperCol: { span: 18, offset: 4 } }; |
|
|
|
export default { |
|
|
|
name: 'PatientInfo', |
|
|
|
data() { |
|
|
|
return { |
|
|
|
formItemLayout, |
|
|
|
formItemLayout1, |
|
|
|
tailItemLayout, |
|
|
|
form: this.$form.createForm(this, { name: 'page-add' }), |
|
|
|
value: 1, |
|
|
@ -850,7 +933,7 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
computed: { |
|
|
|
...mapState('home', ['patientId']), |
|
|
|
...mapState('home', ['patientId', 'hospitalization']), |
|
|
|
// 上传附加请求头 |
|
|
|
headers() { |
|
|
|
const token = sessionStorage.getItem('anyringToken'); |
|
|
@ -1186,9 +1269,9 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
// 改变提交时间 |
|
|
|
changeDate(date) { |
|
|
|
this.subDateTime = this.$moment(date._d).format('YYYY-MM-DD HH:mm:ss'); |
|
|
|
}, |
|
|
|
// changeDate(date) { |
|
|
|
// this.subDateTime = this.$moment(date._d).format('YYYY-MM-DD HH:mm:ss'); |
|
|
|
// }, |
|
|
|
// 提交表单 |
|
|
|
async setData() { |
|
|
|
try { |
|
|
@ -1196,7 +1279,7 @@ export default { |
|
|
|
param: { |
|
|
|
list: this.contentList, |
|
|
|
patientId: this.patientId, |
|
|
|
timeSlot: this.subDateTime ? this.subDateTime : this.$moment(this.dateChoose).format('YYYY-MM-DD HH:mm:ss'), |
|
|
|
// timeSlot: this.subDateTime ? this.subDateTime : this.$moment(this.dateChoose).format('YYYY-MM-DD HH:mm:ss'), |
|
|
|
nums: this.tabNums, |
|
|
|
}, |
|
|
|
}; |
|
|
|