From 62dbe6a876e52657a1895fa1a63844e5fa0ab3da Mon Sep 17 00:00:00 2001
From: xman <1946321327@qq.com>
Date: Sat, 31 May 2025 15:33:22 +0800
Subject: [PATCH] default
---
.../admin/view/orders/dispatch2/index.html | 16 ++++++++-------
public/assets/js/backend/orders/dispatch2.js | 20 +++++++++++++------
2 files changed, 23 insertions(+), 13 deletions(-)
diff --git a/application/admin/view/orders/dispatch2/index.html b/application/admin/view/orders/dispatch2/index.html
index da3e517..d588e2e 100644
--- a/application/admin/view/orders/dispatch2/index.html
+++ b/application/admin/view/orders/dispatch2/index.html
@@ -1,12 +1,14 @@
-
+
- {:build_heading(null,FALSE)}
-
- - {:__('All')}
- {foreach name="statusList" item="vo"}
- - {$vo}
- {/foreach}
+ {:build_heading(null, FALSE)}
+
diff --git a/public/assets/js/backend/orders/dispatch2.js b/public/assets/js/backend/orders/dispatch2.js
index 106984b..1dcdcf6 100644
--- a/public/assets/js/backend/orders/dispatch2.js
+++ b/public/assets/js/backend/orders/dispatch2.js
@@ -63,13 +63,8 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form','layer'], function ($,
{field: 'record_count', title: '跟进次数',operate: false},
-
-
-
//{field: 'order_id', title: __('Order_id')},
-
-
{field: 'status', title: __('Status'), searchList: {"0":__('Status 0'),"10":__('Status 10'),"20":__('Status 20'),"25":__('Status 25'),"30":__('Status 30'),"60":__('Status 60'),"-10":__('Status -10'),
//"-20":__('Status -20'),
"-30":__('Status -30')},
@@ -81,7 +76,9 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form','layer'], function ($,
// {field: 'worker_id', title: __('Worker_id')},
{field: 'worker_name', title: __('Worker_name'), operate: 'LIKE'},
{field: 'worker_tel', title: __('Worker_tel'), operate: 'LIKE'},
- {field: 'type', title: __('Type'), searchList: {"1":__('Type 1'),"2":__('自动')}, formatter: Table.api.formatter.normal},
+ {field: 'type', title: __('Type'), searchList: {"1":__('Type 1'),"2":__('自动')}, formatter: Table.api.formatter.normal,
+ defaultValue: '1'
+ },
@@ -365,6 +362,17 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form','layer'], function ($,
});
+ // 默认设置 type=1,并触发表格筛选
+ if (typeof Fast.api.query !== 'undefined' && !Fast.api.query('type')) {
+ // 修改 URL 参数为 type=1
+ Fast.api.replace('type', '1');
+
+ // 主动触发 tab 点击事件,自动选中“手动派单”并刷新数据
+ setTimeout(function () {
+ $('.nav-tabs[data-field="type"] a[data-value="1"]').trigger('click');
+ }, 10);
+ }
+
},
add: function () {
Controller.api.bindevent();