lighter 2 jaren geleden
bovenliggende
commit
4f0e83fb39
2 gewijzigde bestanden met toevoegingen van 6 en 24 verwijderingen
  1. 0 8
      src/api/outpatient/comments.js
  2. 6 16
      src/views/clinic/interactive/Comments.vue

+ 0 - 8
src/api/outpatient/comments.js

@@ -8,14 +8,6 @@ export function getComments(data) {
     })
 }
 
-export function getPatientPhoneNo(patNo) {
-    return request({
-        url: '/comments/getPatientPhoneNo',
-        method: 'get',
-        params: { patNo }
-    })
-}
-
 export function updateCommentStatus(id, deleted) {
     return request({
         url: '/comments/updateCommentStatus',

+ 6 - 16
src/views/clinic/interactive/Comments.vue

@@ -35,14 +35,14 @@
         <el-table-column prop="commentTime" label="评价时间" width="80"></el-table-column>
         <el-table-column prop="patientId" label="患者ID" width="80"></el-table-column>
         <el-table-column prop="patientName" label="患者姓名" width="80"></el-table-column>
-        <el-table-column label="状态" width="80">
+        <el-table-column prop="patPhoneNo" label="患者电话" width="90"></el-table-column>
+        <el-table-column label="评价状态" width="80">
           <template #default="scope">
-            {{ scope.row.deleted === 0 ? '有效' : '已删除' }}
+            {{ scope.row.deleted === 0 ? '未删除' : '已删除' }}
           </template>
         </el-table-column>
-        <el-table-column label="操作" width="200">
+        <el-table-column label="操作" width="80">
           <template #default="scope">
-            <el-button icon="Service" @click="fetchPatientPhoneNo(scope.row.patientId)">联系患者</el-button>
             <el-button v-if="scope.row.deleted === 0" icon="Delete" type="danger" @click="changeCommentStatus(scope.row, 1)">删除</el-button>
             <el-button v-else icon="Refresh" type="success" @click="changeCommentStatus(scope.row, 0)">恢复</el-button>
           </template>
@@ -63,10 +63,10 @@
 </template>
 <script setup>
 import PageLayer from "@/layout/PageLayer.vue";
-import {getComments,getPatientPhoneNo,updateCommentStatus} from "@/api/outpatient/comments";
+import {getComments,updateCommentStatus} from "@/api/outpatient/comments";
 import {getDateRangeFormatDate} from "@/utils/date";
 import store from "@/store";
-import {ElMessage, ElMessageBox} from "element-plus";
+import {ElMessage} from "element-plus";
 
 const windowSize = store.state.app.windowSize
 const tableHeight = windowSize.h - 55
@@ -125,16 +125,6 @@ const handleCurrentChange = (val) => {
   handleClickSearch()
 }
 
-const fetchPatientPhoneNo = (patNo) => {
-  getPatientPhoneNo(patNo).then(res => {
-    ElMessageBox.alert(res, '患者联系方式', {
-      type: 'success',
-      confirmButtonText: '确定',
-      showClose: false,
-    })
-  })
-}
-
 const changeCommentStatus = (row, deleted) => {
   updateCommentStatus(row.id, deleted).then(res => {
     row.deleted = deleted