<script setup lang="ts">
import OtherChargeForm from '@af-mobile-client-vue3/components/data/OtherCharge/OtherChargeForm.vue'
import { onMounted, ref } from 'vue'
import { useRouter } from 'vue-router'

const router = useRouter()

const loading = ref(false)

const workOrderData = ref([])
const serviceName = ref('af-telephone')

const userinfo = {
  f_workflow_id: '1',
  f_userinfo_id: '88035',
  f_userinfo_code: '11058442',
  f_user_name: '苟水平',
  f_userfiles_id: '91063',
  f_orgid: '37710',
}
function backList() {
  router.back()
}
onMounted(() => {
  console.log('userinfo', userinfo)
  workOrderData.value = [{ text: '2025111300305', value: '308', workflowId: '4653' }, { text: '2025111300288', value: '291', workflowId: '4636' }]
  loading.value = true
})
</script>

<template>
  <OtherChargeForm
    v-if="loading"
    :user="userinfo"
    :is-work-order="true"
    :show-group="true"
    :service-name="serviceName"
    :work-order-data="workOrderData"
    @close-operation="backList"
  />
</template>

<style scoped lang="less">

</style>
