Переглянути джерело

新增核销管理界面接口已完成,报表统计中明细列表新增核销人员参数

hzj18279462576@163.com 7 місяців тому
батько
коміт
44d88fa178

BIN
src/assets/verify.png


BIN
src/assets/verifyA.png


+ 11 - 0
src/layout/sidebar/SidevarItem.vue

@@ -109,6 +109,11 @@
         <img v-else src="@/assets/classes.png" alt="" />
         <span>班次管理</span>
       </el-menu-item>
+      <el-menu-item :index="71">
+        <img v-if="activeIndex == 71" src="@/assets/verifyA.png" alt="" />
+        <img v-else src="@/assets/verify.png" alt="" />
+        <span>核销管理</span>
+      </el-menu-item>
       <!-- <el-menu-item :index="7">
         <img v-if="activeIndex == 7" src="@/assets/blacklistA.png" alt="" />
         <img v-else src="@/assets/blacklist.png" alt="" />
@@ -302,6 +307,12 @@ const handleSelect = (key) => {
       path: `/schoolBus/busSet`,
     });
   }
+  // 核销管理
+  if (activeIndex.value == 71) {
+    router.push({
+      path: `/schoolBus/verify`,
+    });
+  }
 
   if (activeIndex.value == 17) {
     router.push({

+ 7 - 1
src/router/index.js

@@ -50,12 +50,18 @@ const router = createRouter({
           component: () => import("@/views/refund/refund.vue"),
           meta: { title: "Dashboard", icon: "dashboard" },
         },
-         // 交通卡设置
+        // 交通卡设置
         {
           path: "busSet",
           component: () => import("@/views/busSet/busSet.vue"),
           meta: { title: "Dashboard", icon: "dashboard" },
         },
+        // 核销管理
+        {
+          path: "verify",
+          component: () => import("@/views/verify/verify.vue"),
+          meta: { title: "Dashboard", icon: "dashboard" },
+        },
 
         {
           path: "statement",

+ 12 - 0
src/store/modules/user.js

@@ -83,6 +83,18 @@ const actions = {
       //   });
       // }
     }
+
+    // {
+    //   let resss = await axios({
+    //     method: "post",
+    //     url: "https://car.meiyishuoo.com/ride-sharing/carBuy/carBook/cinfoqueryAll.action",
+    //     headers: {
+    //       // token: sessionStorage.getItem("token"),
+    //     },
+    //     // data: data,
+    //   });
+    //   console.log(resss, "车辆管理");
+    // }
   },
   // 路线管理
   pathSelect: async ({ commit, state }) => {

+ 83 - 2
src/views/statement/statement.vue

@@ -216,6 +216,36 @@
             <el-option label="预约失败" value="5" />
           </el-select>
         </div>
+        <div class="condition">
+          <span>核销专员 : </span>
+          <el-input
+            clearable
+            v-model="searchInput.vertifyMan"
+            class="w-50 m-2"
+            placeholder="请输入核销专员"
+          />
+        </div>
+        <div class="condition">
+          <span>核销专员号码 : </span>
+          <el-input
+            clearable
+            v-model="searchInput.vertifyManMobile"
+            class="w-50 m-2"
+            placeholder="请输入核销专员号码"
+          />
+        </div>
+        <div class="condition">
+          <span>核销时间 : </span>
+          <el-date-picker
+            v-model="searchInput.vertifyTime"
+            type="daterange"
+            start-placeholder="开始日期"
+            end-placeholder="结束日期"
+            format="YYYY-MM-DD"
+            value-format="YYYY-MM-DD"
+            unlink-panels
+          />
+        </div>
         <el-button
           color="rgba(61, 81, 232, 1)"
           type="primary"
@@ -612,9 +642,31 @@
             </template>
           </el-table-column>
           <el-table-column align="center" prop="payAmount" label="支付金额" />
+          <el-table-column
+            align="center"
+            width="100"
+            prop="vertifyMan"
+            label="核销专员"
+          />
+          <el-table-column
+            align="center"
+            width="120"
+            prop="vertifyManMobile"
+            label="核销专员号码"
+          />
+          <el-table-column
+            align="center"
+            width="100"
+            prop="vertifyTime"
+            label="核销时间"
+          />
           <el-table-column align="center" label="操作">
             <template #default="scope">
-              <el-button v-if="scope.row.byState == 1" link type="primary" @click="refund(scope.row)"
+              <el-button
+                v-if="scope.row.byState == 1"
+                link
+                type="primary"
+                @click="refund(scope.row)"
                 ><div class="look">退款</div></el-button
               >
             </template>
@@ -690,6 +742,9 @@ const searchInput = reactive({
   route: "",
   car_number: "",
   mobile: "",
+  vertifyTime: "",
+  vertifyMan: "",
+  vertifyManMobile: "",
 });
 
 const busNum = reactive({ list: [] }); // 车牌号
@@ -887,6 +942,18 @@ const getList = async (message) => {
     data.set("mobile", searchInput.mobile);
     data.set("page", currentPage2.value);
     data.set("rows", pageSize2.value); //前面的key记得对应!
+
+    if (searchInput.vertifyMan) {
+      data.set("vertifyMan", searchInput.vertifyMan);
+    }
+    if (searchInput.vertifyTime) {
+      data.set("vertifyStartTime", searchInput.vertifyTime[0]);
+      data.set("vertifyEndTime", searchInput.vertifyTime[1]);
+    }
+    if (searchInput.vertifyManMobile) {
+      data.set("vertifyManMobile", searchInput.vertifyManMobile);
+    }
+
     let res = await axios({
       method: "post",
       url: api.value + "/carBook/brecblist.action",
@@ -991,6 +1058,9 @@ const resetInput = lodash.debounce(() => {
   searchInput.route = "";
   searchInput.createTime = "";
   searchInput.mobile = "";
+  searchInput.vertifyMan = "";
+  searchInput.vertifyTime = "";
+  searchInput.vertifyManMobile = "";
   getList();
 }, 300);
 // 多选框功能
@@ -1041,7 +1111,6 @@ const refund = (row) => {
     confirmButtonText: "确认",
     cancelButtonText: "取消",
     type: "warning",
-    
   })
     .then(async () => {
       let data = new FormData();
@@ -1153,6 +1222,18 @@ const downLoad = lodash.debounce(async () => {
   data.set("mobile", searchInput.mobile);
   data.set("state", searchInput.state);
   // data.set("yy_date", searchInput.yy_date);
+
+  if (searchInput.vertifyMan) {
+      data.set("vertifyMan", searchInput.vertifyMan);
+    }
+    if (searchInput.vertifyTime) {
+      data.set("vertifyStartTime", searchInput.vertifyTime[0]);
+      data.set("vertifyEndTime", searchInput.vertifyTime[1]);
+    }
+    if (searchInput.vertifyManMobile) {
+      data.set("vertifyManMobile", searchInput.vertifyManMobile);
+    }
+
   let res = await axios({
     method: "post",
     url: api.value + "/carBook/brectoExcel.action",

+ 648 - 0
src/views/verify/verify.vue

@@ -0,0 +1,648 @@
+<template>
+  <div class="content-box">
+    <div class="left">
+      <!-- <el-icon :size="23" class="camera"><VideoCameraFilled /></el-icon> -->
+      <span class="cameratxt">核销管理</span>
+    </div>
+    <div class="middle">
+      <div class="filter">
+        <div class="condition">
+          <span>核销专员 : </span>
+          <el-input
+            clearable
+            v-model="searchInput.nickname"
+            class="w-50 m-2"
+            placeholder="请输入核销专员"
+            style="width: 150px"
+          />
+        </div>
+        <div class="condition">
+          <span>手机号码 : </span>
+          <el-input
+            clearable
+            v-model="searchInput.mobile"
+            class="w-50 m-2"
+            placeholder="请输入手机号码"
+            style="width: 150px"
+          />
+        </div>
+
+        <el-button
+          style="margin-left: 20px"
+          color="rgba(61, 81, 232, 1)"
+          type="primary"
+          class="search"
+          @click="searchBtn"
+          ><el-icon><Search /></el-icon> <span>查询</span></el-button
+        >
+        <el-button
+          style="margin-left: 20px !important"
+          color="rgba(61, 81, 232, 1)"
+          type="primary"
+          class="search"
+          @click="searchRefresh"
+          ><el-icon><Refresh /></el-icon><span>重置</span></el-button
+        >
+      </div>
+      <!-- 按钮列表 -->
+      <div class="gongneng">
+        <el-button type="primary" color="rgba(61, 81, 232, 1)" @click="addlist"
+          ><el-icon><CirclePlus /></el-icon><span>新增</span></el-button
+        >
+        <!-- <el-button
+          color="rgba(61, 81, 232, 1)"
+          class="import"
+          type="primary"
+          @click="importExcel"
+          ><img
+            src="@/assets/import.png"
+            style="width: 14px; height: 14px; margin-right: 4px"
+            alt=""
+          />
+          <span>导出表单</span></el-button
+        > -->
+      </div>
+    </div>
+    <div class="footer">
+      <el-table
+        :row-class-name="tableRowClassName"
+        :data="tableData.list"
+        @selection-change="handleSelectionChange"
+        style="width: 100%"
+        :header-cell-style="{
+          background: 'rgba(240, 243, 247, 1)',
+          height: '50px',
+          border: 0,
+        }"
+      >
+        <!-- <el-table-column align="center" type="selection" width="80" /> -->
+        <el-table-column
+          width="150"
+          align="center"
+          label="序号"
+          type="index"
+          index="1"
+        />
+        <el-table-column align="center" prop="username" label="核销专员" />
+        <el-table-column align="center" prop="mobile" label="手机号码" />
+        <el-table-column align="center" prop="createTime" label="创建时间" />
+
+        <el-table-column align="center" label="操作" width="220">
+          <template #default="scope">
+            <!-- <el-button link type="primary" @click="edit(scope.row)"
+              ><div class="look">编辑</div></el-button
+            > -->
+            <el-button link type="danger" @click="del(scope.row)"
+              ><div class="looks">删除</div></el-button
+            >
+          </template>
+        </el-table-column>
+      </el-table>
+
+      <!-- 添加车辆弹窗 -->
+      <el-dialog
+        class="addStaff"
+        v-model="addDialogVisible"
+        :close-on-click-modal="false"
+        :close-on-press-escape="false"
+        :title="dialongTitle"
+        align-center
+        width="609"
+        :before-close="cancelAdd"
+      >
+        <el-form
+          ref="ruleFormRef"
+          :model="ruleForm"
+          :rules="rules"
+          label-width="100px"
+          class="demo-ruleForm"
+          :size="formSize"
+          label-position="left"
+          status-icon
+        >
+          <el-form-item label="手机号码 :" prop="mobile">
+            <el-input
+              v-model="ruleForm.mobile"
+              placeholder="请输入手机号码"
+              clearable
+            />
+          </el-form-item>
+          <el-form-item class="options">
+            <el-button class="congzhi" @click="cancelAdd()">取消</el-button>
+            <el-button
+              color="rgba(61, 81, 232, 1)"
+              class="queding"
+              type="primary"
+              @click="submitAdd(ruleFormRef)"
+            >
+              确定
+            </el-button>
+          </el-form-item>
+        </el-form>
+      </el-dialog>
+    </div>
+
+    <!-- 分页组件 -->
+    <el-pagination
+      background
+      :current-page="currentPage"
+      :page-size="pageSize"
+      layout="total, prev, pager, next, jumper, slot"
+      :total="total"
+      @update:current-page="handleCurrentChange"
+    />
+  </div>
+</template>
+
+<script setup>
+import { ref, reactive, nextTick, onBeforeMount, onUnmounted } from "vue";
+import { useRouter } from "vue-router";
+import { ElMessage, ElMessageBox } from "element-plus";
+import { Calendar } from "@element-plus/icons-vue";
+import { dayjs } from "element-plus";
+import lodash from "lodash";
+import axios from "axios";
+import { useStore } from "vuex";
+const store = useStore();
+const router = useRouter();
+// 表格数据
+const tableData = reactive({ list: [] });
+const activeIndex = ref(); // 默认跳转路由
+const dialongTitle = ref("新增账号"); // 弹窗标题
+
+const searchInput = reactive({
+  mobile: "",
+  nickname: "",
+}); // 搜索按钮数据
+5;
+
+const currentPage = ref(1); // 当前页
+const pageSize = ref(10);
+const total = ref(); // 当前总数
+const selectData = reactive({ list: [] }); // 多选框选择的数据
+const api = ref("");
+const addDialogVisible = ref(false); // 控制添加员工弹窗
+
+// 表单数据
+const formSize = ref("default");
+const ruleFormRef = ref();
+const ruleForm = reactive({
+  mobile: "",
+  id: "",
+});
+// 表单验证
+const rules = reactive({
+  mobile: [
+    { required: true, message: "电话号码不能为空", trigger: "blur" },
+  ],
+});
+// 获取账户列表
+const getList = async (message) => {
+  // let res = await vidiconsApi.queryCamera(data);
+  let data = new FormData();
+  data.set("mobile", searchInput.mobile);
+  data.set("nickname", searchInput.nickname); //前面的key记得对应!
+  data.set("roler", "超级管理员");
+  data.set("page", currentPage.value);
+  data.set("rows", pageSize.value); //前面的key记得对应!
+  // let res = await adminApi.adminLogin(data);
+  let res = await axios({
+    method: "post",
+    url: api.value + "/tAppcardList.action",
+    headers: {
+      token: sessionStorage.getItem("token"),
+    },
+    data: data,
+  });
+  console.log("获取核销列表", res);
+
+  if (res.status == 200) {
+    tableData.list = res.data.rows;
+    // currentPage.value = res.data.currentPage;
+    total.value = res.data.total;
+  } else {
+    tableData.list = res.data.rows;
+    currentPage.value = 1;
+    total.value = res.data.total;
+    ElMessage({
+      type: "error",
+      showClose: true,
+      message: res.data.message,
+      center: true,
+    });
+    if (res.data.message == "token错误") {
+      router.push({
+        path: `/login`,
+      });
+    }
+  }
+};
+
+// 搜索功能
+const searchBtn = lodash.debounce(async () => {
+  getList();
+}, 300);
+
+// 重置搜索
+const searchRefresh = lodash.debounce(async () => {
+  searchInput.mobile = "";
+  searchInput.nickname = "";
+  currentPage.value = 1;
+  getList();
+}, 300);
+
+//导出功能
+const importExcel = async () => {
+  if (searchInput.createTime == null) {
+    searchInput.createTime = "";
+  }
+  let data = new FormData();
+  data.set("number", searchInput.carnumber);
+  data.set("create_time", searchInput.createTime);
+  let res = await axios({
+    method: "post",
+    url: api.value + "/carBook/admintoExcel.action",
+    headers: {
+      token: sessionStorage.getItem("token"),
+    },
+    data: data,
+  });
+  // console.log(res, "导出账号");
+  if (res.data.code == 200) {
+    // const elt = document.createElement("a");
+    // elt.setAttribute(
+    //   "href",
+    //   "https://car.meiyishuoo.com/ride-sharing" + res.data.downurl
+    // );
+    // // elt.setAttribute("download", "file.xlsx");
+    // // elt.style.display = "none";
+    // document.body.appendChild(elt);
+    var downloadPath =
+      "https://car.meiyishuoo.com/ride-sharing" + res.data.downurl;
+    console.log("获得地址数据:", downloadPath);
+    var downloadLink = document.createElement("a");
+    downloadLink.style.display = "none"; // 使其隐藏
+    downloadLink.href = downloadPath;
+    downloadLink.download = "";
+    downloadLink.click();
+    document.body.appendChild(downloadLink);
+    document.body.removeChild(downloadLink);
+    elt.click();
+    ElMessage({
+      type: "success",
+      showClose: true,
+      message: res.data.message,
+      center: true,
+    });
+  } else {
+    ElMessage({
+      type: "error",
+      showClose: true,
+      message: res.data.message,
+      center: true,
+    });
+  }
+};
+// 添加员工
+const addlist = () => {
+  dialongTitle.value = "新增";
+  addDialogVisible.value = true;
+  ruleForm.mobile = "";
+  
+};
+// 取消添加员工
+const cancelAdd = () => {
+  addDialogVisible.value = false;
+  ruleFormRef.value.resetFields();
+};
+// 确认添加员工
+const submitAdd = async (formEl) => {
+  if (!formEl) return;
+  await formEl.validate(async (valid, fields) => {
+    if (valid) {
+      let data = new FormData();
+      data.set("mobile", ruleForm.mobile);
+      // let res = await admin.adminAdd(data);
+      let res = await axios({
+        method: "post",
+        url: api.value + "/tAppupdateRoler.action",
+        headers: {
+          token: sessionStorage.getItem("token"),
+        },
+        data: data,
+      });
+      // console.log(res, "添加账号");
+      if (res.data.code == 200) {
+        getList();
+
+        ElMessage({
+          type: "success",
+          showClose: true,
+          message: res.data.message,
+          center: true,
+        });
+        addDialogVisible.value = false;
+        ruleFormRef.value.resetFields();
+      } else {
+        ElMessage({
+          type: "error",
+          showClose: true,
+          message: res.data.message,
+          center: true,
+        });
+      }
+    } else {
+      console.log("error submit!", fields);
+    }
+  });
+};
+//编辑按钮
+const edit = (row) => {
+  dialongTitle.value = "编辑信息";
+  addDialogVisible.value = true;
+  console.log(row);
+  ruleForm.pass = row.password;
+  ruleForm.name = row.name;
+  ruleForm.account = row.number;
+  ruleForm.id = row.id;
+};
+//删除按钮
+const del = (row) => {
+  console.log(row);
+  ElMessageBox.confirm(`是否删除此核销人员?`, "提示", {
+    confirmButtonText: "确认",
+    cancelButtonText: "取消",
+    type: "warning",
+  })
+    .then(async () => {
+      let data = new FormData();
+      data.set("mobile", row.mobile);
+      // let res = await adminApi.adminLogin(data);
+      let res = await axios({
+        method: "post",
+        url: api.value + "/tAppdelRoler.action",
+        headers: {
+          token: sessionStorage.getItem("token"),
+        },
+        data: data,
+      });
+      if (res.data.code == 200) {
+        if (tableData.list.length == 1 && currentPage.value != 1) {
+          currentPage.value = currentPage.value - 1;
+        }
+        getList();
+        ElMessage({
+          type: "success",
+          showClose: true,
+          message: res.data.message,
+          center: true,
+        });
+      } else {
+        ElMessage({
+          type: "error",
+          showClose: true,
+          message: res.data.message,
+          center: true,
+        });
+      }
+      console.log(res);
+    })
+    .catch(() => {
+      ElMessage({
+        type: "info",
+        message: "已取消删除",
+      });
+    });
+};
+
+// 多选框功能
+// const handleSelectionChange = (val) => {
+//   console.log(val);
+//   selectData.list = val;
+// };
+
+// 表格斑马纹颜色修改
+const tableRowClassName = ({ row, rowIndex }) => {
+  if (rowIndex % 2 === 0) {
+    return "even";
+  } else if (rowIndex % 2 !== 0) {
+    return "odd";
+  }
+  return "";
+};
+// 分页
+const handleCurrentChange = (value) => {
+  // console.log(value);
+  currentPage.value = value;
+  getList();
+};
+
+onBeforeMount(() => {
+  api.value = store.state.user.api;
+  getList();
+});
+onUnmounted(() => {
+  // document.removeEventListener("keyup", Enters);
+});
+</script>
+
+<style scoped lang="scss">
+.content-box {
+  width: calc(100% - 40px);
+  height: calc(100% - 105px);
+  margin: 20px auto;
+  background-color: #fff;
+  color: #fff;
+  display: flex;
+  flex-direction: column;
+
+  .left {
+    width: calc(100% - 60px);
+    display: flex;
+    align-items: center;
+    height: 60px;
+    margin: 0 30px;
+    border-bottom: 1px solid #ccc;
+    color: #000;
+    font-size: 18px;
+    font-weight: 600;
+    .camera {
+      margin-right: 15px;
+      color: #4392f7;
+    }
+  }
+  .middle {
+    width: calc(100% - 60px);
+    margin: 0 auto;
+
+    color: #000;
+    // border-bottom: 1px solid rgb(231, 231, 231);
+    .filter {
+      display: flex;
+      flex-wrap: wrap;
+      align-items: center;
+      margin: 10px 0 0 0;
+      .search {
+        margin-left: 0 !important;
+      }
+      .condition {
+        display: flex;
+        align-items: center;
+        margin: 10px 30px 10px 0;
+        :deep(.el-input .el-input__inner) {
+          font-size: 16px;
+        }
+        span {
+          margin: 0 10px 0 0;
+        }
+      }
+    }
+    .gongneng {
+      margin: 10px 0;
+    }
+    :deep(.cont) {
+      width: 60%;
+      margin: 20px auto;
+    }
+    :deep(.download) {
+      display: flex;
+      align-items: center;
+      margin: 10px;
+    }
+    :deep(.download span) {
+      font-size: 16px;
+      margin-left: 20px;
+    }
+    :deep(.cont .el-button) {
+      margin-left: 60px;
+      margin-bottom: 30px;
+    }
+
+    :deep(.cont .accomplish) {
+      width: 100%;
+      display: flex;
+      justify-content: center;
+    }
+    :deep(.cont .accomplish .el-button) {
+      width: 50%;
+      margin: 0;
+    }
+  }
+  .footer {
+    width: calc(100% - 60px);
+    flex: 1;
+    margin: 10px auto 10px;
+    overflow: auto;
+    .el-table--fit {
+      height: 100%;
+      :deep(.el-table__header-wrapper) {
+        background-color: #000;
+        font-size: 16px;
+        color: #000;
+      }
+      :deep(.el-table__row) {
+        height: 50px;
+        font-size: 16px;
+        color: #000;
+      }
+      :deep(.el-table__row td) {
+        padding: 0;
+        border: 0;
+      }
+
+      .el-button--primary {
+        margin-left: 5px;
+      }
+      :deep(.el-table__body .even) {
+        background-color: #fff;
+      }
+      :deep(.el-table__body .odd) {
+        background-color: rgba(240, 243, 247, 1);
+      }
+      :deep(.look) {
+        padding: 5px 10px;
+        border-radius: 45px;
+        border: 0.74px solid rgba(30, 125, 251, 1);
+      }
+      :deep(.looks) {
+        padding: 5px 10px;
+        border-radius: 45px;
+        border: 0.74px solid #f56c6c;
+      }
+    }
+
+    // 添加员工弹窗样式
+    :deep(.addStaff) {
+      //   height: 420px;
+      border-radius: 11px;
+      .el-dialog__header {
+        border-radius: 11px 11px 0 0;
+        background: rgba(237, 241, 245, 1);
+        font-weight: 600;
+        margin: 0;
+        .el-dialog__headerbtn {
+          outline: none;
+        }
+      }
+      .el-dialog__body {
+        padding: 30px 20px 10px 20px;
+        .el-input {
+          width: 200px;
+          .el-input__suffix-inner {
+            color: rgba(61, 81, 232, 1);
+          }
+        }
+
+        .options {
+          margin-left: 320px;
+        }
+      }
+    }
+  }
+  .el-pagination {
+    // width: 1600px;
+    width: calc(100% - 60px);
+    height: 60px;
+    margin: 0 30px;
+    justify-content: flex-end;
+    :deep(.el-pagination__total) {
+      color: #000;
+    }
+    :deep(.el-pagination__goto) {
+      color: #000;
+    }
+    :deep(.el-pagination__classifier) {
+      color: #000;
+    }
+    :deep(.el-input__wrapper) {
+      border: 1px solid rgba(0, 0, 0, 1);
+      border-radius: 5px;
+      box-shadow: none;
+    }
+    :deep(.el-pager li) {
+      margin: 0 5px;
+      border: 1px solid rgba(0, 0, 0, 1);
+      border-radius: 5px;
+      background-color: transparent;
+    }
+    :deep(.el-pager li.is-active) {
+      background-color: rgba(30, 125, 251, 1);
+    }
+    :deep(.btn-prev) {
+      margin-right: 5px;
+      border: 1px solid rgba(0, 0, 0, 1);
+      border-radius: 5px;
+      background-color: transparent;
+    }
+    :deep(.btn-next) {
+      margin-left: 5px;
+      border: 1px solid rgba(0, 0, 0, 1);
+      border-radius: 5px;
+      background-color: transparent;
+    }
+  }
+}
+.el-input {
+  width: 192px;
+}
+</style>

+ 6 - 3
vite.config.js

@@ -26,7 +26,8 @@ export default defineConfig({
     // proxy: {
     //   "/carstop/carbook": {
     //     target: "https://chtech.ncjti.edu.cn/carstop/carbook",
-    //     changeOrigin: true,
+    //     secure: false, // 允许跳过HTTPS证书验证
+    //     changeOrigin: true, // 允许跨域请求
     //     rewrite: (path) => path.replace(/^\/carstop\/carbook/, ""),
     //   },
     // },
@@ -37,7 +38,8 @@ export default defineConfig({
         // target: "https://chtech.ncjti.edu.cn/testingServertomcat/carbook", // 测试环境
         // target: "https://chtech.ncjti.edu.cn/carstop/carBuy", // 测试环境
         target: "https://car.meiyishuoo.com/ride-sharing/carBuy", // 校团环境
-        changeOrigin: true,
+        // secure: false, // 允许跳过HTTPS证书验证
+        changeOrigin: true, // 允许跨域请求
         rewrite: (path) => path.replace(/^\/ride-sharing\/carBuy/, ""),
       },
     },
@@ -46,7 +48,8 @@ export default defineConfig({
     //     // target: "https://chtech.ncjti.edu.cn/testingServertomcat/carbook", // 测试环境
     //     target: "https://chtech.ncjti.edu.cn/carstop/carBuy", // 测试环境
     //     // target: "https://car.meiyishuoo.com/ride-sharing/carBuy", // 校团线上环境
-    //     changeOrigin: true,
+    //     secure: false, // 允许跳过HTTPS证书验证
+    //     changeOrigin: true, // 允许跨域请求
     //     rewrite: (path) => path.replace(/^\/carstop\/carBuy/, ""),
     //   },
     // },