Commit 687f0bd6 by zhangxw

fix(venus-usedcar-quality): 新增线索提交修改

1 parent a3ee5ae9
Pipeline #224 for 687f0bd6 failed in 0 seconds
......@@ -6,7 +6,7 @@ import { useRoute, useRouter } from "vue-router";
import { addClueApi, getStoreConsultants, getStoreEmployeesByMerchantId } from "@/api/modules/clueManage/index";
import { formatDate } from "@utils/index";
import { showToast } from "vant";
import { showLoadingToast, showToast } from "vant";
import ConversionPicker from "./components/ConversionPicker.vue";
import LevelPicker from "./components/LevelPicker.vue";
......@@ -248,7 +248,7 @@ function validateForm(): boolean {
}
async function onSubmit() {
if (!validateForm()) return;
if (!validateForm() || submitLoading.value) return;
submitLoading.value = true;
try {
const params = {
......@@ -275,6 +275,7 @@ async function onSubmit() {
conversionMerchantId: conversionMerchantId.value,
conversionMerchantName: conversionMerchantName.value,
};
showLoadingToast({ message: "加载中", forbidClick: true, duration: 0 });
console.log("Submitting new clue with params:", params);
addClueApi(params).then(res => {
const { code, msg } = res;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!