eight
2024-10-30 ae77ce60725f0bf717c03cc16581166eb349cf35
update
已修改2个文件
38 ■■■■■ 文件已修改
.env.local 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/ecg/appointment/AppointmentConfirm.vue 36 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
.env.local
@@ -4,7 +4,7 @@
VITE_DEV=true
# 请求路径
VITE_BASE_URL='http://192.168.2.100:48080'
VITE_BASE_URL='http://localhost:48080'
# 文件上传类型:server - 后端上传, client - 前端直连上传,仅支持 S3 服务
VITE_UPLOAD_TYPE=server
src/views/ecg/appointment/AppointmentConfirm.vue
@@ -24,7 +24,7 @@
          <el-radio
            v-for="dict in getIntDictOptions(DICT_TYPE.SYSTEM_USER_SEX)"
            :key="dict.value"
            :label="dict.value"
            :value="dict.value"
          >
            {{ dict.label }}
          </el-radio>
@@ -120,12 +120,7 @@
const message = useMessage() // 消息弹窗
const loading = ref(true) // 列表的加载中
const list = ref<AppointmentVO[]>([]) // 列表的数据
const total = ref(0) // 列表的总页数
const queryParams = reactive({
    pageNo: 1,
    pageSize: 10,
    patId: undefined
})
@@ -154,27 +149,22 @@
const searchBookInfo = async () => {
  resetForm()
  total.value = 0
  list.value = []
  await getList()
  if (total.value === 1) {
    formData.value = list.value[0]
  if (null === queryParams.patId || "" === queryParams.patId)
    return
  const data = await AppointmentApi.getAppointmentByPatId(queryParams.patId) // 对应数据库中 pat_id
  console.info( data )
  if (null !== data) {
    formData.value = data
    return
  }
  message.notify("请先预约!")
}
/** 查询列表 */
const getList = async () => {
    loading.value = true
    try {
        const data = await AppointmentApi.getAppointmentPage(queryParams)
        list.value = data.list
        total.value = data.total
    } finally {
        loading.value = false
    }
  ElNotification({
    title: '温馨提示',
    message: "请先预约",
    type: 'warning'
  })
}
const _confirmAppointment = async () => {