瀏覽代碼

优化和修改代码

xiaochan 2 年之前
父節點
當前提交
3bb01e4525

+ 9 - 0
src/api/zhu-yuan-yi-sheng/yi-zhu-lu-ru.js

@@ -279,3 +279,12 @@ export function doctorAuthorizationLogin(data) {
 }
 
 
+export function updateOrderInstruction(orderNo, str) {
+    return request({
+        url: url + '/updateOrderInstruction',
+        method: 'get',
+        params: {orderNo, str}
+    })
+}
+
+

+ 1 - 0
src/components/xiao-chan/combo-grid/XcComboGrid.vue

@@ -6,6 +6,7 @@
                 :visible="tableConfig.isShow">
       <template #reference>
         <el-input
+            :title="isObj ? props.modelValue[props.name] : props.modelValue"
             ref="inputRef"
             :placeholder="placeholder"
             @input="queryData"

+ 5 - 8
src/components/zhu-yuan-yi-sheng/jian-cha-shen-qing/TianJiaJianYan.vue

@@ -192,14 +192,12 @@ function baoCunShuJu() {
 const clickDeleteTemplate = (data) => {
   ElMessageBox.confirm('是否要删除该模板', '提示', {
     type: 'warning',
+  }).then(() => {
+    shanShuJianChaMuBan(data.code, store.state.user.info.deptCode).then(() => {
+      dianJiLeiXingChaXun()
+    })
+  }).catch(() => {
   })
-      .then(() => {
-        shanShuJianChaMuBan(data.code, store.state.user.info.deptCode).then(() => {
-          dianJiLeiXingChaXun()
-        })
-      })
-      .catch(() => {
-      })
 }
 
 const baoCunMuBanJiaoYan = ref({
@@ -288,7 +286,6 @@ const nodeClick = async (val) => {
 onMounted(() => {
 
   yzMitt.on('jySave', () => {
-
     function error() {
       if (stringNotBlank(huanZheXinXi.value.inpatientNo)) {
         BizException(ExceptionEnum.LOGICAL_ERROR, "根据病理科要求,检验有病理项目需要填写,病史摘要、体征信息、相关辅检结果、临床诊断。")

+ 23 - 14
src/components/zhu-yuan-yi-sheng/shou-shu-shen-qing/BianJiShouShu.vue

@@ -4,6 +4,7 @@
       <el-col :span="12">
         <el-form-item label="手术" prop="opCode">
           <xc-select-v3 v-model="props.data"
+                        @row-click="buildOrderName"
                         code="opCode"
                         name="opName"
                         :data="surgicalItems"
@@ -21,8 +22,12 @@
       </el-col>
       <el-col :span="12">
         <el-form-item label="手术时间" prop="opDatetime">
-          <el-date-picker v-model="props.data.opDatetime" format="YYYY-MM-DD HH:mm:ss"
-                          placeholder="time" type="datetime" value-format="YYYY-MM-DD HH:mm:ss"></el-date-picker>
+          <el-date-picker v-model="props.data.opDatetime"
+                          @change="buildOrderName"
+                          format="YYYY-MM-DD HH:mm:ss"
+                          placeholder="time"
+                          type="datetime"
+                          value-format="YYYY-MM-DD HH:mm:ss"/>
         </el-form-item>
       </el-col>
       <el-col :span="12">
@@ -93,6 +98,7 @@
         <el-form-item label="麻醉方式">
           <xc-select-v3 v-model="props.data"
                         code="hocusCode"
+                        @row-click="buildOrderName"
                         name="hocusCodeName"
                         :data="props.anestheticMode"/>
         </el-form-item>
@@ -181,11 +187,21 @@
           </xc-select-v3>
         </el-form-item>
       </el-col>
+      <el-col :span="24">
+        <el-form-item label="医嘱名:">
+          <el-input style="width: 220px"
+                    :rows="3"
+                    type="textarea"
+                    show-word-limit
+                    maxlength="50"
+                    v-model="props.data.orderName"/>
+        </el-form-item>
+      </el-col>
       <el-col :span="24">
         <el-form-item label="附注说明">
           <el-input v-model="props.data.remark" :rows="6" maxlength="50" show-word-limit
                     style="width: 450px;"
-                    type="textarea"></el-input>
+                    type="textarea"/>
         </el-form-item>
       </el-col>
     </el-row>
@@ -201,6 +217,7 @@ import moment from "moment";
 import {ElMessage} from "element-plus";
 import XcSelectV3 from "@/components/xiao-chan/select-v3/XcSelectV3.vue";
 import XcTableColumn from "@/components/xiao-chan/select-v3/XcTableColumn";
+import {getFormatDatetime} from "@/utils/date";
 
 const props = defineProps({
   anestheticMode: {
@@ -279,19 +296,11 @@ const jiaoYanGuiZe = ref({
 })
 
 
-const clickToAddSurgery = async () => {
-  const form = unref(shouShuBiaoGe);
-  if (!form) return
-  try {
-    await form.validate()
-    console.log('校验通过')
-    console.log(props.data)
-  } catch (e) {
-    ElMessage.error('请检查数据。')
-  }
+const buildOrderName = () => {
+  let temp = `拟于${getFormatDatetime(props.data.opDatetime, 'YYYY-MM-DD HH:mm')}在${props.data.hocusCodeName === null ? '' : props.data.hocusCodeName}下行${props.data.opName}`
+  props.data.orderName = temp
 }
 
-
 const shouShuDengJi = [
   {code: 1, name: '四级'},
   {code: 2, name: '三级'},

+ 28 - 6
src/components/zhu-yuan-yi-sheng/yi-zhu-lu-ru/table/YzTableV2.vue

@@ -34,6 +34,7 @@ import RightClickMenu from "@/components/menu-item/RightClickMenu.vue";
 import {nullToEmpty} from "@/utils/public";
 import {ElIcon} from "element-plus";
 import {DocumentCopy} from "@element-plus/icons-vue";
+import {updateOrderInstruction} from "@/api/zhu-yuan-yi-sheng/yi-zhu-lu-ru";
 
 const emits = defineEmits(['rowClick', 'clickAssociate', 'voidOrders'])
 
@@ -124,7 +125,33 @@ const header = [
   },
   {code: 'groupNoName', name: '药房', width: 91},
   {code: 'serial', name: '序号', width: 35},
-  {code: 'instruction', name: '嘱托', width: 150},
+  {
+    code: 'instruction', name: '嘱托', width: 180, cellRenderer: ({data}) => {
+      if ((data.statusFlag === '1' || data.statusFlag === '2')) {
+        return h('input', {
+          value: data.instruction,
+          title: data.instruction,
+          style: {
+            width: '160px'
+          },
+          maxlength: 50,
+          onInput: (event) => {
+            data.instruction = event.target.value
+          },
+          onclick: (event) => {
+            event.stopPropagation()
+          },
+          onKeydown: (event) => {
+            if (event.code === 'Enter' || event.keyCode === '13') {
+              updateOrderInstruction(data.actOrderNo, data.instruction)
+            }
+          },
+        }, null)
+      } else {
+        return h('span', null, data.instruction)
+      }
+    }
+  },
   {
     name: '操作', width: 100, fixed: 'right', cellRenderer: ({data}) => {
       return h('div', {
@@ -337,10 +364,6 @@ const contextmenuItem = (data, index, event) => {
   }
 }
 
-const clearSelected = () => {
-
-}
-
 const callTemplate = (list) => {
   twinkleList.value = list
   scrollToEnd()
@@ -365,7 +388,6 @@ onMounted(() => {
     return tableRef.value.getSelectedData()
   })
 
-
 })
 
 watch(() => tempYzData.value.length, () => {

+ 1 - 1
src/router/modules/dashboard.js

@@ -630,7 +630,7 @@ const route = [
                 meta: {title: '患者信息查询'},
             },
             {
-                path: 'zhuYuanYiSheng/level3DoctorSetup',
+                path: 'level3DoctorSetup',
                 component: createNameComponent(() => import('@/views/hospitalization/zhu-yuan-yi-sheng/level3-doctor-setup/Level3DoctorSetup.vue')),
                 meta: {title: '三级医生设置'},
             },

+ 50 - 15
src/views/hospitalization/zhu-yuan-yi-sheng/jian-cha-jian-yan-shen-qing/components/public/JianChaJianYanTable.vue

@@ -3,7 +3,11 @@ import {yzHeaderSize} from "@/views/hospitalization/zhu-yuan-yi-sheng/public-js/
 import {getWindowSize} from "@/utils/window-size";
 import {huoQuZhiXinKeShi} from "@/api/zhu-yuan-yi-sheng/yi-zhu-lu-ru";
 import XcComboGrid from "@/components/xiao-chan/combo-grid/XcComboGrid.vue";
-import {biaoBenApi, diagnosisInOurHospital} from "@/api/zhu-yuan-yi-sheng/jian-yan-jian-cha-shen-qing";
+import {
+  biaoBenApi,
+  diagnosisInOurHospital,
+  viewInspectionItemDetails
+} from "@/api/zhu-yuan-yi-sheng/jian-yan-jian-cha-shen-qing";
 import XcSelectV3 from "@/components/xiao-chan/select-v3/XcSelectV3.vue";
 
 const {data, isCheck, publicData} = defineProps({
@@ -23,18 +27,11 @@ const {data, isCheck, publicData} = defineProps({
 
 const emits = defineEmits(['delClick'])
 
-
-const deleteInspectionCheck = (index) => {
+const deleteInspectionCheck = (index, code) => {
+  delete feeListMap.value[code]
   emits('delClick', index)
 }
 
-const starAdd = (obj) => {
-  let index = [0, 1, 2, 3, 6, 7, 8, 9]
-  if (index.indexOf(obj.columnIndex) > -1) {
-    return 'star'
-  }
-}
-
 /* 获取执行科室 */
 const zhiXingKeShiData = ref([])
 const metZhiXingKeShi = (val) => {
@@ -93,6 +90,25 @@ const enterPadding = (val) => {
   })
 }
 
+const feeListMap = ref({})
+
+const getFeeList = (row) => {
+  if (feeListMap.value[row.orderCode]) {
+    return
+  }
+  viewInspectionItemDetails(row.orderCode).then((res) => {
+    feeListMap.value[row.orderCode] = res
+  })
+}
+
+onMounted(() => {
+  watch(() => data.length, () => {
+    if (data.length === 0) {
+      feeListMap.value = {}
+    }
+  })
+})
+
 </script>
 
 <template>
@@ -138,20 +154,39 @@ const enterPadding = (val) => {
   </div>
 
   <el-table :data="data"
-            :header-cell-class-name="starAdd"
             :height="tableHeight">
-    <el-table-column label="操作" width="90" fixed="left">
+    <el-table-column label="操作" width="120" fixed="left">
       <template #default="scope">
         <el-button-group>
           <el-button icon="Delete" type="danger"
-                     @click="deleteInspectionCheck(scope.$index)"></el-button>
+                     @click="deleteInspectionCheck(scope.$index, scope.row.orderCode)"></el-button>
+
+          <el-popover :width="500"
+                      trigger="click"
+                      placement="right"
+                      title="费用详情">
+            <template #reference>
+              <el-button @click="getFeeList(scope.row)">
+                明细
+              </el-button>
+            </template>
+            <el-table :data="feeListMap[scope.row.orderCode]">
+              <el-table-column property="orderCode" label="检查编码"/>
+              <el-table-column property="occCode" label="收费编码"/>
+              <el-table-column property="name" label="名字"/>
+              <el-table-column property="amount" label="数量"/>
+              <el-table-column property="chargeAmount" label="金额"/>
+              <el-table-column property="unitPrice" label="单价"/>
+            </el-table>
+          </el-popover>
+
         </el-button-group>
       </template>
     </el-table-column>
     <el-table-column label="项目名称"
                      prop="orderName"
-                     width="220"
-                     show-overflow-tooltip/>
+                     show-overflow-tooltip>
+    </el-table-column>
     <el-table-column label="执行科室" prop="execDeptName" width="100">
       <template #default="scope">
         <xc-combo-grid

+ 178 - 174
src/views/hospitalization/zhu-yuan-yi-sheng/shou-shu-shen-qing/ShouShuShenQing.vue

@@ -1,85 +1,85 @@
 <template>
-    <div style="height: 30px">
-        申请时间:
-        <el-date-picker
-                v-model="dateRange"
-                :shortcuts="shortcuts"
-                end-placeholder="结束日期"
-                placeholder="选择日期"
-                range-separator="至"
-                size="small"
-                start-placeholder="开始日期"
-                style="width: 280px"
-                type="daterange"
-        ></el-date-picker>
-        <el-button icon="Search" type="primary" @click="dianJiChaXunShouShu(0)">查询</el-button>
-        <el-button icon="Plus" type="success" @click="dianJiXinZhenShouShu">新增</el-button>
-        <el-button icon="Check" type="success" @click="clickSave">保存手术</el-button>
-        <el-button type="danger" @click="error.dialog = true">打开错误信息</el-button>
-    </div>
+  <div style="height: 30px">
+    申请时间:
+    <el-date-picker
+        v-model="dateRange"
+        :shortcuts="shortcuts"
+        end-placeholder="结束日期"
+        placeholder="选择日期"
+        range-separator="至"
+        size="small"
+        start-placeholder="开始日期"
+        style="width: 280px"
+        type="daterange"
+    ></el-date-picker>
+    <el-button icon="Search" type="primary" @click="dianJiChaXunShouShu(0)">查询</el-button>
+    <el-button icon="Plus" type="success" @click="dianJiXinZhenShouShu">新增</el-button>
+    <el-button icon="Check" type="success" @click="clickSave">保存手术</el-button>
+    <el-button type="danger" @click="error.dialog = true">打开错误信息</el-button>
+  </div>
 
-    <div style="display: flex">
-        <div>
-            <el-table :data="shouShuShuJu.data"
-                      :height="getWindowSize.h - (yzHeaderSize + 10)"
-                      highlight-current-row
-                      @row-click="dianJiChaKanShouShu">
-                <el-table-column label="申请号" prop="recordId" show-overflow-tooltip></el-table-column>
-                <el-table-column label="申请号" prop="statusName" show-overflow-tooltip></el-table-column>
-                <el-table-column label="项目名称" prop="opName" show-overflow-tooltip></el-table-column>
-                <el-table-column label="手术时间" prop="opDatetime" show-overflow-tooltip></el-table-column>
-                <el-table-column fixed="right" label="操作" width="120">
-                    <template #default="scope">
-                        <el-button icon="Delete" type="danger" @click.stop="dianJiShanChu(scope.row, scope.$index)">
-                            删除
-                        </el-button>
-                    </template>
-                </el-table-column>
-            </el-table>
-            <el-pagination
-                    :current-page="shouShuShuJu.currentPage"
-                    :page-size="shouShuShuJu.pageSize"
-                    :total="shouShuShuJu.total"
-                    layout="total,prev, pager, next"
-                    small
-                    @current-change="handleCurrentChange">
-            </el-pagination>
-        </div>
-        <div>
-            <el-tabs v-model="tabs" closable
-                     @tab-remove="removeTab">
-                <el-tab-pane v-for="(item,index) in operationApplication"
-                             :label="tabsName(item.opName,index)"
-                             :name="index + 1">
-                    <bian-ji-shou-shu
-                            :anesthetic-mode="anestheticMode"
-                            :data="item"
-                            :item="index"/>
-                </el-tab-pane>
-                <el-tab-pane label="手术查看" :name="0">
-                    <da-ying-shou-shu-sheng-qing-dan
-                            ref="daYing"
-                            :height="getWindowSize.h - (yzHeaderSize + 70)"/>
-                </el-tab-pane>
-            </el-tabs>
-            <surgical-error-info :data="error"/>
-        </div>
+  <div style="display: flex">
+    <div>
+      <el-table :data="shouShuShuJu.data"
+                :height="getWindowSize.h - (yzHeaderSize + 10)"
+                highlight-current-row
+                @row-click="dianJiChaKanShouShu">
+        <el-table-column label="申请号" prop="recordId" show-overflow-tooltip></el-table-column>
+        <el-table-column label="申请号" prop="statusName" show-overflow-tooltip></el-table-column>
+        <el-table-column label="项目名称" prop="opName" show-overflow-tooltip></el-table-column>
+        <el-table-column label="手术时间" prop="opDatetime" show-overflow-tooltip></el-table-column>
+        <el-table-column fixed="right" label="操作" width="120">
+          <template #default="scope">
+            <el-button icon="Delete" type="danger" @click.stop="dianJiShanChu(scope.row, scope.$index)">
+              删除
+            </el-button>
+          </template>
+        </el-table-column>
+      </el-table>
+      <el-pagination
+          :current-page="shouShuShuJu.currentPage"
+          :page-size="shouShuShuJu.pageSize"
+          :total="shouShuShuJu.total"
+          layout="total,prev, pager, next"
+          small
+          @current-change="handleCurrentChange">
+      </el-pagination>
+    </div>
+    <div>
+      <el-tabs v-model="tabs" closable
+               @tab-remove="removeTab">
+        <el-tab-pane v-for="(item,index) in operationApplication"
+                     :label="tabsName(item.opName,index)"
+                     :name="index + 1">
+          <bian-ji-shou-shu
+              :anesthetic-mode="anestheticMode"
+              :data="item"
+              :item="index"/>
+        </el-tab-pane>
+        <el-tab-pane label="手术查看" :name="0">
+          <da-ying-shou-shu-sheng-qing-dan
+              ref="daYing"
+              :height="getWindowSize.h - (yzHeaderSize + 70)"/>
+        </el-tab-pane>
+      </el-tabs>
+      <surgical-error-info :data="error"/>
     </div>
+  </div>
 
 </template>
 
 <script setup name="ShouShuShenQing">
 import {computed, ref, watch} from 'vue'
 import {
-    huoQuShouShu,
-    huoQuShouShuMingCheng,
-    huoQuShouShuShenQingDaYing,
-    shanChuShouShu, xinZengShouShuShenQing
+  huoQuShouShu,
+  huoQuShouShuMingCheng,
+  huoQuShouShuShenQingDaYing,
+  shanChuShouShu, xinZengShouShuShenQing
 } from '@/api/zhu-yuan-yi-sheng/shou-shu-shen-qing'
 import {
-    huanZheXinXi,
-    operationApplication,
-    youWuXuanZheHuanZhe, yzHeaderSize
+  huanZheXinXi,
+  operationApplication,
+  youWuXuanZheHuanZhe, yzHeaderSize
 } from '@/views/hospitalization/zhu-yuan-yi-sheng/public-js/zhu-yuan-yi-sheng'
 import {shortcuts} from '@/data/shortcuts'
 import store from '@/store'
@@ -91,9 +91,10 @@ import {getServerDateApi, maZuiFangShi} from "@/api/public-api";
 import SurgicalErrorInfo from "@/components/zhu-yuan-yi-sheng/shou-shu-shen-qing/SurgicalErrorInfo";
 import {BizException, ExceptionEnum} from "@/utils/BizException";
 import {getWindowSize} from "@/utils/window-size";
+import {isDev} from "@/utils/public";
 
 const windowSize = computed(() => {
-    return store.state.app.windowSize
+  return store.state.app.windowSize
 })
 
 const orderName = ref('')
@@ -102,15 +103,15 @@ const daYing = ref()
 const tabs = ref(0)
 
 const shouShuShuJu = ref({
-    data: [],
-    currentPage: 1,
-    pageSize: 20,
-    total: 0,
+  data: [],
+  currentPage: 1,
+  pageSize: 20,
+  total: 0,
 })
 
 const error = ref({
-    dialog: false,
-    msg: {}
+  dialog: false,
+  msg: {}
 })
 
 /**
@@ -118,19 +119,19 @@ const error = ref({
  * @param val
  */
 const dianJiChaXunShouShu = (val) => {
-    const data = {
-        patNo: huanZheXinXi.value.inpatientNo,
-        times: huanZheXinXi.value.admissTimes,
-        currentPage: shouShuShuJu.value.currentPage,
-        pageSize: shouShuShuJu.value.pageSize,
-        total: val,
+  const data = {
+    patNo: huanZheXinXi.value.inpatientNo,
+    times: huanZheXinXi.value.admissTimes,
+    currentPage: shouShuShuJu.value.currentPage,
+    pageSize: shouShuShuJu.value.pageSize,
+    total: val,
+  }
+  huoQuShouShu(data).then((res) => {
+    if (val === 0) {
+      shouShuShuJu.value.total = res.total
     }
-    huoQuShouShu(data).then((res) => {
-        if (val === 0) {
-            shouShuShuJu.value.total = res.total
-        }
-        shouShuShuJu.value.data = res.records
-    })
+    shouShuShuJu.value.data = res.records
+  })
 }
 
 /**
@@ -138,130 +139,133 @@ const dianJiChaXunShouShu = (val) => {
  * @param val
  */
 const handleCurrentChange = (val) => {
-    shouShuShuJu.value.currentPage = val
-    dianJiChaXunShouShu(shouShuShuJu.value.total)
+  shouShuShuJu.value.currentPage = val
+  dianJiChaXunShouShu(shouShuShuJu.value.total)
 }
 
 const tabsName = (val, index) => {
-    if (stringIsBlank(val)) {
-        return '添加手术' + index;
-    }
-    return val
+  if (stringIsBlank(val)) {
+    return '添加手术' + index;
+  }
+  return val
 }
 
 const clickSave = async () => {
-    if (youWuXuanZheHuanZhe()) return
-    let data = huanZheXinXi.value
-    data.execDept = store.state.user.info.deptCode
-    data.list = operationApplication.value
+  if (youWuXuanZheHuanZhe()) return
+  let data = huanZheXinXi.value
+  data.execDept = store.state.user.info.deptCode
+  data.list = operationApplication.value
 
-    try {
-        await ElMessageBox.confirm('是否要生成全排斥医嘱?', '提示', {
-            type: 'warning',
-            confirmButtonText: '生成排斥医嘱',
-            cancelButtonText: '生成处置医嘱',
-            distinguishCancelAndClose: true
-        })
-        data.generateRejectedOrders = true
-    } catch (e) {
-        if (e === 'cancel') {
-            data.generateRejectedOrders = false
-        } else {
-            return
-        }
+  try {
+    await ElMessageBox.confirm('是否要生成全排斥医嘱?', '提示', {
+      type: 'warning',
+      confirmButtonText: '生成排斥医嘱',
+      cancelButtonText: '生成处置医嘱',
+      distinguishCancelAndClose: true
+    })
+    data.generateRejectedOrders = true
+  } catch (e) {
+    if (e === 'cancel') {
+      data.generateRejectedOrders = false
+    } else {
+      return
     }
+  }
 
-    xinZengShouShuShenQing(data).then((res) => {
-        if (res !== null && res.error !== null) {
-            error.value.dialog = true
-            error.value.msg = res.data
-        } else {
-            tabs.value = 0
-            operationApplication.value = []
-        }
-    })
+  xinZengShouShuShenQing(data).then((res) => {
+    if (res !== null && res.error !== null) {
+      error.value.dialog = true
+      error.value.msg = res.data
+    } else {
+      tabs.value = 0
+      operationApplication.value = []
+    }
+  })
 
 }
 
 const removeTab = (targetName) => {
-    if (targetName === 0) {
-        BizException(ExceptionEnum.MESSAGE_ERROR, '无法删除')
-    }
-    operationApplication.value.splice(targetName - 1, 1)
-    tabs.value = tabs.value - 1
+  if (targetName === 0) {
+    BizException(ExceptionEnum.MESSAGE_ERROR, '无法删除')
+  }
+  operationApplication.value.splice(targetName - 1, 1)
+  tabs.value = tabs.value - 1
 }
 
 const dianJiChaKanShouShu = (row) => {
-    huoQuShouShuShenQingDaYing(huanZheXinXi.value.inpatientNo, huanZheXinXi.value.admissTimes, row.recordId).then((res) => {
-        daYing.value.data = res
-        if (stringNotBlank(res.applyDate)) {
-            res.applyDate = res.applyDate.split(' ')[0]
-        }
-        if (stringNotBlank(res.opDatetime)) {
-            res.opDatetime = res.opDatetime.split(' ')[0]
-        }
-    })
-    tabs.value = 0
+  huoQuShouShuShenQingDaYing(huanZheXinXi.value.inpatientNo, huanZheXinXi.value.admissTimes, row.recordId).then((res) => {
+    daYing.value.data = res
+    if (stringNotBlank(res.applyDate)) {
+      res.applyDate = res.applyDate.split(' ')[0]
+    }
+    if (stringNotBlank(res.opDatetime)) {
+      res.opDatetime = res.opDatetime.split(' ')[0]
+    }
+  })
+  tabs.value = 0
 }
 
 const dianJiShanChu = (row, index) => {
-    ElMessageBox.confirm(`您确定要删除【${row.opName}】吗?`, '提示', {})
-        .then(() => {
-            shanChuShouShu(row.recordId)
-            shouShuShuJu.value.data.splice(index, 1)
-        })
-        .catch(() => {
-        })
+  ElMessageBox.confirm(`您确定要删除【${row.opName}】吗?`, '提示', {})
+      .then(() => {
+        shanChuShouShu(row.recordId)
+        shouShuShuJu.value.data.splice(index, 1)
+      })
+      .catch(() => {
+      })
 }
 
 watch(
     () => huanZheXinXi.value,
     () => {
-        dianJiChaXunShouShu(0)
+      dianJiChaXunShouShu(0)
     },
     {immediate: true}
 )
 
 const dianJiXinZhenShouShu = async () => {
-    operationApplication.value.push({
-        inpatientNo: huanZheXinXi.value.inpatientNo,
-        admissTimes: huanZheXinXi.value.admissTimes,
-        opCode: '',
-        opName: '添加手术' + operationApplication.value.length,
-        applyDate: await getServerDateApi(),
-        opDatetime: '',
-        urgentClinicFlag: '',
-        ssbc: '',
-        diagBeforeCode: '',
-        ybSelfFlag: '',
-        partCode: '',
-        opScale: '',
-        hocusCode: '',
-        doctorZd: '',
-        doctor1: '',
-        doctor2: '',
-        doctor3: '',
-        doctorMz: '',
-        nurseQx: '',
-        nurseXh: '',
-        remark: '',
-    })
-    tabs.value = operationApplication.value.length
+  operationApplication.value.push({
+    inpatientNo: huanZheXinXi.value.inpatientNo,
+    admissTimes: huanZheXinXi.value.admissTimes,
+    opCode: '',
+    opName: '添加手术' + operationApplication.value.length,
+    applyDate: await getServerDateApi(),
+    opDatetime: '',
+    urgentClinicFlag: '',
+    ssbc: '',
+    diagBeforeCode: '',
+    ybSelfFlag: '',
+    partCode: '',
+    opScale: '',
+    hocusCode: '',
+    doctorZd: '',
+    doctor1: '',
+    doctor2: '',
+    doctor3: '',
+    doctorMz: '',
+    nurseQx: '',
+    nurseXh: '',
+    remark: '',
+  })
+  tabs.value = operationApplication.value.length
 }
 
 // 麻醉方式
 const anestheticMode = ref()
 
 onMounted(() => {
-    maZuiFangShi().then(res => {
-        anestheticMode.value = res
-    })
+  maZuiFangShi().then(res => {
+    anestheticMode.value = res
+  })
+  if (isDev) {
+    dianJiXinZhenShouShu()
+  }
 })
 
 </script>
 
 <style scoped>
 :deep(.el-table .success-row) {
-    background: rgba(71, 123, 220, 0.69);
+  background: rgba(71, 123, 220, 0.69);
 }
 </style>