DESKTOP-MINPJAU\Administrator 3 роки тому
батько
коміт
60eb8d0f40

+ 1 - 1
src/components/inpatient/XiangMuLuRu.vue

@@ -97,7 +97,7 @@
               </el-option>
             </el-select>
             <el-button icon="Search" type="primary" @click="queryFeiYong">查询</el-button>
-            <el-button icon="DeleteSolid" type="danger" @click="xiangMuTuiFeiClick">退费</el-button>
+            <el-button icon="Delete" type="danger" @click="xiangMuTuiFeiClick">退费</el-button>
             <el-button v-if="store.state.user.info.roles.findIndex((i) => i === 1 || i === 8) > -1" type="warning" @click="sheZhiWeiYiVBao">设为医保 </el-button>
             <el-table :data="cptTableDataHuanZheFeiYong" :height="tableHeight" class="eltable" highlight-current-row stripe @selection-change="handleSelectionChange">
               <el-table-column style="width: 100px" type="selection"></el-table-column>

+ 1 - 1
src/components/inpatient/YiZhuTuiFei.vue

@@ -28,7 +28,7 @@
         style="width: 260px"
       ></el-date-picker>
       <el-button style="margin-left: 10px" type="primary" icon="Search" @click="queryActOrder">搜索</el-button>
-      <el-button style="margin-left: 10px" type="danger" icon="DeleteSolid" @click="yiZhuTuiFeiClick">医嘱退费 </el-button>
+      <el-button style="margin-left: 10px" type="danger" icon="Delete" @click="yiZhuTuiFeiClick">医嘱退费 </el-button>
       <el-button style="margin-left: 10px" type="warning" icon="Close" @click="closeDialog">关闭</el-button>
     </el-header>
     <el-main style="margin-top: 50px">

+ 43 - 40
src/components/med-tec-mod/HuanZheFeiYong.vue

@@ -1,10 +1,11 @@
 <template>
   <el-container>
     <el-main>
-      <el-button type="danger" @click="xiangMuTuiFeiClick" icon="DeleteSolid">退费</el-button>
+      <el-button type="danger" @click="xiangMuTuiFeiClick" icon="Delete">退费</el-button>
       <el-button type="primary" @click="weiGuiTuiFeiFenXiDialogOpen(true)">违规费用分析</el-button>
-      <el-button type="primary" @click="exportExecl" icon="Download">导出 Execl</el-button>
-      <el-table :data="cptTableDataHuanZheFeiYong" :height="windowHeigth / 1.35" @selection-change="handleSelectionChange" highlight-current-row stripe>
+      <el-button type="primary" @click="exportExecl" icon="Download">导出 Excel</el-button>
+      <el-table :data="cptTableDataHuanZheFeiYong" :height="windowHeigth / 1.35"
+                @selection-change="handleSelectionChange" highlight-current-row stripe>
         <el-table-column type="selection"></el-table-column>
         <el-table-column label="流水号" prop="detailSn" width="70px"></el-table-column>
         <el-table-column label="医嘱号" prop="orderNo" width="70px"></el-table-column>
@@ -26,11 +27,11 @@
         <el-table-column label="账单码" prop="billItemName"></el-table-column>
         <el-table-column label="是否退费" prop="tuiFeiFlag">
           <template #default="scope">
-            <span v-if="scope.row.oriDetailSn === -1" style="color: red">已退费 <br /> </span>
+            <span v-if="scope.row.oriDetailSn === -1" style="color: red">已退费 <br/> </span>
             <span v-if="scope.row.oriDetailSn > 0"
-              ><span style="color: #e6a23c">退费数据</span> <br />
+            ><span style="color: #e6a23c">退费数据</span> <br/>
               <span style="color: teal">
-                原流水号为 <br />
+                原流水号为 <br/>
                 【 {{ scope.row.oriDetailSn }} 】
               </span>
             </span>
@@ -38,32 +39,33 @@
         </el-table-column>
       </el-table>
       <el-pagination
-        @size-change="handleSizeChange"
-        @current-change="handleCurrentChange"
-        :current-page="fenYe.currentPage"
-        :page-sizes="[20, 30, 40, 50, 100]"
-        :page-size="fenYe.pageSize"
-        layout="total, sizes, prev, pager, next, jumper"
-        :total="fenYe.total"
-        style="margin-top: 5px"
+          @size-change="handleSizeChange"
+          @current-change="handleCurrentChange"
+          :current-page="fenYe.currentPage"
+          :page-sizes="[20, 30, 40, 50, 100]"
+          :page-size="fenYe.pageSize"
+          layout="total, sizes, prev, pager, next, jumper"
+          :total="fenYe.total"
+          style="margin-top: 5px"
       ></el-pagination>
     </el-main>
     <el-dialog v-model="weiGuiTuiFeiFenXiDialog" title="违规费用分析" :fullscreen="true">
-      <wei-gui-fei-yong-fen-xi :init="weiGuiTuiFeiInit" @open="weiGuiTuiFeiOpenDialog" :patient="weiGuiJiBenXinXi"></wei-gui-fei-yong-fen-xi>
+      <wei-gui-fei-yong-fen-xi :init="weiGuiTuiFeiInit" @open="weiGuiTuiFeiOpenDialog"
+                               :patient="weiGuiJiBenXinXi"></wei-gui-fei-yong-fen-xi>
     </el-dialog>
   </el-container>
 </template>
 
 <script>
-import { ref, watch } from 'vue'
-import { costState } from '../../utils/computed'
+import {ref, watch} from 'vue'
+import {costState} from '../../utils/computed'
 import store from '@/store'
-import { getChargeCode, xiangMuTuiFei } from '@/api/yibao/xiang-mu-lu-ru'
+import {getChargeCode, xiangMuTuiFei} from '@/api/yibao/xiang-mu-lu-ru'
 import WeiGuiFeiYongFenXi from '@/components/inpatient/WeiGuiFeiYongFenXi.vue'
-import { ElMessage, ElMessageBox } from 'element-plus'
+import {ElMessage, ElMessageBox} from 'element-plus'
 
 export default {
-  components: { WeiGuiFeiYongFenXi },
+  components: {WeiGuiFeiYongFenXi},
   name: 'huanZheFeiYong',
   props: {
     init: {
@@ -84,23 +86,23 @@ export default {
     })
 
     watch(
-      () => props.init,
-      () => {
-        cptTableDataHuanZheFeiYong.value = props.init.records
-        fenYe.value.total = typeof props.init.total === 'undefined' ? 0 : props.init.total
-      }
+        () => props.init,
+        () => {
+          cptTableDataHuanZheFeiYong.value = props.init.records
+          fenYe.value.total = typeof props.init.total === 'undefined' ? 0 : props.init.total
+        }
     )
 
     // 分页
     const handleSizeChange = (val) => {
       fenYe.value.pageSize = val
       fenYe.value.currentPage = 1
-      ctx.emit('size', { val })
+      ctx.emit('size', {val})
     }
 
     const handleCurrentChange = (val) => {
       fenYe.value.currentPage = val
-      ctx.emit('current', { val })
+      ctx.emit('current', {val})
     }
 
     /**
@@ -134,21 +136,22 @@ export default {
           chargeAmount += props.patient.list[i].chargeAmount
         }
         ElMessageBox.confirm(
-          `退费数量为:<span style='color:red'>【${chargeAmount}】</span> ,总价格为:<span style='color:#E6A23C'>【${chargeFee.toFixed(2)}】</span>`,
-          '请认真核对',
-          {
-            confirmButtonText: '确定',
-            cancelButtonText: '取消',
-            type: 'warning',
-            dangerouslyUseHTMLString: true,
-          }
+            `退费数量为:<span style='color:red'>【${chargeAmount}】</span> ,总价格为:<span style='color:#E6A23C'>【${chargeFee.toFixed(2)}】</span>`,
+            '请认真核对',
+            {
+              confirmButtonText: '确定',
+              cancelButtonText: '取消',
+              type: 'warning',
+              dangerouslyUseHTMLString: true,
+            }
         )
-          .then(() => {
-            xiangMuTuiFei(props.patient).then((res) => {
-              ctx.emit('query-fei-yong')
+            .then(() => {
+              xiangMuTuiFei(props.patient).then((res) => {
+                ctx.emit('query-fei-yong')
+              })
+            })
+            .catch(() => {
             })
-          })
-          .catch(() => {})
       } catch (e) {
         ElMessage.error({
           message: '请选择退费数据',

+ 67 - 59
src/components/zhu-yuan-yi-sheng/TianJiaJianChaJianYan.vue

@@ -11,18 +11,19 @@
         <el-table-column label="操作">
           <template #default="scope">
             <el-button size="small" split-button type="primary" @click="ceBianLanDianJi('查看', scope.row)">查看</el-button>
-            <el-button v-if="chaZhaoLeiXing !== 1" type="danger" @click="ceBianLanDianJi('删除', scope.row)">删除 </el-button>
+            <el-button v-if="chaZhaoLeiXing !== 1" type="danger" @click="ceBianLanDianJi('删除', scope.row)">删除
+            </el-button>
           </template>
         </el-table-column>
       </el-table>
       <el-pagination
-        :current-page="jianChaFenLeiShuJu.currentPage"
-        :page-size="20"
-        :pager-count="5"
-        :total="jianChaFenLeiShuJu.total"
-        layout="prev,pager,next,total"
-        small
-        @current-change="jianChaFenLeiFenYe"
+          :current-page="jianChaFenLeiShuJu.currentPage"
+          :page-size="20"
+          :pager-count="5"
+          :total="jianChaFenLeiShuJu.total"
+          layout="prev,pager,next,total"
+          small
+          @current-change="jianChaFenLeiFenYe"
       >
       </el-pagination>
     </el-aside>
@@ -30,19 +31,16 @@
       <el-button icon="ArrowLeft" style="font-size: 14px" text @click="router.go(-1)">返回</el-button>
       <el-button @click="dianJiBaoCunShenQing">保存</el-button>
       <el-button @click="clickSaveTemplate">存为模板</el-button>
-      <cuo-wu-xin-xi />
-      <xc-code code="ctrl + s" description="保存" />
-      <xc-code code="ctrl + m" description="保存模板" />
-      <xc-code code="ctrl + 1" description="编辑项目" />
+      <cuo-wu-xin-xi/>
+      <xc-code code="ctrl + s" description="保存"/>
+      <xc-code code="ctrl + m" description="保存模板"/>
+      <xc-code code="ctrl + 1" description="编辑项目"/>
       <!--   这里是检查的数据信息     -->
       <el-table :data="xuanZhongJianCha.data" :header-cell-class-name="starAdd" :height="windowSize.h / 1.4">
         <el-table-column label="编辑" width="120" fixed="left">
           <template #default="scope">
             <el-button icon="Edit" round type="primary" @click="dianJiBianJi(scope.row, scope.$index)"></el-button>
-            <el-icon>
-              <Delete />
-              <el-button round type="danger" @click="deleteInspectionCheck(scope.$index)"> </el-button>
-            </el-icon>
+            <el-button icon="Delete" round type="danger" @click="deleteInspectionCheck(scope.$index)"></el-button>
           </template>
         </el-table-column>
         <el-table-column label="项目编码" prop="orderCode"></el-table-column>
@@ -112,11 +110,12 @@
       </el-row>
     </el-form>
   </el-dialog>
-  <bian-ji-jian-cha-shen-qing ref="bianJiRef" :jian-cha="jianCha" @fanYe="bianJiFanYe" @dialogCloses="initializationShortcut" />
+  <bian-ji-jian-cha-shen-qing ref="bianJiRef" :jian-cha="jianCha" @fanYe="bianJiFanYe"
+                              @dialogCloses="initializationShortcut"/>
 </template>
 
 <script setup name="TianJiaJianChaJianYan">
-import { computed, onMounted, ref } from 'vue'
+import {computed, onMounted, ref} from 'vue'
 import {
   baoCunJianChaJianYanMuBan,
   baoCunJianYanJianCha,
@@ -126,16 +125,21 @@ import {
   shanShuJianChaMuBan,
 } from '@/api/zhu-yuan-yi-sheng/jian-yan-jian-cha-shen-qing'
 import store from '@/store'
-import { clone } from '@/utils/clone'
-import { ElMessage, ElMessageBox } from 'element-plus'
-import { listNotBlank, stringNotBlank } from '@/utils/blank-utils'
-import BianJiJianChaShenQing from '@/views/hospitalization/zhu-yuan-yi-sheng/jian-cha-jian-yan-shen-qing/BianJiJianChaJianYanShenQing.vue'
-import { huanHangXianShi } from '@/utils/date'
-import { cuoWuXinXi, huanZheXinXi, youWuXuanZheHuanZhe } from '@/views/hospitalization/zhu-yuan-yi-sheng/public-js/zhu-yuan-yi-sheng'
+import {clone} from '@/utils/clone'
+import {ElMessage, ElMessageBox} from 'element-plus'
+import {listNotBlank, stringNotBlank} from '@/utils/blank-utils'
+import BianJiJianChaShenQing
+  from '@/views/hospitalization/zhu-yuan-yi-sheng/jian-cha-jian-yan-shen-qing/BianJiJianChaJianYanShenQing.vue'
+import {huanHangXianShi} from '@/utils/date'
+import {
+  cuoWuXinXi,
+  huanZheXinXi,
+  youWuXuanZheHuanZhe
+} from '@/views/hospitalization/zhu-yuan-yi-sheng/public-js/zhu-yuan-yi-sheng'
 import router from '@/router'
-import { yaoPinXiangMuPiPeiYiBao } from '@/api/public-api'
+import {yaoPinXiangMuPiPeiYiBao} from '@/api/public-api'
 import CuoWuXinXi from '@/components/zhu-yuan-yi-sheng/CuoWuXinXi.vue'
-import { logoutShortcut, xcHotKey } from '@/utils/xckeydown'
+import {logoutShortcut, xcHotKey} from '@/utils/xckeydown'
 import Sleep from '@/utils/sleep'
 
 const props = defineProps({
@@ -236,10 +240,11 @@ const dianJiBaoCunShenQing = () => {
         type: 'warning',
         dangerouslyUseHTMLString: true,
       })
-        .then(() => {
-          baoCunShuJu()
-        })
-        .catch(() => {})
+          .then(() => {
+            baoCunShuJu()
+          })
+          .catch(() => {
+          })
     } else {
       baoCunShuJu()
     }
@@ -250,23 +255,24 @@ function baoCunShuJu() {
   ElMessageBox.confirm('确定要保存这些数据吗?', '提示', {
     type: 'warning',
   })
-    .then(() => {
-      let data = huanZheXinXi.value
-      data.list = xuanZhongJianCha.value.data
-      data.reqType = props.jianCha ? 3 : 2
-      baoCunJianYanJianCha(data)
-        .then((res) => {
-          xuanZhongJianCha.value.weiBianMa = []
-          xuanZhongJianCha.value.data = []
-        })
-        .catch((e) => {
-          cuoWuXinXi.value = e
-        })
-    })
-    .catch(() => {})
+      .then(() => {
+        let data = huanZheXinXi.value
+        data.list = xuanZhongJianCha.value.data
+        data.reqType = props.jianCha ? 3 : 2
+        baoCunJianYanJianCha(data)
+            .then((res) => {
+              xuanZhongJianCha.value.weiBianMa = []
+              xuanZhongJianCha.value.data = []
+            })
+            .catch((e) => {
+              cuoWuXinXi.value = e
+            })
+      })
+      .catch(() => {
+      })
 }
 
-const ceBianLanDianJi = (name, { code, bwCode }) => {
+const ceBianLanDianJi = (name, {code, bwCode}) => {
   if (!props.jianCha) {
     bwCode = ''
   }
@@ -283,21 +289,22 @@ const ceBianLanDianJi = (name, { code, bwCode }) => {
     ElMessageBox.confirm('是否要删除该检查模板', '提示', {
       type: 'warning',
     })
-      .then(() => {
-        shanShuJianChaMuBan(code, store.state.user.info.deptCode)
-      })
-      .catch((e) => {})
+        .then(() => {
+          shanShuJianChaMuBan(code, store.state.user.info.deptCode)
+        })
+        .catch((e) => {
+        })
   }
 }
 
 const baoCunMuBanJiaoYan = ref({
   tcName: [
-    { required: true, message: '名称不能为空', trigger: 'blur' },
-    { min: 1, max: 30, message: '长度在 1 到 30 个字', trigger: 'blur' },
+    {required: true, message: '名称不能为空', trigger: 'blur'},
+    {min: 1, max: 30, message: '长度在 1 到 30 个字', trigger: 'blur'},
   ],
-  orderType: [{ required: true, message: '名称不能为空', trigger: 'blur' }],
-  sortNo: [{ required: true, message: '名称不能为空', trigger: 'blur' }],
-  tcFlag: [{ required: true, message: '名称不能为空', trigger: 'blur' }],
+  orderType: [{required: true, message: '名称不能为空', trigger: 'blur'}],
+  sortNo: [{required: true, message: '名称不能为空', trigger: 'blur'}],
+  tcFlag: [{required: true, message: '名称不能为空', trigger: 'blur'}],
 })
 
 const dianJiBaoCunMuBan = async (form) => {
@@ -312,10 +319,11 @@ const dianJiBaoCunMuBan = async (form) => {
           confirmButtonText: '覆盖',
           cancelButtonText: '取消',
         })
-          .then(() => {
-            faSongBaoCunMuBan()
-          })
-          .catch((e) => {})
+            .then(() => {
+              faSongBaoCunMuBan()
+            })
+            .catch((e) => {
+            })
       } else {
         faSongBaoCunMuBan()
       }
@@ -358,7 +366,7 @@ const shortcutToOpenEditing = () => {
 }
 
 let hotKeyList = {
-  ctrl: { s: dianJiBaoCunShenQing, m: clickSaveTemplate, 1: shortcutToOpenEditing },
+  ctrl: {s: dianJiBaoCunShenQing, m: clickSaveTemplate, 1: shortcutToOpenEditing},
 }
 
 /**

+ 25 - 22
src/components/zhu-yuan-yi-sheng/yi-zhu-lu-ru/SouSuoYiZhu.vue

@@ -1,8 +1,9 @@
 <template>
   <el-dialog v-model="dialog" title="搜索医嘱" width="95%" @close="emit('close')">
-    <el-input ref="searchInput" v-model="orderName" autofocus clearable style="width: 220px" @keyup.enter="dianJiChaXunYiZhu"></el-input>
+    <el-input ref="searchInput" v-model="orderName" autofocus clearable style="width: 220px"
+              @keyup.enter="dianJiChaXunYiZhu"></el-input>
     <el-button icon="Search" type="primary" @click="dianJiChaXunYiZhu">搜索</el-button>
-    <xc-code code="ctrl+1" description="重新获取焦点" />
+    <xc-code code="ctrl+1" description="重新获取焦点"/>
     <xc-code code="Alt+↓/↑" description="上下选择"></xc-code>
     <xc-code code="Alt+←/→" description="左右翻页"></xc-code>
     <xc-code code="Alt+Enter" description="选中"></xc-code>
@@ -29,37 +30,34 @@
       <el-table-column label="药品详情">
         <template #default="scope">
           <el-button
-            v-if="scope.row.serial !== '00'"
-            @click="
-              yaoPinXiangQing.dialog = true
-              yaoPinXiangQing.code = scope.row.orderCode.trim() + '_' + scope.row.serial.trim()
-            "
-          >
+              v-if="scope.row.serial !== '00'"
+              @click="queryDrugDetails(scope.row.orderCode.trim() + '_' + scope.row.serial.trim())">
             药品详情
           </el-button>
         </template>
       </el-table-column>
     </el-table>
     <el-pagination
-      :current-page="orderData.currentPage"
-      :page-size="orderData.pageSize"
-      :total="orderData.data.length"
-      layout="total,prev,pager,next,jumper"
-      @current-change="orderDataCurrent"
-      ref="pageRef"
+        :current-page="orderData.currentPage"
+        :page-size="orderData.pageSize"
+        :total="orderData.data.length"
+        layout="total,prev,pager,next,jumper"
+        @current-change="orderDataCurrent"
+        ref="pageRef"
     >
     </el-pagination>
-    <yao-ping-xiang-qing v-if="yaoPinXiangQing.dialog" :code="yaoPinXiangQing.code" @close="yaoPinXiangQing.dialog = false"></yao-ping-xiang-qing>
+    <yao-ping-xiang-qing v-if="yaoPinXiangQing.dialog" :code="yaoPinXiangQing.code"
+                         @close="yaoPinXiangQing.dialog = false"></yao-ping-xiang-qing>
   </el-dialog>
 </template>
 
 <script name="SouSuoYiZhu" setup>
-import { huoQuXiangMu } from '@/api/zhu-yuan-yi-sheng/yi-zhu-lu-ru'
-import { computed, ref } from 'vue'
+import {huoQuXiangMu} from '@/api/zhu-yuan-yi-sheng/yi-zhu-lu-ru'
+import {computed, ref} from 'vue'
 import store from '@/store'
 import YaoPingXiangQing from '@/components/zhu-yuan-yi-sheng/he-li-yong-yao/YaoPingXiangQing.vue'
-import { xcHotKey } from '@/utils/xckeydown'
-import { ElMessage } from 'element-plus'
+import {xcHotKey} from '@/utils/xckeydown'
+import {ElMessage} from 'element-plus'
 import Sleep from '@/utils/sleep'
 
 const emit = defineEmits(['xuanZhongFeiYong', 'close'])
@@ -94,12 +92,17 @@ const dianJiChaXunYiZhu = () => {
   })
 }
 
+const queryDrugDetails = (code) => {
+  yaoPinXiangQing.dialog = true;
+  yaoPinXiangQing.code = code
+}
+
 const orderDataCurrent = (val) => {
   dataIndex = 0
   orderData.value.currentPage = val
 }
 
-const tableRowClassName = ({ row, rowIndex }) => {
+const tableRowClassName = ({row, rowIndex}) => {
   if (dataIndex === rowIndex) {
     return 'input_and_table_to_be_selected'
   }
@@ -165,8 +168,8 @@ const regainFocus = () => {
 }
 
 let registerShortcuts = {
-  alt: { direction: direction, Enter: enter, q: viewDrugUsage },
-  ctrl: { 1: regainFocus },
+  alt: {direction: direction, Enter: enter, q: viewDrugUsage},
+  ctrl: {1: regainFocus},
 }
 
 const hotKey = () => {

+ 18 - 17
src/views/hospitalization/zhu-yuan-yi-sheng/HuiZhenShenQing.vue

@@ -26,19 +26,19 @@
         <el-table-column fixed="right" label="操作" width="150">
           <template #default="scope">
             <el-popconfirm
-              cancel-button-text="取消"
-              confirm-button-text="确定"
-              icon="Info"
-              icon-color="red"
-              title="确定要删除吗?"
-              @confirm="shanChuHuiZhenShenQingClick(scope.$index, scope.row)"
+                cancel-button-text="取消"
+                confirm-button-text="确定"
+                icon="Info"
+                icon-color="red"
+                title="确定要删除吗?"
+                @confirm="shanChuHuiZhenShenQingClick(scope.$index, scope.row)"
             >
               <template #reference>
                 <el-button :disabled="scope.row.statusFlag === '2'" circle icon="Delete" type="danger"></el-button>
               </template>
             </el-popconfirm>
             <el-button circle icon="View" @click="chaKanHuiZhenDan(scope.row)"></el-button>
-            <el-button circle icon="iconfont icon-dayin" @click="dianJiDaYingHuiZhen(scope.row)"></el-button>
+            <el-button circle class="iconfont icon-dayin" @click="dianJiDaYingHuiZhen(scope.row)"></el-button>
           </template>
         </el-table-column>
       </el-table>
@@ -46,21 +46,22 @@
     <el-dialog v-model="huiZhenXiangQingDuiHua" title="会诊详情" width="920px">
       <da-ying-hui-zhen ref="daYingHuiZhenRef" :lai-yuan="2"></da-ying-hui-zhen>
     </el-dialog>
-    <tian-jia-hui-zhen-shen-qing v-if="daKaiHuiZhenShenQing" ref="tianJiaHuiZhen" @close="daKaiHuiZhenShenQing = false"></tian-jia-hui-zhen-shen-qing>
+    <tian-jia-hui-zhen-shen-qing v-if="daKaiHuiZhenShenQing" ref="tianJiaHuiZhen"
+                                 @close="daKaiHuiZhenShenQing = false"></tian-jia-hui-zhen-shen-qing>
   </el-container>
 </template>
 <script>
 import TianJiaHuiZhenShenQing from '@/components/zhu-yuan-yi-sheng/hui-zhen-shen-qing/TianJiaHuiZhenShenQing.vue'
-import { computed, onActivated, ref, watch } from 'vue'
-import { chaKanHuiZhenShenQing, shanChuHuiZhenShenQing } from '@/api/case-front-sheet'
-import { huanZheXinXi, youWuXuanZheHuanZhe } from '@/views/hospitalization/zhu-yuan-yi-sheng/public-js/zhu-yuan-yi-sheng'
+import {computed, onActivated, ref, watch} from 'vue'
+import {chaKanHuiZhenShenQing, shanChuHuiZhenShenQing} from '@/api/case-front-sheet'
+import {huanZheXinXi, youWuXuanZheHuanZhe} from '@/views/hospitalization/zhu-yuan-yi-sheng/public-js/zhu-yuan-yi-sheng'
 import store from '@/store'
 import DaYingHuiZhen from '@/components/hui-zhen-da-ying/DaYingHuiZhen.vue'
-import { getHuanZheXinXi } from '@/api/case-front-sheet/jie-shou-hui-zhen'
+import {getHuanZheXinXi} from '@/api/case-front-sheet/jie-shou-hui-zhen'
 
 export default {
   name: 'HuiZhenShenQing',
-  components: { DaYingHuiZhen, TianJiaHuiZhenShenQing },
+  components: {DaYingHuiZhen, TianJiaHuiZhenShenQing},
   setup() {
     const windowSize = computed(() => {
       return store.state.app.windowSize
@@ -117,10 +118,10 @@ export default {
     }
 
     watch(
-      () => huanZheXinXi.value,
-      () => {
-        chaKanHuiZhenShenQingClick()
-      }
+        () => huanZheXinXi.value,
+        () => {
+          chaKanHuiZhenShenQingClick()
+        }
     )
 
     onActivated(() => {

+ 71 - 51
src/views/hospitalization/zhu-yuan-yi-sheng/cao-yao-yi-zhu/XinZhengCaoYao.vue

@@ -7,7 +7,7 @@
       <el-button :disabled="mingXi.list.length === 0" type="success" @click="cunMuBan.dialog = true">存模板</el-button>
       <el-divider direction="vertical"></el-divider>
       <el-button :disabled="mingXi.list.length === 0" type="success" @click="dianJiBaoCunCaoYao">保存数据</el-button>
-      <cuo-wu-xin-xi />
+      <cuo-wu-xin-xi/>
     </el-header>
     <el-main>
       <el-form label-width="120px">
@@ -40,7 +40,8 @@
           <el-col :span="6">
             <el-form-item label="类型:">
               <el-select v-model="chuFang.cyJssm" clearable filterable size="small" style="width: 120px">
-                <el-option v-for="item in jiaShuiLeiXing" :key="item.code" :label="item.name" :value="item.code"></el-option>
+                <el-option v-for="item in jiaShuiLeiXing" :key="item.code" :label="item.name"
+                           :value="item.code"></el-option>
               </el-select>
             </el-form-item>
           </el-col>
@@ -78,14 +79,14 @@
           <el-col :span="6">
             <el-form-item class="bi_tian" label="药房:">
               <el-switch
-                v-model="chuFang.groupNo"
-                active-color="#13ce66"
-                active-text="中药颗粒"
-                active-value="82"
-                inactive-color="#fbbd08"
-                inactive-text="草药"
-                inactive-value="81"
-                @change="clearHerbalInformation"
+                  v-model="chuFang.groupNo"
+                  active-color="#13ce66"
+                  active-text="中药颗粒"
+                  active-value="82"
+                  inactive-color="#fbbd08"
+                  inactive-text="草药"
+                  inactive-value="81"
+                  @change="clearHerbalInformation"
               >
               </el-switch>
             </el-form-item>
@@ -112,7 +113,8 @@
           </el-col>
           <el-col :span="6">
             <el-form-item label="说明:">
-              <el-input v-model="caoYao.instruction" :maxlength="30" clearable show-word-limit type="textarea"></el-input>
+              <el-input v-model="caoYao.instruction" :maxlength="30" clearable show-word-limit
+                        type="textarea"></el-input>
             </el-form-item>
           </el-col>
         </el-row>
@@ -136,12 +138,11 @@
         <el-table-column label="操作">
           <template #default="scope">
             <el-button
-              circle
-              icon="Delete"
-              type="danger"
-              @click="
-                mingXi.weiYi.splice(scope.$index, 1)
-                mingXi.list.splice(scope.$index, 1)
+                circle
+                icon="Delete"
+                type="danger"
+                @click="
+                removeHerbs(scope.$index)
               "
             >
             </el-button>
@@ -151,32 +152,39 @@
     </el-main>
   </el-container>
   <!--搜索草药弹框-->
-  <cha-xuan-cao-yao v-if="chaXunCaoYaoZuJian" :group-no="chuFang.groupNo" @close="chaXunCaoYaoZuJian = false" @xuanZhongShuJu="dianJiXuanZhongCaoYao"></cha-xuan-cao-yao>
+  <cha-xuan-cao-yao v-if="chaXunCaoYaoZuJian" :group-no="chuFang.groupNo" @close="chaXunCaoYaoZuJian = false"
+                    @xuanZhongShuJu="dianJiXuanZhongCaoYao"></cha-xuan-cao-yao>
   <!-- 获取草药模板 -->
-  <cao-yao-mu-ban v-if="muBanZuJian" @close="muBanZuJian = false" @xuanZhongShuJu="dianJiXuanZhongMuBanShuJu"></cao-yao-mu-ban>
+  <cao-yao-mu-ban v-if="muBanZuJian" @close="muBanZuJian = false"
+                  @xuanZhongShuJu="dianJiXuanZhongMuBanShuJu"></cao-yao-mu-ban>
   <!-- 下面是新增模板 -->
   <el-dialog v-model="cunMuBan.dialog" center title="存模板">
     模板名称:
-    <el-input v-model="cunMuBan.patternName" clearable maxlength="30" show-word-limit @keyup.enter="dianJiCunMuBan"></el-input>
+    <el-input v-model="cunMuBan.patternName" clearable maxlength="30" show-word-limit
+              @keyup.enter="dianJiCunMuBan"></el-input>
   </el-dialog>
 </template>
 
 <script>
 import router from '@/router'
-import { computed, onMounted, ref, watch } from 'vue'
-import { cuoWuXinXi, huanZheXinXi, youWuXuanZheHuanZhe } from '@/views/hospitalization/zhu-yuan-yi-sheng/public-js/zhu-yuan-yi-sheng'
-import { baoCunCaoYao, chongFuMuBanMing, cunMuBanApi, fuYongFangFa } from '@/api/zhu-yuan-yi-sheng/cao-yao-yi-zhu'
+import {computed, onMounted, ref, watch} from 'vue'
+import {
+  cuoWuXinXi,
+  huanZheXinXi,
+  youWuXuanZheHuanZhe
+} from '@/views/hospitalization/zhu-yuan-yi-sheng/public-js/zhu-yuan-yi-sheng'
+import {baoCunCaoYao, chongFuMuBanMing, cunMuBanApi, fuYongFangFa} from '@/api/zhu-yuan-yi-sheng/cao-yao-yi-zhu'
 import store from '@/store'
-import { ElMessage, ElMessageBox } from 'element-plus'
-import { stringIsBlank, stringNotBlank } from '@/utils/blank-utils'
+import {ElMessage, ElMessageBox} from 'element-plus'
+import {stringIsBlank, stringNotBlank} from '@/utils/blank-utils'
 import ChaXuanCaoYao from '@/components/zhu-yuan-yi-sheng/cao-yao-yi-zhu/ChaXuanCaoYao.vue'
 import CaoYaoMuBan from '@/components/zhu-yuan-yi-sheng/cao-yao-yi-zhu/CaoYaoMuBan.vue'
-import { yaoPinXiangMuPiPeiYiBao } from '@/api/public-api'
+import {yaoPinXiangMuPiPeiYiBao} from '@/api/public-api'
 import CuoWuXinXi from '@/components/zhu-yuan-yi-sheng/CuoWuXinXi.vue'
 
 export default {
   name: 'XinZhenCaoYao',
-  components: { CuoWuXinXi, CaoYaoMuBan, ChaXuanCaoYao },
+  components: {CuoWuXinXi, CaoYaoMuBan, ChaXuanCaoYao},
   setup() {
     const windowSize = computed(() => {
       return store.state.app.windowSize
@@ -221,6 +229,15 @@ export default {
 
     const chaXunCaoYaoZuJian = ref(false)
 
+    /**
+     * 删除草药下标
+     * @param index
+     */
+    const removeHerbs = (index) => {
+      mingXi.weiYi.splice(index, 1);
+      mingXi.list.splice(index, 1)
+    }
+
     /**
      * 查询草药信息中的 搜索框
      * @type {null}
@@ -250,10 +267,10 @@ export default {
     }
 
     watch(
-      () => caoYao.value.quantity,
-      () => {
-        caoYao.value.je = (caoYao.value.quantity * caoYao.value.retprice).toFixed(2)
-      }
+        () => caoYao.value.quantity,
+        () => {
+          caoYao.value.je = (caoYao.value.quantity * caoYao.value.retprice).toFixed(2)
+        }
     )
 
     /**
@@ -342,10 +359,11 @@ export default {
             type: 'warning',
             dangerouslyUseHTMLString: true,
           })
-            .then(() => {
-              baoCunShuJu()
-            })
-            .catch(() => {})
+              .then(() => {
+                baoCunShuJu()
+              })
+              .catch(() => {
+              })
         } else {
           baoCunShuJu()
         }
@@ -356,17 +374,18 @@ export default {
       ElMessageBox.confirm(chuFang.value.quantity > 20 ? '剂数大于20是否继续录入?' : '请确定好数据?', '提示', {
         type: 'warning',
       })
-        .then(() => {
-          let data = chuFang.value
-          data.inpatientNo = huanZheXinXi.value.inpatientNo
-          data.admissTimes = huanZheXinXi.value.admissTimes
-          data.list = mingXi.value.list
-          data.deptCode = store.state.user.info.deptCode
-          baoCunCaoYao(data).then((res) => {
-            router.go(-1)
+          .then(() => {
+            let data = chuFang.value
+            data.inpatientNo = huanZheXinXi.value.inpatientNo
+            data.admissTimes = huanZheXinXi.value.admissTimes
+            data.list = mingXi.value.list
+            data.deptCode = store.state.user.info.deptCode
+            baoCunCaoYao(data).then((res) => {
+              router.go(-1)
+            })
+          })
+          .catch(() => {
           })
-        })
-        .catch(() => {})
     }
 
     const clearHerbalInformation = () => {
@@ -385,12 +404,12 @@ export default {
       chuFang,
       huanZheXinXi,
       jiaShuiLeiXing: [
-        { code: '加凉水', name: '加凉水' },
-        { code: '加温水', name: '加温水' },
-        { code: '加开水', name: '加开水' },
-        { code: '加冰水', name: '加冰水' },
-        { code: '加外糖水', name: '加外糖水' },
-        { code: '外敷', name: '外敷' },
+        {code: '加凉水', name: '加凉水'},
+        {code: '加温水', name: '加温水'},
+        {code: '加开水', name: '加开水'},
+        {code: '加冰水', name: '加冰水'},
+        {code: '加外糖水', name: '加外糖水'},
+        {code: '外敷', name: '外敷'},
       ],
       fuYongFangFaShuJu,
       mingXi,
@@ -406,6 +425,7 @@ export default {
       muBanZuJian,
       dianJiXuanZhongMuBanShuJu,
       clearHerbalInformation,
+      removeHerbs
     }
   },
 }

+ 58 - 59
src/views/hospitalization/zhu-yuan-yi-sheng/jian-cha-jian-yan-shen-qing/BianJiJianChaJianYanShenQing.vue

@@ -1,8 +1,9 @@
 <template>
   <el-dialog v-model="dialog" title="编辑检查" @close="guanBi">
-    <xc-code code="alt + ← / →" description="上下翻页" />
-    <xc-code code="ctrl + s" description="保存" />
-    <el-pagination :current-page="index" :page-size="1" :total="count" background layout="total,  prev, pager, next" @current-change="bianJiFenYe"> </el-pagination>
+    <xc-code code="alt + ← / →" description="上下翻页"/>
+    <xc-code code="ctrl + s" description="保存"/>
+    <el-pagination :current-page="index" :page-size="1" :total="count" background layout="total,  prev, pager, next"
+                   @current-change="bianJiFenYe"></el-pagination>
     <el-form label-width="100px" size="small">
       <el-row>
         <el-col :span="12">
@@ -18,12 +19,12 @@
         <el-col :span="12">
           <el-form-item class="bi_tian" label="检查时间:">
             <el-date-picker
-              v-model="bianJiJianChaShuJu.startTime"
-              ref="checkTheTimeRef"
-              format="YYYY-MM-DD HH:mm:ss"
-              style="width: 180px"
-              type="datetime"
-              value-format="YYYY-MM-DD HH:mm:ss"
+                v-model="bianJiJianChaShuJu.startTime"
+                ref="checkTheTimeRef"
+                format="YYYY-MM-DD HH:mm:ss"
+                style="width: 180px"
+                type="datetime"
+                value-format="YYYY-MM-DD HH:mm:ss"
             >
             </el-date-picker>
           </el-form-item>
@@ -36,13 +37,13 @@
         <el-col :span="12">
           <el-form-item label="急诊:">
             <el-switch
-              v-model="bianJiJianChaShuJu.jzFlag"
-              :active-value="1"
-              :inactive-value="null"
-              active-color="#13ce66"
-              active-text="急诊"
-              inactive-color="#ff4949"
-              inactive-text="普通"
+                v-model="bianJiJianChaShuJu.jzFlag"
+                :active-value="1"
+                :inactive-value="null"
+                active-color="#13ce66"
+                active-text="急诊"
+                inactive-color="#ff4949"
+                inactive-text="普通"
             >
             </el-switch>
           </el-form-item>
@@ -50,20 +51,21 @@
         <el-col :span="12">
           <el-form-item label="自费:">
             <el-switch
-              v-model="bianJiJianChaShuJu.ybSelfFlag"
-              :active-value="1"
-              :inactive-value="null"
-              active-color="#13ce66"
-              active-text="急诊"
-              inactive-color="#ff4949"
-              inactive-text="普通"
+                v-model="bianJiJianChaShuJu.ybSelfFlag"
+                :active-value="1"
+                :inactive-value="null"
+                active-color="#13ce66"
+                active-text="急诊"
+                inactive-color="#ff4949"
+                inactive-text="普通"
             >
             </el-switch>
           </el-form-item>
         </el-col>
         <el-col :span="24">
           <el-form-item v-if="!jianCha" class="bi_tian" label="标本:">
-            <el-select v-model="bianJiJianChaShuJu.inspectStuff" :remote-method="biaoBenSouSuo" clearable filterable remote @change="bianBenMing">
+            <el-select v-model="bianJiJianChaShuJu.inspectStuff" :remote-method="biaoBenSouSuo" clearable filterable
+                       remote @change="bianBenMing">
               <el-option v-for="item in biaoBenShuJu" :key="item.code" :label="item.name" :value="item.code">
                 <span style="color: #8492a6; font-size: 12px">{{ item.code }}</span>
                 <el-divider direction="vertical"></el-divider>
@@ -74,7 +76,8 @@
         </el-col>
         <el-col :span="12">
           <el-form-item :label="jianCha ? '病室摘要:' : '申请说明'" class="bi_tian">
-            <el-input v-model="bianJiJianChaShuJu.reqComment" :rows="6" maxlength="125" show-word-limit type="textarea"></el-input>
+            <el-input v-model="bianJiJianChaShuJu.reqComment" :rows="6" maxlength="125" show-word-limit
+                      type="textarea"></el-input>
           </el-form-item>
         </el-col>
         <el-col v-if="jianCha" :span="12">
@@ -82,31 +85,34 @@
         </el-col>
         <el-col v-if="jianCha" :span="24">
           <el-form-item class="bi_tian" label="体征信息:">
-            <el-input v-model="bianJiJianChaShuJu.reqTzComment" :rows="6" maxlength="125" show-word-limit type="textarea"></el-input>
+            <el-input v-model="bianJiJianChaShuJu.reqTzComment" :rows="6" maxlength="125" show-word-limit
+                      type="textarea"></el-input>
           </el-form-item>
         </el-col>
         <el-col v-if="jianCha" :span="24">
           <el-form-item class="bi_tian" label="相关辅检结果:">
-            <el-input v-model="bianJiJianChaShuJu.reqOtherResult" :rows="6" maxlength="125" show-word-limit type="textarea"></el-input>
+            <el-input v-model="bianJiJianChaShuJu.reqOtherResult" :rows="6" maxlength="125" show-word-limit
+                      type="textarea"></el-input>
           </el-form-item>
         </el-col>
         <el-col v-if="jianCha" :span="12">
           <el-form-item ::required="true" label="临床诊断:">
-            <el-select v-model="bianJiJianChaShuJu.diagCode" :remote-method="linChuangZhenDuanSuoSou" clearable filterable remote size="small" @change="huoQuXiangXiZhenDuan">
+            <el-select v-model="bianJiJianChaShuJu.diagCode" :remote-method="linChuangZhenDuanSuoSou" clearable
+                       filterable remote size="small" @change="huoQuXiangXiZhenDuan">
               <el-pagination
-                :current-page="linChuangDangQianYe"
-                :page-size="20"
-                :pager-count="7"
-                :total="linChuangZhenDuanShuJu.length"
-                layout="total,  prev, pager, next"
-                @current-change="linChuangFanYe"
+                  :current-page="linChuangDangQianYe"
+                  :page-size="20"
+                  :pager-count="7"
+                  :total="linChuangZhenDuanShuJu.length"
+                  layout="total,  prev, pager, next"
+                  @current-change="linChuangFanYe"
               >
               </el-pagination>
               <el-option
-                v-for="item in linChuangZhenDuanShuJu.slice((linChuangDangQianYe - 1) * 20, linChuangDangQianYe * 20)"
-                :key="item.code"
-                :label="item.name"
-                :value="item.code"
+                  v-for="item in linChuangZhenDuanShuJu.slice((linChuangDangQianYe - 1) * 20, linChuangDangQianYe * 20)"
+                  :key="item.code"
+                  :label="item.name"
+                  :value="item.code"
               >
                 <span style="color: #8492a6; font-size: 12px">{{ item.code }}</span>
                 <el-divider direction="vertical"></el-divider>
@@ -116,7 +122,8 @@
           </el-form-item>
         </el-col>
         <el-col v-if="jianCha" :span="12">
-          <el-switch v-model="zhenDuanLaiYuan" :active-value="true" :inactive-value="false" active-color="#13ce66" active-text="医保" inactive-color="#ff4949" inactive-text="本院">
+          <el-switch v-model="zhenDuanLaiYuan" :active-value="true" :inactive-value="false" active-color="#13ce66"
+                     active-text="医保" inactive-color="#ff4949" inactive-text="本院">
           </el-switch>
         </el-col>
         <el-col :offset="20" :span="24">
@@ -129,14 +136,13 @@
 </template>
 
 <script setup name="BianJiJianChaShenQing">
-import { computed, ref } from 'vue'
+import {computed, ref} from 'vue'
 import store from '@/store'
 import ShuoMingMuBan from '@/components/zhu-yuan-yi-sheng/jian-cha-shen-qing/ShuoMingMuBan.vue'
-import { ElMessage } from 'element-plus'
-import { stringIsBlank, stringNotBlank } from '@/utils/blank-utils'
-import { biaoBenApi, huoQuLinChuangZhenDuan } from '@/api/zhu-yuan-yi-sheng/jian-yan-jian-cha-shen-qing'
-import { logoutShortcut, xcHotKey } from '@/utils/xckeydown'
-import Sleep from '@/utils/sleep'
+import {ElMessage} from 'element-plus'
+import {stringIsBlank, stringNotBlank} from '@/utils/blank-utils'
+import {biaoBenApi, huoQuLinChuangZhenDuan} from '@/api/zhu-yuan-yi-sheng/jian-yan-jian-cha-shen-qing'
+import {logoutShortcut, xcHotKey} from '@/utils/xckeydown'
 
 const props = defineProps({
   jianCha: {
@@ -165,8 +171,8 @@ const guanBi = () => {
 }
 
 let hotKeyList = {
-  alt: { ArrowRight: nextPage, ArrowLeft: previousPage },
-  ctrl: { s: guanBi },
+  alt: {ArrowRight: nextPage, ArrowLeft: previousPage},
+  ctrl: {s: guanBi},
 }
 
 const enableShortcutKeys = () => {
@@ -188,14 +194,7 @@ let checkTheTimeRef = $ref(null)
 const count = ref(0)
 const index = ref(0)
 
-const shuoMingMuBan = ref({
-  dialog: true,
-  data: [],
-  currentPage: 1,
-  total: 0,
-  leiXing: 2,
-  name: '',
-})
+
 // 诊断来源
 const zhenDuanLaiYuan = ref(false)
 
@@ -204,11 +203,11 @@ const daKaiBenDuiHua = async (val, xiaBiao, zhongShu) => {
   count.value = zhongShu
   bianJiJianChaShuJu.value = val
   if (stringNotBlank(val.diagCode)) {
-    linChuangZhenDuanShuJu.value.push({ code: val.diagCode, name: val.diagText })
+    linChuangZhenDuanShuJu.value.push({code: val.diagCode, name: val.diagText})
   }
   if (!props.jianCha) {
     if (stringNotBlank(val.inspectStuffName)) {
-      biaoBenShuJu.value.push({ code: val.inspectStuff, name: val.inspectStuffName })
+      biaoBenShuJu.value.push({code: val.inspectStuff, name: val.inspectStuffName})
     }
   }
   dialog.value = true
@@ -254,7 +253,7 @@ const bianJiFenYe = async (val) => {
   biaoBenShuJu.value = []
   linChuangZhenDuanShuJu.value = []
   index.value = val
-  emit('fan-ye', { val })
+  emit('fan-ye', {val})
 }
 
 const linChuangFanYe = (val) => {
@@ -276,7 +275,7 @@ const biaoBenSouSuo = (val) => {
   }
 }
 
-defineExpose({ daKaiBenDuiHua })
+defineExpose({daKaiBenDuiHua})
 </script>
 
 <style scoped></style>