wjj 1 неделя назад
Родитель
Сommit
07ba910d75
2 измененных файлов с 26 добавлено и 1 удалено
  1. 10 0
      src/api/patient/info.js
  2. 16 1
      src/views/qw/patient/index.vue

+ 10 - 0
src/api/patient/info.js

@@ -59,4 +59,14 @@ export function getWxaCodePatientUnLimit(patientId,appId) {
     url: '/company/patient/getWxaCodePatientUnLimit/'+patientId+"/"+appId,
     url: '/company/patient/getWxaCodePatientUnLimit/'+patientId+"/"+appId,
     method: 'get',
     method: 'get',
   })
   })
+}
+
+
+// 驳回医生诊断
+export function reject(data) {
+  return request({
+    url: '/company/patient/reject',
+    method: 'post',
+    data: data
+  })
 }
 }

+ 16 - 1
src/views/qw/patient/index.vue

@@ -101,6 +101,7 @@
             v-hasPermi="['patient:info:edit']">修改</el-button>
             v-hasPermi="['patient:info:edit']">修改</el-button>
           <el-button v-if="scope.row.doctorStatus === 1" size="mini" type="text" icon="el-icon-share" @click="handleShare(scope.row)"
           <el-button v-if="scope.row.doctorStatus === 1" size="mini" type="text" icon="el-icon-share" @click="handleShare(scope.row)"
             v-hasPermi="['patient:info:WxaCodePatientUnLimit']">分享</el-button>
             v-hasPermi="['patient:info:WxaCodePatientUnLimit']">分享</el-button>
+            <el-button v-if="scope.row.doctorStatus === 1" size="mini" type="text" icon="el-icon-close" @click="handleReject(scope.row)">驳回</el-button>
           <el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)"
           <el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)"
             v-hasPermi="['patient:info:remove']">删除</el-button>
             v-hasPermi="['patient:info:remove']">删除</el-button>
         </template>
         </template>
@@ -172,7 +173,7 @@
 </template>
 </template>
 
 
 <script>
 <script>
-import { listInfo, getInfo, delInfo, addInfo, updateInfo, exportInfo, getWxaCodePatientUnLimit } from "@/api/patient/info";
+import { listInfo, getInfo, delInfo, addInfo, updateInfo, exportInfo, getWxaCodePatientUnLimit, reject } from "@/api/patient/info";
 import { options as projectOptions } from "@/api/project/project";
 import { options as projectOptions } from "@/api/project/project";
 import { options } from "@/api/course/coursePlaySourceConfig";
 import { options } from "@/api/course/coursePlaySourceConfig";
 
 
@@ -312,6 +313,20 @@ export default {
       this.shareForm.id = row.id;
       this.shareForm.id = row.id;
     },
     },
 
 
+    handleReject(row){
+      const ids = row.id || this.ids;
+      this.$confirm('是否确认驳回医生诊断?', "警告", {
+        confirmButtonText: "确定",
+        cancelButtonText: "取消",
+        type: "warning"
+      }).then(function () {
+        return reject(row);
+      }).then(() => {
+        this.getList();
+        this.msgSuccess("驳回成功");
+      }).catch(() => { });
+    },
+
     /** 查询患者基本信息列表 */
     /** 查询患者基本信息列表 */
     getList() {
     getList() {
       this.loading = true;
       this.loading = true;