xiaochan před 3 roky
rodič
revize
dae961a652

+ 6 - 0
src/utils/date.js

@@ -135,6 +135,12 @@ export function formatMonth(date) {
     return year + '-' + ('0' + month).slice(-2)
 }
 
+/**
+ * 格式化日期
+ * @param date 日期
+ * @param pattern 格式
+ * @returns {string} 返回格式好的日期
+ */
 export function getFormatDatetime(date, pattern) {
     if (stringIsBlank(pattern)) {
         pattern = "YYYY-MM-DD HH:mm:ss"

+ 7 - 6
src/views/hospitalization/zhu-yuan-yi-sheng/yi-zhu-lu-ru/YiZhuLuRu.vue

@@ -13,8 +13,8 @@
           type="daterange">
       </el-date-picker>
       医嘱名称:
-      <el-select v-model="orderName" :remote-method="remoteMethodChargeCode" clearable filterable remote
-                 style="width: 120px">
+      <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>
@@ -293,7 +293,7 @@ const dianJiYiZhuChaoZuo = ({actOrderNo, orderName}, flag, name) => {
   if (flag === 1) {
     zhiXingChaoZuo()
   } else {
-    yiZhuChaoZuoDialog.value = true
+    yiZhuChaoZuoDialog = true
     if (flag === 2) {
       yiZhuChaoZuoBiaoTi = '撤销医嘱'
     } else if (flag === 3) {
@@ -313,7 +313,7 @@ const zhiXingChaoZuo = () => {
     })
     piLiangXiuGaiTingZhiShiJian(data).then((res) => {
       handleCurrentChange(yiZhuPage.value.currentPage)
-      yiZhuChaoZuoDialog.value = false
+      yiZhuChaoZuoDialog = false
     })
   } else {
     let data = ''
@@ -324,13 +324,13 @@ const zhiXingChaoZuo = () => {
     }
     yiZhuChaoZuo(yiZhuHao.value, chaoZuoBiaoZhi.value, data).then((res) => {
       handleCurrentChange(yiZhuPage.value.currentPage)
-      yiZhuChaoZuoDialog.value = false
+      yiZhuChaoZuoDialog = false
       content.value = ''
     })
   }
 }
 
-const yiZhuChaoZuoDialog = ref(false)
+let yiZhuChaoZuoDialog = $ref(false)
 const content = ref('')
 const tingZhiRiQi = ref('')
 const chaoZuoBiaoZhi = ref(0)
@@ -437,4 +437,5 @@ function getYiZhuFlag(val) {
   line-height: 26px;
   font-weight: bold;
 }
+
 </style>