From 2feca62b8be21d02187999e0433a0a85cf57b314 Mon Sep 17 00:00:00 2001
From: duhe <226547893@qq.com>
Date: 星期三, 16 八月 2023 14:33:19 +0800
Subject: [PATCH] 项目阶段汇报:必填标识、取消上一行下一行、取消分页、启用合计行、子表不可编辑做颜色区分、重复校验、
---
WebTM/views/验收入库/委外入库/Kf_EntrustInBill_Fast.html | 105 +++++++++++++++++++++++++++++++++++++++++++---------
1 files changed, 87 insertions(+), 18 deletions(-)
diff --git "a/WebTM/views/\351\252\214\346\224\266\345\205\245\345\272\223/\345\247\224\345\244\226\345\205\245\345\272\223/Kf_EntrustInBill_Fast.html" "b/WebTM/views/\351\252\214\346\224\266\345\205\245\345\272\223/\345\247\224\345\244\226\345\205\245\345\272\223/Kf_EntrustInBill_Fast.html"
index c9a13eb..efecb73 100644
--- "a/WebTM/views/\351\252\214\346\224\266\345\205\245\345\272\223/\345\247\224\345\244\226\345\205\245\345\272\223/Kf_EntrustInBill_Fast.html"
+++ "b/WebTM/views/\351\252\214\346\224\266\345\205\245\345\272\223/\345\247\224\345\244\226\345\205\245\345\272\223/Kf_EntrustInBill_Fast.html"
@@ -18,7 +18,7 @@
<body>
<div class="layui-fluid" style="padding:0">
<div class="layui-card">
- <div class="layui-card-body" style="padding: 5px; height:800px;">
+ <div class="layui-card-body" style="padding: 0px; height:800px;">
<form class="layui-form" action="" lay-filter="component-form-group">
<div style="background-color:#0085E8;">
<span style="color: white;"><i class="layui-icon layui-icon-form"></i>濮斿鍏ュ簱鍗�</span>
@@ -43,6 +43,14 @@
</div>
<div class="layui-col-xs2">
<button type="button" lay-submit="" class="layui-btn" lay-filter="QueDin">纭畾</button>
+ </div>
+ </div>
+ <div class="layui-row">
+ <div class="layui-col-xs3">
+ <label class="layui-form-label" style="width:40px;padding-left:0px;">鏁伴噺</label>
+ </div>
+ <div class="layui-col-xs8">
+ <input type="text" name="HQty" id="HQty" lay-verify="HQty" autocomplete="off" class="layui-input">
</div>
</div>
</div>
@@ -109,7 +117,7 @@
<input type="hidden" name="HStockPlaceID" id="HStockPlaceID" lay-verify="HStockPlaceID" value="0" autocomplete="off" class="layui-input">
</div>
<div class="layui-col-xs3">
- <button type="button" lay-submit="" class="layui-btn" lay-filter="HSpID-BT" style="display:none">...</button>
+ <button type="button" lay-submit="" class="layui-btn" lay-filter="HSpID-BT">...</button>
</div>
</div>
</div>
@@ -200,14 +208,14 @@
<div class="layui-row">
<div class="layui-col-xs12">
<div class="layui-form-item" style="padding:0px;margin:0px">
- <div class="layui-row">
+ <!--<div class="layui-row">
<div class="layui-col-xs3">
<label class="layui-form-label" style="width:40px;padding-left:0px;">鏁伴噺</label>
</div>
<div class="layui-col-xs8">
<input type="text" name="HQty" id="HQty" lay-verify="HQty" autocomplete="off" class="layui-input">
</div>
- </div>
+ </div>-->
</div>
<table class="layui-hide" id="wl-table" lay-filter="wl-table"></table>
</div>
@@ -268,6 +276,7 @@
<script src="../../../layuiadmin/Scripts/jquery-1.4.1.js"></script>
<script src="../../../layuiadmin/Scripts/webConfig.js"></script>
<script src="../../../layuiadmin/zgqCustom/zgqCustom.js"></script>
+ <script src="../../../layuiadmin/PubCustom.js"></script>
<script>
layui.config({
base: '../../../layuiadmin/' //闈欐�佽祫婧愭墍鍦ㄨ矾寰�
@@ -383,7 +392,7 @@
$("#HInterID").val("");
$("#HBillNo").val("");
$.ajax({
- url: GetWEBURL() + "/Web/GetMAXNum",
+ url: GetWEBURL() + "/Web/GetMAXNumPDA",
type: "GET",
data: { "HBillType": '1210' },
success: function (d) {
@@ -566,8 +575,9 @@
//鍏抽棴鎸夐挳
form.on('submit(Cancel)', function () {
Flag = false;
- parent.location.href = "../../../views/index.html"
- //window.close();//鍏抽棴褰撳墠椤�
+ layer.confirm('鎮ㄧ‘瀹氳閫�鍑哄悧锛�', { icon: 3, title: '鎻愮ず' }, function (index) {
+ parent.location.href = "../../../views/index_Mobile.html";
+ });
})
//鎻愪氦鎸夐挳
@@ -597,7 +607,8 @@
dataType: "json",
success: function (data) {
if (data.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜�
- layer.confirm("鐢熸垚濮斿鍏ュ簱鍗�" + data.Message + $("#HBillNo").val(), {
+ layer.confirm(data.Message, {
+ //layer.confirm("鐢熸垚濮斿鍏ュ簱鍗�" + data.Message + $("#HBillNo").val(), {
icon: 1,
skin: 'layui-layer-lan',
closeBtn: 0,
@@ -638,11 +649,11 @@
//鎵潯鐮�
$('#HBarCode').on('keydown', function (event) {
- if (sQty == "") {
- sQty = 0;
- }
+ //if (sQty == "") {
+ // sQty = 0;
+ //}
if (event.keyCode == 13) {
- GetMeesageByBarCode
+ GetMeesageByBarCode();
}
});
//纭畾
@@ -741,7 +752,40 @@
});
}
});
-
+
+ //鎵粨搴�
+ $('#HWHNAME').on('keydown', function (event) {
+ var HBarCode = $('#HWHNAME').val()
+ if (event.keyCode == 13) {
+ if (!HBarCode) {
+ layer.msg('鏃犱粨搴撴潯鐮佷俊鎭紒');
+ return;
+ }
+ //鍒ゆ柇鏂囨湰妗嗘槸鍚︽湁鏁版嵁 new
+ $.ajax({
+ url: GetWEBURL() + "/LookingFor/getWHName_Json",
+ type: "GET",
+ data: { "HBarCode": HBarCode },
+ success: function (result) {
+ if (result.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜嗭紝
+ //$("#HStockPlaceName").val(result.data[0].HName);
+ //$("#HStockPlaceID").val(result.data[0].HItemID);
+ $("#HWHID").val(result.data[0].HItemID);
+ $("#HWHNAME").val(result.data[0].HName);
+ element.tabChange('tab-POStockInBill', '2');
+ }
+ else {
+ // $("#verifycode").click();
+ //layer.msg(result.Message, { icon: 5 });
+ layer.msg(result.Message, { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+ }
+ layer.closeAll("loading");
+ }
+ });
+ // layer.msg($('#HSourceBillNo').val(), { icon: 1 });
+ }
+ });
+
//鎵潯鐮�
function GetMeesageByBarCode(obj) { //杩斿洖宸ヤ綔涓績
var sSubStr = table.cache['wl-table'];
@@ -766,6 +810,10 @@
if (sQty != "") {
$('#HQty').val("");
}
+ if (sQty == "") {
+ sQty = 0;
+ }
+
$.ajax({
//url: "http://61.130.49.162:9090/WMSAPI///Kf_EntrustInBill/get_CheckTypeByBarCode_Json",
url: GetWEBURL() + "/Kf_EntrustInBill/get_CheckTypeByBarCode_Json",
@@ -856,12 +904,13 @@
elem: '#wl-table'
, url: GetWEBURL() + '/Kf_EntrustInBill/DisBillEntryList_Webs_Json'
, toolbar: '#toolbarDemo'
+ , totalRow: true
, where: { HBillID: sInterID, HBillType: '1210', sWhere: '' }
, cellMinWidth: 90
, cols: [[
{ type: 'radio' }
- , { field: 'HQty', title: '鏁伴噺', width: 150 }
- , { field: 'HQtyMust', title: '搴旀敹鏁伴噺', width: 150 }
+ , { field: 'HQty', title: '鏁伴噺', width: 150, totalRow: true}
+ , { field: 'HQtyMust', title: '搴旀敹鏁伴噺', width: 150, totalRow: true}
, { field: 'HMaterNumber', title: '鐗╂枡浠g爜', width: 150 }
, { field: 'HMaterName', title: '鐗╂枡鍚嶇О', width: 150 }
, { field: 'HMaterModel', title: '瑙勬牸鍨嬪彿', width: 150 }
@@ -875,6 +924,8 @@
layer.closeAll("loading");
}
});
+ //娓呯┖鏁伴噺
+ $("#HQty").val("");
}
else {
// $("#verifycode").click();
@@ -930,11 +981,12 @@
//, url: 'http://61.130.49.162:9090/WMSAPI///Kf_EntrustInBill/DisBillEntryList_Webs_Json'
, url: GetWEBURL() + '/Kf_EntrustInBill/DisBillEntryList_Webs_Json'
, toolbar: '#toolbarDemo'
+ , totalRow: true
, where: { HBillID: sInterID, HBillType: '1210', sWhere: '' }
, cols: [[
{ type: 'radio' }
- , { field: 'HQty', title: '鏁伴噺', width: 150 }
- , { field: 'HQtyMust', title: '搴旀敹鏁伴噺', width: 150 }
+ , { field: 'HQty', title: '鏁伴噺', width: 150, totalRow: true }
+ , { field: 'HQtyMust', title: '搴旀敹鏁伴噺', width: 150, totalRow: true }
, { field: 'HMaterNumber', title: '鐗╂枡浠g爜', width: 150 }
, { field: 'HMaterName', title: '鐗╂枡鍚嶇О', width: 150 }
, { field: 'HMaterModel', title: '瑙勬牸鍨嬪彿', width: 150 }
@@ -942,6 +994,7 @@
, { field: 'HSourceEntryID', title: '婧愬崟瀛愬唴鐮�', width: 150 }
, { field: 'HSourceBillNo', title: '婧愬崟鍗曞彿', width: 150 }
, { field: 'HBatchNo', title: '鎵规', width: 150 }
+ , { field: 'HPieceQty', title: '鏉$爜鏁伴噺', width: 150 }
]]
// , data: [linterid]
// , page: true
@@ -961,7 +1014,7 @@
}
});
}
-
+
});
//浠ヤ笂涓簂ayui妯″潡
function GetHWHValue(obj) //杩斿洖璋冨叆浠撳簱
@@ -973,6 +1026,8 @@
function GetHSpValue(obj) { //杩斿洖璋冨叆浠撲綅
$("#HStockPlaceName").val(obj[0].HName);
$("#HStockPlaceID").val(obj[0].HItemID);
+ $("#HWHNAME").val(obj[0].HWhName);
+ $("#HWHID").val(obj[0].HWHID);
}
function GetHSupValue(obj) { //杩斿洖渚涘簲鍟�
$("#HSupName").val(obj[0].HName);
@@ -1010,6 +1065,20 @@
// })
//}
function AllowLoadData(sSubStr, bnt) { //闈炵┖楠岃瘉
+ //鏁板瓧姝e垯(鍖呭惈灏忔暟)
+ var reg = /^\d+(\.\d+)?$/;
+ //if (reg.test($("#HQty").val()) == false || $("#HQty").val() == '') {
+ // layer.msg("鏁伴噺蹇呴』涓烘暟閲忔垨灏忔暟", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+ // return false;
+ //}
+ //if (reg.test($("#HBarcodeQtys").val()) == false || $("#HBarcodeQtys").val() == '') {
+ // layer.msg("鏉$爜鏁伴噺蹇呴』涓烘暟閲忔垨灏忔暟", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+ // return false;
+ //}
+ //if (reg.test($("#HSumQtys").val()) == false || $("#HSumQtys").val() == '') {
+ // layer.msg("鎬绘暟閲忓繀椤讳负鏁伴噺鎴栧皬鏁�", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+ // return false;
+ //}
//if ($("#HSourceBillNo").val() == '') {
// layer.msg("璇峰厛鎵簮鍗�!", { icon: 5 });
// return false;
--
Gitblit v1.9.1