diff --git a/src/config/code.js b/src/config/code.js
index e5bc3f8..4f950e6 100644
--- a/src/config/code.js
+++ b/src/config/code.js
@@ -477,34 +477,7 @@ export const NIHSS_LIST = [{
text: '严重的偏侧忽视或一种以上的偏侧忽视;不认识自己的手;只能对一侧空间定位 ',
},
],
- },
- {
- text: '12.心率',
- description: '',
- value: null,
- visible: false,
- hidePopover: true,
- key: '12-score',
- range: [0, 200],
- },
- {
- text: '13.血氧饱和度',
- description: '',
- value: null,
- visible: false,
- hidePopover: true,
- key: '13-score',
- range: [0, 100],
- },
- {
- text: '14.格拉斯评分',
- description: '',
- value: null,
- visible: false,
- hidePopover: true,
- key: '14-score',
- range: [0, 15],
- },
+ }
];
//急诊病情评估
@@ -542,6 +515,33 @@ export const EMERGENCY_CODE = {
default: 0,
range: NIHSS_LIST,
},
+ 'BQPG-XL': {
+ text: '心率',
+ description: '',
+ type: 'pageNumer',
+ inputType: 'number',
+ rightArrow: true,
+ default: undefined,
+ range: [0, 200],
+ },
+ 'BQPG-SAO2': {
+ text: '血氧饱和度',
+ description: '',
+ type: 'pageNumer',
+ inputType: 'number',
+ rightArrow: true,
+ default: undefined,
+ range: [0, 100],
+ },
+ 'BQPG-GCS': {
+ text: '格拉斯评分',
+ description: '',
+ type: 'pageNumer',
+ inputType: 'number',
+ rightArrow: true,
+ default: undefined,
+ range: [0, 15],
+ },
};
//0min
export const EMERGENCY_Q_CODE = {
diff --git a/src/views/thrombolysis/components/throm-before1.vue b/src/views/thrombolysis/components/throm-before1.vue
index bcc0aa1..5a86d05 100644
--- a/src/views/thrombolysis/components/throm-before1.vue
+++ b/src/views/thrombolysis/components/throm-before1.vue
@@ -69,11 +69,11 @@
-
-
+ :max="item.range[1]" /> -->
+
@@ -90,6 +90,15 @@
+
+
@@ -128,6 +137,9 @@
'RYPG-DIASTOLIC-PRESSURE': '',
'RYPG-MRS': '',
'RYPG-NIHSS': '',
+ 'BQPG-XL': '',
+ 'BQPG-SAO2': '',
+ 'BQPG-GCS': '',
},
codeFormData: {
'JMRS-Q-NIHSS': {
@@ -175,11 +187,12 @@
const {
code
} = this.timerData;
- if (code) {
- this.recordDict = this.dataForm[`${code}`];
- } else {
- this.recordDict = EMERGENCY_CODE;
- }
+ this.recordDict = EMERGENCY_CODE;
+ // if (code) {
+ // this.recordDict = this.dataForm[`${code}`];
+ // } else {
+ // this.recordDict = EMERGENCY_CODE;
+ // }
const {
recordValDict
@@ -198,9 +211,8 @@
code
} = this.timerData;
// console.log('code', code)
- const wangbadan = code ?
- this.codeFormData[`${code}`] :
- this.codeForm;
+ // const wangbadan = code ? this.codeFormData[`${code}`] : this.codeForm;
+ const wangbadan = this.codeForm;
for (let k in wangbadan) {
if (data[k]) {
const {
@@ -228,6 +240,17 @@
this.NIHSS_LIST[k].value = Number(data['RYPG-NIHSS' + this.NIHSS_LIST[k].key][0]?.answer[0])
}
}
+ // const {
+ // recordDict
+ // } = this;
+ // if (recordDict['RYPG-MRS2']) {
+ // for (let k in recordDict['RYPG-MRS2']['range']) {
+ // const mrsdata = recordDict['RYPG-MRS2']['range'][k]
+ // if (data[mrsdata.key]) {
+ // mrsdata.value = Number(data[mrsdata.key][0]?.answer[0])
+ // }
+ // }
+ // }
},
focusInput(index) {
this.$refs.inputNumber[index].readOnly = true;
@@ -259,24 +282,24 @@
row.visible = false;
},
handleInputChange(val, row, code) {
- const text = row.text;
- let score = 0;
- let NIHSS_LIST = [].concat(this.NIHSS_LIST);
- NIHSS_LIST.forEach((item, index) => {
- console.log(typeof val)
- if (item.text === text) {
- item.value = val;
- }
- if (item.value) {
- score += item.value;
- }
- });
- this.form.getFieldDecorator([`${code}`], {
- preserve: true, //即便字段不再使用,也保留该字段的值
- });
- this.form.setFieldsValue({
- [`${code}`]: score
- });
+ // const text = row.text;
+ // let score = 0;
+ // let NIHSS_LIST = [].concat(this.NIHSS_LIST);
+ // NIHSS_LIST.forEach((item, index) => {
+ // console.log(typeof val)
+ // if (item.text === text) {
+ // item.value = val;
+ // }
+ // if (item.value) {
+ // score += item.value;
+ // }
+ // });
+ // this.form.getFieldDecorator([`${code}`], {
+ // preserve: true, //即便字段不再使用,也保留该字段的值
+ // });
+ // this.form.setFieldsValue({
+ // [`${code}`]: score
+ // });
},
changeRadio(e, v) {
this.codeForm[v] = e.target.value;
@@ -304,7 +327,7 @@
'JMRS-45-NIHSS',
'JMRS-60-NIHSS',
];
- const codesEm = ['RYPG-MRS', 'RYPG-NIHSS'];
+ const codesEm = ['RYPG-MRS', 'RYPG-NIHSS','BQPG-XL', 'BQPG-SAO2', 'BQPG-GCS'];
const codesQ = [
'JMRS-Q-NIHSS',
'JMRS-15-NIHSS',
@@ -366,6 +389,20 @@
}
+ // if (recordDict['RYPG-MRS2']) {
+ // for (let k in recordDict['RYPG-MRS2']['range']) {
+ // const mrsdata = recordDict['RYPG-MRS2']['range'][k]
+ // if (mrsdata.value) {
+ // codeAndAnswerList.push({
+ // questionCode: mrsdata.key,
+ // answer: [mrsdata.value || 0],
+ // time: '',
+ // });
+ // }
+
+ // }
+ // }
+
console.log('codeAndAnswerList', codeAndAnswerList)
this.home.updateAidCode({
diff --git a/src/views/thrombolysis/components/throm-result-baseInfo.vue b/src/views/thrombolysis/components/throm-result-baseInfo.vue
index 4e6daae..4d8c88d 100644
--- a/src/views/thrombolysis/components/throm-result-baseInfo.vue
+++ b/src/views/thrombolysis/components/throm-result-baseInfo.vue
@@ -4,104 +4,103 @@
-
-
-
-
-
-
-
{{editAuth ? '保存' : '编辑'}}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
-
{{k}}
@@ -171,7 +170,7 @@
'JBXX-LYFS': '',
},
firstAidZlType: 0, //疑似诊断
- selectCode: '' ,// 当前选中code,
+ selectCode: '', // 当前选中code,
form: {},
editAuth: false
}
@@ -335,10 +334,10 @@
}
return isLt10M;
},
- async handleEdit(e){
- if(!this.editAuth){
+ async handleEdit(e) {
+ if (!this.editAuth) {
this.editAuth = true
- }else{
+ } else {
this.onSubmit(e, true)
}
},
@@ -349,7 +348,7 @@
params = {
firstAidId
}
- const codes = ['patientGender', 'patientIdCardNo', 'patientName', 'patientNation']
+ const codes = ['patientGender', 'patientIdCardNo', 'patientName', 'patientNation', 'phone']
this.$nextTick(async () => {
this.baseForm.validateFields(async (err, values) => {
for (var k in values) {
@@ -369,11 +368,11 @@
params[`${k}`] = values[k]
}
}
- if(!this.patientId) {
+ if (!this.patientId) {
await updateFirstAid({
...values,
firstAidZlType: this.firstAidZlType,
- firstAidId:this.form.firstAidId
+ firstAidId: this.form.firstAidId
})
await this.home.updateAidCode({
...values,
@@ -381,19 +380,19 @@
codeAndAnswerList
}, false)
this.editAuth = false
- if(!s) this.$emit('next')
- }else{
+ if (!s) this.$emit('next')
+ } else {
await updateFirstAid(params)
const res = await saveAidRecord({
- firstAidId:this.form.firstAidId,
+ firstAidId: this.form.firstAidId,
codeAndAnswerList,
...params
});
-
+
this.$message.success(res.msg)
this.$emit('ok')
}
-
+
})
})
},
@@ -454,29 +453,33 @@
margin-top: 20px;
padding: 0 10%;
}
- .basicr-back,.diagnosis{
- width:100%;
- float:left;
+
+ .basicr-back,
+ .diagnosis {
+ width: 100%;
+ float: left;
}
- .basicr-back .ant-form-item:nth-child(odd){
- width:48%;
- float:left;
+
+ .basicr-back .ant-form-item:nth-child(odd) {
+ width: 48%;
+ float: left;
}
- .basicr-back .ant-form-item:nth-child(even){
- width:49%;
- float:left;
+
+ .basicr-back .ant-form-item:nth-child(even) {
+ width: 49%;
+ float: left;
}
+
.basicr-back .ant-form-item:nth-child(even) {
border-right: 1px solid #ddd;
- border-radius: 0;
- padding-right:2% !important;
- margin-right:2% !important;
+ border-radius: 0;
+ padding-right: 2% !important;
+ margin-right: 2% !important;
}
- .detail-form .ant-form-item .ant-form-item-label{
+
+ .detail-form .ant-form-item .ant-form-item-label {
width: 170px;
}
-
-
\ No newline at end of file
diff --git a/src/views/thrombolysis/components/throm-result.vue b/src/views/thrombolysis/components/throm-result.vue
index d70d4b3..8903ef8 100644
--- a/src/views/thrombolysis/components/throm-result.vue
+++ b/src/views/thrombolysis/components/throm-result.vue
@@ -2,15 +2,20 @@