From 123a17c9d50745ea609f91943adca64e5ed12355 Mon Sep 17 00:00:00 2001
From: zhangc <zc@123>
Date: 星期六, 12 四月 2025 09:08:14 +0800
Subject: [PATCH] 1
---
src/main/webapp/static/js/basShuttle/basShuttle.js | 70 ++++++++++++++++++++++++++++++++++-
1 files changed, 68 insertions(+), 2 deletions(-)
diff --git a/src/main/webapp/static/js/basShuttle/basShuttle.js b/src/main/webapp/static/js/basShuttle/basShuttle.js
index e4811cb..081a4a1 100644
--- a/src/main/webapp/static/js/basShuttle/basShuttle.js
+++ b/src/main/webapp/static/js/basShuttle/basShuttle.js
@@ -24,7 +24,7 @@
{type: 'checkbox'}
,{field: 'shuttleNo', align: 'center',title: '鍥涘悜绌挎杞﹀彿', width: 120}
,{field: 'status$', align: 'center',title: '鐘舵��'}
- ,{field: 'shuttleStatus', align: 'center',title: '浣滀笟鎬�'}
+ // ,{field: 'shuttleStatus', align: 'center',title: '浣滀笟鎬�'}
,{field: 'wrkNo', align: 'center',title: '浠诲姟鍙�'}
,{field: 'idleLoc', align: 'center',title: '鏆傚瓨搴撲綅'}
// ,{field: 'autoCharge', align: 'center',title: '鑷姩鍏呯數'}
@@ -97,6 +97,39 @@
return d.shuttleNo;
}));
break;
+ case 'oneUpdateCharge':
+ 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 'exportData':
admin.confirm('纭畾瀵煎嚭Excel鍚�', {shadeClose: true}, function(){
var titles=[];
@@ -151,12 +184,45 @@
}
});
+ function showUpdateCharge() {
+ admin.open({
+ type: 1,
+ area: '600px',
+ title: '涓�閿慨鏀圭數閲忕嚎',
+ content: $('#updateChargeDialog').html(),
+ success: function (layero, dIndex) {
+ form.on('submit(editSubmit)', function (data) {
+ var loadIndex = layer.load(2);
+ $.ajax({
+ url: baseUrl+"/basShuttle/updateCharge",
+ headers: {'token': localStorage.getItem('token')},
+ data: data.field,
+ method: 'POST',
+ success: function (res) {
+ layer.close(loadIndex);
+ if (res.code === 200){
+ layer.close(dIndex);
+ layer.msg(res.msg, {icon: 1});
+ tableReload();
+ } else if (res.code === 403){
+ top.location.href = baseUrl+"/";
+ }else {
+ layer.msg(res.msg, {icon: 2});
+ }
+ }
+ })
+ return false;
+ });
+ }
+ });
+ }
+
/* 寮圭獥 - 鏂板銆佷慨鏀� */
function showEditModel(mData) {
admin.open({
type: 1,
area: '600px',
- title: (mData ? '淇敼' : '娣诲姞') + '璁㈠崟鐘舵��',
+ title: (mData ? '淇敼' : '娣诲姞') + '灏忚溅鏁版嵁',
content: $('#editDialog').html(),
success: function (layero, dIndex) {
layDateRender(mData);
--
Gitblit v1.9.1