|
|
@ -3,7 +3,8 @@ |
|
|
|
<div class="basic-content"> |
|
|
|
<!-- 患者基本信息 --> |
|
|
|
<div class='basicr-back'> |
|
|
|
<a-form class="detail-form" :form="baseForm" labelWitch="260px" :labelCol="{span: 6}" :wrapperCol="{span: 16}"> |
|
|
|
<a-form class="detail-form" :form="baseForm" labelWitch="260px" :labelCol="{span: 6}" |
|
|
|
:wrapperCol="{span: 16}"> |
|
|
|
<a-form-item label="扫描身份证"> |
|
|
|
<div class="detail-form-control"> |
|
|
|
<a-upload :disabled="writeAble" class="idcard-upload" accept=".img,.png,.jpg" |
|
|
@ -14,14 +15,14 @@ |
|
|
|
</div> |
|
|
|
</a-form-item> |
|
|
|
<a-form-item label="姓名"> |
|
|
|
<div class="detail-form-control" > |
|
|
|
<div class="detail-form-control"> |
|
|
|
<a-input :disabled="writeAble" v-decorator="['patientName']" style="width: 448px;" |
|
|
|
@blur="onBaseChange($event.target.value, 'patientName')" placeholder='请输入' /> |
|
|
|
</div> |
|
|
|
</a-form-item> |
|
|
|
<a-form-item label="性别"> |
|
|
|
<div class="detail-form-control"> |
|
|
|
<a-radio-group :disabled="writeAble" v-decorator="['patientGender']" style="width: 448px;" |
|
|
|
<a-radio-group :disabled="writeAble" v-decorator="['patientGender']" style="width: 448px;" |
|
|
|
@change="onBaseChange($event.target.value, 'patientGender')"> |
|
|
|
<a-radio :value='0'> 男 </a-radio> |
|
|
|
<a-radio :value='1'> 女 </a-radio> |
|
|
@ -30,7 +31,8 @@ |
|
|
|
</a-form-item> |
|
|
|
<a-form-item label="民族"> |
|
|
|
<div class="detail-form-control"> |
|
|
|
<a-select :disabled="writeAble" ref="select" v-decorator="['patientNation']" style="display: block;width: 448px;" |
|
|
|
<a-select :disabled="writeAble" ref="select" v-decorator="['patientNation']" |
|
|
|
style="display: block;width: 448px;" |
|
|
|
@change="handleChange($event, 'patientNation', 'default')" placeholder='请选择'> |
|
|
|
<a-select-option v-for="item in nationList" :key="item" :value="item"> |
|
|
|
{{item}} |
|
|
@ -41,13 +43,14 @@ |
|
|
|
<a-form-item label="身份证号"> |
|
|
|
<div class="detail-form-control"> |
|
|
|
<a-input :disabled="writeAble" v-decorator="['patientIdCardNo']" placeholder='请输入' |
|
|
|
@blur="onBaseChange($event.target.value, 'patientIdCardNo')" style="width: 448px;" /> |
|
|
|
@blur="onBaseChange($event.target.value, 'patientIdCardNo')" style="width: 448px;" /> |
|
|
|
</div> |
|
|
|
</a-form-item> |
|
|
|
<a-form-item v-for="(k,v) in BASE_CODE" :key="v" :label="k.text" v-if="computeShow(v, codeForm)"> |
|
|
|
<div class="detail-form-control"> |
|
|
|
<!-- radio --> |
|
|
|
<a-radio-group :disabled="writeAble" v-if="k.type==='radio'" style="width: 448px;" v-decorator="[ |
|
|
|
<a-radio-group :disabled="writeAble" v-if="k.type==='radio'" style="width: 448px;" |
|
|
|
v-decorator="[ |
|
|
|
v, |
|
|
|
{initialValue: codeForm[k] }, |
|
|
|
]" @change="handleChange($event.target.value, v)"> |
|
|
@ -57,11 +60,11 @@ |
|
|
|
</a-radio-group> |
|
|
|
<!-- input --> |
|
|
|
<a-input :disabled="writeAble" v-if="k.type==='input'" :type="k.inputType" v-decorator="[ |
|
|
|
v]" @blur="handleChange($event.target.value, v)" placeholder='请输入' style="width: 448px;"> |
|
|
|
v]" @blur="handleChange($event.target.value, v)" placeholder='请输入' style="width: 448px;"> |
|
|
|
</a-input> |
|
|
|
<!-- datetime --> |
|
|
|
<a-input :disabled="writeAble" v-if="k.type==='datetime'" readOnly @click="selectOption(v)" style="width: 448px;" |
|
|
|
v-decorator="[ |
|
|
|
<a-input :disabled="writeAble" v-if="k.type==='datetime'" readOnly @click="selectOption(v)" |
|
|
|
style="width: 448px;" v-decorator="[ |
|
|
|
v, |
|
|
|
]" placeholder='请选择'> |
|
|
|
</a-input> |
|
|
@ -79,7 +82,7 @@ |
|
|
|
<div class='diagnosis'> |
|
|
|
<v-head text='疑似诊断'></v-head> |
|
|
|
<div class='back-ff'> |
|
|
|
<a-radio-group :disabled="writeAble" v-model:value="firstAidZlType" style="width: 448px;" |
|
|
|
<a-radio-group :disabled="writeAble" v-model:value="firstAidZlType" style="width: 448px;" |
|
|
|
@change="onBaseChange($event.target.value, 'firstAidZlType')"> |
|
|
|
<a-radio :style="radioStyle" v-for="(k,v) in FIRSTAIDZLTYPE_DICT" :key="v" |
|
|
|
:value="v">{{k}}</a-radio> |
|
|
@ -88,7 +91,7 @@ |
|
|
|
</div> |
|
|
|
<div class="common-picker"> |
|
|
|
<van-datetime-picker v-if="pickerVisable" v-model="currentDate" :formatter="formatter" |
|
|
|
@cancel="pickerVisable = false" @confirm="onConfirm" style="width: 448px;" /> |
|
|
|
@cancel="pickerVisable = false" @confirm="onConfirm" /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="basic-footer"> |
|
|
|