edit.vue 491 B

1234567891011121314151617181920
  1. <template>
  2. <BillFormView :module-key="moduleKey" :record-id="recordId" />
  3. </template>
  4. <script setup lang="ts">
  5. /**
  6. * 分包通用编辑页壳:module + id(可选)参数驱动
  7. */
  8. import { ref } from 'vue'
  9. import { onLoad } from '@dcloudio/uni-app'
  10. import BillFormView from '@/modules/bill/BillFormView.vue'
  11. const moduleKey = ref('')
  12. const recordId = ref('')
  13. onLoad((options) => {
  14. moduleKey.value = options?.module || ''
  15. recordId.value = String(options?.id || '')
  16. })
  17. </script>