index.wxml 2.7KB

1
  1. <view class="advice"><view class="timeCell">开嘱时间:<view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="timeBox" bindtap="__e">{{startTime}}</view>-<view data-event-opts="{{[['tap',[['e1',['$event']]]]]}}" class="timeBox" bindtap="__e">{{endTime}}</view></view><block wx:if="{{advice.length>0}}"><view><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="adviceBox"><view style="display:flex;justify-content:space-between;"><text>{{"开始时间:"+item.m0}}</text><text>{{"开嘱医生:"+item.m1}}</text></view><view><view>医嘱内容:</view><block wx:for="{{item.$orig.childs}}" wx:for-item="it" wx:for-index="i"><view style="margin-bottom:10rpx;"><text style="color:#01BD5D;margin-right:10rpx;">{{i+1+'.'+"  "+it.advice_name}}</text><block wx:if="{{it.advice_desc}}"><text style="color:#01BD5D;margin-right:10rpx;">{{"("+it.advice_desc+it.drug_spec_unit+")"}}</text></block><block wx:if="{{it.prescribing_number}}"><text style="color:#01BD5D;margin-right:10rpx;">{{''+it.prescribing_number+it.prescribing_number_unit}}</text></block><block wx:if="{{it.single_dose}}"><text style="color:#01BD5D;margin-right:10rpx;">{{"单次用量"+it.single_dose+it.single_dose_unit}}</text></block><block wx:if="{{it.parent_id==0}}"><text style="color:#01BD5D;margin-right:10rpx;">{{it.delivery_way}}</text></block><block wx:if="{{it.parent_id==0}}"><text style="color:#01BD5D;margin-right:10rpx;">{{it.execution_frequency}}</text></block><block wx:if="{{it.parent_id==0&&it.remark.length>0}}"><text style="color:#01BD5D;margin-right:10rpx;">{{"("+it.remark+")"}}</text></block></view></block></view></view></block></view></block><block wx:else><empty-page vue-id="6aca9f12-1" bind:__l="__l"></empty-page></block><van-popup vue-id="6aca9f12-2" show="{{startTimeShow}}" position="bottom" custom-style="height: 40%;" data-com-type="wx" bind:__l="__l" vue-slots="{{['default']}}"><van-datetime-picker vue-id="{{('6aca9f12-3')+','+('6aca9f12-2')}}" type="date" value="{{startCurrentDate}}" min-date="{{minDate}}" max-date="{{maxDate}}" data-event-opts="{{[['^confirm',[['startConfirm']]],['^cancel',[['e2']]]]}}" data-com-type="wx" bind:confirm="__e" bind:cancel="__e" bind:__l="__l"></van-datetime-picker></van-popup><van-popup vue-id="6aca9f12-4" show="{{endTimeShow}}" position="bottom" custom-style="height: 40%;" data-com-type="wx" bind:__l="__l" vue-slots="{{['default']}}"><van-datetime-picker vue-id="{{('6aca9f12-5')+','+('6aca9f12-4')}}" type="date" value="{{endCurrentDate}}" min-date="{{minDate}}" max-date="{{maxDate}}" data-event-opts="{{[['^confirm',[['endConfirm']]],['^cancel',[['e3']]]]}}" data-com-type="wx" bind:confirm="__e" bind:cancel="__e" bind:__l="__l"></van-datetime-picker></van-popup></view>