From 8c7b4949dfcf875cc537304d34a7f6960cbb0c10 Mon Sep 17 00:00:00 2001
From: qlsxk <qlsxk@qq.com>
Date: 星期四, 16 十月 2025 14:57:12 +0800
Subject: [PATCH] #
---
src/main/webapp/static/js/basShuttle/basShuttle.js | 82 ++++++++++++++++++++++++++++++++++++-----
1 files changed, 72 insertions(+), 10 deletions(-)
diff --git a/src/main/webapp/static/js/basShuttle/basShuttle.js b/src/main/webapp/static/js/basShuttle/basShuttle.js
index 2c6b8f2..ace1ac3 100644
--- a/src/main/webapp/static/js/basShuttle/basShuttle.js
+++ b/src/main/webapp/static/js/basShuttle/basShuttle.js
@@ -24,22 +24,14 @@
{type: 'checkbox'}
,{field: 'shuttleNo', align: 'center',title: '鍥涘悜绌挎杞﹀彿', width: 120}
,{field: 'status$', align: 'center',title: '鐘舵��'}
- // ,{field: 'shuttleStatus', align: 'center',title: '浣滀笟鎬�'}
- ,{field: 'wrkNo', align: 'center',title: '浠诲姟鍙�'}
- ,{field: 'idleLoc', align: 'center',title: '鏆傚瓨搴撲綅'}
- // ,{field: 'autoCharge', align: 'center',title: '鑷姩鍏呯數'}
+ ,{field: 'idleLoc', align: 'center',title: '寰呮満浣�'}
,{field: 'chargeLine', align: 'center',title: '鐢甸噺绾�'}
- ,{field: 'busyStatus$', align: 'center',title: '灏忚溅蹇欑姸鎬�'}
- ,{field: 'currentCode', align: 'center',title: '浜岀淮鐮�'}
- ,{field: 'batteryPower$', align: 'center',title: '鐢甸噺'}
- ,{field: 'batteryTemp$', align: 'center',title: '鐢垫睜娓╁害'}
+ ,{field: 'suggestChargeLine', align: 'center',title: '寤鸿鐢甸噺绾�'}
// ,{field: 'createBy$', align: 'center',title: '娣诲姞浜哄憳'}
// ,{field: 'createTime$', align: 'center',title: '娣诲姞鏃堕棿'}
// ,{field: 'updateBy$', align: 'center',title: '淇敼浜哄憳'}
// ,{field: 'updateTime$', align: 'center',title: '淇敼鏃堕棿'}
,{field: 'memo', align: 'center',title: '澶囨敞'}
- ,{field: 'liftNo', align: 'center',title: '鎻愬崌鏈哄彿'}
- ,{field: 'pakMk$', align: 'center',title: '鏍囪'}
,{fixed: 'right', title:'鎿嶄綔', align: 'center', toolbar: '#operate', width:120}
]],
@@ -101,11 +93,81 @@
showUpdateCharge();
break;
case 'shuttleGather':
+ shuttleNos = []
+ checkStatus.map(function (d) {
+ shuttleNos.push(d.shuttleNo)
+ })
+
admin.confirm('纭畾闆嗗悎鍏ㄩ儴灏忚溅鍚楋紵', {shadeClose: true}, function(){
$.ajax({
url: baseUrl+"/openapi/shuttleGather",
headers: {'token': localStorage.getItem('token')},
dataType:'json',
+ data: JSON.stringify({
+ shuttleNos: shuttleNos
+ }),
+ contentType:'application/json;charset=UTF-8',
+ method: 'POST',
+ success: function (res) {
+ layer.closeAll();
+ if (res.code === 200) {
+ layer.msg("璇锋眰鎴愬姛", {icon: 1});
+ tableReload();
+ } else if (res.code === 403) {
+ top.location.href = baseUrl+"/";
+ } else {
+ layer.msg(res.msg, {icon: 2})
+ }
+ }
+ });
+ });
+ break;
+ case 'demoOpen':
+ shuttleNos = []
+ checkStatus.map(function (d) {
+ shuttleNos.push(d.shuttleNo)
+ })
+
+ admin.confirm('纭畾寮�鍚紨绀烘ā寮忓悧锛�', {shadeClose: true}, function(){
+ $.ajax({
+ url: baseUrl+"/openapi/shuttleDemo",
+ headers: {'token': localStorage.getItem('token')},
+ dataType:'json',
+ data: JSON.stringify({
+ shuttleNos: shuttleNos,
+ status: 1
+ }),
+ contentType:'application/json;charset=UTF-8',
+ method: 'POST',
+ success: function (res) {
+ layer.closeAll();
+ if (res.code === 200) {
+ layer.msg("璇锋眰鎴愬姛", {icon: 1});
+ tableReload();
+ } else if (res.code === 403) {
+ top.location.href = baseUrl+"/";
+ } else {
+ layer.msg(res.msg, {icon: 2})
+ }
+ }
+ });
+ });
+ break;
+ case 'demoClose':
+ shuttleNos = []
+ checkStatus.map(function (d) {
+ shuttleNos.push(d.shuttleNo)
+ })
+
+ admin.confirm('纭畾鍏抽棴婕旂ず妯″紡鍚楋紵', {shadeClose: true}, function(){
+ $.ajax({
+ url: baseUrl+"/openapi/shuttleDemo",
+ headers: {'token': localStorage.getItem('token')},
+ dataType:'json',
+ data: JSON.stringify({
+ shuttleNos: shuttleNos,
+ status: 0
+ }),
contentType:'application/json;charset=UTF-8',
method: 'POST',
success: function (res) {
--
Gitblit v1.9.1