Browse Source

20250302

master
nicky 5 months ago
parent
commit
21449091b6
  1. 30
      src/views/thrombolysis/components/throm-result-baseInfo.vue
  2. 35
      src/views/thrombolysis/components/throm-result-firstInfo.vue

30
src/views/thrombolysis/components/throm-result-baseInfo.vue

@ -112,7 +112,8 @@
import {
uploadIdcard,
updateFirstAid,
queryAidRecord
queryAidRecord,
saveAidRecord
} from 'api'
import {
mapMutations,
@ -154,7 +155,8 @@
'JBXX-LYFS': '',
},
firstAidZlType: 0, //
selectCode: '' // code
selectCode: '' ,// code,
form: {}
}
},
props: ['patientId'],
@ -184,7 +186,9 @@
},
methods: {
echo(data) {
this.form = JSON.parse(JSON.stringify(data))
const {
firstAidId,
recordValDict,
patientName,
patientGender,
@ -314,7 +318,7 @@
},
async onSubmit(e) {
e.preventDefault();
let firstAidId = this.patientData.firstAidId
let firstAidId = this.form.firstAidId
let codeAndAnswerList = [],
params = {
firstAidId
@ -339,11 +343,21 @@
params[`${k}`] = values[k]
}
}
var res = await updateFirstAid(params)
await this.home.updateAidCode({
codeAndAnswerList
}, false)
this.$message.success(res.msg)
if(!this.patientId) {
await this.home.updateAidCode({
codeAndAnswerList
}, false)
}else{
const res = await updateFirstAid({
codeAndAnswerList,
...params
})
// const res = await saveAidRecord({
// codeAndAnswerList,
// ...params
// });
this.$message.success(res.msg)
}
this.$emit('next')
})
})

35
src/views/thrombolysis/components/throm-result-firstInfo.vue

@ -250,7 +250,9 @@
// import headTitle from '@/Patient/components/title'
import {
idcardInfo,
queryAidRecord
queryAidRecord,
updateFirstAid,
saveAidRecord
} from 'api';
import {
mapMutations,
@ -339,6 +341,7 @@
'XGZL-BFZ-ELSE': '',
},
selectCode: '', // code
form: {}
};
},
props: ['patientId'],
@ -388,6 +391,7 @@
});
},
echo(data) {
this.form = JSON.parse(JSON.stringify(data))
const {
recordValDict,
patientGender
@ -515,7 +519,7 @@
this.firstForm.validateFields(async (err, values) => {
let codeAndAnswerList = [],
params = {};
const { firstAidId } = this.patientData
const { firstAidId } = this.form
console.log('firstinfo handleSubmit', firstAidId)
let adverseSubmit = this.$refs.adverse;
if (adverseSubmit) {
@ -545,14 +549,31 @@
params[`${k}`] = values[k];
}
}
await this.home.updateAidCode({
if(!this.patientId) {
await this.home.updateAidCode({
...params,
codeAndAnswerList,
finishStatus
},
false
);
this.$message.success("操作成功")
}, false)
}else{
console.log('3902390293023', this.patientId)
// var res = await updateFirstAid(params)
const res = await updateFirstAid({
firstAidId,
codeAndAnswerList,
...params
})
// const res = await saveAidRecord(param);
this.$message.success(res.msg)
}
// await this.home.updateAidCode({
// ...params,
// codeAndAnswerList,
// finishStatus
// },
// false
// );
// this.$message.success("")
if(finishStatus === 1) {
console.log('firstinfo', firstAidId)
this.$emit('next', {firstAidId})

Loading…
Cancel
Save