Compare commits
4 Commits
eea0925899
...
dev
| Author | SHA1 | Date | |
|---|---|---|---|
| c0750ed493 | |||
| 8a958c987e | |||
| 0861dae12d | |||
| e8dc354c10 |
@@ -1,10 +1,10 @@
|
|||||||
ENV = 'production'
|
ENV = 'production'
|
||||||
VITE_APP_API_VERSION = "" #版本号
|
VITE_APP_API_VERSION = "" #版本号
|
||||||
VITE_APP_API_BASEURL = https://opsscmapi.f2b211.com/api/ #请求地址
|
VITE_APP_API_BASEURL = https://newwms.api.f2b211.com/v1/admapi/ #请求地址
|
||||||
VITE_APP_SSO_LOGINURL = https://uc.v3.f2b211.com/uc/login
|
VITE_APP_SSO_LOGINURL = https://uc.v3.f2b211.com/uc/login
|
||||||
VITE_APP_SSO_APPID = 100664627590856707
|
VITE_APP_SSO_APPID = 100664627590856709
|
||||||
|
|
||||||
VITE_REDIRECT_URL = https://wms.v2.f2b211.com/login #单点从定向地址
|
VITE_REDIRECT_URL = https://newwms.f2b211.com/login #单点从定向地址
|
||||||
VITE_SINGLE_URL = https://uc.v3.f2b211.com/ #单点登录通知
|
VITE_SINGLE_URL = https://uc.v3.f2b211.com/ #单点登录通知
|
||||||
# 线上环境
|
# 线上环境
|
||||||
VITE_USER_NODE_ENV = production
|
VITE_USER_NODE_ENV = production
|
||||||
|
|||||||
@@ -12,5 +12,8 @@ export const getSubscribeResetListApi = (params: any) => {
|
|||||||
return http.get<any>(`subscribe/wrr/reload`, params);
|
return http.get<any>(`subscribe/wrr/reload`, params);
|
||||||
};
|
};
|
||||||
export const getSubscribeResetListExportApi = (params: any) => {
|
export const getSubscribeResetListExportApi = (params: any) => {
|
||||||
|
if (params?.notif_ret_status === "空") {
|
||||||
|
params.notif_ret_status = 0;
|
||||||
|
}
|
||||||
return http.get<any>(`subscribe/wrr/export`, params);
|
return http.get<any>(`subscribe/wrr/export`, params);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -147,7 +147,7 @@ const newValInitParams = toRef(props, "initParam");
|
|||||||
const { selectionChange, selectedList, selectedListIds, isSelected } = useSelection(props.rowKey);
|
const { selectionChange, selectedList, selectedListIds, isSelected } = useSelection(props.rowKey);
|
||||||
|
|
||||||
// 清空选中数据列表
|
// 清空选中数据列表
|
||||||
const clearSelection = () => tableRef.value!.clearSelection();
|
const clearSelection = () => tableRef?.value!.clearSelection();
|
||||||
// 表格操作 Hooks
|
// 表格操作 Hooks
|
||||||
const { tableData, pageable, getTableList, handleSizeChange, handleCurrentChange } = useTable(
|
const { tableData, pageable, getTableList, handleSizeChange, handleCurrentChange } = useTable(
|
||||||
routeName.value,
|
routeName.value,
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
<!-- <el-icon v-show="item.meta.icon && globalStore.breadcrumbIcon" class="breadcrumb-icon">
|
<!-- <el-icon v-show="item.meta.icon && globalStore.breadcrumbIcon" class="breadcrumb-icon">
|
||||||
<component :is="item.meta.icon"></component>
|
<component :is="item.meta.icon"></component>
|
||||||
</el-icon> -->
|
</el-icon> -->
|
||||||
|
<!-- {{ breadcrumbList }} -->
|
||||||
<span class="breadcrumb-title">{{ item.meta.title }}</span>
|
<span class="breadcrumb-title">{{ item.meta.title }}</span>
|
||||||
</div>
|
</div>
|
||||||
</el-breadcrumb-item>
|
</el-breadcrumb-item>
|
||||||
@@ -28,13 +28,22 @@ const route = useRoute();
|
|||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const authStore = useAuthStore();
|
const authStore = useAuthStore();
|
||||||
const globalStore = useGlobalStore();
|
const globalStore = useGlobalStore();
|
||||||
|
// const routeName: any = ref(router.currentRoute.value.name);
|
||||||
const breadcrumbList = computed(() => {
|
const breadcrumbList = computed(() => {
|
||||||
let breadcrumbData = authStore.breadcrumbListGet[route.matched[route.matched.length - 1].path] ?? [];
|
let breadcrumbData = authStore.breadcrumbListGet[route.matched[route.matched.length - 1].path] ?? [];
|
||||||
// 🙅♀️不需要首页面包屑可删除以下判断
|
// 🙅♀️不需要首页面包屑可删除以下判断
|
||||||
if (breadcrumbData[0].path !== HOME_URL) {
|
if (breadcrumbData[0].path !== HOME_URL) {
|
||||||
breadcrumbData = [{ path: HOME_URL, meta: { icon: "HomeFilled", title: "首页" } }, ...breadcrumbData];
|
breadcrumbData = [{ path: HOME_URL, meta: { icon: "HomeFilled", title: "首页" } }, ...breadcrumbData];
|
||||||
}
|
}
|
||||||
|
if (route.query.title === "新增订阅" || "编辑订阅") {
|
||||||
|
breadcrumbData.forEach((item: any) => {
|
||||||
|
if (item.name === "foundationSubscribeListAdd") {
|
||||||
|
item.meta.title = route.query.title;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
console.log("");
|
||||||
|
}
|
||||||
|
|
||||||
return breadcrumbData;
|
return breadcrumbData;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -55,6 +55,7 @@ watch(
|
|||||||
() => {
|
() => {
|
||||||
if (route.meta.isFull) return;
|
if (route.meta.isFull) return;
|
||||||
tabsMenuValue.value = route.fullPath;
|
tabsMenuValue.value = route.fullPath;
|
||||||
|
|
||||||
let title: any = route.query.title ? route.query.title : route.meta.title;
|
let title: any = route.query.title ? route.query.title : route.meta.title;
|
||||||
|
|
||||||
const tabsParams = {
|
const tabsParams = {
|
||||||
|
|||||||
@@ -10,4 +10,5 @@ export interface TabsMenuProps {
|
|||||||
/* TabsState */
|
/* TabsState */
|
||||||
export interface TabsState {
|
export interface TabsState {
|
||||||
tabsMenuList: TabsMenuProps[];
|
tabsMenuList: TabsMenuProps[];
|
||||||
|
isSubscribeAdd: Boolean;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -65,10 +65,10 @@ export const useAuthStore = defineStore({
|
|||||||
// 获取权限菜单列表并处理按钮权限
|
// 获取权限菜单列表并处理按钮权限
|
||||||
async getAuthMenuList() {
|
async getAuthMenuList() {
|
||||||
const { data } = await getAuthMenuListApi();
|
const { data } = await getAuthMenuListApi();
|
||||||
let dataClone = data;
|
let dataClone =
|
||||||
|
Array.isArray(data) && data.length
|
||||||
// 如果没有路由数据,设置默认首页
|
? data
|
||||||
this.authMenuList = dataClone || [
|
: [
|
||||||
{
|
{
|
||||||
path: "/index",
|
path: "/index",
|
||||||
name: "home",
|
name: "home",
|
||||||
@@ -83,6 +83,9 @@ export const useAuthStore = defineStore({
|
|||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
// 如果没有路由数据,设置默认首页
|
||||||
|
this.authMenuList = dataClone;
|
||||||
|
|
||||||
// 提取按钮权限
|
// 提取按钮权限
|
||||||
this.buttonPermissions = extractButtonPermissions(this.authMenuList);
|
this.buttonPermissions = extractButtonPermissions(this.authMenuList);
|
||||||
// 构建页面与按钮的映射关系
|
// 构建页面与按钮的映射关系
|
||||||
@@ -92,7 +95,6 @@ export const useAuthStore = defineStore({
|
|||||||
// 构建页面与按钮的映射关系
|
// 构建页面与按钮的映射关系
|
||||||
buildPageButtonMap() {
|
buildPageButtonMap() {
|
||||||
const pageButtonMap: PageButtonMap = {};
|
const pageButtonMap: PageButtonMap = {};
|
||||||
|
|
||||||
// 递归处理路由,建立页面与按钮的关联
|
// 递归处理路由,建立页面与按钮的关联
|
||||||
const processRoutes = (routes: any[], parentPageName?: string) => {
|
const processRoutes = (routes: any[], parentPageName?: string) => {
|
||||||
routes.forEach((route: any) => {
|
routes.forEach((route: any) => {
|
||||||
@@ -102,7 +104,6 @@ export const useAuthStore = defineStore({
|
|||||||
if (!pageButtonMap[route.name]) {
|
if (!pageButtonMap[route.name]) {
|
||||||
pageButtonMap[route.name] = [];
|
pageButtonMap[route.name] = [];
|
||||||
}
|
}
|
||||||
|
|
||||||
// 处理子节点中的按钮权限
|
// 处理子节点中的按钮权限
|
||||||
if (route.children && route.children.length > 0) {
|
if (route.children && route.children.length > 0) {
|
||||||
route.children.forEach((child: any) => {
|
route.children.forEach((child: any) => {
|
||||||
@@ -123,7 +124,6 @@ export const useAuthStore = defineStore({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
processRoutes(this.authMenuList);
|
processRoutes(this.authMenuList);
|
||||||
this.pageButtonMap = pageButtonMap;
|
this.pageButtonMap = pageButtonMap;
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ import piniaPersistConfig from "@/config/piniaPersist";
|
|||||||
export const useTabsStore = defineStore({
|
export const useTabsStore = defineStore({
|
||||||
id: "wms-tabs",
|
id: "wms-tabs",
|
||||||
state: (): TabsState => ({
|
state: (): TabsState => ({
|
||||||
|
isSubscribeAdd: false,
|
||||||
tabsMenuList: [
|
tabsMenuList: [
|
||||||
{
|
{
|
||||||
icon: "", // 首页的icon,按实际路由meta.icon填写(如"Home")
|
icon: "", // 首页的icon,按实际路由meta.icon填写(如"Home")
|
||||||
@@ -133,6 +134,10 @@ export const useTabsStore = defineStore({
|
|||||||
this.tabsMenuList.forEach(item => {
|
this.tabsMenuList.forEach(item => {
|
||||||
if (item.path == nowFullPath) item.title = title;
|
if (item.path == nowFullPath) item.title = title;
|
||||||
});
|
});
|
||||||
|
},
|
||||||
|
async setSIsSubscribeAdd(is: any) {
|
||||||
|
console.log(is, "==========is========");
|
||||||
|
this.isSubscribeAdd = is;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
persist: piniaPersistConfig("wms-tabs")
|
persist: piniaPersistConfig("wms-tabs")
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ export const handleExport = async (params: any) => {
|
|||||||
const { initParam } = params;
|
const { initParam } = params;
|
||||||
const result = await getMaterialListExportApi(initParam);
|
const result = await getMaterialListExportApi(initParam);
|
||||||
if (result?.code === 0) {
|
if (result?.code === 0) {
|
||||||
useMsg("success", "导出成功 !");
|
useMsg("success", "导出成功请前往导出列表中进行下载!");
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
//刷新
|
//刷新
|
||||||
|
|||||||
@@ -31,6 +31,8 @@ import { BUTTON } from "./constant/add/button";
|
|||||||
import { useUserStore } from "@/stores/modules/user";
|
import { useUserStore } from "@/stores/modules/user";
|
||||||
import { cloneDeep } from "lodash-es";
|
import { cloneDeep } from "lodash-es";
|
||||||
import $Bus from "@/utils/mittBus";
|
import $Bus from "@/utils/mittBus";
|
||||||
|
// import { useTabsStore } from "@/stores/modules/tabs";
|
||||||
|
// const tabStore = useTabsStore();
|
||||||
const dataStore = reactive({
|
const dataStore = reactive({
|
||||||
formData: cloneDeep(FORM_DATA),
|
formData: cloneDeep(FORM_DATA),
|
||||||
ruleForm: cloneDeep(RULE_FORM),
|
ruleForm: cloneDeep(RULE_FORM),
|
||||||
@@ -53,6 +55,15 @@ const init = () => {
|
|||||||
init();
|
init();
|
||||||
//新增
|
//新增
|
||||||
const handleAdd = () => {
|
const handleAdd = () => {
|
||||||
|
if ($route.query.title === "编辑订阅") {
|
||||||
|
$router.replace({
|
||||||
|
path: "/foundation/subscribe/list/add",
|
||||||
|
query: {
|
||||||
|
title: "新增订阅"
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
if ($route.query.title === "新增订阅") {
|
||||||
if (
|
if (
|
||||||
dataStore.ruleForm?.customer_number?.length ||
|
dataStore.ruleForm?.customer_number?.length ||
|
||||||
dataStore.ruleForm?.org_number ||
|
dataStore.ruleForm?.org_number ||
|
||||||
@@ -72,9 +83,9 @@ const handleAdd = () => {
|
|||||||
})
|
})
|
||||||
.catch(() => {});
|
.catch(() => {});
|
||||||
}
|
}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
const handleGoList = () => {
|
const handleGoList = () => {
|
||||||
detailsRef?.value?.formElement?.resetFields();
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
$router.replace({ path: "/foundation/subscribe/list/index" });
|
$router.replace({ path: "/foundation/subscribe/list/index" });
|
||||||
$Bus.emit("setResetList");
|
$Bus.emit("setResetList");
|
||||||
@@ -88,6 +99,8 @@ const getSubscribeAdd = async (params: any) => {
|
|||||||
useMsg("success", "新增成功 !");
|
useMsg("success", "新增成功 !");
|
||||||
dataStore.ruleForm = cloneDeep(RULE_FORM);
|
dataStore.ruleForm = cloneDeep(RULE_FORM);
|
||||||
dataStore.ruleForm.org_number = ["101"];
|
dataStore.ruleForm.org_number = ["101"];
|
||||||
|
detailsRef?.value?.formElement?.resetFields();
|
||||||
|
handleGoList();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
//更新
|
//更新
|
||||||
|
|||||||
@@ -81,7 +81,12 @@ export const FORM_DATA: FormItem[] = [
|
|||||||
type: "input",
|
type: "input",
|
||||||
label: "子仓库: "
|
label: "子仓库: "
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
prop: "customer_name",
|
||||||
|
placeholder: "请输入客户名称",
|
||||||
|
type: "input",
|
||||||
|
label: "客户名称: "
|
||||||
|
},
|
||||||
{
|
{
|
||||||
prop: "Time",
|
prop: "Time",
|
||||||
type: "daterange",
|
type: "daterange",
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ export const handleExport = async (data: any) => {
|
|||||||
Array.isArray(params?.org_number) && params?.org_number?.length ? params.org_number.join(",") : params.org_number;
|
Array.isArray(params?.org_number) && params?.org_number?.length ? params.org_number.join(",") : params.org_number;
|
||||||
const result = await getSubscribeResetListExportApi(params);
|
const result = await getSubscribeResetListExportApi(params);
|
||||||
if (result?.code === 0) {
|
if (result?.code === 0) {
|
||||||
useMsg("success", "导出成功 !");
|
useMsg("success", "导出成功请前往导出列表中进行下载 !");
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
// proTable: any
|
// proTable: any
|
||||||
|
|||||||
Reference in New Issue
Block a user