|
|
@@ -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
|