DESKTOP-0GD05B0\Administrator пре 2 година
родитељ
комит
117c441c6f

+ 21 - 4
src/components/zhu-yuan-yi-sheng/yi-zhu-lu-ru/YzQueryCondition.vue

@@ -30,25 +30,42 @@
 
 <script setup name='YzQueryCondition'>
 import {xcMessage} from "@/utils/xiaochan-element-plus";
+import {huoQuYiZhuShuJu} from "@/api/zhu-yuan-yi-sheng/yi-zhu-lu-ru";
 
 const props = defineProps({
   patientInfo: {
     type: Object
+  },
+  returnData: {
+    type: Function
   }
 })
 
 const quertParam = ref({
-  displayRange: 2,
+  displayRange: 0,
   frequCode: 2,
-  zhuangTai: 0
+  zhuangTai: 0,
+  patNo: props.patientInfo.inpatientNo,
+  times: props.patientInfo.admissTimes
 })
 
 const queryYz = () => {
+
   if (!props.patientInfo.inpatientNo) return xcMessage.error('请先选择一个患者。')
-  console.log(props.patientInfo)
-  console.log(quertParam.value)
+
+  quertParam.value.patNo = props.patientInfo.inpatientNo
+  quertParam.value.times = props.patientInfo.admissTimes
+
+  huoQuYiZhuShuJu(quertParam.value).then((res) => {
+    props.returnData(res)
+  })
+
 }
 
+watch(() => props.patientInfo, () => {
+  queryYz()
+})
+
 </script>
 
 <style scoped lang="scss">

+ 20 - 0
src/components/zhu-yuan-yi-sheng/yi-zhu-lu-ru/table/TableTd.vue

@@ -0,0 +1,20 @@
+<template>
+  <td v-for="he in header">
+    <div v-if="he.func" v-html="he.func(item)"/>
+    <div v-else>
+      {{ item[he.code] }}
+    </div>
+  </td>
+</template>
+
+<script setup name='TableTd'>
+const props = defineProps({
+  data: Object,
+  header: Object,
+  item: Object
+})
+</script>
+
+<style scoped lang="scss">
+
+</style>

+ 52 - 9
src/components/zhu-yuan-yi-sheng/yi-zhu-lu-ru/YzTable.vue → src/components/zhu-yuan-yi-sheng/yi-zhu-lu-ru/table/YzTable.vue

@@ -2,20 +2,42 @@
   <table border="1" cellspacing="0" cellpadding="0" class="table">
     <thead>
     <tr>
+      <th>
+        序号
+      </th>
       <th v-for="item in header">
         {{ item.name }}
       </th>
     </tr>
     </thead>
     <tbody>
-    <tr v-for="item in props.data">
-      <td v-for="he in header">
-        <div v-if="he.func" v-html="he.func(item)"/>
-        <div v-else>
-          {{ item[he.code] }}
-        </div>
-      </td>
-    </tr>
+    <template v-for="(item) in props.data">
+      <tr @click="rowClick(item)">
+        <td>
+          {{ index++ }}
+        </td>
+        <td v-for="he in header">
+          <div v-if="he.func" v-html="he.func(item)"/>
+          <div v-else>
+            {{ item[he.code] }}
+          </div>
+        </td>
+      </tr>
+      <template v-if="item.children">
+        <tr v-for="(childItem) in item.children" @click="rowClick(childItem)">
+          <td>
+            {{ index++ }}
+          </td>
+          <td v-for="he in header">
+            <div v-if="he.func" v-html="he.func(childItem)"/>
+            <div v-else>
+              {{ childItem[he.code] }}
+            </div>
+          </td>
+        </tr>
+      </template>
+    </template>
+
     </tbody>
   </table>
 </template>
@@ -27,12 +49,14 @@ const props = defineProps({
   },
 })
 
+const index = 0
 const header = [
   {code: 'actOrderNo', name: '医嘱号'},
+  {code: 'orderGroup', name: '组'},
   {code: 'orderName', name: '医嘱名称'},
   {
     code: 'dose', name: '剂量', func: (val) => {
-      return val.dose + ' ' + nu(val.doseUnitName)
+      return nu(val.dose) + ' ' + nu(val.doseUnitName)
     }
   },
   {code: 'frequCode', name: '频率'},
@@ -56,6 +80,11 @@ const header = [
   {code: 'patientNo', name: '父医嘱'},
 ]
 
+
+const rowClick = (val) => {
+  console.log(val)
+}
+
 const nu = (val) => {
   if (val === null) {
     return ''
@@ -72,4 +101,18 @@ const nu = (val) => {
 .table {
   width: 100%;
 }
+
+table, tbody {
+  width: 100%;
+  height: 400px;
+  border-spacing: 0;
+  border-collapse: collapse;
+  cursor: default;
+}
+
+tbody {
+  overflow-y: scroll;
+}
+
+
 </style>

+ 526 - 0
src/components/zhu-yuan-yi-sheng/yi-zhu-lu-ru/yz-edit/YzEditor.vue

@@ -0,0 +1,526 @@
+<template>
+  <div class="yz_input__box">
+    <div>
+      医嘱名称:
+      <xc-combo-grid
+          style="width: 240px"
+          ref="searchRef"
+          v-model="yiZhuData.orderName"
+          :table-header="tableHeader"
+          :query-data-func="huoQuXiangMu"
+          :current-key="yiZhuData.orderCode + yiZhuData.orderName"
+          @rowClick="xuanZhongFeiYong">
+      </xc-combo-grid>
+    </div>
+    <div class="input__style">
+      {{ yiZhuData.drugSpecification }}
+    </div>
+    <div>
+      频率:
+      <xc-select-v3 style="width: 120px"
+                    v-model="yiZhuData"
+                    :data="yaoPinPingLvData"
+                    code="frequCode"
+                    name="frequCodeName"
+                    :remote-method="pinLvRemoteMethod"
+                    id="yz_frequCode"
+                    ref="pingLv"/>
+    </div>
+    <div>
+      一次剂量:
+      <el-input-number v-model="yiZhuData.dose"
+                       :min="0"
+                       ref="doseRef"
+                       id="yz_dose"
+                       :precision="yiZhuData.doseUnitName === yiZhuData.miniUnitName ? 0 : 2"
+                       style="width: 110px"
+                       @change="jiSuanLingLiang"/>
+      <XcSelect v-model="yiZhuData"
+                id="yz_doseUnit"
+                :data="yaoPinJiLiangData"
+                :name="['doseUnit', 'doseUnitName']" :width="80"
+                @change="xuanZheJiLiang">
+        <XcOption label="value"></XcOption>
+        <XcOption label="name"></XcOption>
+      </XcSelect>
+    </div>
+    <div>
+      领量:
+      <el-input-number v-model="yiZhuData.drugQuan"
+                       :min="minimumPickingQuantity"
+                       placeholder="请输入领量">
+        {{ yiZhuData.drugQuan }}
+      </el-input-number>
+      {{ yiZhuData.miniUnitName }}
+    </div>
+  </div>
+  <div class="yz_input__box">
+    <div>
+      给药方式:
+      <xc-select-v3
+          style="width: 120px"
+          v-model="yiZhuData"
+          :data="geiYaoFangShiData"
+          id="yz_supplyCode"
+          code="supplyCode"
+          name="supplyCodeName"
+          :remote-method="geiYaoFangShiRemoteMethod"
+          clearable/>
+    </div>
+    <div>
+      开始时间:
+      <el-date-picker
+          style="width: 160px"
+          v-model="yiZhuData.startTime"
+          :disabled-date="disabledDate"
+          id="yz_startTime"
+          format="YYYY-MM-DD HH:mm:ss"
+          type="datetime"
+          value-format="YYYY-MM-DD HH:mm:ss"
+      ></el-date-picker>
+    </div>
+    <div>
+      停止时间:
+      <el-date-picker
+          style="width: 160px"
+          v-model="yiZhuData.endTime"
+          id="yz_endTime"
+          :disabled="yiZhuData.frequCode === 'ONCE'"
+          :disabled-date="disabledDate"
+          format="YYYY-MM-DD HH:mm:ss"
+          type="datetime"
+          value-format="YYYY-MM-DD HH:mm:ss"
+      ></el-date-picker>
+    </div>
+    <div class="input__style" style="width: 120px">
+      医生: {{ store.state.user.info.name }}
+    </div>
+    <div>
+      执行科室:
+      <xc-select-v3
+          style="width: 120px"
+          v-model="yiZhuData"
+          :data="zhiXingKeShiData"
+          id="yz_execUnit"
+          code="execUnit"
+          name="execUnitName"
+          :remote-method="metZhiXingKeShi"/>
+    </div>
+  </div>
+  <div class="yz_input__box">
+    <div class="div_center__box">
+      医嘱时间:
+      <div class="input__style"> {{ yiZhuData.orderTime }}</div>
+    </div>
+    <div>
+      父医嘱:
+      <el-select v-model="yiZhuData.parentNo"
+                 :disabled="yiZhuData.serial === '00'"
+                 id="yz_parentNo"
+                 clearable
+                 @clear="yiZhuData.parentNo = null" @focus="fuYiZhuClick">
+        <el-option v-for="item in fuYiZhuData" :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>
+          <span>{{ item.name }}</span>
+        </el-option>
+      </el-select>
+    </div>
+    <div :title="yiZhuData.discription" class="div_center__box">
+      描述:
+      <div class="input__style" style="overflow: auto;width: 240px">
+        {{ yiZhuData.discription }}
+      </div>
+    </div>
+    <div>
+      <!--  皮试药品    -->
+      <el-select></el-select>
+    </div>
+  </div>
+  <div class="yz_input__box">
+    <div class="div_center__box" :title="yiZhuData.instruction">
+      <div style="width: 87px">
+        医生嘱托:
+      </div>
+
+      <el-input v-model="yiZhuData.instruction"
+                clearable
+                maxlength="50"
+                show-word-limit></el-input>
+    </div>
+    <div class="div_center__box">
+      <el-select v-model="yiZhuData.kfFlag"
+                 id="yz_kfFlag"
+                 clearable style="width: 80px" @clear="yiZhuData.kfFlag = null">
+        <el-option key="1" label="饭前" value="1"></el-option>
+        <el-option key="2" label="饭后" value="2"></el-option>
+      </el-select>
+    </div>
+    <div>
+      费用标志:
+      <el-select v-model="yiZhuData.selfBuy"
+                 id="yz_selfBuy"
+                 clearable style="width: 120px"
+                 @clear="yiZhuData.selfBuy = null">
+        <el-option key="1" label="自备" value="1"></el-option>
+        <el-option key="2" label="嘱托" value="2"></el-option>
+        <el-option key="3" label="基数药" value="3"></el-option>
+      </el-select>
+    </div>
+    <div class="div_center__box">
+      <xc-checkbox
+          label="医保自费"
+          v-model="yiZhuData.ybSelfFlag"
+          inactive-value="0"
+          active-value="1"/>
+      &nbsp;&nbsp;&nbsp;
+      <xc-checkbox
+          label="紧急"
+          v-model="yiZhuData.emergencyFlag"
+          active-value="1"
+          inactive-value="0"
+      />
+    </div>
+
+  </div>
+</template>
+
+<script setup name='YzEditor'>
+import {
+  huoQuFeiYongXinXi,
+  huoQuZhuYuanPinLv,
+  huoQuXiangMu, huoQuGeiYaoFangShi, huoQuZhiXinKeShi
+} from '@/api/zhu-yuan-yi-sheng/yi-zhu-lu-ru'
+import {listNotBlank, stringIsBlank, stringNotBlank} from '@/utils/blank-utils'
+import {uuid} from '@/utils/getUuid'
+import {getServerDateApi} from '@/api/public-api'
+import Sleep from '@/utils/sleep'
+import XcComboGrid from "@/components/xiao-chan/combo-grid/XcComboGrid";
+import XcSelectV3 from "@/components/xiao-chan/select-v3/XcSelectV3";
+import XcOption from "@/components/xiao-chan/select/XcOption";
+import XcSelect from "@/components/xiao-chan/select/XcSelect";
+import store from "@/store"
+import XcCheckbox from "@/components/xiao-chan/checkbox/XcCheckbox";
+
+const props = defineProps({
+  patientInfo: {
+    type: Object,
+    default: null
+  }
+})
+
+const yiZhuData = ref({
+  id: '',
+  actOrderNo: null,
+  orderName: '',
+  orderCode: '',
+  // 频率
+  frequCode: '',
+  frequCodeName: '',
+  drugSpecification: '',
+  dose: 0,
+  // 领量
+  doseUnit: '',
+  doseUnitName: '',
+  supplyCode: '',
+  supplyCodeName: '',
+  startTime: '',
+  endTime: '',
+  orderTime: '',
+  doctorName: '',
+  drugFlag: '',
+  execUnit: '',
+  execUnitName: '',
+  parentNo: '',
+  parentNoName: '',
+  physicianName: '',
+  discription: '',
+  instruction: null,
+  kfFlag: null,
+  selfBuy: null,
+  ybSelfFlag: '0',
+  ybSelfFlagBoolean: false,
+  emergencyFlag: '0',
+  drugQuan: 0,
+  miniUnitName: '',
+  serial: '',
+  miniUnit: '',
+  psFlag: false,
+  kjywFlag: 0,
+  yyfs: null,
+  ssqk: null,
+  yysj: null,
+  zkObj: '',
+  zkWardCode: '',
+  zkDeptCode: '',
+});
+
+let tableHeader = [
+  {label: '编码', prop: 'orderCode'},
+  {label: '名称', prop: 'orderName'},
+  {label: '规格', prop: 'drugSpecification'},
+  {label: '描述', prop: 'discription'},
+  {label: '库存', prop: 'stockAmount'},
+  {label: '大包装', prop: 'specPack'},
+  {label: '医保类型', prop: 'ybFlagNew'},
+  {label: '医保编码', prop: 'nationalCode'},
+  {label: '医保名称', prop: 'nationalName'},
+  {label: '医保备注', prop: 'ybComment'},
+  {label: '大输液', prop: 'infusionFlagName'},
+  {label: '厂家', prop: 'manuName'},
+  {label: '类型', prop: 'orderType'},
+  {label: '毒麻类型', prop: 'drugFlagName'}
+]
+
+/*提示信息*/
+const tiShiBiaoTi = ref([])
+
+// 搜索医嘱
+const xuanZhongFeiYong = async (row) => {
+  // 记得处置医嘱
+  fuYiZhuClick()
+  qingKong()
+  await Sleep(200)
+  yiZhuData.value = row
+  if (row.serial !== '00') {
+    huoQuFeiYongXinXi(row.orderCode, row.serial, props.patientInfo.smallDept)
+        .then((res) => {
+          yiZhuData.value.drugFlag = row.drugFlag ? row.drugFlag : row.orderType
+          // 判断是否 是皮试的药 如果是就只能有这些 给药方式
+          geiYaoFangShiData.value = res.piShi
+          // 是否是 抗菌药物
+          yiZhuData.value.kjywFlag = res.data.kjywFlag
+          // 提示信息
+          tiShiBiaoTi.value = res.prompt
+          // 最小单位名称
+          yiZhuData.value.miniUnitName = res.data.miniUnitName
+          // 加载药品计量
+          yaoPinJiLiangData.value = res.yaoPingJiLiang
+          // 加载 剂量单位
+          if (stringNotBlank(yiZhuData.value.doseUnit)) {
+            yaoPinJiLiangData.value.forEach((item) => {
+              if (item.code === yiZhuData.value.doseUnit) {
+                jiLiangValue.value = item.value
+              }
+            })
+          } else if (listNotBlank(yaoPinJiLiangData.value)) {
+            // 没有剂量单位的时候默认加载第一个计量单位 并且计算
+            yiZhuData.value.doseUnit = yaoPinJiLiangData.value[0].code
+            yiZhuData.value.dose = yaoPinJiLiangData.value[0].value
+            jiLiangValue.value = yaoPinJiLiangData.value[0].value
+          }
+          jiSuanLingLiang(yiZhuData.value.dose)
+          // 加载默认频率 如果已经填写了 就用有的
+          if (stringIsBlank(row.frequCode)) {
+            if (stringNotBlank(res.data.frequCode)) {
+              yiZhuData.value.frequCode = res.data.frequCode
+              yiZhuData.value.frequCodeName = res.data.frequCodeName
+            } else {
+              yiZhuData.value.frequCode = 'ONCE'
+              yiZhuData.value.frequCodeName = '一次'
+            }
+          }
+          // 加载给药方式 如果已经有了就没事了
+          if (stringIsBlank(yiZhuData.value.supplyCode)) {
+            if (stringNotBlank(res.data.supplyCode)) {
+              yiZhuData.value.supplyCode = res.data.supplyCode
+              yiZhuData.value.supplyCodeName = res.data.supplyCodeName
+            }
+          }
+
+
+        })
+        .catch(async () => {
+          await Sleep(500)
+          qingKong()
+        })
+  } else {
+    yiZhuData.value.kjywFlag = 0
+    huoQuFeiYongXinXi(row.orderCode, '00', props.patientInfo.smallDept)
+        .then((res) => {
+          yiZhuData.value.drugFlag = row.drugFlag ? row.drugFlag : row.orderType
+          if (stringNotBlank(res.prompt)) {
+            tiShiBiaoTi.value = res.prompt
+          }
+          if (!res.dose) {
+            yiZhuData.value.dose = 1
+          }
+        })
+        .catch(async () => {
+          await Sleep(500)
+          qingKong()
+        })
+  }
+  // 判断这个是不是 新添加的数据 如果是空的就是 新数据
+  getServerDateApi().then((res) => {
+    if (!yiZhuData.value.orderTime) {
+      yiZhuData.value.orderTime = res
+    }
+    if (!yiZhuData.value.startTime) {
+      yiZhuData.value.startTime = res
+    }
+  })
+  // 用来加载默认的执行科室
+  if (stringIsBlank(row.execUnit)) {
+    if (stringNotBlank(props.patientInfo.smallDept)) {
+      yiZhuData.value.execUnit = props.patientInfo.smallDept
+      yiZhuData.value.execUnitName = props.patientInfo.smallDeptName
+    }
+  } else if (props.patientInfo.smallDept && row.execUnit.startsWith("8")) {
+    yiZhuData.value.execUnit = props.patientInfo.smallDept
+    yiZhuData.value.execUnitName = props.patientInfo.smallDeptName
+  }
+  if (stringIsBlank(row.id)) {
+    yiZhuData.value.id = uuid(8, 10)
+  }
+  if (!yiZhuData.value.frequCode) {
+    yiZhuData.value.frequCode = 'ONCE'
+    yiZhuData.value.frequCodeName = '一次'
+  }
+  try {
+    pingLv.focus()
+  } catch (e) {
+    console.log(e)
+  }
+}
+
+/* 频率 */
+const yaoPinPingLvData = ref([])
+// 获取药品频率
+const pinLvRemoteMethod = (val) => {
+  huoQuZhuYuanPinLv(val).then((res) => {
+    yaoPinPingLvData.value = res
+  })
+}
+
+// 最小领量
+let minimumPickingQuantity = $ref(0)
+/*计算领量*/
+const jiSuanLingLiang = (val) => {
+  if (jiLiangValue.value <= 0) return
+  let temp = Math.ceil(val / jiLiangValue.value);
+  minimumPickingQuantity = temp
+  if (!yiZhuData.value.drugQuan) {
+    yiZhuData.value.drugQuan = temp
+  }
+
+  if (yiZhuData.value.drugQuan < temp) {
+    yiZhuData.value.drugQuan = temp
+  }
+
+}
+/* 选择剂量 */
+const yaoPinJiLiangData = ref([])
+const jiLiangValue = ref(0)
+const xuanZheJiLiang = (val) => {
+  jiLiangValue.value = val.value
+  yiZhuData.value.dose = val.value
+  jiSuanLingLiang(yiZhuData.value.dose)
+}
+
+/* 给药方式 */
+const geiYaoFangShiData = ref([])
+const geiYaoFangShiRemoteMethod = (val) => {
+  huoQuGeiYaoFangShi(val).then((res) => {
+    geiYaoFangShiData.value = res
+  })
+}
+
+// 医嘱限制时间不能在之前
+const disabledDate = (time) => {
+  if (props.patientInfo?.admissDate) {
+    return time.getTime() < new Date(props.patientInfo?.admissDate).getTime() - 8.64e7
+  }
+  return true
+}
+
+/* 获取执行科室 */
+const zhiXingKeShiData = ref([])
+const metZhiXingKeShi = (val) => {
+  huoQuZhiXinKeShi(val).then((res) => {
+    zhiXingKeShiData.value = res
+  })
+}
+
+/* 父医嘱 */
+const fuYiZhuData = ref([])
+const fuYiZhuClick = () => {
+  fuYiZhuData.value = []
+  console.log('父医嘱要像后端查询了。')
+}
+
+
+const qingKong = () => {
+  yaoPinJiLiangData.value = []
+  jiLiangValue.value = 0
+  tiShiBiaoTi.value = []
+  yiZhuData.value = {
+    index: '',
+    actOrderNo: null,
+    orderName: '',
+    orderCode: '',
+    // 频率
+    frequCode: '',
+    frequCodeName: '',
+    drugSpecification: '',
+    dose: 0,
+    // 领量
+    doseUnit: '',
+    doseUnitName: '',
+    supplyCode: '',
+    supplyCodeName: '',
+    startTime: '',
+    endTime: '',
+    orderTime: '',
+    doctorName: '',
+    execUnit: '',
+    execUnitName: '',
+    parentNo: '',
+    parentNoName: '',
+    physicianName: '',
+    discription: '',
+    instruction: null,
+    kfFlag: null,
+    selfBuy: null,
+    ybSelfFlag: '0',
+    emergencyFlag: '0',
+    drugQuan: 0,
+    miniUnitName: '',
+    serial: '',
+    miniUnit: '',
+    psFlag: false,
+    kjywFlag: 0,
+    yyfs: null,
+    ssqk: null,
+    yysj: null,
+    zkWardCode: '',
+    zkDeptCode: '',
+  }
+}
+
+</script>
+
+<style scoped lang="scss">
+.yz_input__box {
+  display: flex;
+  margin-top: 6px;
+  flex-wrap: wrap;
+
+  div {
+    margin-left: 3px;
+  }
+
+  .div_center__box {
+    display: flex;
+    justify-content: center;
+    align-items: center;
+  }
+
+  .input__style {
+    width: 125px;
+    line-height: 22px;
+    height: 22px;
+    border: 1px solid
+  }
+}
+</style>

+ 188 - 187
src/views/hospitalization/zhu-yuan-yi-sheng/yi-zhu-lu-ru/TianJiaYiZhu.vue

@@ -1,5 +1,4 @@
 <template>
-
   <div class="prompt" v-if="tiShiBiaoTi?.length > 0">
     <div style="margin-right: 5px">
       提示信息:
@@ -31,192 +30,195 @@
   <el-button @click="allergenDialog = true">患者过敏信息</el-button>
   <yao-ping-xiang-qing v-if="HeLiYongYao.dialog" :code="HeLiYongYao.code"
                        @close="HeLiYongYao.dialog = false"></yao-ping-xiang-qing>
-  <div class="yz_input__box">
-    <div>
-      医嘱名称:
-      <xc-combo-grid
-          style="width: 240px"
-          ref="searchRef"
-          v-model="yiZhuData.orderName"
-          :table-header="tableHeader"
-          :query-data-func="huoQuXiangMu"
-          :current-key="yiZhuData.orderCode + yiZhuData.orderName"
-          @rowClick="xuanZhongFeiYong">
-      </xc-combo-grid>
-    </div>
-    <div class="input__style">
-      {{ yiZhuData.drugSpecification }}
-    </div>
-    <div>
-      频率:
-      <xc-select-v3 style="width: 120px"
-                   v-model="yiZhuData"
-                   :data="yaoPinPingLvData"
-                   code="frequCode"
-                   name="frequCodeName"
-                   :remote-method="pinLvRemoteMethod"
-                   id="yz_frequCode"
-                   ref="pingLv"/>
-    </div>
-    <div>
-      一次剂量:
-      <el-input-number v-model="yiZhuData.dose"
-                       :min="0"
-                       ref="doseRef"
-                       id="yz_dose"
-                       :precision="yiZhuData.doseUnitName === yiZhuData.miniUnitName ? 0 : 2"
-                       style="width: 110px"
-                       @change="jiSuanLingLiang"/>
-      <XcSelect v-model="yiZhuData"
-                id="yz_doseUnit"
-                :data="yaoPinJiLiangData"
-                :name="['doseUnit', 'doseUnitName']" :width="80"
-                @change="xuanZheJiLiang">
-        <XcOption label="value"></XcOption>
-        <XcOption label="name"></XcOption>
-      </XcSelect>
-    </div>
-    <div>
-      领量:
-      <el-input-number v-model="yiZhuData.drugQuan"
-                       :min="minimumPickingQuantity"
-                       placeholder="请输入领量">
-        {{ yiZhuData.drugQuan }}
-      </el-input-number>
-      {{ yiZhuData.miniUnitName }}
-    </div>
-  </div>
 
-  <div class="yz_input__box">
-    <div>
-      给药方式:
-      <xc-select-v3
-          style="width: 120px"
-          v-model="yiZhuData"
-          :data="geiYaoFangShiData"
-          id="yz_supplyCode"
-          code="supplyCode"
-          name="supplyCodeName"
-          :remote-method="geiYaoFangShiRemoteMethod"
-          clearable/>
-    </div>
-    <div>
-      开始时间:
-      <el-date-picker
-          style="width: 160px"
-          v-model="yiZhuData.startTime"
-          :disabled-date="disabledDate"
-          id="yz_startTime"
-          format="YYYY-MM-DD HH:mm:ss"
-          type="datetime"
-          value-format="YYYY-MM-DD HH:mm:ss"
-      ></el-date-picker>
-    </div>
-    <div>
-      停止时间:
-      <el-date-picker
-          style="width: 160px"
-          v-model="yiZhuData.endTime"
-          id="yz_endTime"
-          :disabled="yiZhuData.frequCode === 'ONCE'"
-          :disabled-date="disabledDate"
-          format="YYYY-MM-DD HH:mm:ss"
-          type="datetime"
-          value-format="YYYY-MM-DD HH:mm:ss"
-      ></el-date-picker>
-    </div>
-    <div class="input__style" style="width: 120px">
-      医生: {{ store.state.user.info.name }}
-    </div>
-    <div>
-      执行科室:
-      <xc-select-v3
-          style="width: 120px"
-          v-model="yiZhuData"
-          :data="zhiXingKeShiData"
-          id="yz_execUnit"
-          code="execUnit"
-          name="execUnitName"
-          :remote-method="metZhiXingKeShi"/>
+  <div>
+    <div class="yz_input__box">
+      <div>
+        医嘱名称:
+        <xc-combo-grid
+            style="width: 240px"
+            ref="searchRef"
+            v-model="yiZhuData.orderName"
+            :table-header="tableHeader"
+            :query-data-func="huoQuXiangMu"
+            :current-key="yiZhuData.orderCode + yiZhuData.orderName"
+            @rowClick="xuanZhongFeiYong">
+        </xc-combo-grid>
+      </div>
+      <div class="input__style">
+        {{ yiZhuData.drugSpecification }}
+      </div>
+      <div>
+        频率:
+        <xc-select-v3 style="width: 120px"
+                      v-model="yiZhuData"
+                      :data="yaoPinPingLvData"
+                      code="frequCode"
+                      name="frequCodeName"
+                      :remote-method="pinLvRemoteMethod"
+                      id="yz_frequCode"
+                      ref="pingLv"/>
+      </div>
+      <div>
+        一次剂量:
+        <el-input-number v-model="yiZhuData.dose"
+                         :min="0"
+                         ref="doseRef"
+                         id="yz_dose"
+                         :precision="yiZhuData.doseUnitName === yiZhuData.miniUnitName ? 0 : 2"
+                         style="width: 110px"
+                         @change="jiSuanLingLiang"/>
+        <XcSelect v-model="yiZhuData"
+                  id="yz_doseUnit"
+                  :data="yaoPinJiLiangData"
+                  :name="['doseUnit', 'doseUnitName']" :width="80"
+                  @change="xuanZheJiLiang">
+          <XcOption label="value"></XcOption>
+          <XcOption label="name"></XcOption>
+        </XcSelect>
+      </div>
+      <div>
+        领量:
+        <el-input-number v-model="yiZhuData.drugQuan"
+                         :min="minimumPickingQuantity"
+                         placeholder="请输入领量">
+          {{ yiZhuData.drugQuan }}
+        </el-input-number>
+        {{ yiZhuData.miniUnitName }}
+      </div>
     </div>
-  </div>
 
-  <div class="yz_input__box">
-    <div class="div_center__box">
-      医嘱时间:
-      <div class="input__style"> {{ yiZhuData.orderTime }}</div>
-    </div>
-    <div>
-      父医嘱:
-      <el-select v-model="yiZhuData.parentNo"
-                 :disabled="yiZhuData.serial === '00'"
-                 id="yz_parentNo"
-                 clearable
-                 @clear="yiZhuData.parentNo = null" @focus="fuYiZhuClick">
-        <el-option v-for="item in fuYiZhuData" :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>
-          <span>{{ item.name }}</span>
-        </el-option>
-      </el-select>
-    </div>
-    <div :title="yiZhuData.discription" class="div_center__box">
-      描述:
-      <div class="input__style" style="overflow: auto;width: 240px">
-        {{ yiZhuData.discription }}
+    <div class="yz_input__box">
+      <div>
+        给药方式:
+        <xc-select-v3
+            style="width: 120px"
+            v-model="yiZhuData"
+            :data="geiYaoFangShiData"
+            id="yz_supplyCode"
+            code="supplyCode"
+            name="supplyCodeName"
+            :remote-method="geiYaoFangShiRemoteMethod"
+            clearable/>
+      </div>
+      <div>
+        开始时间:
+        <el-date-picker
+            style="width: 160px"
+            v-model="yiZhuData.startTime"
+            :disabled-date="disabledDate"
+            id="yz_startTime"
+            format="YYYY-MM-DD HH:mm:ss"
+            type="datetime"
+            value-format="YYYY-MM-DD HH:mm:ss"
+        ></el-date-picker>
+      </div>
+      <div>
+        停止时间:
+        <el-date-picker
+            style="width: 160px"
+            v-model="yiZhuData.endTime"
+            id="yz_endTime"
+            :disabled="yiZhuData.frequCode === 'ONCE'"
+            :disabled-date="disabledDate"
+            format="YYYY-MM-DD HH:mm:ss"
+            type="datetime"
+            value-format="YYYY-MM-DD HH:mm:ss"
+        ></el-date-picker>
+      </div>
+      <div class="input__style" style="width: 120px">
+        医生: {{ store.state.user.info.name }}
+      </div>
+      <div>
+        执行科室:
+        <xc-select-v3
+            style="width: 120px"
+            v-model="yiZhuData"
+            :data="zhiXingKeShiData"
+            id="yz_execUnit"
+            code="execUnit"
+            name="execUnitName"
+            :remote-method="metZhiXingKeShi"/>
       </div>
     </div>
-    <div>
-      <!--  皮试药品    -->
-      <el-select></el-select>
+
+    <div class="yz_input__box">
+      <div class="div_center__box">
+        医嘱时间:
+        <div class="input__style"> {{ yiZhuData.orderTime }}</div>
+      </div>
+      <div>
+        父医嘱:
+        <el-select v-model="yiZhuData.parentNo"
+                   :disabled="yiZhuData.serial === '00'"
+                   id="yz_parentNo"
+                   clearable
+                   @clear="yiZhuData.parentNo = null" @focus="fuYiZhuClick">
+          <el-option v-for="item in fuYiZhuData" :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>
+            <span>{{ item.name }}</span>
+          </el-option>
+        </el-select>
+      </div>
+      <div :title="yiZhuData.discription" class="div_center__box">
+        描述:
+        <div class="input__style" style="overflow: auto;width: 240px">
+          {{ yiZhuData.discription }}
+        </div>
+      </div>
+      <div>
+        <!--  皮试药品    -->
+        <el-select></el-select>
+      </div>
     </div>
-  </div>
 
-  <div class="yz_input__box">
-    <div class="div_center__box" :title="yiZhuData.instruction">
-      <div style="width: 87px">
-        医生嘱托:
+    <div class="yz_input__box">
+      <div class="div_center__box" :title="yiZhuData.instruction">
+        <div style="width: 87px">
+          医生嘱托:
+        </div>
+
+        <el-input v-model="yiZhuData.instruction"
+                  clearable
+                  maxlength="50"
+                  show-word-limit></el-input>
+      </div>
+      <div class="div_center__box">
+        <el-select v-model="yiZhuData.kfFlag"
+                   id="yz_kfFlag"
+                   clearable style="width: 80px" @clear="yiZhuData.kfFlag = null">
+          <el-option key="1" label="饭前" value="1"></el-option>
+          <el-option key="2" label="饭后" value="2"></el-option>
+        </el-select>
+      </div>
+      <div>
+        费用标志:
+        <el-select v-model="yiZhuData.selfBuy"
+                   id="yz_selfBuy"
+                   clearable style="width: 120px"
+                   @clear="yiZhuData.selfBuy = null">
+          <el-option key="1" label="自备" value="1"></el-option>
+          <el-option key="2" label="嘱托" value="2"></el-option>
+          <el-option key="3" label="基数药" value="3"></el-option>
+        </el-select>
+      </div>
+      <div class="div_center__box">
+        <xc-checkbox
+            label="医保自费"
+            v-model="yiZhuData.ybSelfFlag"
+            inactive-value="0"
+            active-value="1"/>
+        &nbsp;&nbsp;&nbsp;
+        <xc-checkbox
+            label="紧急"
+            v-model="yiZhuData.emergencyFlag"
+            active-value="1"
+            inactive-value="0"
+        />
       </div>
 
-      <el-input v-model="yiZhuData.instruction"
-                clearable
-                maxlength="50"
-                show-word-limit></el-input>
     </div>
-    <div class="div_center__box">
-      <el-select v-model="yiZhuData.kfFlag"
-                 id="yz_kfFlag"
-                 clearable style="width: 80px" @clear="yiZhuData.kfFlag = null">
-        <el-option key="1" label="饭前" value="1"></el-option>
-        <el-option key="2" label="饭后" value="2"></el-option>
-      </el-select>
-    </div>
-    <div>
-      费用标志:
-      <el-select v-model="yiZhuData.selfBuy"
-                 id="yz_selfBuy"
-                 clearable style="width: 120px"
-                 @clear="yiZhuData.selfBuy = null">
-        <el-option key="1" label="自备" value="1"></el-option>
-        <el-option key="2" label="嘱托" value="2"></el-option>
-        <el-option key="3" label="基数药" value="3"></el-option>
-      </el-select>
-    </div>
-    <div class="div_center__box">
-      <xc-checkbox
-          label="医保自费"
-          v-model="yiZhuData.ybSelfFlag"
-          inactive-value="0"
-          active-value="1"/>
-      &nbsp;&nbsp;&nbsp;
-      <xc-checkbox
-          label="紧急"
-          v-model="yiZhuData.emergencyFlag"
-          active-value="1"
-          inactive-value="0"
-      />
-    </div>
-
   </div>
 
   <el-form v-if="false" ref="yiZhuRef" v-model="yiZhuData" label-width="90px" size="small">
@@ -249,13 +251,13 @@
       <el-col :span="span">
         <el-form-item class="bi_tian" label="频率:" prop="frequCode">
           <xc-select-v3 style="width: 120px"
-                       v-model="yiZhuData"
-                       :data="yaoPinPingLvData"
-                       code="frequCode"
-                       name="frequCodeName"
-                       :remote-method="pinLvRemoteMethod"
-                       id="yz_frequCode"
-                       ref="pingLv"/>
+                        v-model="yiZhuData"
+                        :data="yaoPinPingLvData"
+                        code="frequCode"
+                        name="frequCodeName"
+                        :remote-method="pinLvRemoteMethod"
+                        id="yz_frequCode"
+                        ref="pingLv"/>
         </el-form-item>
       </el-col>
       <el-col :span="span">
@@ -617,7 +619,7 @@ import {useDocumentVisibility} from "@vueuse/core";
 import {xcMessage} from "@/utils/xiaochan-element-plus";
 import XcComboGrid from "@/components/xiao-chan/combo-grid/XcComboGrid";
 import XcCheckbox from "@/components/xiao-chan/checkbox/XcCheckbox";
-import YzTable from "@/components/zhu-yuan-yi-sheng/yi-zhu-lu-ru/YzTable";
+import YzTable from "@/components/zhu-yuan-yi-sheng/yi-zhu-lu-ru/table/YzTable";
 import XcSelectV3 from "@/components/xiao-chan/select-v3/XcSelectV3";
 
 
@@ -733,8 +735,7 @@ watch(
 
 // 搜索医嘱
 const xuanZhongFeiYong = async (row) => {
-
-
+  // 记得处置医嘱
   fuYiZhuClick()
   qingKong()
   await Sleep(200)

+ 20 - 187
src/views/hospitalization/zhu-yuan-yi-sheng/yi-zhu-lu-ru/YiZhuLuRu.vue

@@ -1,45 +1,7 @@
 <template>
   <div style="width: 100%;">
-    <yz-query-condition :patient-info="huanZheXinXi"/>
-    <div v-if="false">
-      <el-date-picker
-          v-model="dateRange"
-          :shortcuts="shortcuts"
-          end-placeholder="结束日期"
-          placeholder="选择日期"
-          range-separator="至"
-          size="small"
-          start-placeholder="开始日期"
-          style="width: 220px"
-          type="daterange"/>
-      医嘱名称:
-      <el-select v-model="orderName" :remote-method="remoteMethodChargeCode" clearable filterable remote
-                 style="width: 120px">
-        <el-option v-for="item in yiZhuMingZiData" :key="item.code" :label="item.name" :value="item.code">
-          <span>{{ item.name }}</span>
-        </el-option>
-      </el-select>
-      医嘱号:
-      <el-input v-model="actOrderNo"
-                style="width: 120px"
-                onkeyup="this.value=this.value.replace(/[^\d]/g,'') "/>
-      频率:
-      <el-select v-model="pinLv" :disabled="zhuangTai === 8 || zhuangTai === 9" clearable filterable size="small"
-                 style="width: 120px">
-        <el-option v-for="item in huanZhePinLvData" :key="item.code" :label="item.name" :value="item.code">
-          <span>{{ item.name }}</span>
-        </el-option>
-      </el-select>
-      状态:
-      <el-select v-model="zhuangTai" filterable size="small" style="width: 120px" @change="zhuangTaiXuanZhe">
-        <el-option v-for="item in zhuangTaiList" :key="item.code" :label="item.name" :value="item.code">
-          <span>{{ item.code }}</span>
-          <el-divider direction="vertical"/>
-          <span>{{ item.name }}</span>
-        </el-option>
-      </el-select>
-      <el-divider direction="vertical"/>
-      <el-button icon="Search" type="primary" @click="chaXunYiZhuClick(0)">查询</el-button>
+    <yz-query-condition :patient-info="huanZheXinXi" ref="yzQueryRef" :return-data="queryReturnData"/>
+    <div>
       <el-divider style="margin: 2px 0"></el-divider>
       <el-tag effect="dark" type="info">录入</el-tag>
       <el-tag effect="dark" type="success">确认</el-tag>
@@ -59,87 +21,14 @@
       <el-button type="primary" @click="openElectronicMedicalRecord"> 电子病历</el-button>
       <el-button type="danger" @click="clickDrugReturn"> 退药</el-button>
     </div>
-    <xc-table :data="yiZhuPage"
-              row-key="id"
-              @currentChange="handleCurrentChange"
-              @sizeChange="handleSizeChange"
-              :height="230"
-              @rowContextmenu="clickToViewTheDoctorSOrderFee"
-              @selectionChange="huoQuXuanZhongDeShuJu"
-              ref="tableRef">
-      <el-table-column fixed="left" type="selection" :reserve-selection="true"></el-table-column>
-      <el-table-column fixed="left" label="医嘱号" prop="actOrderNo"
-                       width="120" show-overflow-tooltip>
-        <template #default="scope">
-          <el-tag :type="getYiZhuFlag(scope.row.statusFlag)" effect="dark">
-            {{ scope.row.actOrderNo }}
-          </el-tag>
-        </template>
-      </el-table-column>
-      <el-table-column fixed="left" width="20">
-        <template #default="scope">
-          <span style="color: red">{{ scope.row.orderGroup }}</span>
-        </template>
-      </el-table-column>
-      <el-table-column fixed="left" label="医嘱名称" show-overflow-tooltip width="135">
-        <template #default="scope">
-          {{ scope.row.orderName }}
-        </template>
-      </el-table-column>
-      <el-table-column label="剂量" prop="doseUnitName">
-        <template #default="scope">
-          <span>{{ scope.row.dose }} {{ scope.row.doseUnitName }}</span>
-        </template>
-      </el-table-column>
-      <el-table-column label="频率" prop="frequCodeName"></el-table-column>
-      <el-table-column label="给药方式" prop="supplyCodeName" show-overflow-tooltip></el-table-column>
-      <el-table-column label="医嘱时间" prop="orderTime" show-overflow-tooltip></el-table-column>
-      <el-table-column label="开始时间" prop="startTime" show-overflow-tooltip></el-table-column>
-      <el-table-column label="录入人" prop="physicianName"></el-table-column>
-      <el-table-column label="确认时间" prop="confirmTime" show-overflow-tooltip></el-table-column>
-      <el-table-column label="确认人" prop="signerName"></el-table-column>
-      <el-table-column label="结束时间" prop="endTime" show-overflow-tooltip></el-table-column>
-      <el-table-column label="停止人" prop="modifierName" show-overflow-tooltip></el-table-column>
-      <el-table-column label="紧急" prop="emergencyFlag">
-        <template #default="scope">
-          <span v-if="scope.row.emergencyFlag === '1'">是</span>
-        </template>
-      </el-table-column>
-      <el-table-column label="医保自费" prop="ybSelfFlag">
-        <template #default="scope">
-          <span v-if="scope.row.ybSelfFlag === '1'">是</span>
-        </template>
-      </el-table-column>
-      <el-table-column label="医生" prop="physicianName"></el-table-column>
-      <el-table-column label="费用标志" prop="selfBuyName"></el-table-column>
-      <el-table-column label="执行科室" prop="execUnitName"></el-table-column>
-      <el-table-column label="领量" prop="drugQuanName">
-        <template #default="scope">
-          <span>{{ scope.row.drugQuan }} {{ scope.row.drugQuanName }}</span>
-        </template>
-      </el-table-column>
-      <el-table-column label="类别" prop="drugFlagName">
-        <template #default="scope">
-          <span>{{ scope.row.drugFlag }} {{ scope.row.drugFlagName }}</span>
-        </template>
-      </el-table-column>
-      <el-table-column label="药房" prop="groupNoName"></el-table-column>
-      <el-table-column label="序号" prop="serialName"></el-table-column>
-      <el-table-column fixed="right" width="220">
-        <template #header>
-          <el-button size="small" @click="clearSelection" type="warning">清空选择</el-button>
-        </template>
-        <template #default="scope">
-          <el-button text :disabled="scope.row.statusFlag === '5'"
-                     @click.stop="dianJiYiZhuChaoZuo(scope.row, 1,'无')">
-            <span v-if="scope.row.emergencyFlag === '1'">取消</span>
-            <span v-else>紧急</span>
-          </el-button>
-          <el-button text @click.stop="dianJiYiZhuChaoZuo(scope.row, 2, '撤销医嘱')" type="warning"> 撤销</el-button>
-          <el-button text @click.stop="dianJiYiZhuChaoZuo(scope.row, 3, '停止医嘱')" type="danger"> 停止</el-button>
-        </template>
-      </el-table-column>
-    </xc-table>
+
+    <div>
+      <yz-editor :patient-info="huanZheXinXi"/>
+    </div>
+
+    <div style="height: 400px;overflow: auto">
+      <yz-table :data="yzData"/>
+    </div>
 
     <el-dialog v-model="yiZhuChaoZuoDialog"
                :close-on-click-modal="false" :close-on-press-escape="false"
@@ -191,7 +80,6 @@ import {
   youWuXuanZheHuanZhe,
   zkList
 } from '../public-js/zhu-yuan-yi-sheng'
-import {getDateRangeFormatDate} from '@/utils/date'
 import store from '@/store'
 import {stringIsBlank, stringNotBlank} from '@/utils/blank-utils'
 import {getServerDateApi, getTheTransferList} from '@/api/public-api'
@@ -202,6 +90,8 @@ import DoctorSOrderFee from "@/components/zhu-yuan-yi-sheng/yi-zhu-lu-ru/DoctorS
 import {BizException, ExceptionEnum} from "@/utils/BizException";
 import {ElMessage, ElMessageBox} from "element-plus";
 import YzQueryCondition from "@/components/zhu-yuan-yi-sheng/yi-zhu-lu-ru/YzQueryCondition";
+import YzTable from "@/components/zhu-yuan-yi-sheng/yi-zhu-lu-ru/table/YzTable";
+import YzEditor from "@/components/zhu-yuan-yi-sheng/yi-zhu-lu-ru/yz-edit/YzEditor";
 
 const windowSize = computed(() => {
   return store.state.app.windowSize
@@ -211,10 +101,13 @@ const user = computed(() => {
   return store.state.user.info
 })
 
-const dateRange = ref([])
-// 根据医嘱的名字来进行搜索
-let orderName = $ref('')
-const yiZhuMingZiData = ref([])
+const yzQueryRef = ref(null)
+const yzData = ref([])
+const queryReturnData = (data) => {
+  yzData.value = data
+  console.log(data)
+}
+
 // 获取频率
 const pinLv = ref(2)
 // 表格
@@ -231,14 +124,6 @@ const yiZhuPage = ref({
   data: [],
 })
 
-const remoteMethodChargeCode = (val) => {
-  if (youWuXuanZheHuanZhe()) return
-  if (val.length > 1) {
-    huoQuYiZhuMingCheng(huanZheXinXi.value.inpatientNo, huanZheXinXi.value.admissTimes, val).then((res) => {
-      yiZhuMingZiData.value = res
-    })
-  }
-}
 
 // 根据医嘱的名字来进行搜索 结束
 const zhuangTaiList = ref([
@@ -255,24 +140,19 @@ const zhuangTaiList = ref([
 
 const zhuangTaiXuanZhe = (val) => {
   if (val >= 6) {
-    orderName = ''
     pinLv.value = ''
   }
 }
 
 const chaXunYiZhuClick = (total) => {
   if (youWuXuanZheHuanZhe()) return
-  const dateS = getDateRangeFormatDate(dateRange.value)
   let data = {
     currentPage: yiZhuPage.value.currentPage,
     pageSize: yiZhuPage.value.pageSize,
     total: total,
     patNo: huanZheXinXi.value.inpatientNo,
     times: huanZheXinXi.value.admissTimes,
-    startTime: dateS.startTime,
-    endTime: dateS.endTime,
     frequCode: pinLv.value,
-    orderName: orderName,
     zhuangTai: zhuangTai.value,
     actOrderNo: actOrderNo
   }
@@ -305,27 +185,7 @@ const clearSelection = () => {
  * 下面这里是添加医嘱了
  */
 const addYiZhuClick = () => {
-  let key = huanZheXinXi.value.inpatientNo + huanZheXinXi.value.admissTimes + 'yzOrder'
-  let temp = localStorage.getItem('residentDoctor')
-  if (temp !== null) {
-    temp = JSON.parse(temp)
 
-    if (temp.length > 5) {
-      BizException(ExceptionEnum.LOGICAL_ERROR, '打开的窗口太多了请先关闭一些。')
-    }
-    if (temp.includes(key)) {
-      BizException(ExceptionEnum.LOGICAL_ERROR, '此患者,已经有打开的医嘱窗口了,请勿重新打开。')
-    }
-  }
-  let routeData = router.resolve({
-    name: 'openNewWindow',
-    query: {
-      patNo: huanZheXinXi.value.inpatientNo,
-      times: huanZheXinXi.value.admissTimes,
-      path: 'yzOrder'
-    },
-  })
-  window.open(routeData.href, '_blank');
 }
 
 /**
@@ -464,21 +324,7 @@ const clickToViewTheDoctorSOrderFee = (val) => {
     BizException(ExceptionEnum.MESSAGE_ERROR, '该医嘱还没有产生费用')
   }
 }
-const getFeeInfor = (actOrderNo) => {
-  try {
-    let problem = doctorSOrderFee.problem[actOrderNo]
-    if (typeof problem === 'undefined') {
-      problem = ''
-    } else {
-      problem = '有' + problem
-    }
-    return `<br>金额:${doctorSOrderFee.totalCost[actOrderNo].sum} 元,
-    ${doctorSOrderFee.totalCost[actOrderNo].amount}条,
-    <br/>${problem}`
-  } catch (e) {
-    return ""
-  }
-}
+
 
 onMounted(async () => {
   await sleep(200)
@@ -487,19 +333,6 @@ onMounted(async () => {
 })
 
 
-watch(
-    () => huanZheXinXi.value,
-    () => {
-      expensesForGettingADoctorSOrder(huanZheXinXi.value.inpatientNo, huanZheXinXi.value.admissTimes).then((res) => {
-        doctorSOrderFee = res
-      })
-
-      getServerDateApi().then((res) => {
-        chaXunYiZhuClick(0)
-      })
-    }
-)
-
 function getYiZhuFlag(val) {
   if (stringIsBlank(val)) {
     return 'warning'