|
@@ -40,19 +40,20 @@
|
|
|
<el-table-column label="是否自费" width="130">
|
|
|
<template #default="scope">
|
|
|
<el-switch
|
|
|
- v-model="scope.row.ybSelfFlag"
|
|
|
- :active-value="1"
|
|
|
- :inactive-value="0"
|
|
|
- active-color="#ff4949"
|
|
|
- active-text="自费"
|
|
|
- inactive-color="#13ce66"
|
|
|
- inactive-text="医保"
|
|
|
+ v-model="scope.row.ybSelfFlag"
|
|
|
+ :active-value="1"
|
|
|
+ :inactive-value="0"
|
|
|
+ active-color="#ff4949"
|
|
|
+ active-text="自费"
|
|
|
+ inactive-color="#13ce66"
|
|
|
+ inactive-text="医保"
|
|
|
></el-switch>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="医生" width="70px">
|
|
|
<template #default="scope">
|
|
|
- <el-select v-model="scope.row.doctorCode" :remote-method="remoteMethodRenYuan" clearable filterable remote style="width: 100px">
|
|
|
+ <el-select v-model="scope.row.doctorCode" :remote-method="remoteMethodRenYuan" clearable filterable remote
|
|
|
+ style="width: 100px">
|
|
|
<el-option v-for="item in renYuanList" :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>
|
|
@@ -78,7 +79,8 @@
|
|
|
<el-table-column label="数量" prop="amount" width="130">
|
|
|
<template #default="scope">
|
|
|
<!--precision 限制输入的精度 0 就是不带任何一位小数点 -->
|
|
|
- <el-input-number v-model="scope.row.amount" :min="0" :precision="1" style="width: 120px"></el-input-number>
|
|
|
+ <el-input-number v-model="scope.row.amount" :min="0" :precision="1"
|
|
|
+ style="width: 120px"></el-input-number>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table-column>
|
|
@@ -102,23 +104,23 @@
|
|
|
<el-button type="primary" @click="rmChargePyCode">查询</el-button>
|
|
|
<el-divider direction="vertical"></el-divider>
|
|
|
<el-switch
|
|
|
- v-model="xiangMuHuoYaoPinFlag"
|
|
|
- :active-value="1"
|
|
|
- :inactive-value="0"
|
|
|
- active-color="#409EFF"
|
|
|
- active-text="药品"
|
|
|
- inactive-color="#13ce66"
|
|
|
- inactive-text="项目"
|
|
|
+ v-model="xiangMuHuoYaoPinFlag"
|
|
|
+ :active-value="1"
|
|
|
+ :inactive-value="0"
|
|
|
+ active-color="#409EFF"
|
|
|
+ active-text="药品"
|
|
|
+ inactive-color="#13ce66"
|
|
|
+ inactive-text="项目"
|
|
|
></el-switch>
|
|
|
<el-divider direction="vertical"></el-divider>
|
|
|
<el-table
|
|
|
- :data="
|
|
|
+ :data="
|
|
|
xiangMuHuoYaoPinShuJu.data.slice(
|
|
|
(xiangMuHuoYaoPinShuJu.currentPage - 1) * xiangMuHuoYaoPinShuJu.pageSize,
|
|
|
xiangMuHuoYaoPinShuJu.currentPage * xiangMuHuoYaoPinShuJu.pageSize
|
|
|
)
|
|
|
"
|
|
|
- :height="tableHeight / 1.2"
|
|
|
+ :height="tableHeight / 1.2"
|
|
|
>
|
|
|
<el-table-column label="操作" width="40">
|
|
|
<template #default="scope">
|
|
@@ -158,13 +160,13 @@
|
|
|
<el-table-column v-if="xiangMuHuoYaoPinFlag === 1" label="医保类型" prop="yblx"></el-table-column>
|
|
|
</el-table>
|
|
|
<el-pagination
|
|
|
- :current-page="xiangMuHuoYaoPinShuJu.currentPage"
|
|
|
- :page-size="xiangMuHuoYaoPinShuJu.pageSize"
|
|
|
- :total="xiangMuHuoYaoPinShuJu.data.length"
|
|
|
- background
|
|
|
- layout="total, sizes, prev, pager, next, jumper"
|
|
|
- @size-change="xinZhengSizeChange"
|
|
|
- @current-change="xinZhengCurrentChange"
|
|
|
+ :current-page="xiangMuHuoYaoPinShuJu.currentPage"
|
|
|
+ :page-size="xiangMuHuoYaoPinShuJu.pageSize"
|
|
|
+ :total="xiangMuHuoYaoPinShuJu.data.length"
|
|
|
+ background
|
|
|
+ layout="total, sizes, prev, pager, next, jumper"
|
|
|
+ @size-change="xinZhengSizeChange"
|
|
|
+ @current-change="xinZhengCurrentChange"
|
|
|
>
|
|
|
</el-pagination>
|
|
|
</el-dialog>
|
|
@@ -192,13 +194,22 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { computed, onMounted, ref, watch } from 'vue'
|
|
|
-import { getBingQuDuiYingKeShi, getDept, getMuBanXinXi, getPyCode, getWard, queryDanGeXiangMu, shangChuanMuBan, xiangMuFeiYongShangChuan } from '@/api/inpatient/xiang-mu-lu-ru'
|
|
|
-import { getRenYuan } from '../../api/public-api.js'
|
|
|
+import {computed, onMounted, ref, watch} from 'vue'
|
|
|
+import {
|
|
|
+ getBingQuDuiYingKeShi,
|
|
|
+ getDept,
|
|
|
+ getMuBanXinXi,
|
|
|
+ getPyCode,
|
|
|
+ getWard,
|
|
|
+ queryDanGeXiangMu,
|
|
|
+ shangChuanMuBan,
|
|
|
+ xiangMuFeiYongShangChuan
|
|
|
+} from '@/api/inpatient/xiang-mu-lu-ru'
|
|
|
+import {getRenYuan} from '../../api/public-api.js'
|
|
|
import store from '@/store'
|
|
|
-import { getDatetime } from '@/utils/date'
|
|
|
-import { ElMessage, ElMessageBox } from 'element-plus'
|
|
|
-import { clone } from '@/utils/clone'
|
|
|
+import {getDatetime} from '@/utils/date'
|
|
|
+import {ElMessage, ElMessageBox} from 'element-plus'
|
|
|
+import {clone} from '@/utils/clone'
|
|
|
import HuoQuMuBan from './HuoQuMuBan.vue'
|
|
|
|
|
|
export default {
|
|
@@ -280,18 +291,24 @@ export default {
|
|
|
orderNo: 3,
|
|
|
ledgerSn: props.patient.ledgerSn,
|
|
|
}
|
|
|
+
|
|
|
+ if (feiYongShuJu.value.length === 0) {
|
|
|
+ return ElMessage.error('请先选择上传数据。')
|
|
|
+ }
|
|
|
+
|
|
|
//在此处上传
|
|
|
ElMessageBox.confirm('共上传【' + feiYongShuJu.value.length + '】条', '请认真核对', {
|
|
|
cancelButtonText: '取消',
|
|
|
confirmButtonText: '确定',
|
|
|
})
|
|
|
- .then(() => {
|
|
|
- xiangMuFeiYongShangChuan(shangChuanFeiYong).then(() => {
|
|
|
- feiYongShuJu.value = []
|
|
|
- chargeCode.value = []
|
|
|
+ .then(() => {
|
|
|
+ xiangMuFeiYongShangChuan(shangChuanFeiYong).then(() => {
|
|
|
+ feiYongShuJu.value = []
|
|
|
+ chargeCode.value = []
|
|
|
+ })
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
})
|
|
|
- })
|
|
|
- .catch(() => {})
|
|
|
}
|
|
|
|
|
|
const shanChuXiangMuClick = (val) => {
|
|
@@ -358,15 +375,15 @@ export default {
|
|
|
})
|
|
|
|
|
|
watch(
|
|
|
- () => props.patient,
|
|
|
- () => {
|
|
|
- // 这里刚好是反着的
|
|
|
- queryWard.value = props.patient.admissDept
|
|
|
- getBingQuDuiYingKeShiChange()
|
|
|
- setTimeout(() => {
|
|
|
- queryDept.value = props.patient.zkWard
|
|
|
- }, 100)
|
|
|
- }
|
|
|
+ () => props.patient,
|
|
|
+ () => {
|
|
|
+ nextTick(() => {
|
|
|
+ // 这里刚好是反着的
|
|
|
+ queryWard.value = props.patient.admissDept
|
|
|
+ getBingQuDuiYingKeShiChange()
|
|
|
+ queryDept.value = props.patient.zkWard
|
|
|
+ })
|
|
|
+ }
|
|
|
)
|
|
|
// 以下是保存模板
|
|
|
const baoCunMuBanDialog = ref(false)
|
|
@@ -438,10 +455,10 @@ export default {
|
|
|
}
|
|
|
|
|
|
watch(
|
|
|
- () => xiangMuHuoYaoPinFlag.value,
|
|
|
- () => {
|
|
|
- xiangMuHuoYaoPinShuJu.value.data = []
|
|
|
- }
|
|
|
+ () => xiangMuHuoYaoPinFlag.value,
|
|
|
+ () => {
|
|
|
+ xiangMuHuoYaoPinShuJu.value.data = []
|
|
|
+ }
|
|
|
)
|
|
|
const renYuanList = ref([])
|
|
|
|