Browse Source

后台诊疗档案添加审核

new^2
liuzhipeng 1 week ago
parent
commit
5b1d2078e9
  1. 8
      acupuncture-后台/src/api/medicalFile.js
  2. 29
      acupuncture-后台/src/views/medicalFile/index.vue

8
acupuncture-后台/src/api/medicalFile.js

@ -64,3 +64,11 @@ export function exportTreatmentPg(data) {
data: data,
});
}
// 审核
export function treatmentAudit(data) {
return request({
url: "/admin/treatment/aduit",
method: "post",
data: data,
});
}

29
acupuncture-后台/src/views/medicalFile/index.vue

@ -389,18 +389,10 @@
<el-table-column
label="上报标题"
align="center"
prop="managementId"
prop="reportTitle"
show-overflow-tooltip
min-width="150"
>
<template slot-scope="scope">
<!-- managerList 找到匹配项回显名称 -->
<span v-for="item in managerList" :key="item.id">
<span v-if="item.id == scope.row.managementId">
{{ item.reportTitle }}
</span>
</span>
</template>
</el-table-column>
<el-table-column
label="上报人"
@ -498,7 +490,7 @@
提交审核
</el-button> -->
<!-- 审核 -->
<!-- <el-button
<el-button
:disabled="scope.row.status != 1"
size="mini"
type="text"
@ -517,7 +509,7 @@
v-hasPermi="['medicalFile:index:reject']"
>
驳回
</el-button> -->
</el-button>
</template>
</el-table-column>
</el-table>
@ -703,6 +695,7 @@ import {
saveAidRecord,
queueAdd,
exportTreatmentPg,
treatmentAudit,
} from "@/api/medicalFile";
import { managerQuery } from "@/api/report";
import { tenantsList } from "@/api/member";
@ -1188,15 +1181,17 @@ export default {
},
/** 提交审核 */
handleExamine(row, _status) {
let form = JSON.parse(JSON.stringify(row));
form = {
...JSON.parse(JSON.stringify(row)),
let params = {
tenantId: row.tenantId, // id
treatmentId: row.id, // id
status: _status, // 0 1 2 3
};
form.status = _status;
let title = this.status[_status];
title = title == "待审核" ? "提交" : title;
this.$modal
.confirm(`是否确认提交当前选择的数据(${row.name})?`)
.confirm(`是否确认${title}当前选择的数据(${row.name})?`)
.then(function () {
return treatmentUpd(form);
return treatmentAudit(params);
})
.then(() => {
this.getList();

Loading…
Cancel
Save