Commit 6662f333 authored by v_liuhuaizhi's avatar v_liuhuaizhi

病例管理-->编辑-->检查完毕

parent c4ec70d9
......@@ -628,8 +628,7 @@ color: #333333;"
>编辑
</el-button>
<el-button
v-if="(scope.row.payType === '0'||scope.row.isAdd) && scope.row.inputShow"
v-hasPermi="['business:case:save']"
v-if="(scope.row.payType === '0'|| scope.row.isAdd ) && scope.row.inputShow"
icon="el-icon-edit"
plain
size="mini"
......@@ -789,7 +788,7 @@ color: #333333;"
import { parseTime, selectDictLabel } from '@/utils/ruoyi'
// 引入进度信息模组件
import scheduleInfo from '@/views/service-management/registration-queue/components/schedule-info'
import { addCheck, checkList, deleteCheck, getRecord, listByType } from '@/api/business/mdeicalRecord'
import { addCheck, checkList, deleteCheck, getRecord, listByType, updateCheck } from '@/api/business/mdeicalRecord'
import { mapGetters } from 'vuex'
export default {
name: 'MedicalEdit',
......@@ -1196,7 +1195,7 @@ export default {
const rowData = this[listName][index] // 行信息
// 检查信息保存-- 新增保存 编辑保存
if (listName === 'checkManageBos') {
if (this[listName][index].isAdd) { //
if (this[listName][index].isAdd) { // 新增保存
const temp = {
petsId: this.petInfo.petsId,
medicalRecordId: rowData.id,
......@@ -1207,7 +1206,19 @@ export default {
checkItemsId: rowData.checkItemsId,
checkItemsName: rowData.checkItemsName
}
addCheck(temp).then(() => {
addCheck([temp]).then(() => {
this.$message.success('保存成功')
// 刷新检查信息列表
this.getCheckList()
})
} else {
const temp = {
checkType: rowData.checkType,
checkItemsId: rowData.checkItemsId,
checkItemsName: rowData.checkItemsName,
}
// 编辑保存
updateCheck([temp]).then(() => {
this.$message.success('保存成功')
// 刷新检查信息列表
this.getCheckList()
......
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