12.6 sickdetail
This commit is contained in:
@@ -1,19 +1,558 @@
|
||||
// pages/inquiryForm/inquiryForm.js
|
||||
const app = getApp()
|
||||
import {nation,job} from "../../api/common"
|
||||
import {sendFields} from "../../api/sickRecord"
|
||||
Page({
|
||||
|
||||
/**
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
obj:{
|
||||
height:'身高',
|
||||
weight:'体重',
|
||||
nation_id:'民族',
|
||||
job_id:'职业',
|
||||
marital_status:'婚姻状态',
|
||||
allergy_history:'是否有过敏史?',
|
||||
family_history:'是否有家族病史?',
|
||||
is_pregnant:'是否处于备孕、妊娠、哺乳期?',
|
||||
is_operation:'是否做过手术?',
|
||||
drink_wine_status:'是否有饮酒史?',
|
||||
smoke_status:'是否有吸烟史?',
|
||||
chemical_compound_status:'是否有接触过化学物?',
|
||||
diagnosis_hospital:'确诊医院是?',
|
||||
is_take_medicine:'服用药品是?'
|
||||
|
||||
},
|
||||
showNation:false,
|
||||
showJob:false,
|
||||
showMarital:false,
|
||||
nationname:'',
|
||||
order_inquiry_id:'',
|
||||
jobname:'',
|
||||
hideGuomin:false,
|
||||
hideFamilysick:false,
|
||||
hidePregnant:false,
|
||||
hideOperation:false,
|
||||
hideChemical:false,
|
||||
hideHospital:false,
|
||||
hideDrug:false,
|
||||
personInfo:{},
|
||||
showBtn:true,
|
||||
maritalColumn: [{
|
||||
text: '未婚',
|
||||
value: 0
|
||||
}, {
|
||||
text: '已婚 ',
|
||||
value: 1
|
||||
}, {
|
||||
text: '离异 ',
|
||||
value: 2
|
||||
}],
|
||||
nationcolumns:[],
|
||||
jobcolumns:[],
|
||||
list1:[],
|
||||
list2:[],
|
||||
startIndex1:1,
|
||||
showList:[{
|
||||
isHas:false,
|
||||
index:1
|
||||
},{
|
||||
isHas:false,
|
||||
index:2
|
||||
},{
|
||||
isHas:false,
|
||||
index:3
|
||||
},{
|
||||
isHas:false,
|
||||
index:4
|
||||
},{
|
||||
isHas:false,
|
||||
index:5
|
||||
},{
|
||||
isHas:false,
|
||||
index:6
|
||||
},{
|
||||
isHas:false,
|
||||
index:7
|
||||
},{
|
||||
isHas:false,
|
||||
index:8
|
||||
},{
|
||||
isHas:false,
|
||||
index:9
|
||||
}]
|
||||
|
||||
|
||||
},
|
||||
handleSendFields(){
|
||||
const {order_inquiry_id,personInfo,list1,list2,marital_name,jobname,nationname}=this.data;
|
||||
console.log(personInfo)
|
||||
const fields=[];
|
||||
for (let i = 0; i <list1.length; i++) {
|
||||
if(list1[i]=='height' && !personInfo.height){
|
||||
wx.showToast({
|
||||
title: '请填写身高',
|
||||
icon:'none'
|
||||
})
|
||||
return false
|
||||
}
|
||||
if (list1[i]=='height' && personInfo.height) {
|
||||
if (!/^3[5-9](\.\d+)?$|^[4-9][0-9](\.\d+)?$|^1[0-9][0-9](\.\d+)?$|^2[1-4][0-9](\.\d+)?$|250/.test(personInfo.height)) {
|
||||
wx.showToast({
|
||||
title: `请输入范围内身高!`,
|
||||
icon: 'none',
|
||||
});
|
||||
return false;
|
||||
}
|
||||
};
|
||||
if(list1[i]=='weight' && !personInfo.weight){
|
||||
wx.showToast({
|
||||
title: '请填写体重',
|
||||
icon:'none'
|
||||
})
|
||||
return false
|
||||
}
|
||||
|
||||
if (list1[i]=='weight' && personInfo.weight) {
|
||||
if (!/^[2-9](\.\d+)?$|^[1-9][0-9](\.\d+)?$|^1[0-9]{1,2}(\.\d+)?$|200/.test(personInfo.weight)) {
|
||||
wx.showToast({
|
||||
title: `请输入范围内体重!`,
|
||||
icon: 'none',
|
||||
});
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if(list1[i]=='marital_status' && !marital_name){
|
||||
wx.showToast({
|
||||
title: '请选择婚姻状态',
|
||||
icon:'none'
|
||||
})
|
||||
return false
|
||||
}
|
||||
if(list1[i]=='nation_id' && !nationname){
|
||||
wx.showToast({
|
||||
title: '请选择民族',
|
||||
icon:'none'
|
||||
})
|
||||
return false
|
||||
}
|
||||
if(list1[i]=='job_id' && !jobname){
|
||||
wx.showToast({
|
||||
title: '请选择职业',
|
||||
icon:'none'
|
||||
})
|
||||
return false
|
||||
}
|
||||
|
||||
}
|
||||
for (let i = 0; i < list2.length; i++) {
|
||||
if( list2[i]=="is_allergy_history"){
|
||||
if(!personInfo.is_allergy_history && personInfo.is_allergy_history!=0){
|
||||
wx.showToast({
|
||||
title: '请选择是否有过敏史',
|
||||
icon:'none'
|
||||
})
|
||||
return false
|
||||
}
|
||||
if(personInfo.is_allergy_history==1 && !personInfo.allergy_history){
|
||||
wx.showToast({
|
||||
title: '请填写过敏源',
|
||||
icon:'none'
|
||||
})
|
||||
return false
|
||||
}
|
||||
|
||||
|
||||
}else if(list2[i]=="is_family_history"){
|
||||
if(!personInfo.is_family_history && personInfo.is_family_history!=0){
|
||||
wx.showToast({
|
||||
title: '请选择是否有家族病史',
|
||||
icon:'none'
|
||||
})
|
||||
return false
|
||||
}
|
||||
if(personInfo.is_family_history==1 && !personInfo.family_history){
|
||||
wx.showToast({
|
||||
title: '请填写家族病史',
|
||||
icon:'none'
|
||||
})
|
||||
return false
|
||||
}
|
||||
|
||||
}else if(list2[i]=="is_pregnant"){
|
||||
if(!personInfo.is_pregnant && personInfo.is_pregnant!=0){
|
||||
wx.showToast({
|
||||
title: '请选择是否处于备孕、妊娠、哺乳期',
|
||||
icon:'none'
|
||||
})
|
||||
return false
|
||||
}
|
||||
if(personInfo.is_pregnant==1 && !personInfo.is_pregnant){
|
||||
wx.showToast({
|
||||
title: '请填写请描述您目前所处阶段,如备孕中、哺乳期中、妊娠月份',
|
||||
icon:'none'
|
||||
})
|
||||
return false
|
||||
}
|
||||
|
||||
}else if(list2[i]=="is_operation"){
|
||||
if(!personInfo.is_operation && personInfo.is_operation!=0){
|
||||
wx.showToast({
|
||||
title: '请选择是否做过手术',
|
||||
icon:'none'
|
||||
})
|
||||
return false
|
||||
}
|
||||
if(personInfo.is_operation==1 && !personInfo.operation){
|
||||
wx.showToast({
|
||||
title: '请描述具体手术名称和做手术医院',
|
||||
icon:'none'
|
||||
})
|
||||
return false
|
||||
}
|
||||
|
||||
}else if(list2[i]=="drink_wine_status"){
|
||||
if(!personInfo.drink_wine_status){
|
||||
wx.showToast({
|
||||
title: '请选择是否有饮酒史',
|
||||
icon:'none'
|
||||
})
|
||||
return false
|
||||
}
|
||||
}else if(list2[i]=="smoke_status"){
|
||||
if(!personInfo.smoke_status){
|
||||
wx.showToast({
|
||||
title: '请选择是否有吸烟史',
|
||||
icon:'none'
|
||||
})
|
||||
return false
|
||||
}
|
||||
}else if(list2[i]=="chemical_compound_status"){
|
||||
if(!personInfo.chemical_compound_status){
|
||||
wx.showToast({
|
||||
title: '是否有接触过化学物',
|
||||
icon:'none'
|
||||
})
|
||||
return false
|
||||
}
|
||||
if(personInfo.chemical_compound_status && personInfo.chemical_compound_status!=1 && !personInfo.chemical_compound_describe){
|
||||
wx.showToast({
|
||||
title: '请详细填写接触过的相关化学物',
|
||||
icon:'none'
|
||||
})
|
||||
return false
|
||||
}
|
||||
}else if(list2[i]=="diagnosis_hospital"){
|
||||
if(!personInfo.diagnosis_hospital){
|
||||
wx.showToast({
|
||||
title: '请填写确诊医院名称',
|
||||
icon:'none'
|
||||
})
|
||||
return false
|
||||
}
|
||||
|
||||
}else if(list2[i]=="is_take_medicine"){
|
||||
if(!personInfo.is_take_medicine && personInfo.is_take_medicine!=0){
|
||||
wx.showToast({
|
||||
title: '请填写是否正在服药',
|
||||
icon:'none'
|
||||
})
|
||||
return false
|
||||
}
|
||||
if(personInfo.is_take_medicine==1 && !personInfo.drugs_name){
|
||||
wx.showToast({
|
||||
title: '请填服药名称',
|
||||
icon:'none'
|
||||
})
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
sendFields({
|
||||
order_inquiry_id,
|
||||
fields:personInfo,
|
||||
}).then(data=>{
|
||||
wx.showToast({
|
||||
title: '发送成功',
|
||||
icon:'none'
|
||||
}),
|
||||
wx.navigateBack()
|
||||
|
||||
})
|
||||
},
|
||||
openMaritalPicker() {
|
||||
this.setData({
|
||||
showMarital: true
|
||||
})
|
||||
},
|
||||
closeMaritalPicker() {
|
||||
this.setData({
|
||||
showMarital: false
|
||||
})
|
||||
},
|
||||
onConfirmMaritalPicker(event) {
|
||||
const {
|
||||
value
|
||||
} = event.detail;
|
||||
|
||||
this.setData({
|
||||
showMarital: false,
|
||||
marital_name:value.text,
|
||||
'personInfo.marital_status':value.value
|
||||
})
|
||||
},
|
||||
onChangeRadio(event) {
|
||||
let key = event.target.dataset.id;
|
||||
let obj= "personInfo."+key;
|
||||
this.setData({
|
||||
[obj]:Number(event.detail)
|
||||
});
|
||||
if(key=="chemical_compound_status" && event.detail==1){
|
||||
this.setData({
|
||||
"personInfo.chemical_compound_describe":''
|
||||
})
|
||||
}else if(event.detail==0){
|
||||
if(key=="is_allergy_history"){
|
||||
this.setData({
|
||||
"personInfo.allergy_history":'',
|
||||
hideGuomin:false
|
||||
})
|
||||
};
|
||||
if(key=="is_pregnant"){
|
||||
this.setData({
|
||||
"personInfo.pregnant":'',
|
||||
hidePregnant:false
|
||||
})
|
||||
}
|
||||
if(key=="is_family_history"){
|
||||
this.setData({
|
||||
"personInfo.family_history":'',
|
||||
hideFamilysick:false
|
||||
})
|
||||
}
|
||||
}
|
||||
},
|
||||
handelFocus(e) {
|
||||
let key = e.target.dataset.id;
|
||||
let value = e.target.dataset.value;
|
||||
let obj="personInfo."+value;
|
||||
if (!e.detail.value) {
|
||||
this.setData({
|
||||
[key]: false,
|
||||
[obj]: e.detail.value
|
||||
})
|
||||
} else {
|
||||
this.setData({
|
||||
[key]: true,
|
||||
[obj]: e.detail.value
|
||||
})
|
||||
}
|
||||
},
|
||||
onConfirmNation(event) {
|
||||
const {
|
||||
value
|
||||
} = event.detail;
|
||||
this.setData({
|
||||
"nationname": `${value.nation_name}`,
|
||||
"personInfo.nation_id": `${value.nation_id}`,
|
||||
showNation: false
|
||||
})
|
||||
},
|
||||
showNation() {
|
||||
|
||||
this.setData({
|
||||
showNation: true
|
||||
})
|
||||
|
||||
},
|
||||
onCancelNation() {
|
||||
this.setData({
|
||||
showNation: false
|
||||
})
|
||||
},
|
||||
onConfirmJob(event) {
|
||||
const {
|
||||
value
|
||||
} = event.detail;
|
||||
this.setData({
|
||||
"jobname": `${value.job_name}`,
|
||||
"personInfo.job_id": `${value.job_id}`,
|
||||
showJob: false
|
||||
})
|
||||
},
|
||||
showJob() {
|
||||
this.setData({
|
||||
showJob: true
|
||||
})
|
||||
},
|
||||
onCancelJob() {
|
||||
this.setData({
|
||||
showJob: false
|
||||
})
|
||||
},
|
||||
commonMethods(arr1,arr2){
|
||||
this.setData({
|
||||
list1:arr1,
|
||||
list2:arr2
|
||||
});
|
||||
let count=0;
|
||||
arr2.forEach((item)=>{
|
||||
if(item=="allergy_history"){
|
||||
count++;
|
||||
this.setData({
|
||||
'showList[0].isHas':true,
|
||||
'showList[0].index':1
|
||||
})
|
||||
}else if(item=="family_history"){
|
||||
count++;
|
||||
this.setData({
|
||||
'showList[1].isHas':true,
|
||||
'showList[1].index':count
|
||||
})
|
||||
}else if(item=="is_pregnant"){
|
||||
count++;
|
||||
this.setData({
|
||||
'showList[2].isHas':true,
|
||||
'showList[2].index':count
|
||||
})
|
||||
}else if(item=="is_operation"){
|
||||
count++;
|
||||
this.setData({
|
||||
'showList[3].isHas':true,
|
||||
'showList[3].index':count
|
||||
})
|
||||
}else if(item=="drink_wine_status"){
|
||||
count++;
|
||||
this.setData({
|
||||
'showList[4].isHas':true,
|
||||
'showList[4].index':count
|
||||
})
|
||||
}else if(item=="smoke_status"){
|
||||
count++;
|
||||
this.setData({
|
||||
'showList[5].isHas':true,
|
||||
'showList[5].index':count
|
||||
})
|
||||
}else if(item=="chemical_compound_status"){
|
||||
count++;
|
||||
this.setData({
|
||||
'showList[6].isHas':true,
|
||||
'showList[6].index':count
|
||||
})
|
||||
}else if(item=="diagnosis_hospital"){
|
||||
count++;
|
||||
this.setData({
|
||||
'showList[7].isHas':true,
|
||||
'showList[7].index':count
|
||||
})
|
||||
}else if(item=="is_take_medicine"){
|
||||
count++;
|
||||
this.setData({
|
||||
'showList[8].isHas':true,
|
||||
'showList[8].index':count
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
},
|
||||
/**
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad(options) {
|
||||
this.getNation();
|
||||
this.getJob();
|
||||
if(options.order_inquiry_id){
|
||||
this.setData({
|
||||
order_inquiry_id:options.order_inquiry_id
|
||||
})
|
||||
}
|
||||
if(options.case_filled_fields){
|
||||
|
||||
let data=JSON.parse(options.case_filled_fields);
|
||||
let arr1=[];
|
||||
let arr2=[];
|
||||
|
||||
this.setData({
|
||||
personInfo:data,
|
||||
showBtn:false
|
||||
});
|
||||
if(data.is_allergy_history==1){
|
||||
this.setData({
|
||||
hideGuomin:true
|
||||
})
|
||||
}
|
||||
if(data.is_family_history==1){
|
||||
this.setData({
|
||||
hideFamilysick:true
|
||||
})
|
||||
}
|
||||
if(data.is_operation==1){
|
||||
this.setData({
|
||||
hideOperation:true
|
||||
})
|
||||
}
|
||||
if(data.is_pregnant==1){
|
||||
this.setData({
|
||||
hidePregnant:true
|
||||
})
|
||||
}
|
||||
if(data.chemical_compound_status && data.chemical_compound_status!=1){
|
||||
this.setData({
|
||||
hideChemical:true
|
||||
})
|
||||
}
|
||||
if(data.diagnosis_hospital){
|
||||
this.setData({
|
||||
hideHospital:true
|
||||
})
|
||||
}
|
||||
if(data.is_take_medicine==1){
|
||||
this.setData({
|
||||
hideDrug:true
|
||||
})
|
||||
}
|
||||
let {maritalColumn,jobcolumns,nationcolumns}=this.data;
|
||||
if(data.marital_status==0 || data.marital_status){
|
||||
let select=maritalColumn.filter(item=>{return item.value==data.marital_status});
|
||||
this.setData({
|
||||
'marital_name':select[0].text
|
||||
})
|
||||
};
|
||||
|
||||
|
||||
|
||||
Object.keys(data).forEach(function(key){
|
||||
if(key=="weight" || key=="height" || key=="marital_status" || key=="nation_id" || key=="job_id"){
|
||||
arr1.push(key);
|
||||
}else{
|
||||
arr2.push(key);
|
||||
}
|
||||
})
|
||||
this.commonMethods(arr1,arr2);
|
||||
|
||||
|
||||
|
||||
}
|
||||
if(options.params){
|
||||
let data=JSON.parse(options.params);
|
||||
let {obj}=this.data;
|
||||
let arr1=[];
|
||||
let arr2=[];
|
||||
data.forEach(item => {
|
||||
if(item=="weight" || item=="height" || item=="marital_status" || item=="nation_id" || item=="job_id"){
|
||||
arr1.push(item);
|
||||
}else{
|
||||
arr2.push(item);
|
||||
}
|
||||
|
||||
})
|
||||
this.commonMethods(arr1,arr2);
|
||||
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
@@ -22,7 +561,34 @@ Page({
|
||||
onReady() {
|
||||
|
||||
},
|
||||
|
||||
getNation(){
|
||||
nation().then(data=>{
|
||||
this.setData({
|
||||
nationcolumns:data
|
||||
})
|
||||
let {personInfo}=this.data;
|
||||
if(personInfo.nation_id || personInfo.nation_id==0){
|
||||
let select=data.filter(item=>{return item.nation_id==personInfo.nation_id});
|
||||
this.setData({
|
||||
'nationname':select[0].nation_name
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
getJob(){
|
||||
job().then(data=>{
|
||||
this.setData({
|
||||
jobcolumns:data
|
||||
})
|
||||
let {personInfo}=this.data;
|
||||
if(personInfo.job_id || personInfo.job_id==0){
|
||||
let select=data.filter(item=>{return item.job_id==personInfo.job_id});
|
||||
this.setData({
|
||||
'jobname':select[0].job_name
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
/**
|
||||
* 生命周期函数--监听页面显示
|
||||
*/
|
||||
|
||||
@@ -1,61 +1,62 @@
|
||||
<!--pages/inquiryForm/inquiryForm.wxml-->
|
||||
<wxs src="../../filters/filter.wxs" module="filter"></wxs>
|
||||
<nav navName="问诊表"></nav>
|
||||
<view class="page">
|
||||
<view class="questionbox">
|
||||
<view class="cellbox">
|
||||
<view class="basictitle">基本信息</view>
|
||||
<view class="cell" >
|
||||
<view class="cell" wx:if="{{filter.formatwenzhenList(list1,'height').ISHAS}}">
|
||||
<view class="cellrow">
|
||||
<view class="name">
|
||||
1、身高(CM)
|
||||
{{filter.formatwenzhenList(list1,'height').NUMBER}}、身高(CM)
|
||||
</view>
|
||||
<view class="iptbox">
|
||||
<input type="text" value="{{user_info.name}}" bindinput="handleIpt" data-id="name" placeholder="请输入身高" placeholder-class="placeholder" class="ipt" disabled="{{notallowEdit?true:false}}" />
|
||||
<input type="text" value="{{user_info.name}}" bindinput="handleIpt" data-id="name" placeholder="请输入身高" placeholder-class="placeholder" class="ipt" disabled="{{!showBtn}}" />
|
||||
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="cell" >
|
||||
<view class="cell" wx:if="{{filter.formatwenzhenList(list1,'weight').ISHAS}}">
|
||||
<view class="cellrow">
|
||||
<view class="name">
|
||||
2、体重(KG)
|
||||
{{filter.formatwenzhenList(list1,'weight').NUMBER}}、体重(KG)
|
||||
</view>
|
||||
<view class="iptbox">
|
||||
<input type="text" value="{{user_info.name}}" bindinput="handleIpt" data-id="name" placeholder="请请输入体重" placeholder-class="placeholder" class="ipt" disabled="{{notallowEdit?true:false}}" />
|
||||
<input type="text" value="{{user_info.name}}" bindinput="handleIpt" data-id="name" placeholder="请请输入体重" placeholder-class="placeholder" class="ipt" disabled="{{!showBtn}}" />
|
||||
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="cell" >
|
||||
<view class="cell" wx:if="{{filter.formatwenzhenList(list1,'marital_status').ISHAS}}" bindtap="openMaritalPicker">
|
||||
<view class="cellrow">
|
||||
<view class="name">
|
||||
3、婚姻状况
|
||||
{{filter.formatwenzhenList(list1,'marital_status').NUMBER}}、婚姻状况
|
||||
</view>
|
||||
<view class="iptbox">
|
||||
<input type="text" value="{{user_info.name}}" bindinput="handleIpt" data-id="name" placeholder="请选择婚姻状况" placeholder-class="placeholder" class="ipt" disabled="{{notallowEdit?true:false}}" />
|
||||
<input type="text" value="{{marital_name}}" bindinput="handleIpt" data-id="name" placeholder="请选择婚姻状况" placeholder-class="placeholder" class="ipt" disabled="{{!showBtn}}" />
|
||||
<image src="{{img_host+'/righticon.png'}}" class="righticon"></image>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="cell" >
|
||||
<view class="cell" wx:if="{{filter.formatwenzhenList(list1,'nation_id').ISHAS}}" bindtap="showNation">
|
||||
<view class="cellrow">
|
||||
<view class="name">
|
||||
4、民族
|
||||
{{filter.formatwenzhenList(list1,'nation_id').NUMBER}}、民族
|
||||
</view>
|
||||
<view class="iptbox">
|
||||
<input type="text" value="{{user_info.name}}" bindinput="handleIpt" data-id="name" placeholder="请选择民族" placeholder-class="placeholder" class="ipt" disabled="{{notallowEdit?true:false}}" />
|
||||
<input type="text" value="{{nationname}}" bindinput="handleIpt" data-id="name" placeholder="请选择民族" placeholder-class="placeholder" class="ipt" disabled="{{!showBtn}}" />
|
||||
<image src="{{img_host+'/righticon.png'}}" class="righticon"></image>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="cell" >
|
||||
<view class="cell" wx:if="{{filter.formatwenzhenList(list1,'job_id').ISHAS}}" bindtap="showJob">
|
||||
<view class="cellrow">
|
||||
<view class="name">
|
||||
5、职业
|
||||
{{filter.formatwenzhenList(list1,'job_id').NUMBER}}、职业
|
||||
</view>
|
||||
<view class="iptbox">
|
||||
<input type="text" value="{{user_info.name}}" bindinput="handleIpt" data-id="name" placeholder="请请选择职业" placeholder-class="placeholder" class="ipt" disabled="{{notallowEdit?true:false}}" />
|
||||
<input type="text" value="{{jobname}}" bindinput="handleIpt" data-id="name" placeholder="请请选择职业" placeholder-class="placeholder" class="ipt" disabled="{{!showBtn}}" />
|
||||
<image src="{{img_host+'/righticon.png'}}" class="righticon"></image>
|
||||
</view>
|
||||
</view>
|
||||
@@ -66,85 +67,85 @@
|
||||
<view class="basictitle">个人情况</view>
|
||||
<view class="sickHis">
|
||||
<view class="list">
|
||||
<view class="qa">
|
||||
<view class="num">1、</view>
|
||||
<view class="qa" wx:if="{{showList[0].isHas}}">
|
||||
<view class="num">{{showList[0].index}}、</view>
|
||||
<view class="titlebox">
|
||||
<view class="title">您是否有过敏史?</view>
|
||||
<view class="radio" >
|
||||
<van-radio-group value="{{ filter.numberTOstring(personInfo.is_allergy_history) }}" class="singlegroup" data-id="is_allergy_history" bind:change="onChangeRadio" direction="horizontal">
|
||||
<van-radio-group disabled="{{!showBtn}}" value="{{ filter.numberTOstring(personInfo.is_allergy_history) }}" class="singlegroup" data-id="is_allergy_history" bind:change="onChangeRadio" direction="horizontal">
|
||||
<van-radio name="1" checked-color="#3cc7c0">是</van-radio>
|
||||
<van-radio name="0" checked-color="#3cc7c0">否</van-radio>
|
||||
</van-radio-group>
|
||||
</view>
|
||||
<!-- hidden="{{checkGuomin!=1}}" -->
|
||||
<view class="radiotip" hidden="{{personInfo.is_allergy_history!=1}}">
|
||||
<textarea placeholder=" " show-confirm-bar="{{false}}" cursor-spacing="70" confirm-type="done" bindinput="handelFocus" value="{{personInfo.allergy_history}}" data-id="hideGuomin" data-value="allergy_history"></textarea>
|
||||
<textarea placeholder=" " show-confirm-bar="{{false}}" cursor-spacing="70" confirm-type="done" bindinput="handelFocus" disabled="{{!showBtn}}" value="{{personInfo.allergy_history}}" data-id="hideGuomin" data-value="allergy_history"></textarea>
|
||||
<view class="textbox" hidden="{{hideGuomin}}">
|
||||
<view class="desc"><text>过敏史:</text>请填写过敏源,如药物,请写出药名;如食物,请写具体如鸡蛋、牛奶等(限制50个字)</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="qa">
|
||||
<view class="num">2、</view>
|
||||
<view class="qa" wx:if="{{showList[1].isHas}}">
|
||||
<view class="num">{{showList[1].index}}、</view>
|
||||
<view class="titlebox">
|
||||
<view class="title">您是否有家族病史?</view>
|
||||
<view class="radio">
|
||||
<van-radio-group class="singlegroup" value="{{filter.numberTOstring(personInfo.is_family_history)}}" data-id="is_family_history" bind:change="onChangeRadio" direction="horizontal">
|
||||
<van-radio-group disabled="{{!showBtn}}" class="singlegroup" value="{{filter.numberTOstring(personInfo.is_family_history)}}" data-id="is_family_history" bind:change="onChangeRadio" direction="horizontal">
|
||||
<van-radio name="1" checked-color="#3cc7c0">是</van-radio>
|
||||
<van-radio name="0" checked-color="#3cc7c0">否</van-radio>
|
||||
</van-radio-group>
|
||||
</view>
|
||||
<view class="radiotip" hidden="{{personInfo.is_family_history!=1}}">
|
||||
<textarea placeholder=" " show-confirm-bar="{{false}}" cursor-spacing="70" confirm-type="done" bindinput="handelFocus" value="{{personInfo.family_history}}" data-id="hideFamilysick" data-value="family_history"></textarea>
|
||||
<textarea placeholder=" " disabled="{{!showBtn}}" show-confirm-bar="{{false}}" cursor-spacing="70" confirm-type="done" bindinput="handelFocus" value="{{personInfo.family_history}}" data-id="hideFamilysick" data-value="family_history"></textarea>
|
||||
<view class="textbox" hidden="{{hideFamilysick}}">
|
||||
<view class="desc"><text>家族病史:</text>请详细填写相关家族病史(限制50个字)</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="qa" wx:if="{{sex==2}}">
|
||||
<view class="num">{{startIndex}}、</view>
|
||||
<view class="qa" wx:if="{{showList[2].isHas}}">
|
||||
<view class="num">{{showList[2].index}}、</view>
|
||||
<view class="titlebox">
|
||||
<view class="title">您是否处于备孕、妊娠、哺乳期?</view>
|
||||
<view class="radio">
|
||||
<van-radio-group value="{{ filter.numberTOstring(personInfo.is_pregnant) }}" bind:change="onChangeRadio" data-id="is_pregnant" direction="horizontal" class="singlegroup">
|
||||
<van-radio-group disabled="{{!showBtn}}" value="{{ filter.numberTOstring(personInfo.is_pregnant) }}" bind:change="onChangeRadio" data-id="is_pregnant" direction="horizontal" class="singlegroup">
|
||||
<van-radio name="1" checked-color="#3cc7c0">是</van-radio>
|
||||
<van-radio name="0" checked-color="#3cc7c0">否</van-radio>
|
||||
</van-radio-group>
|
||||
</view>
|
||||
<view class="radiotip" hidden="{{personInfo.is_pregnant!=1}}">
|
||||
<textarea placeholder=" " show-confirm-bar="{{false}}" cursor-spacing="70" confirm-type="done" bindinput="handelFocus" value="{{personInfo.pregnant}}" data-id="hidePregnant" data-value="pregnant"></textarea>
|
||||
<textarea placeholder=" " disabled="{{!showBtn}}" show-confirm-bar="{{false}}" cursor-spacing="70" confirm-type="done" bindinput="handelFocus" value="{{personInfo.pregnant}}" data-id="hidePregnant" data-value="pregnant"></textarea>
|
||||
<view class="textbox" hidden="{{hidePregnant}}">
|
||||
<view class="desc">请描述您目前所处阶段,如备孕中、哺乳期中、妊娠月份。(限制50个字)</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="qa">
|
||||
<view class="num">{{startIndex+1}}、</view>
|
||||
<view class="qa" wx:if="{{showList[3].isHas}}">
|
||||
<view class="num">{{showList[3].index}}、</view>
|
||||
<view class="titlebox">
|
||||
<view class="title">是否做过手术</view>
|
||||
<view class="radio">
|
||||
<van-radio-group value="{{ filter.numberTOstring(personInfo.is_operation) }}" data-id="is_operation" bind:change="onChangeRadio" direction="horizontal" class="singlegroup">
|
||||
<van-radio-group disabled="{{!showBtn}}" value="{{ filter.numberTOstring(personInfo.is_operation) }}" data-id="is_operation" bind:change="onChangeRadio" direction="horizontal" class="singlegroup">
|
||||
<van-radio name="1" checked-color="#3cc7c0">是</van-radio>
|
||||
<van-radio name="0" checked-color="#3cc7c0">否</van-radio>
|
||||
</van-radio-group>
|
||||
</view>
|
||||
<view class="radiotip" hidden="{{personInfo.is_operation !=1}}">
|
||||
<textarea placeholder=" " show-confirm-bar="{{false}}" cursor-spacing="70" confirm-type="done" bindinput="handelFocus" value="{{personInfo.operation}}" data-id="hideOperation" data-value="operation"></textarea>
|
||||
<textarea placeholder=" " disabled="{{!showBtn}}" show-confirm-bar="{{false}}" cursor-spacing="70" confirm-type="done" bindinput="handelFocus" value="{{personInfo.operation}}" data-id="hideOperation" data-value="operation"></textarea>
|
||||
<view class="textbox" hidden="{{hideOperation}}">
|
||||
<view class="desc">请描述具体手术名称和做手术医院</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="qa">
|
||||
<view class="num">{{startIndex+2}}、</view>
|
||||
<view class="qa" wx:if="{{showList[4].isHas}}">
|
||||
<view class="num">{{showList[4].index}}、</view>
|
||||
<view class="titlebox">
|
||||
<view class="title">是否有饮酒史</view>
|
||||
<view class="radio">
|
||||
<van-radio-group value="{{ filter.numberTOstring(personInfo.drink_wine_status) }}" data-id="drink_wine_status" bind:change="onChangeRadio" direction="horizontal" class="group">
|
||||
<van-radio-group disabled="{{!showBtn}}" value="{{ filter.numberTOstring(personInfo.drink_wine_status) }}" data-id="drink_wine_status" bind:change="onChangeRadio" direction="horizontal" class="group">
|
||||
<van-radio name="1" checked-color="#3cc7c0">从不</van-radio>
|
||||
<van-radio name="2" checked-color="#3cc7c0">偶尔</van-radio>
|
||||
<van-radio name="3" checked-color="#3cc7c0">经常</van-radio>
|
||||
@@ -154,12 +155,12 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="qa">
|
||||
<view class="num">{{startIndex+3}}、</view>
|
||||
<view class="qa" wx:if="{{showList[5].isHas}}">
|
||||
<view class="num">{{showList[5].index}}、</view>
|
||||
<view class="titlebox">
|
||||
<view class="title">是否有吸烟史</view>
|
||||
<view class="radio">
|
||||
<van-radio-group value="{{ filter.numberTOstring(personInfo.smoke_status) }}" data-id="smoke_status" bind:change="onChangeRadio" direction="horizontal" class="group">
|
||||
<van-radio-group disabled="{{!showBtn}}" value="{{ filter.numberTOstring(personInfo.smoke_status) }}" data-id="smoke_status" bind:change="onChangeRadio" direction="horizontal" class="group">
|
||||
<van-radio name="1" checked-color="#3cc7c0">从不</van-radio>
|
||||
<van-radio name="2" checked-color="#3cc7c0">偶尔</van-radio>
|
||||
<van-radio name="3" checked-color="#3cc7c0">经常</van-radio>
|
||||
@@ -169,12 +170,12 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="qa">
|
||||
<view class="num">{{startIndex+4}}、</view>
|
||||
<view class="qa" wx:if="{{showList[6].isHas}}">
|
||||
<view class="num">{{showList[6].index}}、</view>
|
||||
<view class="titlebox">
|
||||
<view class="title">是否有接触过化学物</view>
|
||||
<view class="radio">
|
||||
<van-radio-group value="{{filter.numberTOstring(personInfo.chemical_compound_status)}}" data-id="chemical_compound_status" bind:change="onChangeRadio" direction="horizontal" class="group">
|
||||
<van-radio-group disabled="{{!showBtn}}" value="{{filter.numberTOstring(personInfo.chemical_compound_status)}}" data-id="chemical_compound_status" bind:change="onChangeRadio" direction="horizontal" class="group">
|
||||
<van-radio name="1" checked-color="#3cc7c0">从不</van-radio>
|
||||
<van-radio name="2" checked-color="#3cc7c0">偶尔</van-radio>
|
||||
<van-radio name="3" checked-color="#3cc7c0">经常</van-radio>
|
||||
@@ -183,7 +184,7 @@
|
||||
</view>
|
||||
|
||||
<view class="radiotip" wx:if="{{(personInfo.chemical_compound_status!=1 && personInfo.chemical_compound_status)}}">
|
||||
<textarea placeholder=" " show-confirm-bar="{{false}}" cursor-spacing="70" confirm-type="done" value="{{personInfo.chemical_compound_describe}}" bindinput="handelFocus" data-id="hideChemical" data-value="chemical_compound_describe"></textarea>
|
||||
<textarea placeholder=" " disabled="{{!showBtn}}" show-confirm-bar="{{false}}" cursor-spacing="70" confirm-type="done" value="{{personInfo.chemical_compound_describe}}" bindinput="handelFocus" data-id="hideChemical" data-value="chemical_compound_describe"></textarea>
|
||||
<view class="textbox" hidden="{{hideChemical}}">
|
||||
<view class="desc"><text>化学物:</text>请详细填写接触过的相关化学物(限制50个字)</view>
|
||||
</view>
|
||||
@@ -191,27 +192,31 @@
|
||||
|
||||
</view>
|
||||
</view>
|
||||
<view class="qa">
|
||||
<view class="num">{{startIndex+45}}、</view>
|
||||
<view class="qa" wx:if="{{showList[7].isHas}}">
|
||||
<view class="num">{{showList[7].index}}、</view>
|
||||
<view class="titlebox">
|
||||
<view class="title">确诊医院是?</view>
|
||||
|
||||
<view class="radiotip" >
|
||||
<textarea placeholder=" " show-confirm-bar="{{false}}" cursor-spacing="70" confirm-type="done" bindinput="handelFocus" value="{{personInfo.family_history}}" data-id="hideFamilysick" data-value="family_history"></textarea>
|
||||
<view class="textbox" hidden="{{hideFamilysick}}">
|
||||
<textarea placeholder=" " disabled="{{!showBtn}}" show-confirm-bar="{{false}}" cursor-spacing="70" confirm-type="done" bindinput="handelFocus" value="{{personInfo.diagnosis_hospital}}" data-id="hideHospital" data-value="diagnosis_hospital"></textarea>
|
||||
<view class="textbox" hidden="{{hideHospital}}">
|
||||
<view class="desc"><text></text>请填写确诊医院名称</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="qa">
|
||||
<view class="num">{{startIndex+6}}、</view>
|
||||
<view class="qa" wx:if="{{showList[8].isHas}}">
|
||||
<view class="num">{{showList[8].index}}、</view>
|
||||
<view class="titlebox">
|
||||
<view class="title">服用药品是?</view>
|
||||
|
||||
<view class="radiotip" >
|
||||
<textarea placeholder=" " show-confirm-bar="{{false}}" cursor-spacing="70" confirm-type="done" bindinput="handelFocus" value="{{personInfo.family_history}}" data-id="hideFamilysick" data-value="family_history"></textarea>
|
||||
<view class="textbox" hidden="{{hideFamilysick}}">
|
||||
<view class="title">是否正在服药?</view>
|
||||
<view class="radio">
|
||||
<van-radio-group disabled="{{!showBtn}}" value="{{ filter.numberTOstring(personInfo.is_take_medicine) }}" data-id="is_take_medicine" bind:change="onChangeRadio" direction="horizontal" class="singlegroup">
|
||||
<van-radio name="1" checked-color="#3cc7c0">是</van-radio>
|
||||
<van-radio name="0" checked-color="#3cc7c0">否</van-radio>
|
||||
</van-radio-group>
|
||||
</view>
|
||||
<view class="radiotip" hidden="{{personInfo.is_take_medicine !=1}}">
|
||||
<textarea placeholder=" " disabled="{{!showBtn}}" show-confirm-bar="{{false}}" cursor-spacing="70" confirm-type="done" bindinput="handelFocus" value="{{personInfo.drugs_name}}" data-id="hideDrug" data-value="drugs_name"></textarea>
|
||||
<view class="textbox" hidden="{{hideDrug}}">
|
||||
<view class="desc"><text></text>请详细填写所服药物(限制50个字)</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -221,15 +226,16 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="bottom" wx:if="{{showBtn}}">
|
||||
<view class="btn" bindtap="handleSendFields">发送给医生</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
|
||||
<van-popup show="{{ showMarital }}" round position="bottom" custom-style="height:auto" bind:close="closeMaritalPicker">
|
||||
<van-picker show-toolbar title="请选择婚姻状况" columns="{{ maritalColumn }}" bind:cancel="closeMaritalPicker" bind:confirm="onConfirmMaritalPicker" />
|
||||
</van-popup>
|
||||
<van-popup show="{{ showCity}}" round position="bottom" custom-style="height: 50%" bind:close="onClose">
|
||||
<van-picker columns="{{ columns }}" show-toolbar title="选择地区" columns="{{ columns }}" value-key="area_name" bind:cancel="onCancel" bind:change="onChangePicker" bind:confirm="onConfirm" />
|
||||
</van-popup>
|
||||
|
||||
<van-popup show="{{ showSick }}" position="bottom" custom-style="height: auto">
|
||||
<van-picker show-toolbar title="选择所患疾病" columns="{{ sickcolumns }}" value-key="disease_class_name" bind:cancel="onCancelSick" bind:confirm="onConfirmSick" />
|
||||
</van-popup>
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
.questionbox{
|
||||
overflow-y: scroll;
|
||||
margin-top: 172rpx;
|
||||
flex:1;
|
||||
}
|
||||
.cellbox .cell{
|
||||
background-color: #fff;
|
||||
@@ -143,4 +144,21 @@ margin-bottom: 20rpx;
|
||||
} */
|
||||
.van-radio{
|
||||
margin-bottom: 10rpx!important;
|
||||
}
|
||||
.bottom{
|
||||
width:100%;
|
||||
height:160rpx;
|
||||
background-color: #fff;
|
||||
}
|
||||
.bottom .btn{
|
||||
font-size: 30rpx;
|
||||
color: #FFFFFF;
|
||||
height:80rpx;
|
||||
display: flex;
|
||||
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
background: #3CC7C0;
|
||||
border-radius: 8rpx;
|
||||
margin:40rpx 32rpx;
|
||||
}
|
||||
Reference in New Issue
Block a user