Browse Source

20250302

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

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

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

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

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

Loading…
Cancel
Save