<!--case/pages/createCase/createCase.wxml-->
<!-- <navBar navName="创建病例"></navBar> -->
<wxs src="../../../filters/filter.wxs" module="filters"></wxs>
<view class="ui-navigatorbar" style="background: #FFFFFF">
    <van-icon name="arrow-left" bindtap="goBack" class="ui-navigatorbar-back" />
    <view class="ui-title">{{navName}}</view>
</view>

<view class="page">
    <van-tabs active="{{ active }}" wrap-class="tabwrap" use-before-change="{{ true }}" custom-class="tabbox" bind:before-change="onBeforeChange">
        <van-tab title="基本信息" class="vantab">
            <scroll-view scroll-y="true" class="basic {{!showSaveBtn?'active':''}}">
                <view class="basiccon">
                    <view class="row">
                        <view class="left">
                            患者姓名(首字母大写)<text class="red">*</text>
                        </view>
                        <view class="right">
                            <input type="text" value="{{case.name}}" bindinput="handleIpt" class="ipt" data-id="name" placeholder="请输入" placeholder-class="placeholder" disabled="{{!showSaveBtn}}" />
                        </view>
                    </view>
                    <view class="row">
                        <view class="left">
                            患者ID号<text class="red">*</text>
                        </view>
                        <view class="right">
                            <input type="text" value="{{case.uid}}" bindinput="handleIpt" class="ipt" data-id="uid" placeholder="请输入" placeholder-class="placeholder" disabled="{{!showSaveBtn}}" />
                        </view>
                    </view>
                    <view class="row">
                        <view class="left">
                            性别<text class="red">*</text>
                        </view>
                        <view class="right">
                            <van-radio-group value="{{ case.sex }}" bind:change="onChangeRadio" disabled="{{!showSaveBtn}}" 
                            data-type="case.sex"
                            direction="horizontal">
                                <van-radio name="{{1}}">男</van-radio>
                                <van-radio name="{{2}}">女</van-radio>
                            </van-radio-group>
                        </view>
                    </view>
                    <view class="row">
                        <view class="left">
                            年龄<text class="red">*</text>
                        </view>
                        <view class="right">
                            <input type="number" value="{{case.age}}" bindinput="handleIpt" class="ipt" data-id="age" placeholder="请输入" placeholder-class="placeholder" disabled="{{!showSaveBtn}}" />
                        </view>
                    </view>
                    <view class="row">
                        <view class="left">
                            入院时间<text class="red">*</text>
                        </view>
                        <view class="right" bind:tap="openTime">
                            <view class="viewipt {{case.admissionTime?'ipt':'placeholder'}}" wx:if="{{!showTime}}">{{case.admissionTime?case.admissionTime:'请选择时间'}}</view>

                            <input type="text" wx:else value="{{case.admissionTime}}" class="ipt" placeholder="请选择时间" placeholder-class="placeholder" disabled />
                            <van-icon name="arrow" color="#83858a" size="38rpx" class="righticon" />
                        </view>
                    </view>
                    <view class="row" style="flex-direction: column;">
                        <view class="left bold">
                            治疗类型(可多选）<text class="red">*</text>
                        </view>
                        <view class="right">
                            <van-checkbox-group value="{{case.caseType }}" bind:change="onChangeCheck" disabled="{{!showSaveBtn}}" 
                            data-type="case.caseType"
                            direction="horizontal">
                                <van-checkbox name="{{1}}">DPMAS及联合模式</van-checkbox>
                                <van-checkbox name="{{2}}">CA280及联合模式</van-checkbox>
                            </van-checkbox-group>

                        </view>

                    </view>
                    <view class="row">
                        <view class="left">
                            治疗次数<text class="red">*</text>
                        </view>
                        <view class="right">
                            <input type="number" value="{{case.treatmentNum}}" bindinput="handleIpt" class="ipt" data-id="treatmentNum" placeholder="请输入" placeholder-class="placeholder" disabled="{{!showSaveBtn}}" />
                        </view>
                    </view>
                    <view class="row" style="padding-bottom:0;flex-direction: column;border-bottom: 1rpx solid rgba(0,0,0,0.1);">
                        <view class="left bold">
                            主要诊断(可多选）<text class="red">*</text>
                        </view>
                        <view class="right">
                            <van-checkbox-group bind:change="onChangeCheck" value="{{case.mainDiagnose.select}}" disabled="{{!showSaveBtn}}" direction="horizontal" 
                            data-clear="case.mainDiagnose.otherValue"
                            data-type="case.mainDiagnose.select">
                                <van-checkbox name="{{item.value}}" wx:for="{{diagnoseOption}}" wx:key="value" data-value="{{item.value}}">{{item.name}}</van-checkbox>
                            </van-checkbox-group>
                        </view>
                        <textarea wx:if="{{filters.isContain(case.mainDiagnose.select,'-1')}}" value="{{case.mainDiagnose.otherValue}}" disabled="{{!showSaveBtn}}" class="textArea" 
                        adjust-keyboard-to="bottom"
                        placeholder="请输入其他诊断" bind:input="onChangeOther" bind:change="onChangeOther" data-type="case.mainDiagnose.otherValue" placeholder-style="color:rgba(0,0,0,0.25)" confirm-type="done" maxlength="500" auto-height="{{true}}" />
                        <!-- <view class="word">{{wordLength}}/500</view> -->
                        <view class="left" style="margin-top: 12rpx;">患者出院诊断照片(1张)<text class="red">*</text></view>
                        <view class="red rederror">
                            上传照片请进行隐私信息脱敏
                        </view>
                        <view class="uploadbox">
                            <van-uploader file-list="{{ fileList_basic }}" name="basic" 
                            readonly="{{fileList_basic.length>=1}}"
                            deletable="{{showSaveBtn}}" show-upload="{{showSaveBtn}}" bind:delete="deleteImg" max-count="1" bind:after-read="afterRead" upload-text="上传" upload-icon="{{img_host+'/upload.png'}}" />
                        </view>

                    </view>

                </view>
                <view class="row" style="flex-direction: column;" >
                    <view class="left bold">
                        患者病因(可多选）<text class="red">*</text>
                    </view>
                    <view class="right">
                        <van-checkbox-group value="{{ case.diseaseCause.select }}" bind:change="onChangeCheck"
                        data-clear="case.diseaseCause.otherValue"
                         data-type="case.diseaseCause.select" disabled="{{!showSaveBtn}}" direction="horizontal">
                            <van-checkbox name="{{item.value}}" wx:for="{{patientSickOption}}" wx:key="value">{{item.name}}</van-checkbox>

                        </van-checkbox-group>
                    </view>
                    <textarea wx:if="{{filters.isContain(case.diseaseCause.select,'-1')}}" value="{{case.diseaseCause.otherValue}}" disabled="{{!showSaveBtn}}" class="textArea" placeholder="请输入其他患者原因" 
                    adjust-keyboard-to="bottom"
                    bind:input="onChangeOther" bind:change="onChangeOther" data-type="case.diseaseCause.otherValue" placeholder-style="color:rgba(0,0,0,0.25)" confirm-type="done" maxlength="500" auto-height="{{true}}" />
                    <!-- <view class="word">{{wordLength}}/500</view> -->

                    
                    <!-- <view class="row" style="flex-direction: column;">
                        <view class="left">
                            病案照片(可上传1-6张)<text class="red">*</text>
                        </view>
                        <view class="uploadbox">
                            <van-uploader file-list="{{ fileList_basic }}" name="basic" deletable="{{showSaveBtn}}" show-upload="{{showSaveBtn}}" bind:delete="deleteImg" max-count="6" multiple bind:after-read="afterRead" upload-text="上传" upload-icon="{{img_host+'/upload.png'}}" />
                        </view>
                    </view> -->
                </view>
                <view class="row" style="flex-direction: column;border-bottom: none;" >
                        <view class="left bold">
                            诱因(可多选）<text class="red"></text>
                        </view>
                        <view class="desctitle" >肝内：</view>
                        <view class="right" >
                            <van-checkbox-group value="{{ case.seductionReason.inside.select }}" 
                            data-clear="case.seductionReason.inside.otherValue"
                            data-type="case.seductionReason.inside.select"
                            bind:change="onChangeCheck" disabled="{{!showSaveBtn}}" direction="horizontal">
                                <van-checkbox name="{{item.value}}" wx:for="{{ganneiOption}}" wx:key="value">{{item.name}}</van-checkbox>

                            </van-checkbox-group>
                        </view>
                        <textarea wx:if="{{filters.isContain(case.seductionReason.inside.select,'-1')}}" value="{{case.seductionReason.inside.otherValue}}" disabled="{{!showSaveBtn}}" class="textArea" 
                        adjust-keyboard-to="bottom"placeholder="请输入肝内诱因" bind:input="onChangeOther" bind:change="onChangeOther" data-type="case.seductionReason.inside.otherValue" placeholder-style="color:rgba(0,0,0,0.25)" confirm-type="done" maxlength="500" auto-height="{{true}}" />
                        <view class="desctitle"  >肝外：</view>
                        <view class="right" >
                            <van-checkbox-group value="{{ case.seductionReason.outside.select}}" 
                            data-type="case.seductionReason.outside.select" 
                            data-clear="case.seductionReason.outside.otherValue"
                            bind:change="onChangeCheck" disabled="{{!showSaveBtn}}" direction="horizontal">
                                <van-checkbox name="{{item.value}}" wx:for="{{ganwaiOption}}" wx:key="value">{{item.name}} </van-checkbox>
                            </van-checkbox-group>

                        </view>
                        <textarea wx:if="{{filters.isContain(case.seductionReason.outside.select,'-1')}}" value="{{case.seductionReason.outside.otherValue}}" disabled="{{!showSaveBtn}}" class="textArea" placeholder="请输入肝外诱因" 
                        adjust-keyboard-to="bottom"bind:input="onChangeOther" bind:change="onChangeOther" data-type="case.seductionReason.outside.otherValue" placeholder-style="color:rgba(0,0,0,0.25)" confirm-type="done" maxlength="500" auto-height="{{true}}" />
                        <!-- <view class="word">{{wordLength}}/500</view> -->

                    </view>
                <view class="tip" style="padding-bottom: 130rpx;">
                <!-- 注意：“病案首页”需包含患者住院号或姓名-->
                </view> 
                <view class="btnbox" wx:if="{{showSaveBtn}}">
                    <view class="btn" bind:tap="saveBasic">下一步</view>
                </view>
            </scroll-view>

        </van-tab>
        <van-tab title="临床资料" disabled="{{disable_ziliao}}">
            <view class="basic {{!showSaveBtn?'active':''}}">

                <view class="ziliao" wx:if="{{active!=0}}">
                    <view class="row" style="flex-direction: column;overflow: hidden;position: relative;">
                        <view class="left" style="font-weight:bold">
                            病历摘要(包括主诉、现病史、既往史等信息)<text class="red">*</text>
                        </view>
                        <view class="container" >
                            
                            <editor id="editor" style="height:{{editorHeight}}" wx:if="{{active==1}}"
                            read-only="{{!showSaveBtn}}"
                           
                              class="ql-container" placeholder="请输入主诉，既往史，现病史相关内容" bindinput="onChangeEditor" bindready="onEditorReady">
                            </editor>
                            <view class="word">
                                <view class="textdesc">
                                    <van-uploader file-list="{{ fileList }}" 
                                    disabled="{{!showSaveBtn}}"
                                    name="abstractStr"
                                    bind:after-read="afterReadOcr">
                                        <view class="con">
                                            <van-icon slot name="photo-o" size="20px" />上传图片识别文字后请校正内容
                                        </view>
                                    </van-uploader>
                                </view>
                            </view>
                        </view>
                        <!-- <view class="unit">
                            <view class="desctitle">主诉：</view>
                            <textarea value="{{case.abstractStr}}" disabled="{{!showSaveBtn}}" class="textArea" placeholder="请输入主诉" bind:input="onChangeOther" bind:change="onChangeOther" placeholder-style="color:rgba(0,0,0,0.25)" confirm-type="done" maxlength="500" auto-height="{{true}}" />
                            <view class="word">
                                <view class="textdesc">
                                    <van-uploader file-list="{{ fileList }}" bind:after-read="afterRead">
                                        <view class="con">
                                            <van-icon slot name="photo-o" size="20px" />上传图片识别文字后请校正内容
                                        </view>
                                    </van-uploader>
                                </view>
                            </view>
                        </view> -->
                        <!-- <view class="unit">
                            <view class="desctitle">现病史：</view>
                            <textarea value="{{case.abstractStr}}" disabled="{{!showSaveBtn}}" class="textArea" placeholder="请输入现病史" bind:input="onChangeOther" bind:change="onChangeOther" placeholder-style="color:rgba(0,0,0,0.25)" confirm-type="done" maxlength="500" auto-height="{{true}}" />
                            <view class="word">
                                <view class="textdesc">
                                    <van-uploader file-list="{{ fileList }}" bind:after-read="afterRead">
                                        <view class="con">
                                            <van-icon slot name="photo-o" size="20px" />上传图片识别文字后请校正内容
                                        </view>
                                    </van-uploader>
                                </view>
                                {{wordLength}}/500 
                    </view>
                </view> -->
                <!-- <view class="unit">
                            <view class="desctitle">既往史：</view>
                            <textarea value="{{case.abstractStr}}" disabled="{{!showSaveBtn}}" class="textArea" placeholder="请输入既往史" bind:input="onChangeOther" bind:change="onChangeOther" placeholder-style="color:rgba(0,0,0,0.25)" confirm-type="done" maxlength="500" auto-height="{{true}}" />
                            <view class="word">
                                <view class="textdesc">
                                    <van-uploader file-list="{{ fileList }}" bind:after-read="afterRead">
                                        <view class="con">
                                            <van-icon slot name="photo-o" size="20px" />上传图片识别文字后请校正内容
                                        </view>
                                    </van-uploader>
                                </view>
                               {{wordLength}}/500 
            </view>
</view> -->
</view>

<!-- <view class="row" style="flex-direction: column;" wx:if="{{!(fileList_abstract.length==0 && !showSaveBtn)}}">
                        <view class="left" style="font-weight:bold">
                            病历摘要图片(可上传1-6张)<text class="red"></text>
                        </view>
                        <view class="uploadbox">
                            <van-uploader file-list="{{ fileList_abstract }}" name="abstract" multiple max-count="6" deletable="{{showSaveBtn}}" show-upload="{{showSaveBtn}}" bind:delete="deleteImg" bind:after-read="afterRead" upload-text="上传" upload-icon="{{img_host+'/upload.png'}}" />
                        </view>
                    </view> -->
</view>
<view class="btnbox" wx:if="{{showSaveBtn}}">
    <view class="btn" bind:tap="saveAbstract">下一步</view>
</view>
<view class="tip">
  <!-- 注意：病历摘要，文字填写或者上传图片OCR识别 -->
</view>
</view>
</van-tab>
<van-tab title="人工肝治疗" disabled="{{disable_record}}">
    <view class="basic {{!showSaveBtn?'active':''}}"  wx:if="{{active==2}}">
        <view class="recordcon">
             <view class="tips">
                 <van-icon name="todo-list" color="orange" size="24"  />总共治疗记录<text>{{case.dpmas.length}}</text>次</view>
            <view class="record" wx:for="{{case.dpmas}}" wx:key="index">
                <view class="title">
                    <view class="titlename">
                        <view class="bar"></view>
                        <view class="recordtime">第{{index+1}}次治疗</view>
                    </view>
                    <van-icon name="delete-o" size="22" bind:tap="confirmDelRecord" data-index="{{index}}" color="#b9bbbb" wx:if="{{index!=0 && showSaveBtn && !(case.caseType.length==1 && case.caseType[0]==1 && case.dpmas.length<=2)}}" />
                </view>
                <view class="row">
                    <view class="left">
                        治疗时间<text class="red">*</text>
                    </view>
                    <view class="right" bind:tap="openDealTime" data-index="{{index}}">
                        <view class="viewipt {{dpmas_list[index].treatTime?'ipt':'placeholder'}}" wx:if="{{!showTime}}">{{dpmas_list[index].treatTime?dpmas_list[index].treatTime:'请选择时间'}}</view>
                        <input type="text" wx:else value="{{dpmas_list[index].treatTime}}" class="ipt" placeholder="请选择时间" placeholder-class="placeholder" disabled />
                        <!-- <text wx:if="{{case.dpmas[index].treatTime}}">h</text> -->
                        <van-icon name="arrow" color="#83858a" size="38rpx" class="righticon" />
                    </view>
                </view>
                <view class="row back" style="flex-direction: column;">
                    <view class="left bold">
                        模式(单选)<text class="red">*</text>
                    </view>
                    <view class="right">
                        <van-radio-group value="{{case.dpmas[index].content.mode.select}}" data-type="case.dpmas[{{index}}].content.mode.select"
                        data-clear="case.dpmas[{{index}}].content.mode.otherValue"
                        bind:change="onChangeRadio"  disabled="{{!showSaveBtn}}" direction="horizontal">
                            <van-radio 
                            name="{{item.value}}" wx:for="{{moshiOption}}" wx:key="value">{{item.name}}</van-radio>
                        </van-radio-group>
                    </view>
                    <textarea wx:if="{{case.dpmas[index].content.mode.select=='-1'}}" value="{{case.dpmas[index].content.mode.otherValue}}"  disabled="{{!showSaveBtn}}" 
                    adjust-keyboard-to="bottom"
                    class="textArea" placeholder="请输入其他模式" bind:input="onChangeOther" bind:change="onChangeOther" 
                    data-type="case.dpmas[{{index}}].content.mode.otherValue"
                    placeholder-style="color:rgba(0,0,0,0.25)" confirm-type="done" maxlength="500" auto-height="{{true}}" />
                </view>
                <view class="row">
                    <view class="left">
                        血浆吸附处理量(ml)<text class="red">*</text>
                    </view>
                    <view class="right">
                        <input type="digit" value="{{case.dpmas[index].content.plasma.handle}}" disabled="{{!showSaveBtn}}" class="ipt" placeholder="请输入血浆吸附处理量" 
                        bindinput="handleIpt"
                        data-type="number"
                        data-id="dpmas[{{index}}].content.plasma.handle"
                        placeholder-class="placeholder" />
                     
                        <!-- <van-icon name="arrow" color="#83858a" size="38rpx" class="righticon" style="opacity: 0;" /> -->
                    </view>
                </view>
                <view class="row">
                    <view class="left">
                        血浆置换量(ml)<text class="red">*</text>
                    </view>
                    <view class="right">
                        <input type="digit" value="{{case.dpmas[index].content.plasma.replace}}" disabled="{{!showSaveBtn}}" class="ipt" placeholder="请输入血浆置换量" 
                        bindinput="handleIpt"
                        data-type="number"
                        data-id="dpmas[{{index}}].content.plasma.replace"
                        placeholder-class="placeholder" />
                     
                    </view>
                </view>
                <view class="row" style="flex-direction: column;" >
                    <view class="left bold">
                        抗凝剂量(可多选）<text class="red"></text>
                    </view>
                    <view class="right">
                        <van-checkbox-group value="{{case.dpmas[index].content.dose.select }}" 
                        data-type="case.dpmas[{{index}}].content.dose.select"
                        data-clear="case.dpmas[{{index}}].content.dose"
                        bind:change="onChangeCheck" disabled="{{!showSaveBtn}}" direction="horizontal">
                            <van-checkbox name="{{item.value}}" wx:for="{{kangningOption}}" wx:key="value">{{item.name}}</van-checkbox>
                        </van-checkbox-group>

                    </view>
                    <view class="cellunit" wx:if="{{filters.isContain(case.dpmas[index].content.dose.select,'1')}}">
                        <view class="desctitle" >肝素: </view>
                        <view class="row innerrow"  >
                            <view class="left">首剂</view>
                            <view class="right">
                                <input type="digit" value="{{case.dpmas[index].content.dose.heparin.firstDose}}" class="ipt"
                                bindinput="handleIpt"
                                data-type="number"
                                disabled="{{!showSaveBtn}}"
                                data-id="dpmas[{{index}}].content.dose.heparin.firstDose"
                                style="margin-right: 20rpx;"
                                 placeholder="请输入首剂剂量" placeholder-class="placeholder" />
                            
                                <van-radio-group value="{{case.dpmas[index].content.dose.heparin.firstDoseUnit}}" 
                                data-type="case.dpmas[{{index}}].content.dose.heparin.firstDoseUnit"
                                bind:change="onChangeRadio" disabled="{{!showSaveBtn}}">
                                <van-radio icon-size="17" name="{{item.value}}" wx:for="{{doseUnit}}" wx:key="value">{{item.name}}</van-radio>
                                </van-radio-group>
                            </view>
                        </view>
                        <view class="row innerrow"  >
                            <view class="left">追加</view>
                            <view class="right">
                                <input type="digit" value="{{case.dpmas[index].content.dose.heparin.append}}" class="ipt" placeholder="请输入追加剂量" 
                                style="margin-right: 20rpx;"
                                data-type="number"
                                disabled="{{!showSaveBtn}}"
                                bindinput="handleIpt"
                                data-id="dpmas[{{index}}].content.dose.heparin.append"
                                placeholder-class="placeholder" /> 
                                <van-radio-group value="{{case.dpmas[index].content.dose.heparin.appendUnit}}" 
                                data-type="case.dpmas[{{index}}].content.dose.heparin.appendUnit"
                                bind:change="onChangeRadio" disabled="{{!showSaveBtn}}">
                                <van-radio icon-size="17" name="{{item.value}}" wx:for="{{doseUnit}}" wx:key="value">{{item.name}}</van-radio>
                                 
                                </van-radio-group>
                            </view>
                        </view>
                    </view>
                    <view class="cellunit" wx:if="{{filters.isContain(case.dpmas[index].content.dose.select,'2')}}">
                        <view class="desctitle" >低分子肝素: </view>
                        <view class="row innerrow" >
                            <view class="left">低分子肝素(IU)</view>
                            <view class="right">
                                <input type="digit" value="{{case.dpmas[index].content.dose.lowHeparin.value}}" class="ipt" 
                                data-type="number"
                                disabled="{{!showSaveBtn}}"
                                bindinput="handleIpt"
                                data-id="dpmas[{{index}}].content.dose.lowHeparin.value"
                                placeholder="请输入低分子肝素剂量" placeholder-class="placeholder" />
                              
                            </view>
                        </view>
                    </view>
                    <view class="cellunit" wx:if="{{filters.isContain(case.dpmas[index].content.dose.select,'3')}}">
                        <view class="desctitle" >枸橼酸: </view>
                        <view class="row innerrow"  >
                            <view class="left">血液流速(ml/min)</view>
                            <view class="right">
                                <input type="digit" value="{{case.dpmas[index].content.dose.citricAcid.bloodFlowRate}}" class="ipt" placeholder="请输入血液流速" 
                                bindinput="handleIpt"
                                disabled="{{!showSaveBtn}}"
                                data-type="number"
                                data-id="dpmas[{{index}}].content.dose.citricAcid.bloodFlowRate" placeholder-class="placeholder" />
                               
                            </view>
                        </view>
                        <view class="row innerrow" >
                            <view class="left">枸橼酸钠流速(ml/h)</view>
                            <view class="right">
                                <input type="digit" value="{{case.dpmas[index].content.dose.citricAcid.citricAcidFlowRate}}" class="ipt" placeholder="请输入枸橼酸钠流速" 
                                bindinput="handleIpt"
                                disabled="{{!showSaveBtn}}"
                                data-id="dpmas[{{index}}].content.dose.citricAcid.citricAcidFlowRate"
                                data-type="number"
                                placeholder-class="placeholder" />
                               
                            </view>
                        </view>
                        <view class="row innerrow" >
                            <view class="left">钙剂(ml/h)</view>
                            <view class="right">
                                <input type="digit" 
                                disabled="{{!showSaveBtn}}"
                                style="width:210rpx;margin-right: 20rpx;" value="{{case.dpmas[index].content.dose.citricAcid.calciumAgent.value}}" class="ipt" 
                                bindinput="handleIpt"
                                data-type="number"
                                data-id="dpmas[{{index}}].content.dose.citricAcid.calciumAgent.value"
                                placeholder="请输入钙剂剂量" placeholder-class="placeholder" />
                           
                                <van-radio-group value="{{ case.dpmas[index].content.dose.citricAcid.calciumAgent.select}}" 
                                data-type="case.dpmas[{{index}}].content.dose.citricAcid.calciumAgent.select"
                                bind:change="onChangeRadio" disabled="{{!showSaveBtn}}">
                                    <van-radio icon-size="17px" name="{{1}}">10%葡萄糖酸钙</van-radio>
                                    <van-radio icon-size="17px" name="{{2}}">5%氯化钙</van-radio>
                                </van-radio-group>
                            </view>
                        </view>

                    </view>
                    <view class="cellunit" wx:if="{{filters.isContain(case.dpmas[index].content.dose.select,'4')}}">
                        <view class="desctitle" >甲磺酸萘莫司他: </view>
                        <view class="row innerrow">
                            <view class="left">维持量(mg/h)</view>
                            <view class="right">
                                <input type="digit" value="{{case.dpmas[index].content.dose.nafamostat.value}}" class="ipt" 
                                disabled="{{!showSaveBtn}}"
                                bindinput="handleIpt"
                                style="width:350rpx"
                                data-id="dpmas[{{index}}].content.dose.nafamostat.value"
                                data-type="number"
                                placeholder="请输入甲磺酸萘莫司他剂量" placeholder-class="placeholder" />
                               
                            </view>
                        </view>
                    </view>
                    <view class="cellunit" wx:if="{{filters.isContain(case.dpmas[index].content.dose.select,'-1')}}">
                        <view class="desctitle">其他: </view>
                        <view class="row innerrow" >
                            <view class="left">名称</view>
                            <view class="right">
                                <input type="text" value="{{case.dpmas[index].content.dose.other.name}}" class="ipt" 
                                disabled="{{!showSaveBtn}}"
                                bindinput="handleIpt"
                                data-id="dpmas[{{index}}].content.dose.other.name"
                                placeholder="请输入名称" placeholder-class="placeholder" />

                            </view>
                        </view>
                        <view class="row innerrow" >
                            <view class="left">剂量</view>
                            <view class="right">
                                <input type="text" value="{{case.dpmas[index].content.dose.other.dose}}" class="ipt" 
                              
                                disabled="{{!showSaveBtn}}"
                                bindinput="handleIpt"
                                data-id="dpmas[{{index}}].content.dose.other.dose"
                                placeholder="请输入剂量" placeholder-class="placeholder" />

                            </view>
                        </view>
                    </view>
                </view>
                <view class="row" style="flex-direction: column;border:none">
                    <view class="left bold" style="white-space: normal;display: block;">
                        附人工肝治疗记录相关照片(可上传1-3张)<text class="red">*</text>
                    </view>
                    <view class="red rederror">
                            上传照片请进行隐私信息脱敏
                    </view>
                    <view class="uploadbox" >
                        <van-uploader file-list="{{dpmas_list[index].fileList}}" bind:delete="deleteImg" 
                        readonly="{{dpmas_list[index].fileList.length>=3}}" max-count="3" name="{{'record'+index}}" show-upload="{{showSaveBtn}}" deletable="{{showSaveBtn}}" bind:after-read="afterRead" upload-text="上传" upload-icon="{{img_host+'/upload.png'}}" />
                    </view>
                    <!-- <view class="uploadbox" wx:else>
                        <van-uploader file-list="{{dpmas_list[index].temp_list}}" bind:delete="deleteImg" 
                        readonly="{{dpmas_list[index].temp_list.length>=3}}" max-count="3" name="{{'record'+index}}" show-upload="{{showSaveBtn}}" deletable="{{showSaveBtn}}" bind:after-read="afterRead" upload-text="上传" upload-icon="{{img_host+'/upload.png'}}" />
                    </view> -->
                </view>
            </view>
            <view class="addrecord" bind:tap="addRecord" wx:if="{{showSaveBtn}}">
                <van-icon name="plus" size="38rpx" />
                <view class="recordText">增加记录</view>
            </view>
        </view>
        <view class="tip" style="padding-bottom: 120rpx;">
            <!-- <text>
                注意：“DPMAS治疗凭证”照片需包含患者住院号或姓名
                1.4次及以上疗程化病例，每次治疗对应一张凭证照片；
                2.早前期（INR≤1.5）的病例，上传第一次DPMAS治疗前最新的“INR检验报告单”
                3.早前期（INR≤1.5）的病例，DPMAS治疗时间不能晚于INR出报告时间24小时。
            </text> -->
        </view> 
        <view class="btnbox" wx:if="{{showSaveBtn}}">
            <view class="btn" bind:tap="saveRecord">下一步</view>
        </view>
    </view>
</van-tab>

<van-tab title="实验室检测" disabled="{{disable_check}}">
    <view class="basic record {{!showSaveBtn?'active':''}}" style="background-color: #fff;">
        <view class="message"> (首次人工肝治疗前后{{case.dpmas.length>1?'、最后一次人工肝治疗后':''}})</view>
        <view class="row">
            <view class="left">
                首次人工肝治疗前检测时间<text class="red">*</text>
            </view>
            <view class="right" bind:tap="openHeadTime">
                <view class="viewipt short {{case.headTime?'ipt':'placeholder'}}" wx:if="{{!showTime}}">{{case.headTime?case.headTime:'请选择时间'}}</view>
                <input type="text" wx:else value="{{case.headTime}}" class="ipt" placeholder="请选择时间" placeholder-class="placeholder" disabled />
               
                <van-icon name="arrow" color="#83858a" size="38rpx" class="righticon" />
            </view>
        </view>
        <view class="row">
            <view class="left">
                首次人工肝治疗后检测时间<text class="red">*</text>
            </view>
            <view class="right" bind:tap="openAfterTime">
                <view class="viewipt short {{case.afterTime?'ipt':'placeholder'}}" wx:if="{{!showTime}}">{{case.afterTime?case.afterTime:'请选择时间'}}</view>
                <input type="text"   wx:else value="{{case.afterTime}}" class="ipt" placeholder="请选择时间" placeholder-class="placeholder" disabled />
                <!-- <text wx:if="{{case.afterTime}}">h</text> -->
                <van-icon name="arrow" color="#83858a" size="38rpx" class="righticon" />
            </view>
        </view> 
        <view class="row" wx:if="{{case.dpmas.length>1}}">
            <view class="left">
                最后一次人工肝治疗后检测时间<text class="red">*</text>
            </view>
            <view class="right" bind:tap="openLastTime">
                <view class="viewipt shortlast {{case.lastTime?'ipt':'placeholder'}}" wx:if="{{!showTime}}">{{case.lastTime?case.lastTime:'请选择时间'}}</view>
                <input type="text" wx:else value="{{case.lastTime}}" class="ipt" placeholder="请选择时间" placeholder-class="placeholder" disabled />
                <van-icon name="arrow" color="#83858a" size="38rpx" class="righticon" />
            </view>
        </view>
        <view class="table">
            <view class="t_title">
                总胆红素 TB(umol/L)<text class="red">*</text>
            </view>
            <view class="row">
                <view class="left">首次治疗前</view>
                <view class="right">
                    <input type="digit" value="{{case.headTb}}" bindinput="handleIpt" class="ipt" data-id="headTb" data-type="number" placeholder="请输入" placeholder-class="placeholder" disabled="{{!showSaveBtn}}" />
                </view>
            </view>
            <view class="row" wx:if="case.dpmas.length>1">
                <view class="left">首次治疗后</view>
                <view class="right">
                    <input type="digit" value="{{case.afterTb}}" bindinput="handleIpt" class="ipt" data-id="afterTb" data-type="number" placeholder="请输入" placeholder-class="placeholder" disabled="{{!showSaveBtn}}" />
                </view>
            </view>
            <view class="row" wx:if="{{case.dpmas.length>1}}">
                <view class="left">最后一次治疗后</view>
                <view class="right">
                    <input type="digit" value="{{case.lastTb}}" bindinput="handleIpt" class="ipt" data-id="lastTb" data-type="number" placeholder="请输入" placeholder-class="placeholder" disabled="{{!showSaveBtn}}" />
                </view>
            </view>
        </view>
        <view class="table">
            <view class="t_title">
                直接胆红素 DB(umol/L)<text class="red"></text>
            </view>
            <view class="row">
                <view class="left">首次治疗前</view>
                <view class="right">
                    <input type="digit" value="{{case.headDb}}" bindinput="handleIpt" class="ipt" data-id="headDb" data-type="number" placeholder="请输入" placeholder-class="placeholder" disabled="{{!showSaveBtn}}" />
                </view>
            </view>
            <view class="row">
                <view class="left">首次治疗后</view>
                <view class="right">
                    <input type="digit" value="{{case.afterDb}}" bindinput="handleIpt" class="ipt" data-id="afterDb" data-type="number" placeholder="请输入" placeholder-class="placeholder" disabled="{{!showSaveBtn}}" />
                </view>
            </view>
            <view class="row" wx:if="{{case.dpmas.length>1}}">
                <view class="left">最后一次治疗后</view>
                <view class="right">
                    <input type="digit" value="{{case.lastDb}}" bindinput="handleIpt" class="ipt" data-id="lastDb" data-type="number" placeholder="请输入" placeholder-class="placeholder" disabled="{{!showSaveBtn}}" />
                </view>
            </view>
        </view>
        <!-- <view class="table">
            <view class="t_title">
                间接胆红素IB(umol/L)<text class="red"></text>
            </view>
            <view class="row">
                <view class="left">首次治疗前</view>
                <view class="right">
                    <input type="digit" value="{{case.headIb}}" bindinput="handleIpt" class="ipt" data-id="headIb" data-type="number" placeholder="请输入" placeholder-class="placeholder" disabled="{{!showSaveBtn}}" />
                </view>
            </view>
            <view class="row">
                <view class="left">首次治疗后</view>
                <view class="right">
                    <input type="digit" value="{{case.afterIb}}" bindinput="handleIpt" class="ipt" data-id="afterIb" data-type="number" placeholder="请输入" placeholder-class="placeholder" disabled="{{!showSaveBtn}}" />
                </view>
            </view>
            <view class="row" wx:if="{{case.dpmas.length>1}}">
                <view class="left">最后一次治疗后</view>
                <view class="right">
                    <input type="digit" value="{{case.lastIb}}" bindinput="handleIpt" class="ipt" data-id="lastIb" data-type="number" placeholder="请输入" placeholder-class="placeholder" disabled="{{!showSaveBtn}}" />
                </view>
            </view>
        </view> -->
        <view class="table">
            <view class="t_title">
                丙氨酸氨基转移酶 ALT(U/L)<text class="red">*</text>
            </view>
            <view class="row">
                <view class="left">首次治疗前</view>
                <view class="right">
                    <input type="digit" value="{{case.headAlt}}" bindinput="handleIpt" class="ipt" data-id="headAlt" placeholder="请输入" data-type="number" placeholder-class="placeholder" disabled="{{!showSaveBtn}}" />
                </view>
            </view>
            <view class="row">
                <view class="left">首次治疗后</view>
                <view class="right">
                    <input type="digit" value="{{case.afterAlt}}" bindinput="handleIpt" class="ipt" data-id="afterAlt" placeholder="请输入" data-type="number" placeholder-class="placeholder" disabled="{{!showSaveBtn}}" />
                </view>
            </view>
            <view class="row" wx:if="{{case.dpmas.length>1}}">
                <view class="left">最后一次治疗后</view>
                <view class="right">
                    <input type="digit" value="{{case.lastAlt}}" bindinput="handleIpt" class="ipt" data-id="lastAlt" placeholder="请输入" data-type="number" placeholder-class="placeholder" disabled="{{!showSaveBtn}}" />
                </view>
            </view>
        </view>
        <view class="table">
            <view class="t_title">
                天门冬氨酸氨基转移酶 AST(U/L)<text class="red">*</text>
            </view>
            <view class="row">
                <view class="left">首次治疗前</view>
                <view class="right">
                    <input type="digit" value="{{case.headAst}}" bindinput="handleIpt" class="ipt" data-id="headAst" placeholder="请输入" data-type="number" placeholder-class="placeholder" disabled="{{!showSaveBtn}}" />
                </view>
            </view>
            <view class="row">
                <view class="left">首次治疗后</view>
                <view class="right">
                    <input type="digit" value="{{case.afterAst}}" bindinput="handleIpt" class="ipt" data-id="afterAst" placeholder="请输入" data-type="number" placeholder-class="placeholder" disabled="{{!showSaveBtn}}" />
                </view>
            </view>
            <view class="row" wx:if="{{case.dpmas.length>1}}">
                <view class="left">最后一次治疗后</view>
                <view class="right">
                    <input type="digit" value="{{case.lastAst}}" bindinput="handleIpt" class="ipt" data-id="lastAst" placeholder="请输入" data-type="number" placeholder-class="placeholder" disabled="{{!showSaveBtn}}" />
                </view>
            </view>
        </view>

        <view class="table">
            <view class="t_title">
                白蛋白 ALB(g/L)<text class="red">*</text>
            </view>
            <view class="row">
                <view class="left">首次治疗前</view>
                <view class="right">
                    <input type="digit" value="{{case.headAlb}}" bindinput="handleIpt" class="ipt" data-id="headAlb" data-type="number" placeholder="请输入" placeholder-class="placeholder" disabled="{{!showSaveBtn}}" />
                </view>
            </view>
            <view class="row">
                <view class="left">首次治疗后</view>
                <view class="right">
                    <input type="digit" value="{{case.afterAlb}}" bindinput="handleIpt" class="ipt" data-id="afterAlb" placeholder="请输入" data-type="number" placeholder-class="placeholder" disabled="{{!showSaveBtn}}" />
                </view>
            </view>
            <view class="row" wx:if="{{case.dpmas.length>1}}">
                <view class="left">最后一次治疗后</view>
                <view class="right">
                    <input type="digit" value="{{case.lastAlb}}" bindinput="handleIpt" class="ipt" data-id="lastAlb" placeholder="请输入" data-type="number" placeholder-class="placeholder" disabled="{{!showSaveBtn}}" />
                </view>
            </view>
        </view>
        <view class="row" style="flex-direction: column;border:none;padding-bottom:0;">
                    <view class="left bold" style="white-space: normal;display: block;">
                        上传生化检测报告单(1-3张)<text class="red">*</text>
                    </view>
                    <view class="red rederror">
                        至少包含首次治疗前后检查结果，姓名、电话等隐私信息脱敏
                    </view>
                    <view class="uploadbox">
                        <van-uploader file-list="{{ fileList_bio }}"  bind:delete="deleteImg"    readonly="{{ fileList_bio.length>=3}}" max-count="3" name="bio" show-upload="{{showSaveBtn}}" deletable="{{showSaveBtn}}" bind:after-read="afterRead" upload-text="上传" upload-icon="{{img_host+'/upload.png'}}" />
                    </view>
                </view>
                <view class="table">
            <view class="t_title">
                国际标准化比值 INR<text class="red">*</text>
            </view>
            <view class="row">
                <view class="left">首次治疗前</view>
                <view class="right">
                    <input type="digit" value="{{case.headInr}}" bindinput="handleIpt" class="ipt" data-id="headInr" placeholder="请输入" data-type="number" placeholder-class="placeholder" disabled="{{!showSaveBtn}}" />
                </view>
            </view>
            <view class="row">
                <view class="left">首次治疗后</view>
                <view class="right">
                    <input type="digit" value="{{case.afterInr}}" bindinput="handleIpt" class="ipt" data-id="afterInr" placeholder="请输入" data-type="number" placeholder-class="placeholder" disabled="{{!showSaveBtn}}" />
                </view>
            </view>
            <view class="row" wx:if="{{case.dpmas.length>1}}">
                <view class="left">最后一次治疗后</view>
                <view class="right">
                    <input type="digit" value="{{case.lastInr}}" bindinput="handleIpt" class="ipt" data-id="lastInr" placeholder="请输入" data-type="number" placeholder-class="placeholder" disabled="{{!showSaveBtn}}" />
                </view>
            </view>
        </view>
        <view class="table">
            <view class="t_title">
                凝血酶原活动度 PTA(%)<text class="red"></text>
            </view>
            <view class="row">
                <view class="left">首次治疗前</view>
                <view class="right">
                    <input type="digit" value="{{case.headPta}}" bindinput="handleIpt" class="ipt" data-id="headPta" placeholder="请输入" data-type="number" placeholder-class="placeholder" disabled="{{!showSaveBtn}}" />
                </view>
            </view>
            <view class="row">
                <view class="left">首次治疗后</view>
                <view class="right">
                    <input type="digit" value="{{case.afterPta}}" bindinput="handleIpt" class="ipt" data-id="afterPta" placeholder="请输入" data-type="number" placeholder-class="placeholder" disabled="{{!showSaveBtn}}" />
                </view>
            </view>
            <view class="row" wx:if="{{case.dpmas.length>1}}">
                <view class="left">最后一次治疗后</view>
                <view class="right">
                    <input type="digit" value="{{case.lastPta}}" bindinput="handleIpt" class="ipt" data-id="lastPta" placeholder="请输入" data-type="number" placeholder-class="placeholder" disabled="{{!showSaveBtn}}" />
                </view>
            </view>
        </view>
        <view class="row" style="flex-direction: column;border:none;padding-bottom:0;">
                    <view class="left bold" style="white-space: normal;display: block;">
                        上传凝血功能检测报告单(1-3张)<text class="red">*</text>
                    </view>
                    <view class="red rederror">
                        至少包含首次治疗前后检查结果，姓名、电话等隐私信息脱敏
                    </view>
                    <view class="uploadbox">
                        <van-uploader file-list="{{ fileList_coa }}"  bind:delete="deleteImg"    readonly="{{ fileList_coa.length>=3}}" max-count="3" name="coa" show-upload="{{showSaveBtn}}" deletable="{{showSaveBtn}}" bind:after-read="afterRead" upload-text="上传" upload-icon="{{img_host+'/upload.png'}}" />
                    </view>
                </view>
        
        <view class="table">
            <view class="t_title">
                C反应蛋白 CRP(mg/L)<text class="red"></text>
            </view>
            <view class="row">
                <view class="left">首次治疗前</view>
                <view class="right">
                    <input type="digit" value="{{case.headCrp}}" bindinput="handleIpt" class="ipt" data-id="headCrp" data-type="number" placeholder="请输入" placeholder-class="placeholder" disabled="{{!showSaveBtn}}" />
                </view>
            </view>
            <view class="row">
                <view class="left">首次治疗后</view>
                <view class="right">
                    <input type="digit" value="{{case.afterCrp}}" bindinput="handleIpt" class="ipt" data-id="afterCrp" placeholder="请输入" data-type="number" placeholder-class="placeholder" disabled="{{!showSaveBtn}}" />
                </view>
            </view>
            <view class="row" wx:if="{{case.dpmas.length>1}}">
                <view class="left">最后一次治疗后</view>
                <view class="right">
                    <input type="digit" value="{{case.lastCrp}}" bindinput="handleIpt" class="ipt" data-id="lastCrp" placeholder="请输入" data-type="number" placeholder-class="placeholder" disabled="{{!showSaveBtn}}" />
                </view>
            </view>
        </view>

        <view class="table">
            <view class="t_title baijiesu">
            白介素6 IL-6(<van-radio-group style="margin-left: 4px;" value="{{case.il6Unit}}" bind:change="onChangeRadio" data-type="case.il6Unit"  disabled="{{!showSaveBtn}}" direction="horizontal">
                    <van-radio icon-size="15" name="{{item.value}}" wx:for="{{il6Unit}}" wx:key="value">{{item.name}}</van-radio>

                </van-radio-group>)<text class="red"></text>
            </view>
            <view class="row">
                <view class="left">首次治疗前</view>
                <view class="right">
                    <input type="digit" value="{{case.headIl6}}" bindinput="handleIpt" class="ipt" data-id="headIl6" placeholder="请输入" data-type="number" placeholder-class="placeholder" disabled="{{!showSaveBtn}}" />
                </view>
            </view>
            <view class="row">
                <view class="left">首次治疗后</view>
                <view class="right">
                    <input type="digit" value="{{case.afterIl6}}" bindinput="handleIpt" class="ipt" data-id="afterIl6" placeholder="请输入" data-type="number" placeholder-class="placeholder" disabled="{{!showSaveBtn}}" />
                </view>
            </view>
            <view class="row" wx:if="{{case.dpmas.length>1}}">
                <view class="left">最后一次治疗后</view>
                <view class="right">
                    <input type="digit" value="{{case.lastIl6}}" bindinput="handleIpt" class="ipt" data-id="lastIl6" placeholder="请输入" data-type="number" placeholder-class="placeholder" disabled="{{!showSaveBtn}}" />
                </view>
            </view>
        </view>
        <view class="table">
            <view class="t_title baijiesu">
                肿瘤坏死因子-α TNF-α(<van-radio-group style="margin-left: 4px;" 
                value="{{case.tnfUnit}}" bind:change="onChangeRadio" data-type="case.tnfUnit"  disabled="{{!showSaveBtn}}" direction="horizontal">
                <van-radio icon-size="15" name="{{item.value}}" wx:for="{{tnfUnit}}" wx:key="value">{{item.name}}</van-radio>
                </van-radio-group>)
            </view>
            <view class="row">
                <view class="left">首次治疗前</view>
                <view class="right">
                    <input type="digit" value="{{case.headTnf}}" bindinput="handleIpt" class="ipt" data-id="headTnf" placeholder="请输入" data-type="number" placeholder-class="placeholder" disabled="{{!showSaveBtn}}" />
                </view>
            </view>
            <view class="row">
                <view class="left">首次治疗后</view>
                <view class="right">
                    <input type="digit" value="{{case.afterTnf}}" bindinput="handleIpt" class="ipt" data-id="afterTnf" placeholder="请输入" data-type="number" placeholder-class="placeholder" disabled="{{!showSaveBtn}}" />
                </view>
            </view>
            <view class="row" wx:if="{{case.dpmas.length>1}}">
                <view class="left">最后一次治疗后</view>
                <view class="right">
                    <input type="digit" value="{{case.lastTnf}}" bindinput="handleIpt" class="ipt" data-id="lastTnf" placeholder="请输入" data-type="number" placeholder-class="placeholder" disabled="{{!showSaveBtn}}" />
                </view>
            </view>
        </view>
        <view class="row" style="flex-direction: column;border:none;padding-bottom:120rpx;">
            <view class="left bold">
                上传炎症因子检测报告单(1-3张)<text class="red"></text>
            </view>
            <view class="red rederror">姓名、电话等隐私信息脱敏</view>
            <view class="uploadbox" wx:if="{{showSaveBtn}}">
                <van-uploader file-list="{{ fileList_inf }}"  bind:delete="deleteImg"    readonly="{{ fileList_inf.length>=3}}" max-count="3" name="inf" show-upload="{{showSaveBtn}}" deletable="{{showSaveBtn}}" bind:after-read="afterRead" upload-text="上传" upload-icon="{{img_host+'/upload.png'}}" />
            </view>
            <view class="uploadbox" wx:else>
                <van-uploader file-list="{{ fileList_inf }}"  bind:delete="deleteImg"    disabled="{{true}}" max-count="3" name="inf"  deletable="{{showSaveBtn}}" bind:after-read="afterRead" 
                show-upload="{{fileList_inf.length==0}}"
                upload-text="上传" upload-icon="{{img_host+'/upload.png'}}" />
            </view>
        </view>
        <view class="btnbox" wx:if="{{showSaveBtn}}">
                    <view class="btn" bind:tap="saveCheck">下一步</view>
        </view>
       
    </view>
</van-tab>
<van-tab title="疾病转归" disabled="{{disable_back}}">
    <view class="basic back {{!showSaveBtn?'active':''}}" style="background-color: #fff;">
        <view class="row">
            <view class="left">
                出院时间<text class="red">*</text>
            </view>
            <view class="right" bind:tap="openDischargeTime">
                <view class="viewipt {{case.dischargeTime?'ipt':'placeholder'}}" wx:if="{{!showTime}}">{{case.dischargeTime?case.dischargeTime:'请选择时间'}}</view>
                <input type="text" wx:else value="{{case.dischargeTime}}" class="ipt" placeholder="请选择时间" placeholder-class="placeholder" disabled />
                <van-icon name="arrow" color="#83858a" size="38rpx" class="righticon" />
            </view>
        </view>
        <view class="row">
            <view class="left">
                住院天数<text class="red">*</text>
            </view>
            <view class="right">
                <input type="number" value="{{case.day}}" class="ipt" placeholder="请输入住院天数" 
                bindinput="handleIpt"
                data-type="number"
                data-id="day"
                placeholder-class="placeholder" />
                <text wx:if="{{case.day}}">天</text>
                <van-icon name="arrow" color="#83858a" size="38rpx" class="righticon" style="opacity: 0;" />
            </view>
        </view>
        <view class="row" style="flex-direction: column;overflow: hidden;position: relative;">
            <view class="left bold">
                出院情况<text class="red">*</text>
            </view>
            <view class="container" >
                            <editor id="editor2" style="height:{{editorHeight2}}" wx:if="{{active==4}}"
                            read-only="{{!showSaveBtn}}"
                            adjust-position="{{false}}" 
                              class="ql-container" placeholder="请输入出院情况" 
                              bindfocus="dischargeFocus"
                              bindinput="onChangeEditorDischarge" bindready="onEditorReadyDischarge">
                            </editor>
                            <view class="word">
                                <view class="textdesc">
                                    <van-uploader file-list="{{ fileList }}" 
                                    disabled="{{!showSaveBtn}}"
                                    name="dischargeSituation"
                                    bind:after-read="afterReadOcr">
                                        <view class="con">
                                            <van-icon slot name="photo-o" size="20px" />上传图片识别文字后请校正内容
                                        </view>
                                    </van-uploader>
                                </view>
                            </view>
                        </view>
            <!-- <view class="unit" style="border:none;margin-bottom:0;">
                <textarea value="{{case.dischargeSituation}}" disabled="{{!showSaveBtn}}" class="textArea" placeholder="请输入出院情况" 
                bind:input="onChangeOther" bind:change="onChangeOther" 
                wx:if="{{active==4}}"
                adjust-keyboard-to="bottom"
                bindblur="blurDischargeSituation"
                data-type="case.dischargeSituation"
                placeholder-style="color:rgba(0,0,0,0.25)" confirm-type="return" maxlength="5000" auto-height="{{true}}" />
                <view class="word">
                    <view class="textdesc">
                        <van-uploader file-list="{{ fileList }}"  name="dischargeSituation"
                                    bind:after-read="afterReadOcr"  disabled="{{!showSaveBtn}}">
                            <view class="con">
                                <van-icon slot name="photo-o" size="20px" />上传图片识别文字后请校正内容
                            </view>
                        </van-uploader>
                    </view>
                </view>
            </view> -->
        </view>
        <view class="row back" style="flex-direction: column;padding-bottom: 120rpx;">
            <view class="left bold">
                出院状态(单选）<text class="red">*</text>
            </view>
            <view class="right">
                <van-radio-group value="{{ case.dischargeStatus }}" bind:change="onChangeRadio" data-type="case.dischargeStatus"  disabled="{{!showSaveBtn}}" direction="horizontal">
                    <van-radio name="{{item.value}}" wx:for="{{hospitalOption}}" wx:key="value">{{item.name}}</van-radio>

                </van-radio-group>
            </view>
        </view>
        <view class="btnbox" wx:if="{{showSaveBtn}}">
            <view class="btn" bind:tap="save">提交</view>
        </view>
    </view>
</van-tab> 

</van-tabs>
<!-- <view class="btnbox">
        <view class="btn" bind:tap="save">保存</view>
    </view> -->
</view>
<van-popup show="{{ showTime }}" round position="bottom" custom-style="height: 50%" bind:close="cancelDate" bind:cancel="cancelDate">
    <van-datetime-picker bind:confirm="confirmDate" title="{{time_title}}" bind:cancel="cancelDate" type="{{time_type}}" value="{{ currentDate }}" bind:input="onInput" max-date="{{ maxDate }}" min-date="{{ minDate }}" formatter="{{ formatter }}" />
</van-popup>


<dialog showDialog="{{showAttention}}" showCancel="{{false}}" bind:confirm="onConfirmAttention" title="注意" confirmText="马上去完善" message="信息并未完善，请继续填写"></dialog>
<dialog showDialog="{{showTip}}" showCancel="{{false}}" bind:confirm="onConfirmTip" title="注意" confirmText="确定" message="所提交病例治疗时间需要在2024年度"></dialog>
<dialog showDialog="{{showDel}}" showCancel="{{true}}" bind:confirm="onConfirmDel" bind:cancel="onCancelDel" title="删除记录" confirmText="确定" message="确定删除此条治疗记录吗？"></dialog>
<dialog showDialog="{{showDraft}}" title="注意" message="是否保存草稿？" confirmText="保存" bind:confirm="onConfirmDraft" bind:cancel="onCancelDraft">
</dialog>
<dialog showDialog="{{showUseDraft}}" title="提示" message="加载上次草稿？" showCancel="{{false}}" confirmText="确定" bind:confirm="onConfirmUseDraft" bind:cancel="onCancelUseDraft">
</dialog>
<paintCanvas showPaint="{{showPaint}}" bind:afterhandlePaint="afterhandlePaint" paintSrc="{{paintSrc}}" paintFrom="{{paintFrom}}" hidden="{{!showPaint}}"></paintCanvas>
<van-popup show="{{ showType }}" round position="bottom" custom-style="height: 50%">
    <van-picker columns="{{ columns }}" default-index="{{case.caseType}}" title="请选择病例类型" bind:cancel="onCancelType" show-toolbar bind:confirm="onConfirmType" />

</van-popup>
<van-popup show="{{showOcr}}" round position="bottom" custom-style="height:1100rpx" 
  close-icon="close"  >

    <view class="ocrlist">
       <view class="titlebox">
        <view class="cancel" bind:tap="closeOcr">取消</view>
        <view class="title">选择识别内容</view>
        <view class="ok" bind:tap="confirmOcr">确定</view>
       </view>
       <view class="ocrcontent">
        <view class="btnBox">
            <van-checkbox value="{{ocrChecked}}" bind:change="onChangeOcrCheck">全选</van-checkbox>
        </view>
        <view class="ocrbox">
           
           <view class="tag {{item.checked?'active':''}}" wx:for="{{tagList}}" wx:key="index" 
          
           bind:tap="toggleWord" data-index="{{index}}">{{item.words}}</view> 
      </view>
       </view>
       
    </view>
</van-popup>
<van-toast id="van-toast" />
