|
|
@@ -1,6 +1,5 @@
|
|
|
<script setup lang="tsx">
|
|
|
-import { nextTick, onMounted, reactive, ref, unref, useTemplateRef, watch } from 'vue';
|
|
|
-import type { TabsInst } from 'naive-ui';
|
|
|
+import { reactive, ref, unref, useTemplateRef, watch } from 'vue';
|
|
|
import { NImage, NTag } from 'naive-ui';
|
|
|
import { fetchGetDeliveryOrderList, fetchGetDeliveryStatusNum } from '@/service/api/delivery/normal-orde';
|
|
|
import { useAppStore } from '@/store/modules/app';
|
|
|
@@ -15,15 +14,9 @@ const appStore = useAppStore();
|
|
|
const checkedRowKeys = ref([]);
|
|
|
const activeTab = ref('all');
|
|
|
const statusList = ref<{ label: string; value: string; num?: number }[]>([]);
|
|
|
-const tabsInstRef = ref<TabsInst | null>(null);
|
|
|
const orderMoadl = useTemplateRef('orderMoadl');
|
|
|
const ShipmentModal = useTemplateRef('Shipment');
|
|
|
-onMounted(() => {
|
|
|
- nextTick(() => {
|
|
|
- tabsInstRef.value?.syncBarPosition();
|
|
|
- console.log(tabsInstRef.value, 'tabsInstRef.value');
|
|
|
- });
|
|
|
-});
|
|
|
+
|
|
|
const [registerSearchForm, { getFieldsValue }] = useForm({
|
|
|
schemas: SearchForm,
|
|
|
showAdvancedButton: false,
|
|
|
@@ -237,7 +230,7 @@ async function getNums() {
|
|
|
}
|
|
|
return item;
|
|
|
});
|
|
|
- console.log(updatedOrderStatusList, 'updatedOrderStatusList');
|
|
|
+ // console.log(updatedOrderStatusList, 'updatedOrderStatusList');
|
|
|
statusList.value = updatedOrderStatusList;
|
|
|
}
|
|
|
getNums();
|
|
|
@@ -281,7 +274,7 @@ async function handleCopy(row: Api.delivery.deliveryOrder) {
|
|
|
</NCollapse>
|
|
|
</NCard>
|
|
|
<NCard title="订单列表" :bordered="false" size="small" class="card-wrapper sm:flex-1-hidden">
|
|
|
- <NTabs ref="tabsInstRef" v-model:value="activeTab" type="line" animated class="mb-16px h-full">
|
|
|
+ <NTabs v-model:value="activeTab" type="line" animated class="mb-16px h-full">
|
|
|
<NTabPane
|
|
|
v-for="item in statusList"
|
|
|
:key="item.value"
|