haomingming 807698b89f 优化
2023-05-09 15:04:05 +08:00

261 lines
11 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.

<!-- <page-meta page-style="{{ page_meta_show ? 'overflow: hidden;' : '' }}" /> -->
<te-nav-bar navbar-data='{{navbarData}}' ></te-nav-bar>
<view class="container">
<view class="item">
<!-- 头部 -->
<view class="item_top">
<view class="item_top_name">{{case_detail.name}}</view>
<view class="item_top_sex">{{case_detail.sex==1?'男':case_detail.sex==2?'女':'未知'}}{{case_detail.age}}岁 </view>
<view class="check" bindtap="go" data-url="/Pages/yishi/case/index?order_inquiry_id={{order_inquiry_id}}">查看病历</view>
</view>
<!-- 中间内容部分 -->
<view class="item_content">
<view class="item_content_li">
<view class="item_content_li_title">病情主诉:</view>
<view class="item_content_li_txt">{{case_detail.disease_desc}}</view>
</view>
<view class="item_content_li" wx:if="{{case_detail.product.length > 0}}">
<view class="item_content_li_title">用药意向:</view>
<view class="item_content_li_txt"><text wx:for="{{case_detail.product}}">{{item}};</text></view>
</view>
<!-- <view class="item_content_li">
<view class="item_content_li_title">处方时间:</view>
<view class="item_content_li_txt">2022年12月23日 1245</view>
</view>
<view class="item_content_li">
<view class="item_content_li_title">驳回原因:</view>
<view class="item_content_li_txt">图片不清晰</view>
</view> -->
</view>
</view>
<van-cell-group inset>
<van-cell use-label-slot bind:click="showZhenDuan" custom-style="font-size:30rpx;color: #333;" title="诊断" >
<view class="addzhenduan" wx:if="{{from != 'chat'}}">+添加诊断</view>
<view slot="label">
<view style="margin-top: 20rpx;" class="label_item" wx:for="{{zhenduan_list}}">
<van-icon name="delete" catchtap="delZhenDuan" color="red" data-disease_class_id="{{item.icd_id}}" wx:if="{{from != 'chat'}}"/>
<text style="margin-left: 10rpx;">{{item.icd_name}}</text>
</view>
</view>
</van-cell>
</van-cell-group>
<view class="txt_title">开方药品</view>
<view class="drugs_box">
<view class="drugs_box_item" wx:for="{{ drugs_box_item_list }}" wx:for-item="drugs">
<view class="drugs_name">{{ drugs.product_name }}(数量{{ drugs.prescription_product_num}})</view>
<view class="drugs_guige">用法用量:{{ drugs.single_use }}{{ drugs.frequency_use }}{{ drugs.single_unit }}</view>
<!-- <view class="drugs_dosage">备注:{{ drugs.drugs_dosage }}</view> -->
<view class="btn" wx:if="{{from != 'chat'}}">
<van-button bind:click="editDrug" size="small" custom-style="font-size:28rpx;" data-product_id="{{drugs.product_id}}" color="#666" plain round type="info">编辑</van-button>
<van-button bind:click="delDrug" custom-style="margin-left: 20rpx;font-size:28rpx;" data-product_id="{{drugs.product_id}}" size="small" color="#666" plain round type="info">删除</van-button>
</view>
</view>
</view>
<view class="adddrugs_btn" wx:if="{{from != 'chat'}}">
<van-button bind:click="showPopup" color="rgba(44,241,248,0.28);" custom-style="color:#3CC7C0; font-size:30rpx; border-radius: 10rpx;" type="primary" block>+添加药品</van-button>
</view>
<form bindsubmit="{{ order_prescription_id == ''?'postDoctorPrescription':'putDoctorPrescription' }}">
<view class="txt_title">医嘱</view>
<view class="doctors_advice" bindtap="onDoctorsAdviceFocus">
<textarea disabled="{{from == 'chat'}}" auto-height focus="{{doctors_advice_focus}}" maxlength="1000" bindblur="getAdvice" style="width: 100%;" placeholder-style="font-size:24rpx; color:#999" placeholder="请输入医嘱5-200字" name="doctors_advice" value="{{doctor_advice}}"></textarea>
</view>
<!-- 从聊天页面过来的不显示按钮 -->
<view class="sub_btn" wx:if="{{from != 'chat'}}">
<van-button disabled="{{sub_disabled}}" form-type="submit" color="#3CC7C0; font-size:30rpx; border-radius: 10rpx;" type="primary" block>{{ order_prescription_id == ''?'提交审核':'重开处方' }}</van-button>
</view>
<!-- 0:审核中 1:审核成功 2:审核驳回 -->
<view class="sub_btn" wx:if="{{from == 'chat'}}">
<van-button disabled color="#3CC7C0; font-size:30rpx; border-radius: 10rpx;" type="primary" block>{{ pharmacist_audit_status == 0?'审核中':pharmacist_audit_status==1?'审核成功':pharmacist_audit_status==2?'审核驳回':'审核中' }}</van-button>
</view>
</form>
<van-popup
show="{{ drugs_popshow }}"
closeable
round
position="bottom"
custom-style=""
bind:close="onClose"
>
<view class="pop_title">添加药品</view>
<view class="search_drug">
<view class="search_drug_btn">
<text class="search_drug_btn_title">药品名称</text>
<van-search model:value="{{ product_name }}"
class="search_drug_btn_input"
clearable shape="round"
placeholder="请输入药品名称或拼音码搜索"
bind:change="onDrugChange"
/>
</view>
<view class="search_drug_list" wx:if="{{ !drug_content_show }}">
<view class="search_drug_list_empty" wx:if="{{ search_drug_list_empty }}">
<van-image
width="300rpx"
height="300rpx"
fit="contain"
src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/search_drugs.png"
/>
</view>
<view class="search_drug_list_noempty" wx:if="{{ !search_drug_list_empty }}">
<view class="search_drug_list_item"
data-product_name="{{item.product_name}}"
data-product_id="{{item.product_id}}"
data-single_use="{{item.single_use}}"
data-frequency_use="{{item.frequency_use}}"
data-single_unit="{{item.single_unit}}"
data-available_days="{{item.available_days}}"
data-packaging_unit="{{item.packaging_unit}}"
bindtap="select_drug"
wx:for="{{search_drug_list}}">
<view>{{item.product_name}}</view>
<view style="font-size: 26rpx;color: #3CC7C0;">{{item.manufacturer}}</view>
</view>
<!-- <view class="search_drug_list_item" data-search_value="恩替卡韦分散片" bindtap="select_drug">恩替卡韦分散片 0.5mg*7粒*3版</view>
<view class="search_drug_list_item" data-search_value="恩替卡韦片" bindtap="select_drug">恩替卡韦片 0.5mg*7粒*3版</view> -->
</view>
</view>
</view>
<van-cell-group wx:if="{{ drug_content_show }}">
<van-field
label="用法"
type="text"
model:value="{{save_durg_single_use}}"
input-align="left"
placeholder="请输入用法(口服)"
custom-style="font-size: 30rpx;"
clearable
confirm-type="next"
bind:confirm="changeFocus"
data-next_filed_focus="save_durg_frequency_use"
focus="{{now_filed_focus == 'save_durg_single_use'}}"
border="{{ true }}"
/>
<van-field
label="用次"
type="text"
model:value="{{save_durg_frequency_use}}"
input-align="left"
placeholder="请输入服用次一日1次"
custom-style="font-size: 30rpx;"
clearable
confirm-type="next"
bind:confirm="changeFocus"
data-next_filed_focus="save_durg_single_unit"
focus="{{now_filed_focus == 'save_durg_frequency_use'}}"
border="{{ true }}"
/>
<van-field
label="用量"
type="text"
model:value="{{save_durg_single_unit}}"
input-align="left"
placeholder="请输入用量一次3粒"
custom-style="font-size: 30rpx;"
clearable
confirm-type="next"
bind:confirm="changeFocus"
data-next_filed_focus="save_durg_available_days"
focus="{{now_filed_focus == 'save_durg_single_unit'}}"
border="{{ true }}"
/>
<van-field
label="用药天数"
type="text"
model:value="{{save_durg_available_days}}"
input-align="left"
placeholder="请输入时长"
custom-style="font-size: 30rpx;"
clearable
confirm-type="next"
bind:confirm="changeFocus"
data-next_filed_focus="save_durg_prescription_product_num"
focus="{{now_filed_focus == 'save_durg_available_days'}}"
border="{{ true }}"
/>
<van-field
label="药品数量"
type="number"
bind:input="get_save_durg_prescription_product_num"
value="{{save_durg_prescription_product_num}}"
input-align="left"
placeholder="请输入数量"
custom-style="font-size: 30rpx;"
clearable
confirm-type="next"
bind:confirm="changeFocus"
data-next_filed_focus="save_durg_packaging_unit"
focus="{{now_filed_focus == 'save_durg_prescription_product_num'}}"
border="{{ true }}"
/>
<van-field
label="单位"
type="text"
model:value="{{save_durg_packaging_unit}}"
input-align="left"
placeholder="盒/袋"
custom-style="font-size: 30rpx;"
clearable
confirm-type="done"
border="{{ true }}"
/>
<!-- <van-cell title="备注" bind:click="showNotePopup" is-link value="请选择" /> -->
<van-button bind:click="saveDrugs" custom-style="width: 90%;border-radius: 10rpx; margin: 20rpx auto;" type="primary" color="#3CC7C0" block>保存</van-button>
</van-cell-group>
</van-popup>
<van-popup
show="{{ note_popshow }}"
round
position="bottom"
custom-style=""
bind:close="onCloseNote"
>
<van-picker
show-toolbar
columns="{{ note_columns }}"
title="选择备注"
bind:cancel="onCancelNote"
bind:confirm="onConfirmNote"
bind:change="onChangeNote" />
</van-popup>
<van-popup
show="{{ zhenduan_popshow }}"
closeable
position="bottom"
custom-style="height: calc(100vh - {{height*2 + 20}}px);"
bind:close="onZhenduanClose"
>
<view style="padding-left: 20rpx;font-size: 30rpx;color: #999999;margin: 20rpx 0;">诊断</view>
<van-field
model:value="{{ disease_class_name }}"
placeholder="请输入疾病名称"
bind:change="onZhenDuanChange"
/>
<view class="zhenduan_data_list">
<view bindtap="addZhenDuan" class="zhenduan_item" data-icd_name="{{item.icd_name}}" data-icd_id="{{item.icd_id}}" wx:for="{{zhenduan_search_list}}">
{{item.icd_name}}
</view>
</view>
</van-popup>
<van-toast id="van-toast" />
</view>
<view style="height: 50rpx;">
</view>
<van-dialog id="van-dialog" confirm-button-color="#3CC7C0"/>