Commit 6a513f57 authored by 高滢's avatar 高滢

住院押金分页

parent bb9225ff
......@@ -86,3 +86,12 @@ export function listInHospitalNoPage(query) {
params: query
})
}
// 住院详情押金信息
export function listCashPage(query) {
return request({
url: '/business/trade/his/selectFinListPage',
method: 'get',
params: query
})
}
......@@ -397,6 +397,14 @@
</template>
</el-table-column>
</el-table>
<pagination
v-show="totalCash>10"
:total="totalCash"
:page.sync="cashParams.pageNum"
:limit.sync="cashParams.pageSize"
:page-sizes="[10]"
@pagination="getCashList"
/>
</div>
<div v-if="detailInfo.status<4" style="margin-left: -1rem;padding-left: 16px;">
......@@ -425,7 +433,7 @@
</template>
<script>
import { getHospital } from '@/api/business/inHospital'
import { getHospital, listCashPage } from '@/api/business/inHospital'
import HandlingAdmissions from '@/views/service-management/hospitalization-management/components/handling-admissions.vue'
import HandleDischarge from '@/views/service-management/hospitalization-management/components/handle-discharge.vue'
import AssignWards from '@/views/service-management/hospitalization-management/components/assign-wards.vue'
......@@ -455,6 +463,7 @@ export default {
disChargeFlag: '1',
// 押金信息
finTradeHis: [],
totalCash: 0,
// 住院信息
hosDetailBos: [],
// 入院弹出框
......@@ -472,13 +481,24 @@ export default {
value: '1',
label: '否'
}
]
],
cashParams: {
pagenum: 1,
pagesize: 20,
medicalRecordId: ''
}
}
},
created() {
this.getInfo(this.$route.params.id)
},
methods: {
getCashList() {
listCashPage(this.cashParams).then(res => {
this.totalCash = res.total
this.finTradeHis = res.rows
})
},
moneyFormat,
admissionModleClose() {
this.getInfo(this.$route.params.id)
......@@ -536,8 +556,9 @@ export default {
getHospital(id).then(res => {
this.detailInfo = res.data
this.hosDetailBos = res.data.hosDetailBos
this.finTradeHis = res.data.finTradeHis
this.cashParams.medicalRecordId = res.data.medicalRecordId
console.log('详情', res)
this.getCashList()
})
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment