@zuopngfei e49b8b8de2 dads
2025-06-10 18:22:58 +08:00

100 lines
4.6 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/AddTherapeuticRegimen/index.wxml-->
<view class="therapeuticRegimen">
<view class="improt-file">
<view class="title">拍照导入</view>
<t-upload media-type="{{['image']}}" files="{{originFiles}}" gridConfig="{{gridConfig}}" removeBtn="{{false}}" bind:success="handleSuccess" bind:remove="handleRemove" bind:click="handleClick" bind:sort-end="handleSortEnd" />
</view>
<view class="therapeuticRegimen-item">
<view class="title">用药方案</view>
<view>
<t-row gutter="12">
<t-col span="12">
<view class="dark">
<view class="input-example">
<view class="input-example__label"> 用药周期 </view>
<t-input placeholder="请输入" bindtap="showPicker" value="{{start_date}}" size="small" borderless="{{true}}" style="{{style}}" data-mode="start_date" suffixIcon="{{ { name: 'calendar-1', ariaLabel: '通讯录' } }}" />
</view>
</view>
</t-col>
<t-col span="12">
<view class="dark">
<view class="input-example">
<view class="input-example__label none"> 体重kg </view>
<t-input placeholder="请输入" bindtap="showPicker" value="{{end_date}}" size="small" borderless="{{true}}" style="{{style}}" data-mode="end_date" suffixIcon="{{ { name: 'calendar-1', ariaLabel: '通讯录' } }}" />
</view>
</view>
</t-col>
</t-row>
</view>
<view class="input-example">
<view class="input-example__label"> 药品信息 </view>
</view>
<view class="delete-btn">
<t-tag class="margin-16" variant="light" theme="danger">删除</t-tag>
</view>
<view class="yp-item" wx:for="{{detail}}" wx:key="index">
<t-input bind:change="onInput" data-index="{{index}}" data-mode="name" label="药品名称" placeholder="请输入" align="right" value="{{item.name}}" />
<t-input bind:change="onInput" data-index="{{index}}" data-mode="dose" label="单次用药剂量" placeholder="请输入" align="right" value="{{item.dose}}" />
<t-input bind:change="onInput" data-index="{{index}}" data-mode="frequency" label="单次频次(每日次数)" placeholder="请输入" align="right" value="{{item.frequency}}" />
<view class="administration-time">
<view>饭前/饭后</view>
<view class="radio-group">
<t-radio-group default-value="0" borderless t-class="box" value="{{item.time}}">
<t-radio block="{{false}}" label="饭前" value="0" />
<t-radio block="{{false}}" label="饭后" value="1" />
</t-radio-group>
</view>
</view>
</view>
<t-button class="add-btn" theme="primary" content="" block bindtap="addItem">+添加用药</t-button>
</view>
<view class="therapeuticRegimen-item">
<view class="title">用药时间提醒</view>
<view class="reminder-time">
<view class="label">早上</view>
<t-input placeholder="请输入" bindtap="showPickertime" value="{{reminder.morning}}" size="small" borderless="{{true}}" style="{{style}}" data-mode="morning" suffixIcon="{{ { name: 'calendar-1', ariaLabel: '通讯录' } }}" />
</view>
<view class="reminder-time">
<view class="label">中午</view>
<t-input placeholder="请输入" bindtap="showPickertime" value="{{reminder.noon}}" size="small" borderless="{{true}}" style="{{style}}" data-mode="noon" suffixIcon="{{ { name: 'calendar-1', ariaLabel: '通讯录' } }}" />
</view>
<view class="reminder-time">
<view class="label">晚上</view>
<t-input placeholder="请输入" bindtap="showPickertime" value="{{reminder.evening}}" size="small" borderless="{{true}}" style="{{style}}" data-mode="evening" suffixIcon="{{ { name: 'calendar-1', ariaLabel: '通讯录' } }}" />
</view>
</view>
<t-button class="add-btn" theme="primary" content="" block bind:tap="saveData">保存</t-button>
<t-date-time-picker
auto-close
bind:cancel="hidePicker"
bind:change="onPickerChange"
cancelBtn="取消"
confirmBtn="确认"
data-mode="birth"
defaultValue="{{timeData}}"
end="{{birthEnd}}"
filter="{{birthFilter}}"
format="YYYY-MM-DD"
mode="date"
popup-props="{{ { usingCustomNavbar: true } }}"
start="{{birthStart}}"
title="选择日期"
value="{{timeData}}"
visible="{{birthVisible}}" />
<!-- 时分 -->
<t-date-time-picker
title="选择时间"
visible="{{minuteVisible}}"
mode="{{['null', 'minute']}}"
start="{{start}}"
value="{{minute}}"
defaultValue="{{timeData2}}"
format="HH:mm"
bindchange="onConfirm"
bindpick="onColumnChange"
bindcancel="hidePicker"
/>
</view>