Browse Source

门诊病历修改

360view
bianyaqi 2 years ago
parent
commit
e42c3d1659
  1. 4
      src/components/360View/commonForm/eyesVision.vue
  2. 4
      src/components/360View/commonForm/threeVision.vue
  3. 4
      src/components/360View/medicalRecord/index.vue

4
src/components/360View/commonForm/eyesVision.vue

@ -344,10 +344,6 @@ export default {
type: String, type: String,
default: '' default: ''
}, },
formContent: {
type: Object,
default: () => { }
},
onlyRead: { onlyRead: {
type: Boolean, type: Boolean,
default: false default: false

4
src/components/360View/commonForm/threeVision.vue

@ -207,10 +207,6 @@ export default {
type: String, type: String,
default: '' default: ''
}, },
formContent: {
type: Object,
default: () => { }
},
onlyRead: { onlyRead: {
type: Boolean, type: Boolean,
default: false default: false

4
src/components/360View/medicalRecord/index.vue

@ -191,10 +191,9 @@ export default {
} }
}, },
addRecord(name) { addRecord(name) {
this.name = name
const date = this.$moment().format('YYYY-MM-DD HH:mm:ss') const date = this.$moment().format('YYYY-MM-DD HH:mm:ss')
// //
const isToday = this.formList.some(item => item.createTime.includes(date.split(' ')[0]))
const isToday = this.formList.some(item => item.createTime.includes(date.split(' ')[0]) && item.name === '门急诊电子病历')
if (name === '门急诊电子病历' && isToday) { if (name === '门急诊电子病历' && isToday) {
this.$message({ this.$message({
message: '今日已有病历,请勿重复添加!', message: '今日已有病历,请勿重复添加!',
@ -213,6 +212,7 @@ export default {
} }
this.$http.post('/case/save', params).then(res => { this.$http.post('/case/save', params).then(res => {
this.getFormList() this.getFormList()
this.name = name
}).catch(err => { }).catch(err => {
this.$message.error(err.msg) this.$message.error(err.msg)
}) })

Loading…
Cancel
Save