浏览代码

门诊项目确认中现在可以确认 申请号 为 0的了。

xiaochan 3 年之前
父节点
当前提交
417add234a
共有 1 个文件被更改,包括 65 次插入49 次删除
  1. 65 49
      src/views/med-tec-mod/MenZhenXiangMu.vue

+ 65 - 49
src/views/med-tec-mod/MenZhenXiangMu.vue

@@ -2,16 +2,18 @@
   <el-container>
     <el-header style="margin-top: 10px">
       <el-date-picker
-        type="daterange"
-        v-model="dateRange"
-        placeholder="选择日期"
-        style="width: 280px"
-        range-separator="至"
-        start-placeholder="开始日期"
-        end-placeholder="结束日期"
-        :shortcuts="shortcuts"
+          type="daterange"
+          v-model="dateRange"
+          placeholder="选择日期"
+          style="width: 280px"
+          range-separator="至"
+          start-placeholder="开始日期"
+          end-placeholder="结束日期"
+          :shortcuts="shortcuts"
       ></el-date-picker>
-      患者ID:<el-input style="width: 120px" @keyup.enter="getMzPatientClick" v-model="patientId" @blur="patientId = $event.target.value.trim()" clearable></el-input>
+      患者ID:
+      <el-input style="width: 120px" @keyup.enter="getMzPatientClick" v-model="patientId"
+                @blur="patientId = $event.target.value.trim()" clearable></el-input>
       <el-select v-model="xiangMuZhuangTai" style="width: 90px">
         <el-option v-for="item in xiangMuZhuangTaiData" :key="item.code" :label="item.name" :value="item.code">
           <span style="color: #8492a6; font-size: 12px">{{ item.code }}</span>
@@ -22,23 +24,28 @@
       <el-button type="primary" icon="el-icon-search" @click="getMzPatientClick"> 查询</el-button>
       <el-button type="success" icon="el-icon-upload" @click="baoCunClick"> 保存</el-button>
       <el-tag effect="dark" size="medium">患者姓名: {{ patient.name }}</el-tag>
-      <el-tag effect="dark" type="warning" size="medium">性别:{{ cptSex(patient.sex) }} </el-tag>
-      <el-tag effect="dark" size="medium">出生日期: {{ patient.birthDay }} </el-tag>
+      <el-tag effect="dark" type="warning" size="medium">性别:{{ cptSex(patient.sex) }}</el-tag>
+      <el-tag effect="dark" size="medium">出生日期: {{ patient.birthDay }}</el-tag>
       <el-tag effect="dark" type="warning" size="medium">诊疗卡: {{ patient.icCardNo }}</el-tag>
-      <el-alert effect="dark" title="点击表格中绿色的按钮就可以查看详细的信息,点击任意位置即可消失小框框或再次点击按钮。哔哩哔哩-(゜-゜)つロ乾杯~" type="success"></el-alert>
+      <el-alert effect="dark" title="点击表格中绿色的按钮就可以查看详细的信息,点击任意位置即可消失小框框或再次点击按钮。哔哩哔哩-(゜-゜)つロ乾杯~"
+                type="success"></el-alert>
     </el-header>
     <el-container>
       <el-main>
         <el-row>
           <el-col :span="4">
-            <el-table :height="windowsHeight / 1.1" :data="shouFeiData" highlight-current-row stripe @cell-click="getFeiYongXinXiClick">
+            <el-table :height="windowsHeight / 1.1" :data="shouFeiData" highlight-current-row stripe
+                      @cell-click="getFeiYongXinXiClick">
               <el-table-column label="收费信息">
                 <el-table-column label="缴费日期" prop="chargeDate" width="80"></el-table-column>
                 <el-table-column label="流水号" prop="serialNo">
                   <template #default="scope">
                     <el-popover placement="right" :width="800" trigger="click">
                       <template #reference>
-                        <el-button @click="getFeiYongXinXiClick(scope.row)" type="success">{{ scope.row.serialNo }}</el-button>
+                        <el-button @click="getFeiYongXinXiClick(scope.row)" type="success">{{
+                            scope.row.serialNo
+                          }}
+                        </el-button>
                       </template>
                       <el-table :height="windowsHeight / 2" :data="feiYongData" highlight-current-row stripe>
                         <el-table-column label="缴费明细信息">
@@ -68,7 +75,10 @@
                 <el-table-column label="待确认标志" prop="confirmFlag" width="250">
                   <template #default="scope">
                     <el-radio-group v-model="scope.row.confirmFlag">
-                      <el-radio-button :label="0" :disabled="scope.row.xiangMuZhuangTai === 1 || scope.row.xiangMuZhuangTai === 3">未确认</el-radio-button>
+                      <el-radio-button :label="0"
+                                       :disabled="scope.row.xiangMuZhuangTai === 1 || scope.row.xiangMuZhuangTai === 3">
+                        未确认
+                      </el-radio-button>
                       <el-radio-button :label="1">确认</el-radio-button>
                       <el-radio-button :label="3">取消</el-radio-button>
                     </el-radio-group>
@@ -105,14 +115,19 @@
   </el-container>
 </template>
 <script>
-import { shortcuts } from '@/data/shortcuts'
-import { ref } from 'vue'
-import { cptSex } from '@/utils/computed'
-import { getMzPatient, getFeiYongXinXi, getMingXi, menZhenXiangMuQuXiaoHuoQueRen } from '@/api/zhu-yuan-yi-ji/men-zhen-xiang-mu.js'
-import { getDateRangeFormatDate } from '@/utils/date'
+import {shortcuts} from '@/data/shortcuts'
+import {ref} from 'vue'
+import {cptSex} from '@/utils/computed'
+import {
+  getMzPatient,
+  getFeiYongXinXi,
+  getMingXi,
+  menZhenXiangMuQuXiaoHuoQueRen
+} from '@/api/zhu-yuan-yi-ji/men-zhen-xiang-mu.js'
+import {getDateRangeFormatDate} from '@/utils/date'
 import store from '@/store'
-import { clone } from '@/utils/clone.js'
-import { ElMessageBox } from 'element-plus'
+import {clone} from '@/utils/clone.js'
+import {ElMessageBox} from 'element-plus'
 
 export default {
   setup() {
@@ -140,24 +155,24 @@ export default {
       danGeXingXi.value = []
       let dateR = getDateRangeFormatDate(dateRange.value)
       getMzPatient(patientId.value, xiangMuZhuangTai.value, dateR.startTime, dateR.endTime, store.state.user.info.deptCode)
-        .then((res) => {
-          patientId.value = res.patientId
-          patient.value = res
-          patient.value.birthDay = patient.value.birthDay.split(' ')[0]
-          shouFeiData.value = res.list
-        })
-        .catch(() => {
-          patient.value = {}
-        })
+          .then((res) => {
+            patientId.value = res.patientId
+            patient.value = res
+            patient.value.birthDay = patient.value.birthDay.split(' ')[0]
+            shouFeiData.value = res.list
+          })
+          .catch(() => {
+            patient.value = {}
+          })
     }
 
     const lingShiBaoCunJiaoFeiMingXi = ref({})
 
     const getFeiYongXinXiClick = (val) => {
       if (
-        lingShiBaoCunJiaoFeiMingXi.value.serialNo === val.serialNo &&
-        lingShiBaoCunJiaoFeiMingXi.value.patientId === val.patientId &&
-        lingShiBaoCunJiaoFeiMingXi.value.times === val.times
+          lingShiBaoCunJiaoFeiMingXi.value.serialNo === val.serialNo &&
+          lingShiBaoCunJiaoFeiMingXi.value.patientId === val.patientId &&
+          lingShiBaoCunJiaoFeiMingXi.value.times === val.times
       ) {
         return
       }
@@ -176,7 +191,7 @@ export default {
 
         if (xiangMuZhuangTai.value === 0) {
           for (let i = 0; i < feiYongData.value.length; i++) {
-            if (feiYongData.value[i].reqNo > 0) {
+            if (feiYongData.value[i].reqNo > 0 || typeof feiYongData.value[i].execDept !== 'undefined') {
               if ((feiYongData.value[i].execDept === dept && feiYongData.value[i].confirmFlag !== 1) || execDept(feiYongData.value[i].execDept)) {
                 keQueRenData.value.push(clone(feiYongData.value[i]))
               }
@@ -212,20 +227,21 @@ export default {
       ElMessageBox.confirm('请确认数据', '提示', {
         type: 'warning',
       })
-        .then(() => {
-          let baoCun = {
-            list: keQueRenData.value,
-            xiangMuZhuangTai: xiangMuZhuangTai.value,
-            name: patient.value.name,
-            execDept: store.state.user.info.deptCode,
-            chargeDateString: chargeDate.value,
-          }
+          .then(() => {
+            let baoCun = {
+              list: keQueRenData.value,
+              xiangMuZhuangTai: xiangMuZhuangTai.value,
+              name: patient.value.name,
+              execDept: store.state.user.info.deptCode,
+              chargeDateString: chargeDate.value,
+            }
 
-          menZhenXiangMuQuXiaoHuoQueRen(baoCun).then((res) => {
-            keQueRenData.value = []
+            menZhenXiangMuQuXiaoHuoQueRen(baoCun).then((res) => {
+              keQueRenData.value = []
+            })
+          })
+          .catch(() => {
           })
-        })
-        .catch(() => {})
     }
 
     return {
@@ -236,8 +252,8 @@ export default {
       patient,
       getMzPatientClick,
       xiangMuZhuangTaiData: ref([
-        { code: 0, name: '未确认' },
-        { code: 1, name: '已确认' },
+        {code: 0, name: '未确认'},
+        {code: 1, name: '已确认'},
       ]),
       xiangMuZhuangTai,
       windowsHeight,