|
@ -166,7 +166,7 @@ |
|
|
<!-- 不良反应 --> |
|
|
<!-- 不良反应 --> |
|
|
<div class="adverse"> |
|
|
<div class="adverse"> |
|
|
<a-collapse class="jmrs-form-item-con" :bordered="false" expandIconPosition="right"> |
|
|
<a-collapse class="jmrs-form-item-con" :bordered="false" expandIconPosition="right"> |
|
|
<a-collapse-panel key="1" header="不良反应" > |
|
|
<a-collapse-panel key="1" header="不良反应"> |
|
|
<Adverse source="first" ref="adverse" /> |
|
|
<Adverse source="first" ref="adverse" /> |
|
|
</a-collapse-panel> |
|
|
</a-collapse-panel> |
|
|
</a-collapse> |
|
|
</a-collapse> |
|
@ -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; |
|
|
}, |
|
|
}, |
|
@ -497,7 +499,7 @@ |
|
|
async onSubmit(e, patientId) { |
|
|
async onSubmit(e, patientId) { |
|
|
e.preventDefault(); |
|
|
e.preventDefault(); |
|
|
const _this = this; |
|
|
const _this = this; |
|
|
if(!patientId){ |
|
|
if (!patientId) { |
|
|
this.$confirm({ |
|
|
this.$confirm({ |
|
|
title: '提示', |
|
|
title: '提示', |
|
|
okText: '确认', |
|
|
okText: '确认', |
|
@ -510,16 +512,18 @@ |
|
|
_this.handleSubmit(0) |
|
|
_this.handleSubmit(0) |
|
|
}, |
|
|
}, |
|
|
}); |
|
|
}); |
|
|
}else{ |
|
|
} else { |
|
|
this.handleSubmit() |
|
|
this.handleSubmit() |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
handleSubmit(finishStatus){ |
|
|
handleSubmit(finishStatus) { |
|
|
this.$nextTick(async () => { |
|
|
this.$nextTick(async () => { |
|
|
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) { |
|
@ -549,18 +553,40 @@ |
|
|
params[`${k}`] = values[k]; |
|
|
params[`${k}`] = values[k]; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
if(!this.patientId) { |
|
|
if (!this.patientId) { |
|
|
await this.home.updateAidCode({ |
|
|
await this.home.updateAidCode({ |
|
|
...params, |
|
|
...params, |
|
|
codeAndAnswerList, |
|
|
codeAndAnswerList, |
|
|
finishStatus |
|
|
finishStatus |
|
|
}, false) |
|
|
}, false) |
|
|
|
|
|
|
|
|
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() |
|
|
} |
|
|
} |
|
|
}else{ |
|
|
}); |
|
|
|
|
|
// this.setOverviewType('overview') |
|
|
|
|
|
// this.queryMessage(); |
|
|
|
|
|
// await this.handMessageQuery(); |
|
|
|
|
|
|
|
|
|
|
|
// this.request = 0; |
|
|
|
|
|
// this.utils.AnimationFrame.create( |
|
|
|
|
|
// 'timerTask', |
|
|
|
|
|
// 10000, |
|
|
|
|
|
// true, |
|
|
|
|
|
// (min) => { |
|
|
|
|
|
// this.getMessageQuery(min); |
|
|
|
|
|
// } |
|
|
|
|
|
// ); |
|
|
|
|
|
} |
|
|
|
|
|
} else { |
|
|
const res = await saveAidRecord({ |
|
|
const res = await saveAidRecord({ |
|
|
firstAidId, |
|
|
firstAidId, |
|
|
codeAndAnswerList, |
|
|
codeAndAnswerList, |
|
@ -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> |
|
@ -625,10 +742,11 @@ |
|
|
padding: 0 10%; |
|
|
padding: 0 10%; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.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,58 +762,82 @@ |
|
|
.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{ |
|
|
|
|
|
width:48%; |
|
|
.basicr-back .ant-form-item { |
|
|
float:left; |
|
|
width: 48%; |
|
|
|
|
|
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){ |
|
|
|
|
|
width:100%; |
|
|
.basicrItem .ant-form-item:nth-child(9), |
|
|
float:left; |
|
|
.basicrItem .ant-form-item:nth-child(10), |
|
|
border:none; |
|
|
.basicrItem .ant-form-item:nth-child(11), |
|
|
padding-right:0 !important; |
|
|
.basicrItem .ant-form-item:nth-child(12), |
|
|
margin-right:0 !important; |
|
|
.basicrItem .ant-form-item:nth-child(13), |
|
|
} |
|
|
.basicrItem .ant-form-item:nth-child(14), |
|
|
.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){ |
|
|
.basicrItem .ant-form-item:nth-child(15) { |
|
|
width:100%; |
|
|
width: 100%; |
|
|
float:left; |
|
|
float: left; |
|
|
border:none; |
|
|
border: none; |
|
|
} |
|
|
padding-right: 0 !important; |
|
|
.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), |
|
|
margin-right: 0 !important; |
|
|
.basicrItem .ant-form-item:nth-child(12),.basicrItem .ant-form-item:nth-child(13){ |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.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%; |
|
|
|
|
|
float: left; |
|
|
|
|
|
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) { |
|
|
// 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{ |
|
|
|
|
|
width:25% !important; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.basicrItem .ant-checkbox-group .ant-checkbox-wrapper { |
|
|
|
|
|
width: 25% !important; |
|
|
|
|
|
} |
|
|
</style> |
|
|
</style> |
|
|
<style scoped> |
|
|
<style scoped> |
|
|
>>>.adverse .ant-form-item:nth-child(2) { |
|
|
>>>.adverse .ant-form-item:nth-child(2) { |
|
|
height:150px !important; |
|
|
height: 150px !important; |
|
|
display: flex; |
|
|
display: flex; |
|
|
justify-content: space-between; |
|
|
justify-content: space-between; |
|
|
} |
|
|
} |
|
|