优化
This commit is contained in:
@@ -36,7 +36,7 @@ Page({
|
||||
case_detail: {},
|
||||
sub_disabled: false,
|
||||
from: "",
|
||||
now_filed_focus: 'save_durg_single_use'
|
||||
now_filed_focus: 'save_durg_prescription_product_num'
|
||||
},
|
||||
changeFocus(e){
|
||||
let next_filed_focus = e.currentTarget.dataset.next_filed_focus;
|
||||
@@ -70,13 +70,23 @@ Page({
|
||||
order_prescription_id: order_prescription_id,
|
||||
from: from
|
||||
})
|
||||
if(from == 'chat'){
|
||||
this.setData({
|
||||
"navbarData.title": '处方详情'
|
||||
})
|
||||
}
|
||||
},
|
||||
select_drug(e){
|
||||
this.setData({
|
||||
drug_content_show: true,
|
||||
product_name: e.currentTarget.dataset.product_name,
|
||||
select_drug_id: e.currentTarget.dataset.product_id,
|
||||
save_durg_product_id: e.currentTarget.dataset.product_id
|
||||
save_durg_product_id: e.currentTarget.dataset.product_id,
|
||||
save_durg_single_use: e.currentTarget.dataset.single_use,
|
||||
save_durg_frequency_use: e.currentTarget.dataset.frequency_use,
|
||||
save_durg_single_unit: e.currentTarget.dataset.single_unit,
|
||||
save_durg_available_days: e.currentTarget.dataset.available_days,
|
||||
save_durg_packaging_unit: e.currentTarget.dataset.packaging_unit,
|
||||
});
|
||||
},
|
||||
showPopup() {
|
||||
|
||||
@@ -106,6 +106,11 @@
|
||||
<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>
|
||||
|
||||
Reference in New Issue
Block a user