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

Loading…
Cancel
Save