|
|
@@ -104,22 +104,29 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="创建时间" align="center" prop="createTime" width="160" />
|
|
|
- <el-table-column label="操作" align="center" width="120">
|
|
|
+ <el-table-column label="操作" align="center" width="180">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button
|
|
|
type="primary"
|
|
|
size="small"
|
|
|
icon="el-icon-edit"
|
|
|
- v-if="scope.row.doctorConfirm === 0&&scope.row.status!==2&&scope.row.isDocument===0"
|
|
|
+ v-if="scope.row.doctorConfirm === 0 && scope.row.status!==2 && scope.row.isDocument===0"
|
|
|
@click="handlePerfectPrescription(scope.row)"
|
|
|
>完善处方</el-button>
|
|
|
<el-button
|
|
|
type="success"
|
|
|
size="small"
|
|
|
icon="el-icon-plus"
|
|
|
- v-if="scope.row.isDocument===0&&(scope.row.doctorConfirm === 0||scope.row.status===1)"
|
|
|
+ v-if="scope.row.isDocument===0 && (scope.row.doctorConfirm === 0 || scope.row.status===1)"
|
|
|
@click="handleOpenPrescribe(scope.row)"
|
|
|
>开方</el-button>
|
|
|
+ <el-button
|
|
|
+ type="danger"
|
|
|
+ size="small"
|
|
|
+ icon="el-icon-close"
|
|
|
+ v-if="scope.row.doctorConfirm === 0 && scope.row.isDocument===0"
|
|
|
+ @click="handleRejectPrescribe(scope.row)"
|
|
|
+ >拒方</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
@@ -154,7 +161,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { waitOpenPrescribeList } from "@/api/his/scrmPrescribe";
|
|
|
+import { waitOpenPrescribeList,doctorRejectPrescribe } from "@/api/his/scrmPrescribe";
|
|
|
import DoctorAdviceDialog from "./DoctorAdviceDialog.vue";
|
|
|
import DoctorPrescribeDialog from "./DoctorPrescribeDialog.vue";
|
|
|
export default {
|
|
|
@@ -234,6 +241,28 @@ export default {
|
|
|
}).then(() => {
|
|
|
this.prescribeDialogVisible = true;
|
|
|
}).catch(() => {});
|
|
|
+ },
|
|
|
+ // 拒方
|
|
|
+ handleRejectPrescribe(row) {
|
|
|
+ this.$prompt('请输入拒绝原因', '拒方确认', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ inputType: 'textarea',
|
|
|
+ inputValidator: (value) => {
|
|
|
+ if (!value || !value.trim()) return '拒绝原因不能为空';
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ }).then(({ value }) => {
|
|
|
+ doctorRejectPrescribe({
|
|
|
+ prescribeId: row.prescribeId,
|
|
|
+ auditReason: value
|
|
|
+ }).then(() => {
|
|
|
+ this.$message.success('拒方成功');
|
|
|
+ this.getList(); // 刷新列表
|
|
|
+ }).catch(error => {
|
|
|
+ this.$message.error(error.message || '拒方失败');
|
|
|
+ });
|
|
|
+ }).catch(() => {});
|
|
|
}
|
|
|
}
|
|
|
};
|