From 9d831229b5a8c238ce55f4ee8de7433c56cbe3a8 Mon Sep 17 00:00:00 2001
From: lsh <lsh@163.com>
Date: 星期五, 14 十一月 2025 08:30:35 +0800
Subject: [PATCH] *
---
src/main/webapp/static/js/locDetl/locDetl.js | 67 ++++++++++++++++++++++++++++++++-
1 files changed, 65 insertions(+), 2 deletions(-)
diff --git a/src/main/webapp/static/js/locDetl/locDetl.js b/src/main/webapp/static/js/locDetl/locDetl.js
index 042a7bb..26c9c1f 100644
--- a/src/main/webapp/static/js/locDetl/locDetl.js
+++ b/src/main/webapp/static/js/locDetl/locDetl.js
@@ -4,7 +4,7 @@
{field: 'locNo$', align: 'center',title: '搴撲綅鍙�'},
{field: 'matnr', align: 'center',title: '瑙勬牸', sort:true}
,{field: 'maktx', align: 'center',title: '鍟嗗搧鍚嶇О', sort:true}
- ,{field: 'orderNo', align: 'center',title: '鍗曟嵁缂栧彿', hide: false}
+ ,{field: 'orderNo', align: 'center',title: '鍗曟嵁缂栧彿', hide: true}
,{field: 'batch', align: 'center',title: '绠卞彿', width: 300, sort:true}
,{field: 'anfme', align: 'center',title: '鏁伴噺'}
,{field: 'zpallet', align: 'center',title: '鎵樼洏鏉$爜'}
@@ -42,7 +42,7 @@
// cols.push.apply(cols, detlCols);
cols.push({field: 'modiUser$', align: 'center',title: '淇敼浜哄憳',hide: true}
,{field: 'modiTime$', align: 'center',title: '淇敼鏃堕棿'}
- ,{fixed: 'right', title:'鎿嶄綔', align: 'center', toolbar: '#operate', width:100}
+ ,{fixed: 'right', title:'鎿嶄綔', align: 'center', toolbar: '#operate', width:160}
)
return cols;
@@ -261,6 +261,40 @@
}
});
break;
+ case 'inspection':
+ var model = top.reObject(data).model;
+ if (model === undefined) {
+ layer.msg("鏃犳暟鎹�");
+ }
+ layer.confirm('纭鍚慚ES鏍″噯鏄惁鍚堟牸', {
+ shade: .1,
+ skin: 'layui-layer-admin'
+ }, function (i) {
+ $.ajax({
+ url: baseUrl + "/actual/shipment/locDetl/report/auth",
+ headers: {'token': localStorage.getItem('token')},
+ data: {
+ model: model // 浼犻�掔粍璐у崟鍙�
+ },
+ method: 'POST',
+ success: function (res) {
+ layer.closeAll('loading');
+ if (res.code === 200){
+ if (insTbCount === 0) {
+ insTb.reload({page: {curr: 1}});
+ } else {
+ $(".layui-laypage-btn")[0].click();
+ }
+ layer.msg(res.msg, {icon: 1});
+ } else if (res.code === 403){
+ top.location.href = baseUrl+"/";
+ }else {
+ layer.msg(res.msg, {icon: 2});
+ }
+ }
+ })
+ });
+ break;
case 'locNo':
var param = top.reObject(data).locNo;
if (param === undefined) {
@@ -436,6 +470,35 @@
})
}
+ // 鍚屾搴撳瓨鑷矼ES
+ form.on('submit(synchronize)', function (data) {
+ layer.confirm('纭鍚慚ES鍚屾搴撳瓨锛�', {
+ shade: .1,
+ skin: 'layui-layer-admin'
+ }, function (i) {
+ $.ajax({
+ url: baseUrl + "/synchronize/mes/locDetl/report/auth",
+ headers: {'token': localStorage.getItem('token')},
+ method: 'POST',
+ success: function (res) {
+ layer.closeAll('loading');
+ if (res.code === 200){
+ if (insTbCount === 0) {
+ insTb.reload({page: {curr: 1}});
+ } else {
+ $(".layui-laypage-btn")[0].click();
+ }
+ layer.msg(res.msg, {icon: 1});
+ } else if (res.code === 403){
+ top.location.href = baseUrl+"/";
+ }else {
+ layer.msg(res.msg, {icon: 2});
+ }
+ }
+ })
+ });
+ });
+
// 澶嶉�夋浜嬩欢
form.on('checkbox(detailCheckbox)', function (data) {
var el = data.elem;
--
Gitblit v1.9.1