| 1234567891011121314151617181920 |
- <template>
- <BillFormView :module-key="moduleKey" :record-id="recordId" />
- </template>
- <script setup lang="ts">
- /**
- * 分包通用编辑页壳:module + id(可选)参数驱动
- */
- import { ref } from 'vue'
- import { onLoad } from '@dcloudio/uni-app'
- import BillFormView from '@/modules/bill/BillFormView.vue'
- const moduleKey = ref('')
- const recordId = ref('')
- onLoad((options) => {
- moduleKey.value = options?.module || ''
- recordId.value = String(options?.id || '')
- })
- </script>
|