From 9dd7902d23fc57dd2dfb749ffc4095800bf3abbf Mon Sep 17 00:00:00 2001
From: wangfukang <15630117759@163.com>
Date: Sun, 28 Jun 2026 18:06:10 +0800
Subject: [PATCH] 1
---
src/api/index.js | 8 +++
.../app/business/logistics/logistics.vue | 67 ++++++++++++++++---
2 files changed, 67 insertions(+), 8 deletions(-)
diff --git a/src/api/index.js b/src/api/index.js
index abddf23..6358676 100644
--- a/src/api/index.js
+++ b/src/api/index.js
@@ -757,6 +757,14 @@ export const getDeliveryTimeSetting = (params) => {
export const saveDeliveryTimeSetting = (params) => {
return postBodyRequest('/mall/admin/seckillGroup/deliveryTime/save', params)
}
+// 查询区域客服电话
+export const getCustomerPhoneSetting = (params) => {
+ return getRequest('/mall/admin/seckillGroup/customerPhone/get', params)
+}
+// 保存区域客服电话
+export const saveCustomerPhoneSetting = (params) => {
+ return postBodyRequest('/mall/admin/seckillGroup/customerPhone/save', params)
+}
// 查询i/e审核管理配置
export const getIeAuditSetting = (params) => {
return getRequest('/app/ie/admin/audit-setting', params)
diff --git a/src/views/app/business/logistics/logistics.vue b/src/views/app/business/logistics/logistics.vue
index dc1d489..e3509f4 100644
--- a/src/views/app/business/logistics/logistics.vue
+++ b/src/views/app/business/logistics/logistics.vue
@@ -9,9 +9,10 @@
-
+
+
-
+
@@ -23,7 +24,7 @@
-
+
-
+
+
+
+
-
+
@@ -73,14 +84,14 @@
-
+
已选择
{{ selectList.length }} 项
清空
-
-
+
@@ -118,6 +129,8 @@
deleteOrder,
getDeliveryTimeSetting,
saveDeliveryTimeSetting,
+ getCustomerPhoneSetting,
+ saveCustomerPhoneSetting,
} from "@/api/index";
import excel from "@/libs/excel";
import addEdit from "./addEdit.vue";
@@ -144,6 +157,7 @@
reading: false,
importLoading: false,
settingLoading: false,
+ customerServiceLoading: false,
loadingExport: true,
exportModalVisible: false,
transferOrder: false,
@@ -172,6 +186,10 @@
regionId: JSON.parse(this.getStore("user")).departmentId,
deliveryTime: 30
},
+ customerServiceForm: {
+ regionId: JSON.parse(this.getStore("user")).departmentId,
+ customerPhone: ""
+ },
selectDate: null,
form: {},
tabName: "1",
@@ -429,6 +447,7 @@
init() {
this.getLogisticsInfo();
this.getSetting();
+ this.getCustomerServiceSetting();
},
//点击页面转单-->点击弹窗转单
goTransferOrder(item) {
@@ -458,6 +477,10 @@
this.getSetting();
return;
}
+ if (v === "5") {
+ this.getCustomerServiceSetting();
+ return;
+ }
this.searchForm.pageNum = 1;
this.searchForm.deliveryType = v;
this.getLogisticsInfo();
@@ -488,6 +511,34 @@
this.settingLoading = false;
});
},
+ getCustomerServiceSetting() {
+ getCustomerPhoneSetting({
+ regionId: this.customerServiceForm.regionId
+ }).then((res) => {
+ if (res.success) {
+ this.customerServiceForm.customerPhone = res.result || "";
+ }
+ });
+ },
+ saveCustomerServiceSetting() {
+ const customerPhone = String(this.customerServiceForm.customerPhone || "").trim();
+ if (!customerPhone) {
+ this.$Message.warning("请输入客服电话");
+ return;
+ }
+ this.customerServiceLoading = true;
+ saveCustomerPhoneSetting({
+ regionId: this.customerServiceForm.regionId,
+ customerPhone: customerPhone
+ }).then((res) => {
+ if (res.success) {
+ this.customerServiceForm.customerPhone = customerPhone;
+ this.$Message.success("保存成功");
+ }
+ }).finally(() => {
+ this.customerServiceLoading = false;
+ });
+ },
changeTab(v) {
this.searchForm.pageNum = 1;
this.searchForm.status = v;