+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
@@ -59,14 +73,14 @@
-
+
已选择
{{ selectList.length }} 项
清空
-
-
+
@@ -102,6 +116,8 @@
enableUser,
disableUser,
deleteOrder,
+ getDeliveryTimeSetting,
+ saveDeliveryTimeSetting,
} from "@/api/index";
import excel from "@/libs/excel";
import addEdit from "./addEdit.vue";
@@ -127,6 +143,7 @@
loading: true,
reading: false,
importLoading: false,
+ settingLoading: false,
loadingExport: true,
exportModalVisible: false,
transferOrder: false,
@@ -151,8 +168,14 @@
regionId: JSON.parse(this.getStore("user")).departmentId,
status: 0
},
+ settingForm: {
+ regionId: JSON.parse(this.getStore("user")).departmentId,
+ deliveryTime: 30
+ },
selectDate: null,
form: {},
+ tabName: "1",
+ tabName1: "0",
workerList: [{
type: "index",
width: 60,
@@ -405,6 +428,7 @@
methods: {
init() {
this.getLogisticsInfo();
+ this.getSetting();
},
//点击页面转单-->点击弹窗转单
goTransferOrder(item) {
@@ -430,10 +454,40 @@
this.searchForm.departmentId = v;
},
changeOrderTab(v) {
+ if (v === "4") {
+ this.getSetting();
+ return;
+ }
this.searchForm.pageNum = 1;
this.searchForm.deliveryType = v;
this.getLogisticsInfo();
},
+ getSetting() {
+ getDeliveryTimeSetting({
+ regionId: this.settingForm.regionId
+ }).then((res) => {
+ if (res.success) {
+ this.settingForm.deliveryTime = res.result == null ? 30 : Number(res.result);
+ }
+ });
+ },
+ saveSetting() {
+ if (this.settingForm.deliveryTime === null || this.settingForm.deliveryTime === undefined || this.settingForm.deliveryTime === "") {
+ this.$Message.warning("请输入配送时长");
+ return;
+ }
+ this.settingLoading = true;
+ saveDeliveryTimeSetting({
+ regionId: this.settingForm.regionId,
+ deliveryTime: Number(this.settingForm.deliveryTime)
+ }).then((res) => {
+ if (res.success) {
+ this.$Message.success("保存成功");
+ }
+ }).finally(() => {
+ this.settingLoading = false;
+ });
+ },
changeTab(v) {
this.searchForm.pageNum = 1;
this.searchForm.status = v;
diff --git a/vue.config.js b/vue.config.js
index 886200f..4fbad80 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -7,8 +7,8 @@ module.exports = {
port: 8889,
proxy: {
'/hiver': {
- target: 'https://hbkuaishi.com', // 正式1
- // target: 'http://192.168.100.30:8888', // 本地
+ //target: 'https://hbkuaishi.com', // 正式1
+ target: 'http://192.168.100.30:8888', // 本地
ws: false
},
'/foo': {