二、麻醉方式选择:
@@ -54,7 +53,7 @@
三、拟行激光术名称:
-
+
{{ item.name }}
@@ -92,8 +91,8 @@
-
主诊/谈话医生签名:
-
日期:
+
主诊/谈话医生签名:
+
日期:
@@ -105,8 +104,8 @@
-
患者或直系亲属签名:
-
日期:
+
患者或直系亲属签名:
+
日期:
@@ -118,10 +117,6 @@
export default {
name: 'InformedConsent',
props: {
- jsonText: {
- type: String,
- default: ''
- },
onlyRead: {
type: Boolean,
default: false
@@ -132,204 +127,389 @@ export default {
},
patientDetail: {
type: Object
+ },
+ caseId: {
+ type: String,
+ default: ''
}
},
data() {
return {
- originalData: {},
- formData: {
- // 患者信息
- patientName: '',
+ confirmData: {
+ bnz: '',
+ coats: '',
+ eyeType: '',
+ idList: [],
+ jgsh: '', // 激光手术
+ jgshArea: '', // 激光手术区域
+ jzNumber: '', // 就诊号
+ mzfs: '', // 麻醉方式
+ operationDate: '', // 主任医师日期
+ operationSign: '', // 主任医师签名
+ other: '', // 其他
patientAge: '',
- patientSex: '',
- patientEyeLevel: '',
- // 主诊医生
- doctorSign: '',
- docDate: '',
- patientSign: '',
patientDate: '',
- // 术前判断
- judgement: [
- {
- name: '白内障',
- symptom: [{
- title: '后发性',
- isSelected: false
- }, {
- title: '其他',
- isSelected: false,
- isEdit: true,
- remark: ''
- }]
- },
- {
- name: '青光眼',
- symptom: [{
- title: '闭角型',
- isSelected: false
- }, {
- title: '开角型',
- isSelected: false
- }, {
- title: '其他',
- isSelected: false,
- remark: '',
- isEdit: true
- }]
- },
- {
- name: '眼底病',
- symptom: [{
- title: '糖尿病视网膜病变',
- isSelected: false
- }, {
- title: '视网膜裂孔',
- isSelected: false
- }, {
- title: '视网膜变性',
- isSelected: false
- }, {
- title: '黄斑部疾病',
- isSelected: false
- }, {
- title: '其他',
- isSelected: false,
- isEdit: true,
- remark: ''
- }]
- },
- {
- name: '视网膜血管性病变',
- symptom: [{
- title: '视网膜静脉阻塞(中央)',
- isSelected: false
- }, {
- title: '视网膜静脉阻塞(分支)',
- isSelected: false
- }, {
- title: '视网膜静脉周围炎',
- isSelected: false
- }]
- },
- {
- name: "Coat's 病",
- symptom: [{
- title: '',
- isSelected: false
- }]
- },
- {
- name: '其他',
- isEdit: true,
- remark: '',
- symptom: []
- }
- ],
- // 麻醉方式选择
- modeSelect: [
- {
- name: '表麻',
- isSelected: false
- }, {
- name: '局麻',
- isSelected: false
- }, {
- name: '局麻+镇静',
- isSelected: false
- }, {
- name: '基础麻醉',
+ patientGender: '',
+ patientName: '',
+ patientSign: '',
+ qgy: '',
+ ydb: '',
+ swmxgxbb: ''
+ },
+ // 术前判断
+ judgement: [
+ {
+ name: '白内障',
+ symptom: [{
+ title: '后发性',
isSelected: false
}, {
- name: '其他',
+ title: '其他',
isSelected: false,
isEdit: true,
remark: ''
- }
- ],
- // 拟行激光术名称
- proposedName: [
- {
- name: '激光后囊切开术',
+ }]
+ },
+ {
+ name: '青光眼',
+ symptom: [{
+ title: '闭角型',
isSelected: false
}, {
- name: '激光前囊切开术',
+ title: '开角型',
isSelected: false
}, {
- name: '激光周边虹膜切除',
+ title: '其他',
+ isSelected: false,
+ remark: '',
+ isEdit: true
+ }]
+ },
+ {
+ name: '眼底病',
+ symptom: [{
+ title: '糖尿病视网膜病变',
isSelected: false
}, {
- name: '激光房角成形术',
+ title: '视网膜裂孔',
isSelected: false
}, {
- name: '激光睫状体光凝术',
+ title: '视网膜变性',
isSelected: false
}, {
- name: '激光断线',
+ title: '黄斑部疾病',
isSelected: false
}, {
- name: '视网膜光凝术',
+ title: '其他',
isSelected: false,
- area: [{
- name: '局部',
- isSelected: false
- }, {
- name: '全',
- isSelected: false
- }, {
- name: '黄斑区',
- isSelected: false
- }]
- }, {
- name: '激光瞳孔成形术',
+ isEdit: true,
+ remark: ''
+ }]
+ },
+ {
+ name: '视网膜血管性病变',
+ symptom: [{
+ title: '视网膜静脉阻塞(中央)',
isSelected: false
}, {
- name: '激光瞳孔残膜切开术',
+ title: '视网膜静脉阻塞(分支)',
isSelected: false
}, {
- name: '激光虹膜黏连剖除术',
+ title: '视网膜静脉周围炎',
isSelected: false
- }, {
- name: '玻璃体条索切开术',
+ }]
+ },
+ {
+ name: "Coat's 病",
+ symptom: [{
+ title: '',
+ isSelected: false
+ }]
+ },
+ {
+ name: '其他',
+ isEdit: true,
+ remark: '',
+ symptom: []
+ }
+ ],
+ // 麻醉方式选择
+ modeSelect: [
+ {
+ name: '表麻',
+ isSelected: false
+ }, {
+ name: '局麻',
+ isSelected: false
+ }, {
+ name: '局麻+镇静',
+ isSelected: false
+ }, {
+ name: '基础麻醉',
+ isSelected: false
+ }, {
+ name: '其他',
+ isSelected: false
+ // isEdit: true,
+ // remark: ''
+ }
+ ],
+ // 拟行激光术名称
+ proposedName: [
+ {
+ name: '激光后囊切开术',
+ isSelected: false
+ }, {
+ name: '激光前囊切开术',
+ isSelected: false
+ }, {
+ name: '激光周边虹膜切除',
+ isSelected: false
+ }, {
+ name: '激光房角成形术',
+ isSelected: false
+ }, {
+ name: '激光睫状体光凝术',
+ isSelected: false
+ }, {
+ name: '激光断线',
+ isSelected: false
+ }, {
+ name: '视网膜光凝术',
+ isSelected: false,
+ area: [{
+ name: '局部',
isSelected: false
}, {
- name: '激光倒睫术',
+ name: '全',
isSelected: false
}, {
- name: '其他',
+ name: '黄斑区',
isSelected: false
- }
- ]
- },
+ }]
+ }, {
+ name: '激光瞳孔成形术',
+ isSelected: false
+ }, {
+ name: '激光瞳孔残膜切开术',
+ isSelected: false
+ }, {
+ name: '激光虹膜黏连剖除术',
+ isSelected: false
+ }, {
+ name: '玻璃体条索切开术',
+ isSelected: false
+ }, {
+ name: '激光倒睫术',
+ isSelected: false
+ }, {
+ name: '其他',
+ isSelected: false
+ }
+ ],
// 术中
intraoperation: ['麻醉意外:需进行抢救或暂停手术', '出血:需要压迫止血,推迟或暂停手术', '其他无法预计的并发症', '术中可能会根据具体情况变更手术方式'],
postoperative: ['暂时性眼压升高', '损伤人工晶体', '角膜内皮损伤', '虹膜炎症反应', '玻璃体前界膜破裂', '视功能损伤', '渗出性视网膜脱离', '黄斑水肿', '脉络膜脱离', '虹膜(视网膜、脉络膜)出血', '其他']
}
},
watch: {
- jsonText(val) {
+ caseId(val) {
if (val) {
- this.formData = JSON.parse(val)
- } else {
- this.formData = this.originalData
+ this.getInfoDetail()
}
}
},
created() {
- this.originalData = JSON.parse(JSON.stringify(this.formData))
// 患者信息带入
- this.formData.patientName = this.patientDetail.patientName
- this.formData.patientAge = this.patientDetail.patientAge
- this.formData.patientSex = this.patientDetail.patientSex
- if (this.jsonText) {
- this.formData = JSON.parse(this.jsonText)
- }
+ this.confirmData.patientName = this.patientDetail.patientName
+ this.confirmData.patientAge = this.patientDetail.patientAge
+ this.confirmData.patientGender = this.patientDetail.patientSex
+ this.getInfoDetail()
},
methods: {
+ getInfoDetail() {
+ this.$http.get('/mzbl/getMzblJgshzqtysInfo', { params: {
+ caseId: this.caseId,
+ patientId: this.patientDetail.patientId
+ }}).then(data => {
+ const detail = data.data.data
+ const bnzList = detail.bnz && detail.bnz.split('/') || []
+ const qgyList = detail.qgy && detail.qgy.split('/') || []
+ const ydbList = detail.ydb && detail.ydb.split('/') || []
+ const swmList = detail.swmxgxbb && detail.swmxgxbb.split('/') || []
+ const mzfsList = detail.mzfs && detail.mzfs.split('/') || []
+ const jgshList = detail.jgsh && detail.jgsh.split('/') || []
+ const jgshAreaList = detail.jgshArea && detail.jgshArea.split('/') || []
+ this.handleDetail(bnzList, qgyList, ydbList, swmList, detail.coats, mzfsList, jgshList, jgshAreaList)
+ this.confirmData.other = detail.other || ''
+ })
+ },
+ // 获取详情数据并展示在页面中
+ handleDetail(bnz, qgy, ydb, swm, coats, mzfs, jgsh, jgshArea) {
+ // 术前
+ this.judgement.forEach(item => {
+ item.symptom.forEach(sy => {
+ switch (item.name) {
+ case '白内障':
+ if (bnz.some(bn => bn.includes(sy.title))) {
+ sy.isSelected = true
+ sy.remark = bnz.find(bn => bn.includes('其他')) && bnz.find(bn => bn.includes('其他')).substring(2)
+ } else {
+ sy.isSelected = false
+ sy.remark = ''
+ }
+ break
+ case '青光眼':
+ if (qgy.some(bn => bn.includes(sy.title))) {
+ sy.isSelected = true
+ sy.remark = qgy.find(bn => bn.includes('其他')) && qgy.find(bn => bn.includes('其他')).substring(2)
+ } else {
+ sy.isSelected = false
+ sy.remark = ''
+ }
+ break
+ case '眼底病':
+ if (ydb.some(bn => bn.includes(sy.title))) {
+ sy.isSelected = true
+ sy.remark = ydb.find(bn => bn.includes('其他')) && ydb.find(bn => bn.includes('其他')).substring(2)
+ } else {
+ sy.isSelected = false
+ sy.remark = ''
+ }
+ break
+ case '视网膜血管性病变':
+ if (swm.some(bn => bn.includes(sy.title))) {
+ sy.isSelected = true
+ } else {
+ sy.isSelected = false
+ }
+ break
+ case "Coat's 病":
+ if (coats) {
+ sy.isSelected = true
+ } else {
+ sy.isSelected = false
+ }
+ break
+ }
+ })
+ })
+ // 麻醉
+ this.modeSelect.forEach(item => {
+ if (mzfs.some(mz => mz === item.name)) {
+ item.isSelected = true
+ } else {
+ item.isSelected = false
+ }
+ })
+ // 激光
+ this.proposedName.forEach(item => {
+ if (jgsh.some(mz => mz === item.name)) {
+ item.isSelected = true
+ } else {
+ item.isSelected = false
+ }
+ })
+ // 激光手术区域
+ this.proposedName[6].area.forEach(item => {
+ if (jgshArea.some(mz => mz === item.name)) {
+ item.isSelected = true
+ } else {
+ item.isSelected = false
+ }
+ })
+ },
+ // 处理术前判断再传值
+ handleList() {
+ this.judgement.forEach(item => {
+ const data = item.symptom.filter(ill => ill.isSelected).map(item => {
+ item.other = item.title
+ if (item.isEdit) {
+ item.other = item.title + item.remark
+ }
+ return item.other
+ })
+ switch (item.name) {
+ case '白内障':
+ this.confirmData.bnz = data.join('/')
+ break
+ case '青光眼':
+ this.confirmData.qgy = data.join('/')
+ break
+ case '眼底病':
+ this.confirmData.ydb = data.join('/')
+ break
+ case '视网膜血管性病变':
+ this.confirmData.swmxgxbb = data.join('/')
+ break
+ case "Coat's 病":
+ this.confirmData.coats = "Coat's 病"
+ }
+ })
+ },
+ // 麻醉方式传参处理
+ handleNarcotism() {
+ const data = this.modeSelect.filter(item => item.isSelected).map(item => item.name)
+ this.confirmData.mzfs = data.join('/')
+ },
+ // 处理拟行激光术名称
+ handleMode() {
+ const selectList = this.proposedName.filter(item => item.isSelected)
+ const mode = selectList.find(item => item.name.includes('视网膜光凝术'))
+ this.confirmData.jgshArea = mode && mode.area.filter(item => item.isSelected).map(item => item.name).join('/')
+ this.confirmData.jgsh = selectList.map(item => item.name).join('/')
+ },
+ // 获取项目id列表
+ async queryProject() {
+ const project = window.localStorage.getItem('projectItem') ? JSON.parse(window.localStorage.getItem('projectItem')) : []
+ const { data: res } = await this.$http.get(
+ '/patient/getZlItemDict',
+ {
+ params: {
+ caseName: '眼科激光手术患者知情同意书'
+ }
+ }
+ )
+ if (res.code === 0) {
+ const data = res.data || []
+ const list = []
+ if (data.length) {
+ for (let i = 0; i < data.length; i++) {
+ for (let j = 0; j < project.length; j++) {
+ if (data[i].itemId === project[j].porjectCode) {
+ list.push(project[j].id)
+ }
+ }
+ }
+ this.confirmData.idList = list
+ }
+ } else {
+ this.$message.error(res.msg)
+ }
+ },
+ // 保存
handleSaveTable() {
- this.$emit('handleSaveTable', this.formData)
+ this.handleList()
+ this.handleNarcotism()
+ this.handleMode()
+ this.confirmData.jzNumber = window.localStorage.getItem('jzNumber')
+ this.$http.post('/mzbl/saveMzblJgshzqtys', {
+ caseId: this.caseId,
+ ...this.confirmData
+ }).then(() => {
+ this.$emit('handleSaveTable')
+ })
},
+ // 删除
formDelete() {
- this.$emit('formDelete')
+ this.$confirmFun('确定删除吗?').then(() => {
+ this.$http.post('/mzbl/delMzblJgshzqtysInfo', {
+ id: this.caseId
+ }).then(() => {
+ this.$message.success('删除成功')
+ this.$emit('formDelete', 'del')
+ })
+ })
}
}
}
diff --git a/src/page-subspecialty/views/modules/formList/laserSurgery.vue b/src/page-subspecialty/views/modules/formList/laserSurgery.vue
index 565d845..3fe3fed 100644
--- a/src/page-subspecialty/views/modules/formList/laserSurgery.vue
+++ b/src/page-subspecialty/views/modules/formList/laserSurgery.vue
@@ -16,16 +16,16 @@
-
姓名:
-
年龄:岁
-
性别:
-
病例号:
+
姓名:
+
年龄:岁
+
性别:
+
登记号:
-
联系电话:
-
家庭住址:
+
联系电话:
+
家庭住址:
-
诊断:
+
诊断:
治疗前
@@ -39,23 +39,23 @@
- 视力1:
- 疾病分期:
+ 视力1:
+ 疾病分期:
|
示意图
- ![]()
+
|
- 视力2:
- 疾病分期:
+ 视力2:
+ 疾病分期:
|
示意图
- ![]()
+
|
@@ -71,9 +71,9 @@
-
+
- 日期:
+ 日期:
次数:
视力:
光斑大小:
@@ -87,7 +87,7 @@
|
- 日期:
+ 日期:
次数:
视力:
光斑大小:
@@ -115,10 +115,6 @@ export default {
name: 'LaserSurgery',
components: { ImgEditor },
props: {
- jsonText: {
- type: String,
- default: ''
- },
onlyRead: {
type: Boolean,
default: false
@@ -129,6 +125,10 @@ export default {
},
patientDetail: {
type: Object
+ },
+ caseId: {
+ type: String,
+ default: ''
}
},
data() {
@@ -136,110 +136,113 @@ export default {
curType: '',
curIndex: '',
origin: '',
- // 患者信息
- formData: {
- patientName: '',
+ confirmData: {
+ patientAddress: '',
patientAge: '',
- patientSex: '',
patientId: '',
+ patientName: '',
patientPhone: '',
- patientAddress: '',
- patientDiagnose: '',
- // od治疗前
- btOdVision: '',
- btOdIllness: '',
- btOdImgSrc: '',
- // os治疗前
- btOsVision: '',
- btOsIllness: '',
- btOsImgSrc: '',
+ patientSex: '',
+ jzNumber: '',
+ diagnostic: '',
+ idList: [],
+ // 治疗前
+ zlqSlOd: '',
+ zlqJbfqOd: '',
+ zlqSytOd: '',
+ zlqSlOs: '',
+ zlqJbfqOs: '',
+ zlqSytOs: '',
// 治疗后
- treatData: [
- {
- OD: {
- date: '',
- order: '',
- vision: '',
- flareSize: '',
- power: '',
- count: '',
- imgSrc: ''
- },
- OS: {
- date: '',
- order: '',
- vision: '',
- flareSize: '',
- power: '',
- count: '',
- imgSrc: ''
- }
+ jgzlCountOd1: '',
+ jgzlDateOd1: '',
+ jgzlDsOd1: '',
+ jgzlGbOd1: '',
+ jgzlGlOd1: '',
+ jgzlSlOd1: '',
+ jgzlSytOd1: ''
+ },
+ // 治疗后
+ treatData: [
+ {
+ OD: {
+ date: '',
+ order: '',
+ vision: '',
+ flareSize: '',
+ power: '',
+ count: '',
+ imgSrc: ''
},
- {
- OD: {
- date: '',
- order: '',
- vision: '',
- flareSize: '',
- power: '',
- count: '',
- imgSrc: ''
- },
- OS: {
- date: '',
- order: '',
- vision: '',
- flareSize: '',
- power: '',
- count: '',
- imgSrc: ''
- }
+ OS: {
+ date: '',
+ order: '',
+ vision: '',
+ flareSize: '',
+ power: '',
+ count: '',
+ imgSrc: ''
+ }
+ },
+ {
+ OD: {
+ date: '',
+ order: '',
+ vision: '',
+ flareSize: '',
+ power: '',
+ count: '',
+ imgSrc: ''
},
- {
- OD: {
- date: '',
- order: '',
- vision: '',
- flareSize: '',
- power: '',
- count: '',
- imgSrc: ''
- },
- OS: {
- date: '',
- order: '',
- vision: '',
- flareSize: '',
- power: '',
- count: '',
- imgSrc: ''
- }
+ OS: {
+ date: '',
+ order: '',
+ vision: '',
+ flareSize: '',
+ power: '',
+ count: '',
+ imgSrc: ''
}
- ]
- }
+ },
+ {
+ OD: {
+ date: '',
+ order: '',
+ vision: '',
+ flareSize: '',
+ power: '',
+ count: '',
+ imgSrc: ''
+ },
+ OS: {
+ date: '',
+ order: '',
+ vision: '',
+ flareSize: '',
+ power: '',
+ count: '',
+ imgSrc: ''
+ }
+ }
+ ]
}
},
watch: {
- jsonText(val) {
+ caseId(val) {
if (val) {
- this.formData = JSON.parse(val)
- } else {
- this.formData = this.origin
+ this.getConfirmDetail()
}
}
},
created() {
- this.origin = JSON.parse(JSON.stringify(this.formData))
// 患者信息带入
- this.formData.patientName = this.patientDetail.patientName
- this.formData.patientAge = this.patientDetail.patientAge
- this.formData.patientSex = this.patientDetail.patientSex
- this.formData.patientId = this.patientDetail.patientId
- this.formData.patientAddress = this.patientDetail.patientAddress
- this.formData.patientPhone = this.patientDetail.patientPhone
- if (this.jsonText) {
- this.formData = JSON.parse(this.jsonText)
- }
+ this.confirmData.patientName = this.patientDetail.patientName
+ this.confirmData.patientAge = this.patientDetail.patientAge
+ this.confirmData.patientSex = this.patientDetail.patientSex
+ this.confirmData.patientId = this.patientDetail.patientId
+ this.confirmData.patientAddress = this.patientDetail.patientAddress
+ this.confirmData.patientPhone = this.patientDetail.patientPhone
+ this.getConfirmDetail()
},
methods: {
editImg(val, index) {
@@ -250,10 +253,10 @@ export default {
fullImgBack(val) {
switch (this.curType) {
case 'OD':
- this.formData.btOdImgSrc = val
+ this.confirmData.zlqSytOd = val
break
case 'OS':
- this.formData.btOsImgSrc = val
+ this.confirmData.zlqSytOs = val
break
case 'treat-OD':
this.formData.treatData[this.curIndex].OD.imgSrc = val
@@ -262,11 +265,60 @@ export default {
this.formData.treatData[this.curIndex].OS.imgSrc = val
}
},
+ getConfirmDetail() {
+ this.$http.get('/mzbl/getMzblJgshzlInfo', { params: {
+ caseId: this.caseId
+ }}).then(data => {
+ const detail = data.data.data
+ this.confirmData.diagnostic = detail.diagnostic || ''
+ // 治疗前
+ this.confirmData.zlqSlOd = detail.zlqSlOd || ''
+ this.confirmData.zlqJbfqOd = detail.zlqJbfqOd || ''
+ this.confirmData.zlqSytOd = detail.zlqSytOd || ''
+ this.confirmData.zlqSlOs = detail.zlqSlOs || ''
+ this.confirmData.zlqJbfqOs = detail.zlqJbfqOs || ''
+ this.confirmData.zlqSytOs = detail.zlqSytOs || ''
+ // 治疗
+ this.confirmData.jgzlDateOd1 = detail.jgzlDateOd1 || ''
+ this.confirmData.jgzlCountOd1 = detail.jgzlCountOd1 || ''
+ this.confirmData.jgzlDsOd1 = detail.jgzlDsOd1 || ''
+ this.confirmData.jgzlSlOd1 = detail.jgzlSlOd1 || ''
+ this.confirmData.jgzlGlOd1 = detail.jgzlGlOd1 || ''
+ this.confirmData.jgzlGbOd1 = detail.jgzlGbOd1 || ''
+ this.confirmData.jgzlSytOd1 = detail.jgzlSytOd1 || ''
+ })
+ },
+ // 保存传值处理
+ handleConfirmData() {
+ this.confirmData.jgzlDateOd1 = this.treatData[0].OD.date
+ this.confirmData.jgzlCountOd1 = this.treatData[0].OD.order
+ this.confirmData.jgzlDsOd1 = this.treatData[0].OD.count
+ this.confirmData.jgzlSlOd1 = this.treatData[0].OD.vision
+ this.confirmData.jgzlGlOd1 = this.treatData[0].OD.power
+ this.confirmData.jgzlGbOd1 = this.treatData[0].OD.flareSize
+ this.confirmData.jgzlSytOd1 = this.treatData[0].OD.imgSrc
+ },
+ // 保存
handleSaveTable() {
- this.$emit('handleSaveTable', this.formData)
+ this.confirmData.jzNumber = window.localStorage.getItem('jzNumber')
+ this.handleConfirmData()
+ this.$http.post('/mzbl/saveMzblJgshzl', {
+ caseId: this.caseId,
+ ...this.confirmData
+ }).then(() => {
+ this.$emit('handleSaveTable')
+ })
},
+ // 删除
formDelete() {
- this.$emit('formDelete')
+ this.$confirmFun('确定删除吗?').then(() => {
+ this.$http.post('/mzbl/delMzblJgshzlInfo', {
+ id: this.caseId
+ }).then(() => {
+ this.$message.success('删除成功')
+ this.$emit('formDelete', 'del')
+ })
+ })
}
}
}
diff --git a/src/page-subspecialty/views/modules/formList/mraForm.vue b/src/page-subspecialty/views/modules/formList/mraForm.vue
index ad19865..0d8932b 100644
--- a/src/page-subspecialty/views/modules/formList/mraForm.vue
+++ b/src/page-subspecialty/views/modules/formList/mraForm.vue
@@ -50,10 +50,6 @@
export default {
name: 'MraForm',
props: {
- jsonText: {
- type: String,
- default: ''
- },
onlyRead: {
type: Boolean,
default: false
@@ -64,6 +60,9 @@ export default {
},
patientDetail: {
type: Object
+ },
+ caseId: {
+ type: String
}
},
data() {
@@ -101,15 +100,6 @@ export default {
]
}
},
- watch: {
- jsonText(val) {
- if (val) {
- this.formData = JSON.parse(this.jsonText)
- } else {
- this.patient = this.origin
- }
- }
- },
created() {
this.origin = JSON.parse(JSON.stringify(this.formData))
// 患者信息带入
@@ -117,16 +107,20 @@ export default {
this.formData.patientAge = this.patientDetail.patientAge
this.formData.patientSex = this.patientDetail.patientSex
this.formData.patientId = this.patientDetail.patientId
- if (this.jsonText) {
- this.formData = JSON.parse(this.jsonText)
- }
},
methods: {
handleSaveTable() {
this.$emit('handleSaveTable', this.formData)
},
formDelete() {
- this.$emit('formDelete')
+ this.$confirmFun('确定删除吗?').then(() => {
+ this.$http.post('/case/delete', {
+ id: this.caseId
+ }).then(() => {
+ this.$message.success('删除成功')
+ this.$emit('formDelete', 'del')
+ })
+ })
}
}
}
diff --git a/src/page-subspecialty/views/modules/formList/reportForm.vue b/src/page-subspecialty/views/modules/formList/reportForm.vue
index ae96e4f..48ba259 100644
--- a/src/page-subspecialty/views/modules/formList/reportForm.vue
+++ b/src/page-subspecialty/views/modules/formList/reportForm.vue
@@ -6,7 +6,7 @@
删除
|