Browse Source

20250313

master
nicky 4 months ago
parent
commit
b7346856cb
  1. 11
      src/components/keyboard.vue
  2. 18
      src/config/code.js
  3. 5
      src/views/Patient/components/patient-detail.vue
  4. 2
      src/views/Patient/components/patient-list.vue
  5. 18
      src/views/thrombolysis/components/throm-result-sop.vue

11
src/components/keyboard.vue

@ -321,8 +321,15 @@
const tempEle = event.currentTarget
const nodeName = event.currentTarget.nextSibling.nodeName
const temp = event.currentTarget.previousSibling
const ele = inputArea.replaceChild(temp, cursor) //
inputArea.insertBefore(ele, event.currentTarget)
if(temp == cursor){
const ele = inputArea.replaceChild(document.createTextNode(''), temp) //
inputArea.appendChild(temp);
}
else {
const ele = inputArea.replaceChild(temp, cursor) //
inputArea.insertBefore(ele, event.currentTarget)
}
}
},
//

18
src/config/code.js

@ -533,15 +533,15 @@ export const EMERGENCY_CODE = {
default: undefined,
range: [0, 100],
},
'BQPG-GCS': {
text: '格拉斯评分',
description: '',
type: 'pageNumer',
inputType: 'number',
rightArrow: true,
default: undefined,
range: [0, 15],
},
// 'BQPG-GCS': {
// text: '格拉斯评分',
// description: '',
// type: 'pageNumer',
// inputType: 'number',
// rightArrow: true,
// default: undefined,
// range: [0, 15],
// },
};
//0min
export const EMERGENCY_Q_CODE = {

5
src/views/Patient/components/patient-detail.vue

@ -109,7 +109,8 @@
<a-col :span="12">
<a-form-model-item label="绿道状态" :label-col="{ span: 8 }" :wrapper-col="{ span: 16 }">
<a-switch v-model="form.greenRoadFlag" v-if="authEdit" />
<div v-else class="edititem">{{patientDataCur.greenRoadFlag}}</div>
<a-switch v-model="patientDataCur.greenRoadFlag" v-else disabled />
<!-- <div v-else class="edititem">{{patientDataCur.greenRoadFlag ? '启用' : '禁用'}}</div> -->
</a-form-model-item>
</a-col>
<a-col :span="12">
@ -186,7 +187,7 @@
...mapState('patient', ['patientData', 'timerData', 'patientDataCur']),
},
async created() {
// console.log('patientDataCur', this.patientDataCur)
},
watch: {
patientData() {

2
src/views/Patient/components/patient-list.vue

@ -170,6 +170,7 @@
contactPhone,
deptCode,
height,
greenRoadFlag,
id,
identity,
identityNo,
@ -207,6 +208,7 @@
contactPhone,
deptCode,
height,
greenRoadFlag,
id,
identity,
identityNo,

18
src/views/thrombolysis/components/throm-result-sop.vue

@ -60,6 +60,7 @@
return {
currentIndex: 0,
processNodeIndex: 0,
timer: null,
nodeInfo: {
fbsj: '',
jfbSeconds: '',
@ -86,7 +87,8 @@
}
},
async mounted() {
console.log(this.reportType, this.firstAidId)
// console.log(this.reportType, this.firstAidId)
console.log('mounted')
if (this.reportType == 'modal') {
this.init(this.dataSource.firstAidId);
} else if (this.firstAidId) {
@ -110,6 +112,12 @@
//
async init(firstAidId) {
this.getNextNode(firstAidId);
this.timer = null;
this.timer = setInterval(()=>{
console.log('10mmin')
this.getNextNode(firstAidId);
}, 10000)
},
async getNextNode(firstAidId) {
let res = await getNextNode({
@ -131,6 +139,14 @@
onSubmit() {
this.$emit('next')
}
},
beforeDestroy() {
console.log("beforeDestroy")
//
if(this.timer){
clearInterval(this.timer);
this.timer = null
}
}
}
</script>

Loading…
Cancel
Save