This commit is contained in:
zoujiandong
2024-01-22 08:42:14 +08:00
parent 3a2b2cd3b1
commit 4948f35fb3
573 changed files with 640 additions and 24515 deletions
+688
View File
@@ -0,0 +1,688 @@
// pages/inquiryForm/inquiryForm.js
const app = getApp()
import {nation,job} from "../../../api/common"
import {sendFields} from "../../../api/sickRecord"
import {throttle} from "../../../utils/util"
Page({
/**
* 页面的初始数据
*/
data: {
showDialog:false,
obj:{
height:'身高',
weight:'体重',
marital_status:'婚姻状态',
nation_id:'民族',
job_id:'职业',
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
}]
},
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
})
}
},
confirmDialog:throttle(function(event){
if(event.detail){
this.handleSend();
}
}),
handleSend(){
const {order_inquiry_id,personInfo,obj}=this.data;
let dataObj={};
for (const key in obj) {
if(personInfo[key] || personInfo[key]==0){
dataObj[key]=personInfo[key];
}
}
let res=Object.assign({},dataObj,personInfo);
sendFields({
order_inquiry_id,
fields:res,
}).then(data=>{
wx.showToast({
title: '发送成功',
icon:'none'
}),
wx.navigateBack()
thi.setData({
showDialog:false
})
})
},
handleSendFields(){
const {order_inquiry_id,personInfo,list1,list2,marital_name,jobname,nationname,obj}=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[0-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
}
}
}
this.setData({
showDialog:true
})
},
openMaritalPicker() {
wx.hideKeyboard();
if(this.data.showBtn){
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
})
}
if(key=="is_take_medicine"){
this.setData({
"personInfo.drugs_name":'',
hideDrug: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() {
wx.hideKeyboard();
if(this.data.showBtn){
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() {
wx.hideKeyboard();
if(this.data.showBtn){
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);
}
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
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
})
}
})
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
this.setData({
img_host:app.hostConfig().imghost
});
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})
@@ -0,0 +1,14 @@
{
"usingComponents": {
"van-picker": "@vant/weapp/picker/index",
"van-radio": "@vant/weapp/radio/index",
"van-datetime-picker": "@vant/weapp/datetime-picker/index",
"van-popup": "@vant/weapp/popup/index",
"van-radio-group": "@vant/weapp/radio-group/index",
"dialog":"../../../components/dialog/dialog",
"nav":"../../../components/nav/nav"
},
"navigationStyle":"custom",
"disableScroll": true,
"navigationBarTitleText": "问诊表"
}
+253
View File
@@ -0,0 +1,253 @@
<!--pages/inquiryForm/inquiryForm.wxml-->
<wxs src="../../../filters/filter.wxs" module="filter"></wxs>
<nav navName="问诊表"></nav>
<view class="page">
<view class="pagecon">
<view class="questionbox">
<view class="cellbox" wx:if="{{list1.length>0}}">
<view class="basictitle">基本信息</view>
<view class="cell" wx:if="{{filter.formatwenzhenList(list1,'height').ISHAS}}">
<view class="cellrow">
<view class="name">
{{filter.formatwenzhenList(list1,'height').NUMBER}}、身高(CM
</view>
<view class="iptbox">
<input type="text" value="{{personInfo.height}}" bindinput="handleIpt" data-id="height" placeholder="请输入身高" placeholder-class="placeholder" class="ipt" disabled="{{!showBtn}}" />
</view>
</view>
</view>
<view class="cell" wx:if="{{filter.formatwenzhenList(list1,'weight').ISHAS}}">
<view class="cellrow">
<view class="name">
{{filter.formatwenzhenList(list1,'weight').NUMBER}}、体重(KG
</view>
<view class="iptbox">
<input type="text" value="{{personInfo.weight}}" bindinput="handleIpt" data-id="weight" placeholder="请请输入体重" placeholder-class="placeholder" class="ipt" disabled="{{!showBtn}}" />
</view>
</view>
</view>
<view class="cell" wx:if="{{filter.formatwenzhenList(list1,'marital_status').ISHAS}}" bindtap="openMaritalPicker">
<view class="cellrow">
<view class="name">
{{filter.formatwenzhenList(list1,'marital_status').NUMBER}}、婚姻状况
</view>
<view class="iptbox">
<input type="text" value="{{marital_name}}" bindinput="handleIpt" data-id="name" placeholder="请选择婚姻状况" placeholder-class="placeholder" class="ipt" disabled="{{true}}" />
<image src="{{img_host+'/righticon.png'}}" class="righticon"></image>
</view>
</view>
</view>
<view class="cell" wx:if="{{filter.formatwenzhenList(list1,'nation_id').ISHAS}}" bindtap="showNation">
<view class="cellrow">
<view class="name">
{{filter.formatwenzhenList(list1,'nation_id').NUMBER}}、民族
</view>
<view class="iptbox">
<input type="text" value="{{nationname}}" bindinput="handleIpt" data-id="name" placeholder="请选择民族" placeholder-class="placeholder" class="ipt" disabled="{{true}}" />
<image src="{{img_host+'/righticon.png'}}" class="righticon"></image>
</view>
</view>
</view>
<view class="cell" wx:if="{{filter.formatwenzhenList(list1,'job_id').ISHAS}}" bindtap="showJob">
<view class="cellrow">
<view class="name">
{{filter.formatwenzhenList(list1,'job_id').NUMBER}}、职业
</view>
<view class="iptbox">
<input type="text" value="{{jobname}}" bindinput="handleIpt" data-id="name" placeholder="请请选择职业" placeholder-class="placeholder" class="ipt" disabled="{{true}}" />
<image src="{{img_host+'/righticon.png'}}" class="righticon"></image>
</view>
</view>
</view>
</view>
<view class="cellbox" wx:if="{{list2.length>0}}">
<view class="basictitle">个人情况</view>
<view class="sickHis">
<view class="list">
<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 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" 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" 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 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=" " 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="{{showList[2].isHas}}">
<view class="num">{{showList[2].index}}、</view>
<view class="titlebox">
<view class="title">您是否处于备孕、妊娠、哺乳期?</view>
<view class="radio">
<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=" " 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" 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 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=" " 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" 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 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>
<van-radio name="4" checked-color="#3cc7c0">每天</van-radio>
<van-radio name="5" checked-color="#3cc7c0">已戒酒</van-radio>
</van-radio-group>
</view>
</view>
</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 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>
<van-radio name="4" checked-color="#3cc7c0">每天</van-radio>
<van-radio name="5" checked-color="#3cc7c0">已戒烟</van-radio>
</van-radio-group>
</view>
</view>
</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 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>
<van-radio name="4" checked-color="#3cc7c0">每天</van-radio>
</van-radio-group>
</view>
<view class="radiotip" wx:if="{{(personInfo.chemical_compound_status!=1 && personInfo.chemical_compound_status)}}">
<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>
</view>
</view>
</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=" " 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" wx:if="{{showList[8].isHas}}">
<view class="num">{{showList[8].index}}、</view>
<view class="titlebox">
<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>
</view>
</view>
</view>
</view>
</view>
</view>
<view class="bottom" wx:if="{{showBtn}}">
<view class="btn" bindtap="handleSendFields">发送给医生</view>
</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="{{ 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>
<!-- <van-popup show="{{ showNation }}" position="bottom" custom-style="height: auto">
<van-picker show-toolbar title="选择民族" columns="{{ nationcolumns }}" value-key="nation_name" bind:cancel="onCancelSick" bind:confirm="onConfirmNation" />
</van-popup> -->
<van-popup show="{{ showNation }}" position="bottom" custom-style="height: auto">
<van-picker show-toolbar title="选择民族" columns="{{ nationcolumns }}" value-key="nation_name" bind:cancel="onCancelNation" bind:confirm="onConfirmNation" />
</van-popup>
<van-popup show="{{ showJob }}" position="bottom" custom-style="height: auto">
<van-picker show-toolbar title="选择职业" columns="{{ jobcolumns }}" value-key="job_name" bind:cancel="onCancelJob" bind:confirm="onConfirmJob" />
</van-popup>
<dialog bind:confirm="confirmDialog" showDialog="{{showDialog}}" message="是否发送问诊表给问诊医生?"></dialog>
+183
View File
@@ -0,0 +1,183 @@
/* pages/inquiryForm/inquiryForm.wxss */
.page {
display: flex;
flex-direction: column;
overflow: hidden;
}
.pagecon{
height:100%;
display: flex;
flex-direction: column;
}
.cellbox{
background-color: #fff;
}
.questionbox{
overflow-y: scroll;
-webkit-overflow-scrolling: touch;
margin-top: 172rpx;
flex:1;
}
.cellbox .cell{
background-color: #fff;
align-items: center;
display: flex;
padding:0 32rpx;
}
.cellrow{
height:105rpx;
width:100%;
justify-content: space-between;
align-items: center;
display: flex;
border-bottom:1rpx solid #E3E4E5;
}
.cell:last-child .cellrow{
border-bottom: none;
}
.iptbox{
display: flex;
flex:1;
margin-top:4rpx;
justify-content: flex-end;
}
.righticon{
width:24rpx;
height: 48rpx;
}
.name{
display: flex;
align-items: center;
}
.name .red{
margin-top: 20rpx;
color:#E34D59;
}
.placeholder{
text-align: right;
font-size: 28rpx;
font-weight: 400;
color: #C5C8CB;
}
.ipt{
width:100%;
text-align: right;
color: #666666;
line-height: 48rpx;
margin-left: 160rpx;
font-size: 28rpx;
}
.basictitle{
margin-top: 30rpx;
font-size: 34rpx;
padding:30rpx 32rpx 10rpx;
font-family: PingFangSC, PingFang SC;
font-weight: 500;
color: #1C2023;
}
.sickHis{
background-color: #fff;
/* margin-top: 20rpx; */
padding:1rpx 52rpx 40rpx;
}
.list .qa{
display: flex;
margin-top: 30rpx;
border-bottom:1rpx solid #E3E4E5;
}
.titlebox{
flex:1;
}
textarea{
position: relative;
z-index:1;
width:100%;
color:#333;
height:132rpx;
}
.radio{
margin: 30rpx 0rpx 30rpx 0;
}
.group .van-radio--horizontal{
margin-right: 11rpx;
}
.singlegroup .van-radio--horizontal{
margin-right:44rpx;
}
.singlegroup .van-radio--horizontal:nth-child(2n){
margin-right: 0rpx;
}
.group .van-radio--horizontal:nth-child(3n){
margin-right: 0;
}
.radiotip{
position: relative;
padding:24rpx 20rpx;
justify-content: center;
margin-top: 20rpx;
line-height: 42rpx;
background: #F2F2F2;
border-radius: 10rpx;
font-size: 28rpx;
color:#999;
margin-bottom: 20rpx;
}
.radiotip .textbox{
top:20rpx;
left:20rpx;
margin-top: 0;
width:auto;
height: 100rpx;
font-weight: normal;
z-index: 0;
position: absolute;
right:20rpx;
}
.radiotip text{
white-space: nowrap;
color:#333;
}
.van-radio__label{
padding-right:40rpx!important;
}
/* .van-radio__label:nth-child(3){
padding-right:0rpx!important;
} */
.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:50rpx 32rpx;
}
.van-radio__icon--disabled{
background-color: #fff!important;
}
.van-radio__icon--disabled.van-radio__icon--checked{
color:#fff!important;
background-color: #3cc7c0!important;
border-color:#3cc7c0 ;
}
.van-radio__label--disabled{
color:#000!important;
}