wjj 3 giorni fa
parent
commit
3d9377c290
1 ha cambiato i file con 29 aggiunte e 5 eliminazioni
  1. 29 5
      src/views/patientBase/index.vue

+ 29 - 5
src/views/patientBase/index.vue

@@ -30,6 +30,16 @@
           />
         </el-select>
       </el-form-item>
+      <el-form-item label="审核状态" prop="checkStatus">
+        <el-select v-model="queryParams.checkStatus" placeholder="请选择状态" clearable size="small">
+          <el-option
+            v-for="dict in checkStatusOptions"
+            :key="dict.dictValue"
+            :label="dict.dictLabel"
+            :value="dict.dictValue"
+          />
+        </el-select>
+      </el-form-item>
       <el-form-item>
         <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
         <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
@@ -56,10 +66,16 @@
           <dict-tag :options="doctorStatusOptions" :value="scope.row.doctorStatus"/>
         </template>
       </el-table-column>
+      <el-table-column label="审核状态" align="center" prop="checkStatus" >
+        <template slot-scope="scope">
+          <dict-tag :options="checkStatusOptions" :value="scope.row.checkStatus"/>
+        </template>
+      </el-table-column>
+      <el-table-column :show-overflow-tooltip="true" label="原因" align="center" prop="reason" />
       <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
         <template slot-scope="scope">
           <el-button
-            v-if="scope.row.doctorStatus == 0"
+            v-if="scope.row.doctorStatus == 0 || scope.row.checkStatus  == 2"
             size="mini"
             type="text"
             icon="el-icon-edit"
@@ -111,7 +127,7 @@
         </el-form-item>
       </el-form>
       <div slot="footer" class="dialog-footer">
-        <el-button v-if="form.doctorStatus == 0" type="primary" @click="submitForm">确 定</el-button>
+        <el-button v-if="form.doctorStatus == 0 || form.checkStatus  == 2" type="primary" @click="submitForm">确 定</el-button>
         <el-button @click="cancel">取 消</el-button>
       </div>
     </el-dialog>
@@ -120,6 +136,7 @@
 
 <script>
 import { listInfo,diagnose} from "@/api/patientBase";
+import { CheckStatus } from "livekit-client";
 
 
 export default {
@@ -154,12 +171,18 @@ export default {
       // 状态
       statusOptions: [
         {dictValue: '0',dictLabel:'未绑定'},
-        {dictValue: '1',dictLabel:'已绑定'}
+        {dictValue: '1',dictLabel:'已绑定',listClass:'success'}
       ],
       //医生完善状态
       doctorStatusOptions:[
         {dictValue: '0',dictLabel:'未完善'},
-        {dictValue: '1',dictLabel:'已完善'}
+        {dictValue: '1',dictLabel:'已完善',listClass:'success'}
+      ],
+      //审核状态
+      checkStatusOptions:[
+        {dictValue: '0',dictLabel:'待审核'},
+        {dictValue: '1',dictLabel:'通过',listClass:'success'},
+        {dictValue: '2',dictLabel:'未通过',listClass:'danger'},
       ],
       //理疗选项
       projectOptions:[],
@@ -177,7 +200,8 @@ export default {
         projectId: null,
         userId: null,
         status: null,
-        doctorStatus: null
+        doctorStatus: null,
+        checkStatus: null,
       },
       // 表单参数
       form: {},