Browse Source

医技费用问题

xiaochan 1 year ago
parent
commit
28512f9172
1 changed files with 17 additions and 9 deletions
  1. 17 9
      src/views/med-tec-mod/YiJiFeiYongLuRu.vue

+ 17 - 9
src/views/med-tec-mod/YiJiFeiYongLuRu.vue

@@ -19,14 +19,22 @@
           住院号:
           <el-input style="width: 80px" v-model="queryTerm.inpatientNo"
                     @keyup.enter="getHuanZheXinXiClick"></el-input>
-          <span v-show="queryTerm.zaiHuanChuYuan === 1">
-        住院次数:<el-input-number :min="0" :precision="0" style="width: 60px" v-model="queryTerm.admissTimes"
-                                  :controls="false"></el-input-number>
+          <span>
+        住院次数:<el-input-number :min="0"
+                                  :precision="0"
+                                  style="width: 60px"
+                                  v-model="queryTerm.admissTimes"
+                                  :controls="false">
+          </el-input-number>
       </span>
           <el-divider direction="vertical"></el-divider>
-          <el-switch active-color="#ff4949" inactive-color="#13ce66" active-text="出院" inactive-text="在院"
+          <el-switch active-color="#ff4949"
+                     inactive-color="#13ce66"
+                     active-text="出院"
+                     inactive-text="在院"
                      :active-value="1"
-                     :inactive-value="0" v-model="queryTerm.zaiHuanChuYuan">
+                     :inactive-value="0"
+                     v-model="queryTerm.zaiHuanChuYuan">
           </el-switch>
           <el-divider direction="vertical"></el-divider>
           项目名称:
@@ -147,7 +155,7 @@ const xlmrRef = ref()
 const queryTerm = ref({
   inpatientNo: '',
   admissTimes: 0,
-  zaiHuanChuYuan: '',
+  zaiHuanChuYuan: 0,
   dateRange: [dangQianShiJian, dangQianShiJian],
   riQiPaiXu: 'DESC',
   chargeCode: '',
@@ -166,12 +174,12 @@ const patient = ref({})
 const tableDataHuanZheFeiYong = ref([])
 
 const getHuanZheXinXiClick = () => {
-  if (queryTerm.value.zaiHuanChuYuan === 0) {
-    queryTerm.value.admissTimes = 0
-  }
   if (patient.value.inpatientNo === queryTerm.value.inpatientNo) {
     queryHuanZheFeiYong()
   } else {
+    if (queryTerm.value.zaiHuanChuYuan === 0) {
+      queryTerm.value.admissTimes = 0
+    }
     getHuanZheXinXi(queryTerm.value.inpatientNo, queryTerm.value.zaiHuanChuYuan, queryTerm.value.admissTimes)
         .then((res) => {
           // 第一个参数病区, 第二个参数科室 , 这里是需要反过来的