From 0af5e35af8338cc8a2e38c19ab79efbb9eff0b2c Mon Sep 17 00:00:00 2001
From: liu <2021943741@qq.com>
Date: 星期三, 16 九月 2026 17:02:52 +0800
Subject: [PATCH] feat(crm): 信用评级评定人改为下拉选择并默认当前账号
---
src/views/wls/warehouse/location/index.vue | 23 +++++++++++++++++++----
1 files changed, 19 insertions(+), 4 deletions(-)
diff --git a/src/views/wls/warehouse/location/index.vue b/src/views/wls/warehouse/location/index.vue
index 9de6261..6542afb 100644
--- a/src/views/wls/warehouse/location/index.vue
+++ b/src/views/wls/warehouse/location/index.vue
@@ -5,8 +5,9 @@
import { ref } from 'vue';
import { useRoute, useRouter } from 'vue-router';
-import { Page, useVbenModal } from '../../../../packages/effects/common-ui/src';
-import { BarcodeBizTypeEnum } from '../../../../packages/constants/src';
+import { Page, useVbenModal } from '@vben/common-ui';
+import { BarcodeBizTypeEnum } from '@vben/constants';
+import { useTabs } from '@vben/hooks';
import { Alert, Button, message } from 'ant-design-vue';
@@ -21,6 +22,8 @@
import { BarcodeDetail } from '../../barcode/components';
import { useGridColumns, useGridFormSchema } from './data';
import Form from './modules/form.vue';
+
+defineOptions({ name: 'WlsLocation' });
const route = useRoute();
const router = useRouter();
@@ -55,6 +58,14 @@
}
}
loadWarehouseName();
+
+const tabs = useTabs();
+
+/** 杩斿洖涓婄骇 */
+function handleBack() {
+ tabs.closeCurrentTab();
+ router.push({ path: '/wls/warehouse' });
+}
/** 鍒锋柊琛ㄦ牸 */
function handleRefresh() {
@@ -99,7 +110,7 @@
/** 璺宠浆搴撲綅鍒楄〃 */
function handleOpenArea(row: MesWmWarehouseLocationApi.WarehouseLocation) {
router.push({
- name: 'WlsArea',
+ path: '/wls/area',
query: { locationId: String(row.id) },
});
}
@@ -156,7 +167,11 @@
:message="`褰撳墠浠撳簱锛�${currentWarehouse.name || `#${currentWarehouse.id}`}`"
show-icon
type="info"
- />
+ >
+ <template #action>
+ <Button size="small" type="primary" @click="handleBack"> 杩斿洖 </Button>
+ </template>
+ </Alert>
<Grid table-title="搴撳尯鍒楄〃">
<template #toolbar-tools>
--
Gitblit v1.9.3