fix: 🧩 修复bug
This commit is contained in:
2
.env
2
.env
@@ -1,5 +1,5 @@
|
||||
# title
|
||||
VITE_GLOB_APP_TITLE = OPS供应链系统
|
||||
VITE_GLOB_APP_TITLE = WMS系统
|
||||
|
||||
# 本地运行端口号
|
||||
VITE_PORT = 8080
|
||||
|
||||
@@ -22,9 +22,8 @@
|
||||
import PermissionButton from "@/components/PermissionButton/index.vue";
|
||||
import DetailsSearch from "@/components/DetailsSearch/index.vue";
|
||||
import { FORM_DATA, RULE_FORM } from "./constant/add";
|
||||
import { useRoute } from "vue-router";
|
||||
|
||||
import { getSubscribeDetailsApi, getSubscribeAddApi, getSubscribeUpdateApi } from "@/api/modules/subscribe";
|
||||
import { useRoute, useRouter } from "vue-router";
|
||||
import { getSubscribeDetailsApi, getSubscribeUpdateApi, getSubscribeAddApi } from "@/api/modules/subscribe";
|
||||
import { setDetailsData } from "./init/setDetailsData";
|
||||
import { useMsg } from "@/hooks/useMsg";
|
||||
import { BUTTON } from "./constant/add/button";
|
||||
@@ -42,7 +41,7 @@ const dataStore = reactive({
|
||||
});
|
||||
const userStore = useUserStore();
|
||||
const $route = useRoute();
|
||||
|
||||
const $router = useRouter();
|
||||
dataStore.formData[0].options = userStore.orgIdArr;
|
||||
const init = () => {
|
||||
//$route.query.title === "新增订阅" ? org_number: ["101"],
|
||||
@@ -54,7 +53,7 @@ init();
|
||||
//新增
|
||||
const handleAdd = () => {
|
||||
if (
|
||||
dataStore.ruleForm?.customer_number.length ||
|
||||
dataStore.ruleForm?.customer_number?.length ||
|
||||
dataStore.ruleForm?.org_number ||
|
||||
dataStore.ruleForm?.product_lines ||
|
||||
dataStore.ruleForm?.subscriber_dduid
|
||||
@@ -74,9 +73,13 @@ const handleAdd = () => {
|
||||
|
||||
//添加
|
||||
const getSubscribeAdd = async (params: any) => {
|
||||
console.log(params);
|
||||
const result = await getSubscribeAddApi(params);
|
||||
if (result?.code === 0) {
|
||||
useMsg("success", "新增成功 !");
|
||||
setTimeout(() => {
|
||||
$router.replace({ path: "/foundation/subscribe/list/index" });
|
||||
}, 300);
|
||||
}
|
||||
};
|
||||
//更新
|
||||
|
||||
Reference in New Issue
Block a user