index.vue 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <!-- 交易服务-出境检测-撤回 -->
  2. <template>
  3. <app-drawer title="提示" v-model:show="show" :loading="loading" :refresh="refresh">
  4. <div style="font-size:16px;text-align:center">是否撤回出境检测申请?</div>
  5. <template #footer>
  6. <el-button @click="onCancel(false)" plain>取消</el-button>
  7. <el-button type="primary" @click="onSubmit">确认</el-button>
  8. </template>
  9. </app-drawer>
  10. </template>
  11. <script lang="ts" setup>
  12. import { shallowRef, PropType } from 'vue'
  13. import { ElMessage } from 'element-plus'
  14. import { useCJJCMemberOperate } from '@/business/customs/exit'
  15. import AppDrawer from '@pc/components/base/drawer/index.vue'
  16. const props = defineProps({
  17. selectedRow: {
  18. type: Object as PropType<Ermcp.GZCJJCOrderRsp>,
  19. required: true
  20. },
  21. })
  22. const { loading, formData, formSubmit } = useCJJCMemberOperate(props.selectedRow.orderidstr)
  23. const show = shallowRef(true)
  24. const refresh = shallowRef(false)
  25. const onCancel = (isRefresh = false) => {
  26. show.value = false
  27. refresh.value = isRefresh
  28. }
  29. const onSubmit = () => {
  30. formData.OperateType = 1
  31. formSubmit().then(() => {
  32. ElMessage.success('提交成功')
  33. onCancel(true)
  34. }).catch((err) => {
  35. ElMessage.error('提交失败:' + err)
  36. })
  37. }
  38. </script>