Procházet zdrojové kódy

优化住院医生提示

DESKTOP-MINPJAU\Administrator před 3 roky
rodič
revize
a18cab9572

+ 0 - 1
src/utils/request.js

@@ -67,7 +67,6 @@ service.interceptors.response.use(
                 dangerouslyUseHTMLString: true,
                 message: response.data.message,
                 showClose: true,
-                offset: 130,
             })
             return response.data.data
         }

+ 19 - 3
src/views/hospitalization/zhu-yuan-yi-sheng/yi-zhu-lu-ru/TianJiaYiZhu.vue

@@ -299,7 +299,11 @@
   >
     <el-table-column type="expand">
       <template #default="props">
-
+        <div v-if="feeInformation.get(props.row.id)" style="min-height: 40px;margin: 10px">
+          <el-tag v-for="item in feeInformation.get(props.row.id)">
+            {{ item }}
+          </el-tag>
+        </div>
       </template>
     </el-table-column>
     <el-table-column type="selection"></el-table-column>
@@ -575,7 +579,7 @@ const xuanZhongFeiYong = async (row) => {
       yiZhuData.value.execUnit = huanZheXinXi.value.smallDept
       yiZhuData.value.execUnitName = huanZheXinXi.value.smallDeptName
     }
-  } else if (row.execUnit.startsWith("8")) {
+  } else if (huanZheXinXi.value.smallDept && row.execUnit.startsWith("8")) {
     yiZhuData.value.execUnit = huanZheXinXi.value.smallDept
     yiZhuData.value.execUnitName = huanZheXinXi.value.smallDeptName
   }
@@ -751,15 +755,27 @@ const dianJiFuZhiYiZhu = (val) => {
 }
 
 // 展开table
+let feeInformation = $ref(new Map())
 const expandChange = (row, expandedRows) => {
-  console.log(row, expandedRows)
+  if (feeInformation.has(row.id)) {
+    return
+  }
+  huoQuFeiYongXinXi(row.orderCode, row.serial, huanZheXinXi.value.smallDept).then((res) => {
+    if (res.prompt) {
+      feeInformation.set(row.id, res.prompt)
+    }
+  }).catch((e) => {
+    feeInformation.set(row.id, [e])
+  })
 }
 
+
 let synopsisDialog = $ref({
   dialog: false,
   code: ''
 })
 
+// 查看药品的使用信息
 const synopsis = (val) => {
   synopsisDialog.dialog = true
   synopsisDialog.code = val.orderCode + '_' + val.serial

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

@@ -440,7 +440,7 @@ const getFeeInfor = (actOrderNo) => {
 
 onMounted(async () => {
   await sleep(200)
-  addYiZhuClick()
+  // addYiZhuClick()
   zkList.value = await getTheTransferList()
 })