瀏覽代碼

编码员重新质控已经病案号搜索

zz 1 月之前
父節點
當前提交
3dddb07014
共有 3 個文件被更改,包括 43 次插入8 次删除
  1. 0 1
      src/views/data/query/index.vue
  2. 17 6
      src/views/encoder/index.vue
  3. 26 1
      src/views/medicalRecord/index.vue

+ 0 - 1
src/views/data/query/index.vue

@@ -754,7 +754,6 @@ export default {
         type: 'warning'
         type: 'warning'
       }).then(() => {
       }).then(() => {
         this.$axios.post('/deleteSearchCollect',{'id':id}).then(res => {
         this.$axios.post('/deleteSearchCollect',{'id':id}).then(res => {
-          console.log(res);
           if (res.code == 100) this.$message.error(res.msg);
           if (res.code == 100) this.$message.error(res.msg);
           if (res.code == 200){
           if (res.code == 200){
             this.getSearchCollect();
             this.getSearchCollect();

+ 17 - 6
src/views/encoder/index.vue

@@ -35,14 +35,18 @@
         </el-form-item>
         </el-form-item>
 
 
         <el-form-item label="出院日期" style="margin-bottom: 0">
         <el-form-item label="出院日期" style="margin-bottom: 0">
-          <el-date-picker v-model="formInline.start_time" type="date" placeholder="出院开始日期" value-format="yyyyMMdd" format="yyyy年MM月dd日" />
+          <el-date-picker  v-model="formInline.start_time" type="date" placeholder="出院开始日期" value-format="yyyyMMdd" format="yyyy年MM月dd日" />
         </el-form-item>
         </el-form-item>
         <span style="margin-right: 10px; line-height: 40px; color: #7e8bab">至</span>
         <span style="margin-right: 10px; line-height: 40px; color: #7e8bab">至</span>
         <el-form-item label="" style="margin-bottom: 0">
         <el-form-item label="" style="margin-bottom: 0">
           <el-date-picker v-model="formInline.end_time" type="date" placeholder="出院结束日期" value-format="yyyyMMdd" format="yyyy年MM月dd日" />
           <el-date-picker v-model="formInline.end_time" type="date" placeholder="出院结束日期" value-format="yyyyMMdd" format="yyyy年MM月dd日" />
         </el-form-item>
         </el-form-item>
+        <el-form-item label="病案号" style="margin-bottom: 0">
+          <el-input v-model="formInline.AAA28" placeholder="请输入病案号"></el-input>
+        </el-form-item>
         <el-form-item style="margin-bottom: 0">
         <el-form-item style="margin-bottom: 0">
           <el-button type="primary" class="bg185DA6" @click="onGobalSearch">查询</el-button>
           <el-button type="primary" class="bg185DA6" @click="onGobalSearch">查询</el-button>
+          <el-button type="primary" class="bg185DA6" @click="reset">重置</el-button>
         </el-form-item>
         </el-form-item>
         <!---->
         <!---->
       </el-form>
       </el-form>
@@ -368,6 +372,7 @@
 import DoctorRankVue from './components/index/DoctorRank.vue';
 import DoctorRankVue from './components/index/DoctorRank.vue';
 import { bmyDoctorRanking, encoderProblemExport } from '@/api/excel';
 import { bmyDoctorRanking, encoderProblemExport } from '@/api/excel';
 import IconBtn from '@/views/medicalRecord/components/index/IconBtn.vue';
 import IconBtn from '@/views/medicalRecord/components/index/IconBtn.vue';
+import moment from 'moment';
 export default {
 export default {
   components: {
   components: {
     IconBtn,
     IconBtn,
@@ -490,11 +495,7 @@ export default {
     this.getAllDoctor();//医师身份
     this.getAllDoctor();//医师身份
   },
   },
   async mounted() {
   async mounted() {
-    const year = new Date().getFullYear();
-    const month = new Date().getMonth() + 1 > 10 ?  new Date().getMonth() + 1 : `0${new Date().getMonth() + 1}`;
-    const day = new Date().getDate() < 10 ? `0${new Date().getDate()}` : new Date().getDate();
-    this.$set(this.formInline, 'start_time', `${year}0101`);
-    this.$set(this.formInline, 'end_time', `${year}${month}${day}`);
+    this.getAAC01Date();//获取出院日期
     this.getSearchOptions();//获取搜索options
     this.getSearchOptions();//获取搜索options
     await this.getTongjiData()
     await this.getTongjiData()
     this.tongjiPie();
     this.tongjiPie();
@@ -516,6 +517,16 @@ export default {
     next()
     next()
     },
     },
   methods: {
   methods: {
+    //头部默认出院日期
+    getAAC01Date(){
+      this.formInline.start_time = moment().format('YYYY0101');
+      this.formInline.end_time = moment().format('YYYYMMDD');
+    },
+    //重置头部搜索条件
+    reset(){
+      this.formInline = {};
+      this.getAAC01Date();
+    },
     //医师工号复制
     //医师工号复制
     yiCodeCopy(value) {
     yiCodeCopy(value) {
       const textArea = document.createElement('textarea');
       const textArea = document.createElement('textarea');

+ 26 - 1
src/views/medicalRecord/index.vue

@@ -1,6 +1,9 @@
 <template>
 <template>
   <div class="bg-box" style="overflow: hidden; position: relative" :class="{ has_control: controlData.bSwitch }">
   <div class="bg-box" style="overflow: hidden; position: relative" :class="{ has_control: controlData.bSwitch }">
     <div class="bg-card">
     <div class="bg-card">
+      <div>
+        <el-button type="primary" class="export-btn" size="small" @click="onReset">重新质控</el-button>
+      </div>
       <h3 class="title">住院病案首页</h3>
       <h3 class="title">住院病案首页</h3>
       <div class="zyh">病案编号:{{ blInfo.patient_info.AAA28 }}</div>
       <div class="zyh">病案编号:{{ blInfo.patient_info.AAA28 }}</div>
       <div class="btn-wrapper">
       <div class="btn-wrapper">
@@ -700,7 +703,7 @@
         </tr>
         </tr>
       </table>
       </table>
     </div>
     </div>
-    <ControlDrawerVue v-if="controlData.bSwitch" :data="controlData" @close="controlData.bSwitch = false" @zk="handleZK" @codes="handleCodes" />
+    <ControlDrawerVue ref="ControlDrawerVue" v-if="controlData.bSwitch" :data="controlData" @close="controlData.bSwitch = false" @zk="handleZK" @codes="handleCodes" />
   </div>
   </div>
 </template>
 </template>
 
 
@@ -708,6 +711,7 @@
 import ControlDrawerVue from './components/index/ControlDrawer.vue';
 import ControlDrawerVue from './components/index/ControlDrawer.vue';
 import IconBtnVue from './components/index/IconBtn.vue';
 import IconBtnVue from './components/index/IconBtn.vue';
 import NoValueInputVue from './components/index/NoValueInput.vue';
 import NoValueInputVue from './components/index/NoValueInput.vue';
+import axios3 from '@/axios/index3';
 export default {
 export default {
   components: {
   components: {
     IconBtnVue,
     IconBtnVue,
@@ -779,6 +783,27 @@ export default {
     this.controlData.bSwitch = true;
     this.controlData.bSwitch = true;
   },
   },
   methods: {
   methods: {
+    //重新质控
+    onReset(){
+      this.$confirm('此操作将对病例重新进行质控, 是否继续?', '提示', {
+        confirmButtonText: '确定',
+        cancelButtonText: '取消',
+        type: 'warning'
+      }).then(() => {
+        this.$axios4.post('/zzTest',{ZYH:this.controlData.zyh}).then(res => {
+          if (res.code == 200){
+            this.$refs.ControlDrawerVue.getData();//重新加载质控内容数据
+            this.$message.success("重新质控成功");
+          }
+
+        });
+      }).catch(() => {
+        this.$message({
+          type: 'info',
+          message: '已取消质控'
+        });
+      });
+    },
     // 手术合并
     // 手术合并
     formatSSdata(arr, obj) {
     formatSSdata(arr, obj) {
       const list = arr.concat([obj]).reverse()
       const list = arr.concat([obj]).reverse()