2023-12-13 08:57:38 +08:00

251 lines
16 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!--pages/inquiryForm/inquiryForm.wxml-->
<wxs src="../../filters/filter.wxs" module="filter"></wxs>
<nav navName="问诊表"></nav>
<view class="page">
<view class="questionbox">
<view class="cellbox" wx:if="{{list1.length>0}}">
<view class="basictitle">基本信息</view>
<view class="cell" wx:if="{{filter.formatwenzhenList(list1,'height').ISHAS}}">
<view class="cellrow">
<view class="name">
{{filter.formatwenzhenList(list1,'height').NUMBER}}、身高CM
</view>
<view class="iptbox">
<input type="text" value="{{personInfo.height}}" bindinput="handleIpt" data-id="name" placeholder="请输入身高" placeholder-class="placeholder" class="ipt" disabled="{{!showBtn}}" />
</view>
</view>
</view>
<view class="cell" wx:if="{{filter.formatwenzhenList(list1,'weight').ISHAS}}">
<view class="cellrow">
<view class="name">
{{filter.formatwenzhenList(list1,'weight').NUMBER}}、体重KG
</view>
<view class="iptbox">
<input type="text" value="{{personInfo.weight}}" bindinput="handleIpt" data-id="name" placeholder="请请输入体重" placeholder-class="placeholder" class="ipt" disabled="{{!showBtn}}" />
</view>
</view>
</view>
<view class="cell" wx:if="{{filter.formatwenzhenList(list1,'marital_status').ISHAS}}" bindtap="openMaritalPicker">
<view class="cellrow">
<view class="name">
{{filter.formatwenzhenList(list1,'marital_status').NUMBER}}、婚姻状况
</view>
<view class="iptbox">
<input type="text" value="{{marital_name}}" bindinput="handleIpt" data-id="name" placeholder="请选择婚姻状况" placeholder-class="placeholder" class="ipt" disabled="{{!showBtn}}" />
<image src="{{img_host+'/righticon.png'}}" class="righticon"></image>
</view>
</view>
</view>
<view class="cell" wx:if="{{filter.formatwenzhenList(list1,'nation_id').ISHAS}}" bindtap="showNation">
<view class="cellrow">
<view class="name">
{{filter.formatwenzhenList(list1,'nation_id').NUMBER}}、民族
</view>
<view class="iptbox">
<input type="text" value="{{nationname}}" bindinput="handleIpt" data-id="name" placeholder="请选择民族" placeholder-class="placeholder" class="ipt" disabled="{{!showBtn}}" />
<image src="{{img_host+'/righticon.png'}}" class="righticon"></image>
</view>
</view>
</view>
<view class="cell" wx:if="{{filter.formatwenzhenList(list1,'job_id').ISHAS}}" bindtap="showJob">
<view class="cellrow">
<view class="name">
{{filter.formatwenzhenList(list1,'job_id').NUMBER}}、职业
</view>
<view class="iptbox">
<input type="text" value="{{jobname}}" bindinput="handleIpt" data-id="name" placeholder="请请选择职业" placeholder-class="placeholder" class="ipt" disabled="{{!showBtn}}" />
<image src="{{img_host+'/righticon.png'}}" class="righticon"></image>
</view>
</view>
</view>
</view>
<view class="cellbox" wx:if="{{list2.length>0}}">
<view class="basictitle">个人情况</view>
<view class="sickHis">
<view class="list">
<view class="qa" wx:if="{{showList[0].isHas}}">
<view class="num">{{showList[0].index}}、</view>
<view class="titlebox">
<view class="title">您是否有过敏史?</view>
<view class="radio" >
<van-radio-group disabled="{{!showBtn}}" value="{{ filter.numberTOstring(personInfo.is_allergy_history) }}" class="singlegroup" data-id="is_allergy_history" bind:change="onChangeRadio" direction="horizontal">
<van-radio name="1" checked-color="#3cc7c0">是</van-radio>
<van-radio name="0" checked-color="#3cc7c0">否</van-radio>
</van-radio-group>
</view>
<!-- hidden="{{checkGuomin!=1}}" -->
<view class="radiotip" hidden="{{personInfo.is_allergy_history!=1}}">
<textarea placeholder=" " show-confirm-bar="{{false}}" cursor-spacing="70" confirm-type="done" bindinput="handelFocus" disabled="{{!showBtn}}" value="{{personInfo.allergy_history}}" data-id="hideGuomin" data-value="allergy_history"></textarea>
<view class="textbox" hidden="{{hideGuomin}}">
<view class="desc"><text>过敏史:</text>请填写过敏源如药物请写出药名如食物请写具体如鸡蛋、牛奶等限制50个字</view>
</view>
</view>
</view>
</view>
<view class="qa" wx:if="{{showList[1].isHas}}">
<view class="num">{{showList[1].index}}、</view>
<view class="titlebox">
<view class="title">您是否有家族病史?</view>
<view class="radio">
<van-radio-group disabled="{{!showBtn}}" class="singlegroup" value="{{filter.numberTOstring(personInfo.is_family_history)}}" data-id="is_family_history" bind:change="onChangeRadio" direction="horizontal">
<van-radio name="1" checked-color="#3cc7c0">是</van-radio>
<van-radio name="0" checked-color="#3cc7c0">否</van-radio>
</van-radio-group>
</view>
<view class="radiotip" hidden="{{personInfo.is_family_history!=1}}">
<textarea placeholder=" " disabled="{{!showBtn}}" show-confirm-bar="{{false}}" cursor-spacing="70" confirm-type="done" bindinput="handelFocus" value="{{personInfo.family_history}}" data-id="hideFamilysick" data-value="family_history"></textarea>
<view class="textbox" hidden="{{hideFamilysick}}">
<view class="desc"><text>家族病史:</text>请详细填写相关家族病史限制50个字</view>
</view>
</view>
</view>
</view>
<view class="qa" wx:if="{{showList[2].isHas}}">
<view class="num">{{showList[2].index}}、</view>
<view class="titlebox">
<view class="title">您是否处于备孕、妊娠、哺乳期?</view>
<view class="radio">
<van-radio-group disabled="{{!showBtn}}" value="{{ filter.numberTOstring(personInfo.is_pregnant) }}" bind:change="onChangeRadio" data-id="is_pregnant" direction="horizontal" class="singlegroup">
<van-radio name="1" checked-color="#3cc7c0">是</van-radio>
<van-radio name="0" checked-color="#3cc7c0">否</van-radio>
</van-radio-group>
</view>
<view class="radiotip" hidden="{{personInfo.is_pregnant!=1}}">
<textarea placeholder=" " disabled="{{!showBtn}}" show-confirm-bar="{{false}}" cursor-spacing="70" confirm-type="done" bindinput="handelFocus" value="{{personInfo.pregnant}}" data-id="hidePregnant" data-value="pregnant"></textarea>
<view class="textbox" hidden="{{hidePregnant}}">
<view class="desc">请描述您目前所处阶段如备孕中、哺乳期中、妊娠月份。限制50个字</view>
</view>
</view>
</view>
</view>
<view class="qa" wx:if="{{showList[3].isHas}}">
<view class="num">{{showList[3].index}}、</view>
<view class="titlebox">
<view class="title">是否做过手术</view>
<view class="radio">
<van-radio-group disabled="{{!showBtn}}" value="{{ filter.numberTOstring(personInfo.is_operation) }}" data-id="is_operation" bind:change="onChangeRadio" direction="horizontal" class="singlegroup">
<van-radio name="1" checked-color="#3cc7c0">是</van-radio>
<van-radio name="0" checked-color="#3cc7c0">否</van-radio>
</van-radio-group>
</view>
<view class="radiotip" hidden="{{personInfo.is_operation !=1}}">
<textarea placeholder=" " disabled="{{!showBtn}}" show-confirm-bar="{{false}}" cursor-spacing="70" confirm-type="done" bindinput="handelFocus" value="{{personInfo.operation}}" data-id="hideOperation" data-value="operation"></textarea>
<view class="textbox" hidden="{{hideOperation}}">
<view class="desc">请描述具体手术名称和做手术医院</view>
</view>
</view>
</view>
</view>
<view class="qa" wx:if="{{showList[4].isHas}}">
<view class="num">{{showList[4].index}}、</view>
<view class="titlebox">
<view class="title">是否有饮酒史</view>
<view class="radio">
<van-radio-group disabled="{{!showBtn}}" value="{{ filter.numberTOstring(personInfo.drink_wine_status) }}" data-id="drink_wine_status" bind:change="onChangeRadio" direction="horizontal" class="group">
<van-radio name="1" checked-color="#3cc7c0">从不</van-radio>
<van-radio name="2" checked-color="#3cc7c0">偶尔</van-radio>
<van-radio name="3" checked-color="#3cc7c0">经常</van-radio>
<van-radio name="4" checked-color="#3cc7c0">每天</van-radio>
<van-radio name="5" checked-color="#3cc7c0">已戒酒</van-radio>
</van-radio-group>
</view>
</view>
</view>
<view class="qa" wx:if="{{showList[5].isHas}}">
<view class="num">{{showList[5].index}}、</view>
<view class="titlebox">
<view class="title">是否有吸烟史</view>
<view class="radio">
<van-radio-group disabled="{{!showBtn}}" value="{{ filter.numberTOstring(personInfo.smoke_status) }}" data-id="smoke_status" bind:change="onChangeRadio" direction="horizontal" class="group">
<van-radio name="1" checked-color="#3cc7c0">从不</van-radio>
<van-radio name="2" checked-color="#3cc7c0">偶尔</van-radio>
<van-radio name="3" checked-color="#3cc7c0">经常</van-radio>
<van-radio name="4" checked-color="#3cc7c0">每天</van-radio>
<van-radio name="5" checked-color="#3cc7c0">已戒烟</van-radio>
</van-radio-group>
</view>
</view>
</view>
<view class="qa" wx:if="{{showList[6].isHas}}">
<view class="num">{{showList[6].index}}、</view>
<view class="titlebox">
<view class="title">是否有接触过化学物</view>
<view class="radio">
<van-radio-group disabled="{{!showBtn}}" value="{{filter.numberTOstring(personInfo.chemical_compound_status)}}" data-id="chemical_compound_status" bind:change="onChangeRadio" direction="horizontal" class="group">
<van-radio name="1" checked-color="#3cc7c0">从不</van-radio>
<van-radio name="2" checked-color="#3cc7c0">偶尔</van-radio>
<van-radio name="3" checked-color="#3cc7c0">经常</van-radio>
<van-radio name="4" checked-color="#3cc7c0">每天</van-radio>
</van-radio-group>
</view>
<view class="radiotip" wx:if="{{(personInfo.chemical_compound_status!=1 && personInfo.chemical_compound_status)}}">
<textarea placeholder=" " disabled="{{!showBtn}}" show-confirm-bar="{{false}}" cursor-spacing="70" confirm-type="done" value="{{personInfo.chemical_compound_describe}}" bindinput="handelFocus" data-id="hideChemical" data-value="chemical_compound_describe"></textarea>
<view class="textbox" hidden="{{hideChemical}}">
<view class="desc"><text>化学物:</text>请详细填写接触过的相关化学物限制50个字</view>
</view>
</view>
</view>
</view>
<view class="qa" wx:if="{{showList[7].isHas}}">
<view class="num">{{showList[7].index}}、</view>
<view class="titlebox">
<view class="title">确诊医院是?</view>
<view class="radiotip" >
<textarea placeholder=" " disabled="{{!showBtn}}" show-confirm-bar="{{false}}" cursor-spacing="70" confirm-type="done" bindinput="handelFocus" value="{{personInfo.diagnosis_hospital}}" data-id="hideHospital" data-value="diagnosis_hospital"></textarea>
<view class="textbox" hidden="{{hideHospital}}">
<view class="desc"><text></text>请填写确诊医院名称</view>
</view>
</view>
</view>
</view>
<view class="qa" wx:if="{{showList[8].isHas}}">
<view class="num">{{showList[8].index}}、</view>
<view class="titlebox">
<view class="title">是否正在服药?</view>
<view class="radio">
<van-radio-group disabled="{{!showBtn}}" value="{{ filter.numberTOstring(personInfo.is_take_medicine) }}" data-id="is_take_medicine" bind:change="onChangeRadio" direction="horizontal" class="singlegroup">
<van-radio name="1" checked-color="#3cc7c0">是</van-radio>
<van-radio name="0" checked-color="#3cc7c0">否</van-radio>
</van-radio-group>
</view>
<view class="radiotip" hidden="{{personInfo.is_take_medicine !=1}}">
<textarea placeholder=" " disabled="{{!showBtn}}" show-confirm-bar="{{false}}" cursor-spacing="70" confirm-type="done" bindinput="handelFocus" value="{{personInfo.drugs_name}}" data-id="hideDrug" data-value="drugs_name"></textarea>
<view class="textbox" hidden="{{hideDrug}}">
<view class="desc"><text></text>请详细填写所服药物限制50个字</view>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
<view class="bottom" wx:if="{{showBtn}}">
<view class="btn" bindtap="handleSendFields">发送给医生</view>
</view>
</view>
<van-popup show="{{ showMarital }}" round position="bottom" custom-style="height:auto" bind:close="closeMaritalPicker">
<van-picker show-toolbar title="请选择婚姻状况" columns="{{ maritalColumn }}" bind:cancel="closeMaritalPicker" bind:confirm="onConfirmMaritalPicker" />
</van-popup>
<van-popup show="{{ showSick }}" position="bottom" custom-style="height: auto">
<van-picker show-toolbar title="选择所患疾病" columns="{{ sickcolumns }}" value-key="disease_class_name" bind:cancel="onCancelSick" bind:confirm="onConfirmSick" />
</van-popup>
<!-- <van-popup show="{{ showNation }}" position="bottom" custom-style="height: auto">
<van-picker show-toolbar title="选择民族" columns="{{ nationcolumns }}" value-key="nation_name" bind:cancel="onCancelSick" bind:confirm="onConfirmNation" />
</van-popup> -->
<van-popup show="{{ showNation }}" position="bottom" custom-style="height: auto">
<van-picker show-toolbar title="选择民族" columns="{{ nationcolumns }}" value-key="nation_name" bind:cancel="onCancelNation" bind:confirm="onConfirmNation" />
</van-popup>
<van-popup show="{{ showJob }}" position="bottom" custom-style="height: auto">
<van-picker show-toolbar title="选择职业" columns="{{ jobcolumns }}" value-key="job_name" bind:cancel="onCancelJob" bind:confirm="onConfirmJob" />
</van-popup>