|
@@ -11,7 +11,7 @@
|
|
|
</div>
|
|
|
<div class="viewPrew">
|
|
|
<div class="content">
|
|
|
- <div class="preQuestion" v-for="(item,index) in showCheckDatas">
|
|
|
+ <div class="preQuestion" v-for="(item,index) in checkDatas.questionMapping">
|
|
|
<div class="quest" @click="slideToggle($event,index)">
|
|
|
<img class="sign" v-if="item.required==1" src="../images/important.svg" alt="">
|
|
|
<p class="title clearfix">{{index + 1 +'.'+(item.description || item.name)}}{{item.controlType==1?'(单选)':item.controlType==2?'(多选)':''}}</p>
|
|
@@ -100,9 +100,8 @@ import $ from 'jquery';
|
|
|
},
|
|
|
props:['datas','data','checkF','tips','sex','flags'],
|
|
|
created(){
|
|
|
- this.checkDatas = JSON.parse(JSON.stringify(this.datas));
|
|
|
- let tmpD = this.checkDatas.questionMapping||[]
|
|
|
- this.showCheckDatas = tmpD.filter(item=>item.flag!=3)
|
|
|
+ let tmpData = JSON.parse(JSON.stringify(this.datas));
|
|
|
+ this.checkDatas = tmpData
|
|
|
},
|
|
|
mounted(){
|
|
|
this.$nextTick(()=>{
|
|
@@ -245,7 +244,7 @@ import $ from 'jquery';
|
|
|
let textP = "";//患者
|
|
|
let special = ""; //拼到主诉
|
|
|
let specialP = "";
|
|
|
- let bj1 = "",bjP1 = "",bj2 = "",bjP2 = "",bj3="",bjP3="";
|
|
|
+ let bj1 = "",bjP1 = "",bj2 = "",bjP2 = "",bj3="",bjP3="",signNum1=1,signNum2=1;
|
|
|
for(let i in datas){
|
|
|
// 校验必填项
|
|
|
/* if(datas[i].required==1 && !datas[i].value){
|
|
@@ -259,11 +258,23 @@ import $ from 'jquery';
|
|
|
}
|
|
|
if(datas[i].value){
|
|
|
if(datas[i].flag == 1){
|
|
|
- bj1 += '于'+datas[i].value+'前';
|
|
|
- bjP1 += '于'+datas[i].valueP+'前';
|
|
|
+ if(signNum1 == 1){
|
|
|
+ ++signNum1
|
|
|
+ bj1 += '于'+datas[i].value+'前';
|
|
|
+ bjP1 += '于'+datas[i].valueP+'前';
|
|
|
+ }else{
|
|
|
+ bj3 += datas[i].value+',';
|
|
|
+ bjP3 += datas[i].valueP+',';
|
|
|
+ }
|
|
|
}else if(datas[i].flag == 2){
|
|
|
- bj2 += datas[i].value;
|
|
|
- bjP2 += datas[i].valueP;
|
|
|
+ if(signNum2 == 1){
|
|
|
+ ++signNum2
|
|
|
+ bj2 += datas[i].value;
|
|
|
+ bjP2 += datas[i].valueP;
|
|
|
+ }else{
|
|
|
+ bj3 += datas[i].value+',';
|
|
|
+ bjP3 += datas[i].valueP+',';
|
|
|
+ }
|
|
|
}else{
|
|
|
bj3 += datas[i].value+',';
|
|
|
bjP3 += datas[i].valueP+',';
|