Commit ebe34828 authored by v_liuhuaizhi's avatar v_liuhuaizhi

病例--功能完成 暂存1

parent 30cfb8f9
...@@ -75,3 +75,11 @@ export function deleteTreat(id) { ...@@ -75,3 +75,11 @@ export function deleteTreat(id) {
method: 'delete' method: 'delete'
}) })
} }
// 编辑病例
export function editRecord(data) {
return request({
url: '/business/record',
method: 'put',
data
})
}
...@@ -127,7 +127,7 @@ ...@@ -127,7 +127,7 @@
<el-table-column align="center" show-overflow-tooltip class-name="small-padding fixed-width" label="操作" min-width="180"> <el-table-column align="center" show-overflow-tooltip class-name="small-padding fixed-width" label="操作" min-width="180">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
v-hasPermi="['business:case:edit']" v-hasPermi="['business:record:edit']"
icon="el-icon-document" icon="el-icon-document"
plain plain
size="mini" size="mini"
...@@ -137,7 +137,7 @@ ...@@ -137,7 +137,7 @@
>详情 >详情
</el-button> </el-button>
<el-button <el-button
v-hasPermi="['business:case:edit']" v-hasPermi="['business:record:edit']"
icon="el-icon-edit" icon="el-icon-edit"
plain plain
size="mini" size="mini"
......
...@@ -434,6 +434,7 @@ export default { ...@@ -434,6 +434,7 @@ export default {
}) })
}, },
submit() { submit() {
console.log('this.registerForm', this.registerForm)
this.$refs['prescribingForm'].validate(valid => { this.$refs['prescribingForm'].validate(valid => {
if (valid) { if (valid) {
const prescrib = { ...this.prescribingForm } const prescrib = { ...this.prescribingForm }
...@@ -444,8 +445,9 @@ export default { ...@@ -444,8 +445,9 @@ export default {
return item.treatItemsId !== '' return item.treatItemsId !== ''
}) })
const temp = { const temp = {
'id': this.registerForm.id,
'medicalRecordNo': this.registerForm.medicalRecordNo, 'medicalRecordNo': this.registerForm.medicalRecordNo,
'registId': this.registerForm.id, 'registId': this.registerForm.registId,
'doctorName': this.registerForm.doctorName 'doctorName': this.registerForm.doctorName
} }
if (prescrib.inspect.length > 0) { if (prescrib.inspect.length > 0) {
......
...@@ -664,13 +664,13 @@ export default { ...@@ -664,13 +664,13 @@ export default {
} }
console.log('表单参数2333', temp) console.log('表单参数2333', temp)
// insertDiagnosis(temp).then(res => { insertDiagnosis(temp).then(res => {
// console.log(res) console.log(res)
// if (res.code === 200) { if (res.code === 200) {
// this.$message.success('提交成功') this.$message.success('提交成功')
// this.goBack() this.goBack()
// } }
// }) })
}, },
parseTime, parseTime,
selectDictLabel, selectDictLabel,
...@@ -681,11 +681,14 @@ export default { ...@@ -681,11 +681,14 @@ export default {
prescribing() { prescribing() {
this.showPrescribing = true this.showPrescribing = true
console.log('这是弹窗需要的父组件传的信息:', this.regiterForm) console.log('这是弹窗需要的父组件传的信息:', this.regiterForm)
this.regiterForm['registId'] = this.regiterForm.id
queryPrescribing(this.regiterForm).then(response => { queryPrescribing(this.regiterForm).then(response => {
console.log('这是弹窗需要的父组件传的信息:', this.regiterForm) console.log('这是弹窗需要的父组件传的信息:', this.regiterForm)
console.log('重要!!!!!:', response) console.log('重要!!!!!:', response)
this.openForm = response.data this.openForm = response.data
this.openForm['registId'] = this.regiterForm.id
this.regiterForm['medicalRecordNo'] = response.data.medicalRecordNo this.regiterForm['medicalRecordNo'] = response.data.medicalRecordNo
this.regiterForm['medicalRecordId'] = response.data.id
}) })
}, },
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment