Browse Source

一键选取总控条件

xiaochan 3 years ago
parent
commit
cf4f976f52
1 changed files with 21 additions and 29 deletions
  1. 21 29
      src/views/medical-insurance/allpatient/SetSheetUpload.vue

+ 21 - 29
src/views/medical-insurance/allpatient/SetSheetUpload.vue

@@ -114,7 +114,7 @@
           <el-col :span="spanWidth">
             <el-form-item label="出院科室" prop="disDept">
               <el-select v-model="queryTerm.outDept" placeholder="出院科室" filterable clearable multiple
-                         :collapse-tags="zheDieXianShi"
+                         :collapse-tags="true"
               >
                 <el-option v-for="item in disDepts" :key="item.code" :value="item.code" :label="item.name">
                   <span style="color: #8492a6; font-size: 12px">{{ item.code }}</span>
@@ -128,7 +128,7 @@
           <el-col :span="spanWidth">
             <el-form-item label="医疗类别" prop="medType">
               <el-select v-model="queryTerm.medType" placeholder="医疗类别" filterable clearable multiple
-                         :collapse-tags="zheDieXianShi"
+                         :collapse-tags="true"
               >
                 <el-option v-for="item in medTypes" :key="item.code" :value="item.code" :label="item.name">
                   <span style="color: #8492a6; font-size: 12px">{{ item.code }}</span>
@@ -166,7 +166,7 @@
           <el-col :span="spanWidth">
             <el-form-item label="险种类型" prop="insutype">
               <el-select v-model="queryTerm.insutype" placeholder="险种类型" filterable clearable multiple
-                         :collapse-tags="zheDieXianShi"
+                         :collapse-tags="true"
               >
                 <el-option v-for="item in insutypes" :key="item.code" :value="item.code" :label="item.name">
                   <span style="color: #8492a6; font-size: 12px">{{ item.code }}</span>
@@ -179,7 +179,7 @@
           <el-col :span="spanWidth">
             <el-form-item label="人员类别" prop="psnType">
               <el-select v-model="queryTerm.psnType" placeholder="人员类别" filterable clearable multiple
-                         :collapse-tags="zheDieXianShi"
+                         :collapse-tags="true"
               >
                 <el-option v-for="item in getPsnType" :key="item.code" :value="item.code" :label="item.name">
                   <span style="color: #8492a6; font-size: 12px">{{ item.code }}</span>
@@ -192,7 +192,7 @@
           <el-col :span="spanWidth">
             <el-form-item label="结算机构" prop="psnType">
               <el-select v-model="queryTerm.clrOptins" placeholder="结算机构" filterable clearable multiple
-                         :collapse-tags="zheDieXianShi"
+                         :collapse-tags="true"
               >
                 <el-option v-for="item in clrOptins" :key="item.code" :value="item.code" :label="item.name">
                   <span style="color: #8492a6; font-size: 12px">{{ item.code }}</span>
@@ -217,7 +217,7 @@
           <el-col :span="spanWidth">
             <el-form-item label="申报类型" prop="auditFlag">
               <el-select v-model="queryTerm.decTypes" filterable clearable multiple
-                         :collapse-tags="zheDieXianShi"
+                         :collapse-tags="true"
               >
                 <el-option v-for="item in decTypes" :key="item.code" :value="item.code" :label="item.name">
                   <span style="color: #8492a6; font-size: 12px">{{ item.code }}</span>
@@ -230,18 +230,10 @@
         </el-row>
       </el-form>
       <el-button type="primary" size="small" icon="el-icon-search" @click="query">查询</el-button>
+      <el-button type="primary" size="small" icon="el-icon-search" @click="zhongKongTiaoJian">总控数据条件</el-button>
+
       <el-button type="warning" size="small" icon="el-icon-refresh-right" @click="chongZhi">重置</el-button>
       <el-divider direction="vertical"></el-divider>
-      <el-switch
-          v-model="zheDieXianShi"
-          active-color="#13ce66"
-          inactive-color="#409eff"
-          active-text="折叠"
-          inactive-text="展开"
-          :active-value="true"
-          :inactive-value="false"
-      >
-      </el-switch>
     </el-dialog>
     <el-dialog v-model="xiuGaiYiShen" title="管床医生">
       <el-select v-model="guanChuangYiShen.yiShenCode" filterable clearable remote
@@ -324,8 +316,6 @@ export default {
     const spanWidth = ref(8)
     // 查询的 对话框
     const queryTermDialog = ref(true)
-    //  折叠显示
-    const zheDieXianShi = ref(true)
     // 结算单信息
     const jieSuanDanData = ref({})
     // 险种类型
@@ -542,6 +532,18 @@ export default {
       })
     }
 
+    const zhongKongTiaoJian = () => {
+      if (!shenHeQuanXian()) {
+        queryTerm.value.outDept = [store.state.user.info.deptCode]
+        referPhysicians.value = [{code: store.state.user.info.code, name: store.state.user.info.name}]
+      }
+      queryTerm.value.medType = ['22', '2101']
+      queryTerm.value.insutype = xianZhongChuQu(insutypes.value, ['340', '350', '360', '510', '410'])
+      queryTerm.value.psnType = xianZhongChuQu(getPsnType, ["13"])
+      queryTerm.value.clrOptins = xianZhongChuQu(clrOptins.value, ["439900", "430121"])
+      queryTermDialog.value = true
+    }
+
     onMounted(() => {
       getInsutypes().then((res) => {
         insutypes.value = res
@@ -556,16 +558,6 @@ export default {
         disDepts.value = res
       })
       clrOptins.value = clrOptinsData
-      setTimeout(() => {
-        if (!shenHeQuanXian()) {
-          referPhysicians.value = [{code: store.state.user.info.code, name: store.state.user.info.name}]
-          queryTerm.value.medType = ['22', '2101']
-          queryTerm.value.insutype = xianZhongChuQu(insutypes.value, ['340', '350', '360', '510', '410'])
-          queryTerm.value.psnType = xianZhongChuQu(getPsnType, ["13"])
-          queryTerm.value.clrOptins = xianZhongChuQu(clrOptins.value, ["439900", "430121"])
-          queryTerm.value.outDept = [store.state.user.info.deptCode]
-        }
-      }, 1000)
     })
     return {
       queryTerm,
@@ -585,7 +577,6 @@ export default {
       queryTermRef,
       store,
       spanWidth,
-      zheDieXianShi,
       jieSuanDanXinXi,
       jieSuanDanData,
       handleSelectionChange,
@@ -606,6 +597,7 @@ export default {
       auditName,
       dept,
       decTypes,
+      zhongKongTiaoJian,
       flags: ref([
         {code: 0, name: '全部'},
         {code: 1, name: '未传'},