|
@ -177,8 +177,8 @@ |
|
|
<div class="basicr-back"> |
|
|
<div class="basicr-back"> |
|
|
<v-head text="血管内治疗"></v-head> |
|
|
<v-head text="血管内治疗"></v-head> |
|
|
<a-form class="detail-form treatmentItem" :form="firstForm"> |
|
|
<a-form class="detail-form treatmentItem" :form="firstForm"> |
|
|
<a-form-item class="jmrs-form-item" :class="{'jmrs-form-item-autoH': k.type == 'checkbox'}" v-for="(k, v) in XGZL_CODE" :key="v" |
|
|
<a-form-item class="jmrs-form-item" :class="{'jmrs-form-item-autoH': k.type == 'checkbox'}" |
|
|
v-if="computeShow(v, codeForm)"> |
|
|
v-for="(k, v) in XGZL_CODE" :key="v" v-if="computeShow(v, codeForm)"> |
|
|
<div class="jmrs-form-item-con" :class="k.type"> |
|
|
<div class="jmrs-form-item-con" :class="k.type"> |
|
|
<div class="content-left ant-form-item-label"> |
|
|
<div class="content-left ant-form-item-label"> |
|
|
<label :for="`FirstInfo_${v}`" v-if="k.text"> |
|
|
<label :for="`FirstInfo_${v}`" v-if="k.text"> |
|
@ -191,8 +191,8 @@ |
|
|
<a-input :disabled="writeAble" v-if="k.type === 'text'" type="text" v-decorator="[v]" |
|
|
<a-input :disabled="writeAble" v-if="k.type === 'text'" type="text" v-decorator="[v]" |
|
|
readOnly /> |
|
|
readOnly /> |
|
|
<!-- radio --> |
|
|
<!-- radio --> |
|
|
<a-radio-group class="radioGroupItem" :disabled="writeAble" v-if="k.type === 'radio'" v-decorator="[v]" |
|
|
<a-radio-group class="radioGroupItem" :disabled="writeAble" v-if="k.type === 'radio'" |
|
|
@change=" |
|
|
v-decorator="[v]" @change=" |
|
|
handleChange($event.target.value, v) |
|
|
handleChange($event.target.value, v) |
|
|
"> |
|
|
"> |
|
|
<a-radio v-for="(item, index) in k.range" :key="item" :value="item"> |
|
|
<a-radio v-for="(item, index) in k.range" :key="item" :value="item"> |
|
@ -252,7 +252,8 @@ |
|
|
idcardInfo, |
|
|
idcardInfo, |
|
|
queryAidRecord, |
|
|
queryAidRecord, |
|
|
updateFirstAid, |
|
|
updateFirstAid, |
|
|
saveAidRecord |
|
|
saveAidRecord, |
|
|
|
|
|
messageQuery |
|
|
} from 'api'; |
|
|
} from 'api'; |
|
|
import { |
|
|
import { |
|
|
mapMutations, |
|
|
mapMutations, |
|
@ -340,6 +341,7 @@ |
|
|
'XGZL-BFZ': '', |
|
|
'XGZL-BFZ': '', |
|
|
'XGZL-BFZ-ELSE': '', |
|
|
'XGZL-BFZ-ELSE': '', |
|
|
}, |
|
|
}, |
|
|
|
|
|
request: 0, |
|
|
selectCode: '', // 当前选中code |
|
|
selectCode: '', // 当前选中code |
|
|
form: {} |
|
|
form: {} |
|
|
}; |
|
|
}; |
|
@ -379,7 +381,7 @@ |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
...mapMutations('patient', ['setPatientData']), |
|
|
...mapMutations('patient', ['setPatientData', 'setTimerData', 'setOverviewType']), |
|
|
successInformed() { |
|
|
successInformed() { |
|
|
this.modalVisable = false; |
|
|
this.modalVisable = false; |
|
|
}, |
|
|
}, |
|
@ -519,7 +521,9 @@ |
|
|
this.firstForm.validateFields(async (err, values) => { |
|
|
this.firstForm.validateFields(async (err, values) => { |
|
|
let codeAndAnswerList = [], |
|
|
let codeAndAnswerList = [], |
|
|
params = {}; |
|
|
params = {}; |
|
|
const { firstAidId } = this.form |
|
|
const { |
|
|
|
|
|
firstAidId |
|
|
|
|
|
} = this.form |
|
|
console.log('firstinfo handleSubmit', firstAidId) |
|
|
console.log('firstinfo handleSubmit', firstAidId) |
|
|
let adverseSubmit = this.$refs.adverse; |
|
|
let adverseSubmit = this.$refs.adverse; |
|
|
if (adverseSubmit) { |
|
|
if (adverseSubmit) { |
|
@ -558,7 +562,29 @@ |
|
|
|
|
|
|
|
|
if (finishStatus === 1) { |
|
|
if (finishStatus === 1) { |
|
|
// console.log('firstinfo', firstAidId) |
|
|
// console.log('firstinfo', firstAidId) |
|
|
this.$emit('next', {firstAidId}) |
|
|
this.$emit('next', { |
|
|
|
|
|
firstAidId |
|
|
|
|
|
}) |
|
|
|
|
|
} else { |
|
|
|
|
|
this.$router.push({ |
|
|
|
|
|
name: 'Thrombolysis', |
|
|
|
|
|
query: { |
|
|
|
|
|
r: new Date().getTime() |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
// this.setOverviewType('overview') |
|
|
|
|
|
// this.queryMessage(); |
|
|
|
|
|
// await this.handMessageQuery(); |
|
|
|
|
|
|
|
|
|
|
|
// this.request = 0; |
|
|
|
|
|
// this.utils.AnimationFrame.create( |
|
|
|
|
|
// 'timerTask', |
|
|
|
|
|
// 10000, |
|
|
|
|
|
// true, |
|
|
|
|
|
// (min) => { |
|
|
|
|
|
// this.getMessageQuery(min); |
|
|
|
|
|
// } |
|
|
|
|
|
// ); |
|
|
} |
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
const res = await saveAidRecord({ |
|
|
const res = await saveAidRecord({ |
|
@ -599,6 +625,97 @@ |
|
|
false |
|
|
false |
|
|
); |
|
|
); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
async queryMessage() { |
|
|
|
|
|
const { |
|
|
|
|
|
firstAidId |
|
|
|
|
|
} = this.patientData; |
|
|
|
|
|
const res = await messageQuery(firstAidId); |
|
|
|
|
|
const { |
|
|
|
|
|
code, |
|
|
|
|
|
msg |
|
|
|
|
|
} = res; |
|
|
|
|
|
if (code === 200) { |
|
|
|
|
|
this.setTimerData(res.data); |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
// 消息提示 |
|
|
|
|
|
async handMessageQuery() { |
|
|
|
|
|
// 异步 |
|
|
|
|
|
const { |
|
|
|
|
|
firstAidId |
|
|
|
|
|
} = this.patientData; |
|
|
|
|
|
if (firstAidId) { |
|
|
|
|
|
const res = await messageQuery(firstAidId); |
|
|
|
|
|
const { |
|
|
|
|
|
code, |
|
|
|
|
|
msg |
|
|
|
|
|
} = res; |
|
|
|
|
|
if (code === 200) { |
|
|
|
|
|
this.setTimerData(res.data); |
|
|
|
|
|
const { |
|
|
|
|
|
map, |
|
|
|
|
|
haveFlagInspect, |
|
|
|
|
|
finishStatus, |
|
|
|
|
|
} = res.data; |
|
|
|
|
|
// console.log('firstAidInspectDataDtos: ', haveFlagInspect); |
|
|
|
|
|
// if(finishStatus == 1){ |
|
|
|
|
|
// this.setTimerData({}) |
|
|
|
|
|
// this.request = 0 |
|
|
|
|
|
// this.setPatientData({}) |
|
|
|
|
|
// this.setPatientDataCur({}) |
|
|
|
|
|
// } |
|
|
|
|
|
for (let k in map) { |
|
|
|
|
|
if (map[k]) { |
|
|
|
|
|
this.taskList = { |
|
|
|
|
|
text: map[k], |
|
|
|
|
|
status: false, |
|
|
|
|
|
}; |
|
|
|
|
|
} |
|
|
|
|
|
if (map[k] && this.taskList.status === false) { |
|
|
|
|
|
// 记录不重复弹窗 |
|
|
|
|
|
if (this.taskList.text === map[k]) { |
|
|
|
|
|
this.taskList.status = true; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ( |
|
|
|
|
|
this.$route.name !== 'Min' && |
|
|
|
|
|
this.$route.name !== 'PatientList' |
|
|
|
|
|
) { |
|
|
|
|
|
this.tip = { |
|
|
|
|
|
visible: true, |
|
|
|
|
|
k, |
|
|
|
|
|
content: map[k], |
|
|
|
|
|
}; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
// 检验调取 判断是否有急诊号 1 弹窗, 0 不弹窗 Thrombolysis |
|
|
|
|
|
if (haveFlagInspect) { |
|
|
|
|
|
if ( |
|
|
|
|
|
this.$route.name !== 'Inspect' && |
|
|
|
|
|
this.$route.name !== 'PatientList' |
|
|
|
|
|
) { |
|
|
|
|
|
this.tip.Lnspect = true; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
} else { |
|
|
|
|
|
this.$message.error(msg); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
async getMessageQuery(min, firstAidId) { |
|
|
|
|
|
const n = min; |
|
|
|
|
|
if (this.request === n) { |
|
|
|
|
|
// 符合轮训条件 |
|
|
|
|
|
console.log('十秒'); |
|
|
|
|
|
this.request = n + 1; |
|
|
|
|
|
await this.handMessageQuery(); |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}; |
|
|
}; |
|
|
</script> |
|
|
</script> |
|
@ -627,6 +744,7 @@ |
|
|
|
|
|
|
|
|
.jmrs-form-item-con { |
|
|
.jmrs-form-item-con { |
|
|
display: flex; |
|
|
display: flex; |
|
|
|
|
|
|
|
|
.content-left, |
|
|
.content-left, |
|
|
.content-right { |
|
|
.content-right { |
|
|
flex: 1; |
|
|
flex: 1; |
|
@ -644,54 +762,78 @@ |
|
|
.adverse { |
|
|
.adverse { |
|
|
padding: 15px 0; |
|
|
padding: 15px 0; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.basicr-back-info.basicr-back .ant-form-item { |
|
|
.basicr-back-info.basicr-back .ant-form-item { |
|
|
height: 50px; |
|
|
height: 50px; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.basicr-back .ant-form-item { |
|
|
.basicr-back .ant-form-item { |
|
|
width: 48%; |
|
|
width: 48%; |
|
|
float: left; |
|
|
float: left; |
|
|
// height:60px; |
|
|
// height:60px; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.basicr-back .ant-form-item:nth-child(odd) { |
|
|
.basicr-back .ant-form-item:nth-child(odd) { |
|
|
border-right: 1px solid #ddd; |
|
|
border-right: 1px solid #ddd; |
|
|
border-radius: 0; |
|
|
border-radius: 0; |
|
|
padding-right: 2% !important; |
|
|
padding-right: 2% !important; |
|
|
margin-right: 2% !important; |
|
|
margin-right: 2% !important; |
|
|
} |
|
|
} |
|
|
.basicrItem .ant-form-item:nth-child(9),.basicrItem .ant-form-item:nth-child(10),.basicrItem .ant-form-item:nth-child(11),.basicrItem .ant-form-item:nth-child(12),.basicrItem .ant-form-item:nth-child(13),.basicrItem .ant-form-item:nth-child(14),.basicrItem .ant-form-item:nth-child(15){ |
|
|
|
|
|
|
|
|
.basicrItem .ant-form-item:nth-child(9), |
|
|
|
|
|
.basicrItem .ant-form-item:nth-child(10), |
|
|
|
|
|
.basicrItem .ant-form-item:nth-child(11), |
|
|
|
|
|
.basicrItem .ant-form-item:nth-child(12), |
|
|
|
|
|
.basicrItem .ant-form-item:nth-child(13), |
|
|
|
|
|
.basicrItem .ant-form-item:nth-child(14), |
|
|
|
|
|
.basicrItem .ant-form-item:nth-child(15) { |
|
|
width: 100%; |
|
|
width: 100%; |
|
|
float: left; |
|
|
float: left; |
|
|
border: none; |
|
|
border: none; |
|
|
padding-right: 0 !important; |
|
|
padding-right: 0 !important; |
|
|
margin-right: 0 !important; |
|
|
margin-right: 0 !important; |
|
|
} |
|
|
} |
|
|
.treatmentItem .ant-form-item:nth-child(9),.treatmentItem .ant-form-item:nth-child(10),.treatmentItem .ant-form-item:nth-child(11),.treatmentItem .ant-form-item:nth-child(12){ |
|
|
|
|
|
|
|
|
.treatmentItem .ant-form-item:nth-child(9), |
|
|
|
|
|
.treatmentItem .ant-form-item:nth-child(10), |
|
|
|
|
|
.treatmentItem .ant-form-item:nth-child(11), |
|
|
|
|
|
.treatmentItem .ant-form-item:nth-child(12) { |
|
|
width: 100%; |
|
|
width: 100%; |
|
|
float: left; |
|
|
float: left; |
|
|
border: none; |
|
|
border: none; |
|
|
} |
|
|
} |
|
|
.treatmentItem .ant-form-item:nth-child(10),.treatmentItem .ant-form-item:nth-child(11),.treatmentItem .ant-form-item:nth-child(12),.basicrItem .ant-form-item:nth-child(9),.basicrItem .ant-form-item:nth-child(10),.basicrItem .ant-form-item:nth-child(11), |
|
|
|
|
|
.basicrItem .ant-form-item:nth-child(12),.basicrItem .ant-form-item:nth-child(13){ |
|
|
.treatmentItem .ant-form-item:nth-child(10), |
|
|
|
|
|
.treatmentItem .ant-form-item:nth-child(11), |
|
|
|
|
|
.treatmentItem .ant-form-item:nth-child(12), |
|
|
|
|
|
.basicrItem .ant-form-item:nth-child(9), |
|
|
|
|
|
.basicrItem .ant-form-item:nth-child(10), |
|
|
|
|
|
.basicrItem .ant-form-item:nth-child(11), |
|
|
|
|
|
.basicrItem .ant-form-item:nth-child(12), |
|
|
|
|
|
.basicrItem .ant-form-item:nth-child(13) { |
|
|
// height:150px !important; |
|
|
// height:150px !important; |
|
|
height: auto !important; |
|
|
height: auto !important; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.basicr-back .ant-form-item .ant-form-item-label { |
|
|
.basicr-back .ant-form-item .ant-form-item-label { |
|
|
// width: 100px !important; |
|
|
// width: 100px !important; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.treatmentItem .ant-form-item:nth-child(9).ant-form-item .ant-form-item-label { |
|
|
.treatmentItem .ant-form-item:nth-child(9).ant-form-item .ant-form-item-label { |
|
|
// width: 100px !important; |
|
|
// width: 100px !important; |
|
|
flex: none; |
|
|
flex: none; |
|
|
margin-right: 20px; |
|
|
margin-right: 20px; |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.radioGroupItem:nth-of-type(2) { |
|
|
.radioGroupItem:nth-of-type(2) { |
|
|
position: relative; |
|
|
position: relative; |
|
|
left: -180px; |
|
|
left: -180px; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.basicrItem .ant-checkbox-group .ant-checkbox-wrapper { |
|
|
.basicrItem .ant-checkbox-group .ant-checkbox-wrapper { |
|
|
width: 25% !important; |
|
|
width: 25% !important; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
</style> |
|
|
</style> |
|
|
<style scoped> |
|
|
<style scoped> |
|
|
>>>.adverse .ant-form-item:nth-child(2) { |
|
|
>>>.adverse .ant-form-item:nth-child(2) { |
|
|