问诊表

This commit is contained in:
zoujiandong
2023-12-14 13:04:09 +08:00
parent 41c265a4c2
commit dd892964c9
6 changed files with 88 additions and 13 deletions
+14
View File
@@ -86,6 +86,20 @@ Page({
},
handleIpt(e){
let key = e.target.dataset.id;
let obj="personInfo."+key;
if(key=='height' || key=="weight"){
this.setData({
[obj]:e.detail.value
})
}else{
this.setData({
[obj]: e.detail.value
})
}
},
handleSendFields(){
const {order_inquiry_id,personInfo,list1,list2,marital_name,jobname,nationname}=this.data;
console.log(personInfo)
+2 -2
View File
@@ -11,7 +11,7 @@
{{filter.formatwenzhenList(list1,'height').NUMBER}}、身高(CM
</view>
<view class="iptbox">
<input type="text" value="{{personInfo.height}}" bindinput="handleIpt" data-id="name" placeholder="请输入身高" placeholder-class="placeholder" class="ipt" disabled="{{!showBtn}}" />
<input type="text" value="{{personInfo.height}}" bindinput="handleIpt" data-id="height" placeholder="请输入身高" placeholder-class="placeholder" class="ipt" disabled="{{!showBtn}}" />
</view>
</view>
@@ -22,7 +22,7 @@
{{filter.formatwenzhenList(list1,'weight').NUMBER}}、体重(KG
</view>
<view class="iptbox">
<input type="text" value="{{personInfo.weight}}" bindinput="handleIpt" data-id="name" placeholder="请请输入体重" placeholder-class="placeholder" class="ipt" disabled="{{!showBtn}}" />
<input type="text" value="{{personInfo.weight}}" bindinput="handleIpt" data-id="weight" placeholder="请请输入体重" placeholder-class="placeholder" class="ipt" disabled="{{!showBtn}}" />
</view>
</view>