<template>
  <input-list-page
    ref="listPage"
    :audit-mode="false"
    input-type="doctor"
    form-path="/subPackages/sub_salesperson/doctor-input/form"
    detail-path="/subPackages/sub_salesperson/doctor-input/detail"
  />
</template>
<script>
import InputListPage from '@/subPackages/sub_salesperson/input/InputListPage.vue'
import { getInputBusinessContext } from '@/subPackages/sub_salesperson/common/context.js'
export default {
  components: { InputListPage },
  provide() { return { businessContext: getInputBusinessContext() } },
  onShow() {
    this.$refs.listPage?.reload?.()
  },
  onLoad(q) {
    this.$nextTick(() => {
      this.$refs.listPage?.handlePageLoad?.(q)
    })
  },
  onReachBottom() {
    const p = this.$refs.listPage
    if (p) p.load(p.page + 1, true)
  },
}
</script>
