From f512b0475560ed449f936e0b7a27ba197e6bafe5 Mon Sep 17 00:00:00 2001
From: IPC-610 <IPC-610@DESKTOP-6LEOOS3>
Date: 星期四, 26 九月 2024 15:16:08 +0800
Subject: [PATCH] Merge branch 'master' of https://gitee.com/liudongl/jc24-wms
---
HTML/views/WareHouseSetting/Locate.html | 61 ++++++++++++++++++++++++++----
1 files changed, 53 insertions(+), 8 deletions(-)
diff --git a/HTML/views/WareHouseSetting/Locate.html b/HTML/views/WareHouseSetting/Locate.html
index 43ad11c..9f52be6 100644
--- a/HTML/views/WareHouseSetting/Locate.html
+++ b/HTML/views/WareHouseSetting/Locate.html
@@ -18,11 +18,11 @@
});
</script>
</head>
- <body>
+ <body id="body">
<div class="layui-fluid" style="padding-bottom: 0;">
<div class="layui-card">
- <div class="layui-form layui-card-header layuiadmin-card-header-auto" style="border-bottom:1px solid #CCC">
+ <div class="layui-form layui-card-header layuiadmin-card-header-auto" style="border-bottom:1px solid #CCC" id="top">
<div class="layui-form-item">
<div class="layui-inline">
<label class="layui-form-label" style="width: 60px;">鎵�灞炰粨搴�</label>
@@ -117,6 +117,7 @@
</div>
</div>
</div>
+ <div id="center"></div>
<div class="layui-card-body">
<table id="LAY-app-content-list" lay-filter="LAY-app-content-list" style="width: 100%;"></table>
<script type="text/html" id="table-content-list">
@@ -147,6 +148,7 @@
layer = layui.layer,
$ = layui.$;
var houseid = 0;
+ var h1 = GetTableHeight();
// 琛ㄥ崟闇�瑕佺殑鍙橀噺
var doing = true;
active = {
@@ -157,10 +159,41 @@
if (checkData.length === 0) {
return layer.msg('璇烽�夋嫨鏁版嵁');
}
+ else if(checkData.length > 1)
+ {
+ var li = 0;
+ var ping = 0;
+ var WareNo = "W01";
+ checkData.forEach(item => {
+ if (item.WareHouseName == "鍔涜绔嬩綋搴�")
+ {
+ li += 1;
+ WareNo = "W01";
+ if (ping > 0)
+ {
+ return;
+ }
+ }
+ if (item.WareHouseName == "鍔涜骞冲簱")
+ {
+ ping += 1;
+ WareNo = "W02";
+ if (li > 0)
+ {
+ return;
+ }
+ }
+ });
+ if (li != 0 && ping != 0)
+ {
+ return layer.msg('璇峰嬁閫夋嫨澶氱浠撳簱锛�');
+ }
+ }
+
layer.open({
type: 2,
title: '缂栬緫鍌ㄤ綅鐘舵�侀泦鍚�',
- content: 'LocateFrom.html',
+ content: 'LocateFrom.html?WareHouseNo='+WareNo,
maxmin: true,
area: ['560px', '510px'],
btn: ['纭畾', '鍙栨秷'],
@@ -242,7 +275,7 @@
console.log(where);
var tableIns = table.render({
elem: '#LAY-app-content-list',
- height: 'full-135',
+ height: h1,
id: 'LAY-app-content-list',
url: IP + "/Sys/GetStorageLocatList",
method: 'post',
@@ -291,17 +324,29 @@
title: '鎵�灞炰粨搴�',
align: 'center',
width: 140,
- fixed: 'left'
+ fixed: 'left',
+ templet: function(d) {
+
+ return d.WareHouseNo + '-' + d.WareHouseName;
+ }
}, {
field: 'RoadwayNo',
title: '鎵�灞炲贩閬�',
align: 'center',
width: 130,
+ templet: function(d) {
+
+ return d.RoadwayNo + '-' + d.RoadwayName;
+ }
}, {
field: 'AreaName',
title: '鎵�灞炲尯鍩�',
align: 'center',
width: 130,
+ templet: function(d) {
+
+ return d.AreaNo + '-' + d.AreaName;
+ }
}, {
field: 'LocatNo',
title: '鍌ㄤ綅缂栫爜',
@@ -446,7 +491,7 @@
sendData(IP + "/Sys/GetWarehouseDic", {}, 'get', function(res) {
if (res.code == 0) { //鎴愬姛
for (var i = 0; i < res.data.length; i++) {
- $("#WareHouseNo").append('<option value =' + res.data[i].WareHouseNo + '>' +
+ $("#WareHouseNo").append('<option value =' + res.data[i].WareHouseNo + '>' + res.data[i].WareHouseNo + '-' +
res.data[i].WareHouseName + '</option>');
}
form.render('select');
@@ -470,7 +515,7 @@
$("#RoadwayNo").append('<option value =""></option>');
if (res.code == 0) { //鎴愬姛
for (var i = 0; i < res.data.length; i++) {
- $("#RoadwayNo").append('<option value =' + res.data[i].RoadwayNo + '>' +
+ $("#RoadwayNo").append('<option value =' + res.data[i].RoadwayNo + '>' + res.data[i].RoadwayNo + '-' +
res.data[i].RoadwayName + '</option>');
}
form.render('select');
@@ -490,7 +535,7 @@
$("#AreaNo").append('<option value =""></option>');
if (res.code == 0) { //鎴愬姛
for (var i = 0; i < res.data.length; i++) {
- $("#AreaNo").append('<option value =' + res.data[i].AreaNo + '>' +
+ $("#AreaNo").append('<option value =' + res.data[i].AreaNo + '>' + res.data[i].AreaNo + '-' +
res.data[i].AreaName + '</option>');
}
form.render('select');
--
Gitblit v1.8.0