apps/housekeepingMiniApp/src/subpackages/mine/editAddress/InnerPage.vue
@@ -43,7 +43,7 @@ <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'; @@ -132,6 +132,8 @@ }); } const queryClient = useQueryClient(); async function confirm() { try { let params: API.SaveEnterpriseAddressCommand = { @@ -155,6 +157,9 @@ if (res) { Message.success(isEdit ? '编辑成功' : '添加成功', { onClosed() { queryClient.invalidateQueries({ queryKey: ['enterpriseServices/getEnterpriseAddresses'], }); goBack(); }, }); apps/housekeepingMiniApp/src/subpackages/sercice/addStandardOrder/InnerPage.vue
@@ -121,9 +121,9 @@ @selected="selected" exist-address-title="选择地址" > <template #bottom> <template #bottom v-if="!infiniteLoadingProps?.flattenListData?.length"> <div class="select-address-bottom"> <nut-button type="primary" @click="goSelectAddress">新增地址</nut-button> <nut-button type="primary" @click="goAddAddress">新增地址</nut-button> </div> </template> </nut-address> @@ -247,6 +247,12 @@ form.selectAddressVisible = true; } function goAddAddress() { Taro.navigateTo({ url: `${RouterPath.editAddress}`, }); } const selected = (prevExistAdd, nowExistAdd, arr) => { form.addressId = nowExistAdd.id; }; @@ -356,5 +362,11 @@ } } } .select-address-bottom { display: flex; justify-content: center; padding: 40px 0; } } </style>