| | |
| | | |
| | | <script setup lang="ts"> |
| | | import { FormRules } from '@nutui/nutui-taro/dist/types/__VUE/form/types'; |
| | | import { useQuery } from '@tanstack/vue-query'; |
| | | import { useQuery, useQueryClient } from '@tanstack/vue-query'; |
| | | import Taro from '@tarojs/taro'; |
| | | import * as enterpriseServices from '@12333/services/apiV2/enterprise'; |
| | | import { FormValidator, Message } from '@12333/utils'; |
| | |
| | | }); |
| | | } |
| | | |
| | | const queryClient = useQueryClient(); |
| | | |
| | | async function confirm() { |
| | | try { |
| | | let params: API.SaveEnterpriseAddressCommand = { |
| | |
| | | if (res) { |
| | | Message.success(isEdit ? '编辑成功' : '添加成功', { |
| | | onClosed() { |
| | | queryClient.invalidateQueries({ |
| | | queryKey: ['enterpriseServices/getEnterpriseAddresses'], |
| | | }); |
| | | goBack(); |
| | | }, |
| | | }); |