Commit ebe34828 authored by v_liuhuaizhi's avatar v_liuhuaizhi

病例--功能完成 暂存1

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