ReportOfInfectiousDiseases.vue 955 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <template>
  2. <button @click="dialog = true">传染病上报</button>
  3. <xc-dialog-v2 v-model="dialog" title="传染病上报" maximize show-button destroy-on-close
  4. @confirm="confirm">
  5. <dialog-diseases :pat-no="props.patNo"
  6. :times="props.times"
  7. :ward="props.ward"
  8. ref="dialogRef"/>
  9. </xc-dialog-v2>
  10. </template>
  11. <script setup name='ReportOfInfectiousDiseases'>
  12. import DialogDiseases from "./DialogDiseases.vue";
  13. import {isDev} from "@/utils/public";
  14. import XcDialogV2 from "@/components/xiao-chan/dialog/XcDialogV2.vue";
  15. const props = defineProps({
  16. patNo: {
  17. type: String,
  18. default: '0406942'
  19. },
  20. times: {
  21. type: Number,
  22. default: 1
  23. },
  24. ward: {
  25. type: String,
  26. default: '8000001'
  27. }
  28. })
  29. let dialog = $ref(false)
  30. const dialogRef = ref(null)
  31. const confirm = () => {
  32. dialogRef.value.confirm()
  33. }
  34. </script>
  35. <style scoped lang="scss">
  36. </style>