|
@@ -47,19 +47,6 @@
|
|
|
:class="['footer',{'nofoot':chooseSymp.length==0}]"
|
|
|
@click="toNext"
|
|
|
>预览并提交病历</div>
|
|
|
- <div
|
|
|
- class="detail"
|
|
|
- v-if="show"
|
|
|
- >
|
|
|
- <DetailBox
|
|
|
- @close="closeDetal"
|
|
|
- :data="labelDetail"
|
|
|
- :moduleType="1"
|
|
|
- v-if="labelDetail.questionMapping&&labelDetail.questionMapping.length>0"
|
|
|
- @pComplete="complete"
|
|
|
- @reload="reload"
|
|
|
- />
|
|
|
- </div>
|
|
|
<Toast
|
|
|
:message="delText"
|
|
|
:show="showToast"
|
|
@@ -94,7 +81,7 @@ export default {
|
|
|
sexType: pathInfo.patientSex == '男' ? 1 : (pathInfo.patientSex == '女' ? 2 : 3),
|
|
|
deptName: pathInfo.selfDeptName,
|
|
|
hosCode: pathInfo.hospitalCode,
|
|
|
- show: false, //显示明细
|
|
|
+ // show: false, //显示明细
|
|
|
chooseSymp: choose, //已选症状
|
|
|
symp: [], //症状
|
|
|
labelDetail: {}, //明细
|
|
@@ -184,24 +171,19 @@ export default {
|
|
|
this.labelDetail = result.data;
|
|
|
this.$store.commit('setOrigin', { type: moduleCP['symp'], data: result.data });
|
|
|
if (mapping && mapping.length > 0) {
|
|
|
- this.show = true;
|
|
|
+ this.$store.commit('setDetail',{detail:result.data,ppId:null,moduleType:moduleCP['symp']})
|
|
|
if(flg){
|
|
|
return
|
|
|
}
|
|
|
this.chooseSymp.push(item);
|
|
|
- } else { //没有详情,推送
|
|
|
- const sympText = this.getSympText();
|
|
|
- this.getPush(sympText);
|
|
|
+ } else {
|
|
|
this.chooseSymp.push(item);
|
|
|
this.searchShow = false
|
|
|
- // this.complete()
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
- } else {//没有questionId或id 则直接调推送
|
|
|
+ } else {//没有questionId或id
|
|
|
this.chooseSymp.push(item);
|
|
|
- const sympText = this.getSympText();
|
|
|
- this.getPush(sympText);
|
|
|
this.checkText = this.$store.state.symptom.text;
|
|
|
}
|
|
|
|
|
@@ -228,13 +210,6 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- closeDetal() {
|
|
|
- // 推理
|
|
|
- const sympText = this.getSympText();
|
|
|
- this.getPush(sympText);
|
|
|
- this.show = false;
|
|
|
- this.questId = null;
|
|
|
- },
|
|
|
deletSymp(item, index) {
|
|
|
this.delIndex = index;
|
|
|
this.questId = item.questionId || item.id || item.conceptId;
|
|
@@ -251,8 +226,7 @@ export default {
|
|
|
this.$store.commit('setDatas', { type: moduleCP['symp'], pId: this.questId ,data:''})
|
|
|
// 删除完-常见;其他-推送
|
|
|
if (this.chooseSymp.length > 0) {
|
|
|
- const sympText = this.getSympText();
|
|
|
- this.getPush(sympText);//删除后重新调推理-入参:拼好的内容
|
|
|
+
|
|
|
} else {
|
|
|
// 全部删除完 重新走问诊流程
|
|
|
// this.$router.push("/")
|
|
@@ -267,38 +241,29 @@ export default {
|
|
|
this.questId = null;
|
|
|
this.delText = "是否删除该信息?<br/>(已填内容将清除)";
|
|
|
},
|
|
|
- complete() {//明细填写完成
|
|
|
- this.searchShow = false;
|
|
|
- this.checkText = this.$store.state.symptom.text;
|
|
|
- this.show = false;
|
|
|
- this.questId = null;
|
|
|
- // 推理
|
|
|
- const sympText = this.getSympText();
|
|
|
- this.getPush(sympText);
|
|
|
- this.$nextTick(()=>{
|
|
|
- this.scroll.refresh()
|
|
|
- })
|
|
|
- },
|
|
|
showChecked(item) {
|
|
|
const origin = this.$store.state.symptom.origin;
|
|
|
const read = this.$store.state.symptom.datas;
|
|
|
const data = read[(item.questionId||item.id)] || origin[(item.questionId||item.id)];
|
|
|
if (data&&data.questionMapping && data.questionMapping.length > 0) {
|
|
|
- this.labelDetail = data;
|
|
|
- this.show = true;
|
|
|
+ this.$store.commit('setDetail',{detail:data,ppId:null,moduleType:moduleCP['symp']})
|
|
|
}
|
|
|
},
|
|
|
- reload(id) {//清空重新赋值
|
|
|
- const read = this.$store.state.symptom.datas;
|
|
|
- const data = read[id];
|
|
|
- this.labelDetail = data;
|
|
|
- }
|
|
|
},
|
|
|
components: {
|
|
|
DetailBox,
|
|
|
Toast,
|
|
|
Search
|
|
|
},
|
|
|
+ watch:{
|
|
|
+ checkText:{//更新推送
|
|
|
+ handler(newVal,oldVal){
|
|
|
+ const sympText = this.getSympText();
|
|
|
+ this.getPush(sympText);
|
|
|
+ },
|
|
|
+ deep:true
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
</script>
|
|
|
<style lang="less" scoped>
|