From 44b01cb2dc2bd64771b7533f650403da1433fb7a Mon Sep 17 00:00:00 2001
From: jhz <jinghz@oceic.com>
Date: 星期四, 04 五月 2023 08:20:50 +0800
Subject: [PATCH] 采购入库扫源单带仓库
---
WebTM/views/验收入库/产品入库/Kf_ProductInBill_Fast.html | 135 +++++++++++++++++++++++++++++---------------
1 files changed, 89 insertions(+), 46 deletions(-)
diff --git "a/WebTM/views/\351\252\214\346\224\266\345\205\245\345\272\223/\344\272\247\345\223\201\345\205\245\345\272\223/Kf_ProductInBill_Fast.html" "b/WebTM/views/\351\252\214\346\224\266\345\205\245\345\272\223/\344\272\247\345\223\201\345\205\245\345\272\223/Kf_ProductInBill_Fast.html"
index a6fdc12..70370e5 100644
--- "a/WebTM/views/\351\252\214\346\224\266\345\205\245\345\272\223/\344\272\247\345\223\201\345\205\245\345\272\223/Kf_ProductInBill_Fast.html"
+++ "b/WebTM/views/\351\252\214\346\224\266\345\205\245\345\272\223/\344\272\247\345\223\201\345\205\245\345\272\223/Kf_ProductInBill_Fast.html"
@@ -19,7 +19,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>
@@ -81,7 +81,7 @@
<select name="HBillType" id="HBillType">
<option value="3714">宸ュ簭姹囨姤鍗�</option>
<option value="3711">鐢熶骇姹囨姤鍗�</option>
- <option value="3710">鐢熶骇璁㈠崟</option>
+ <option value="3710" selected>鐢熶骇璁㈠崟</option>
</select>
</div>
</div>
@@ -120,7 +120,7 @@
<label class="layui-form-label" style="width:30px;padding-left:0px;">浠撳簱</label>
</div>
<div class="layui-col-xs6">
- <input type="text" name="HWHNAME" id="HWHNAME" lay-verify="HWHNAME" autocomplete="off" class="layui-input" readonly>
+ <input type="text" name="HWHNAME" id="HWHNAME" lay-verify="HWHNAME" autocomplete="off" class="layui-input">
<input type="hidden" name="HWHID" id="HWHID" lay-verify="HWHID" value="0" autocomplete="off" class="layui-input">
</div>
<div class="layui-col-xs3">
@@ -210,13 +210,6 @@
</div>
</div>
</div>
-
-
-
-
-
-
-
<div class="layui-tab-item">
<!--<div class="layui-form-item" style="padding:0px;margin:0px">
<div class="layui-row">
@@ -250,7 +243,7 @@
<div class="layui-form-item" style="padding: 0px; margin: 0px">
<div class="layui-row">
<div class="layui-col-xs3">
- <label class="layui-form-label" style="width:40px;padding-left:0px;">鏉$爜鏁�</label>
+ <label class="layui-form-label" style="width:50px;padding-left:0px;">鏉$爜鏁�</label>
</div>
<div class="layui-col-xs8">
<input type="text" name="HBarCodeQtys" id="HBarCodeQtys" lay-verify="HBarCodeQtys" autocomplete="off" class="layui-input">
@@ -260,7 +253,7 @@
<div class="layui-form-item" style="padding: 0px; margin: 0px">
<div class="layui-row">
<div class="layui-col-xs3">
- <label class="layui-form-label" style="width:40px;padding-left:0px;">鎬绘暟閲�</label>
+ <label class="layui-form-label" style="width:50px;padding-left:0px;">鎬绘暟閲�</label>
</div>
<div class="layui-col-xs8">
<input type="text" name="HSumQtys" id="HSumQtys" lay-verify="HSumQtys" autocomplete="off" class="layui-input">
@@ -357,7 +350,7 @@
var HSourceFlag = sessionStorage["SourceFlag"];
//榛樿甯﹀叆鐨勪粨搴擄紝濡傛灉鍚敤浠撲綅鍒欎粨浣嶆湁鏁堬紝濡傛灉娌℃湁鍚敤鍒欎粨浣嶇伆搴� new
- $("#HBarCode").focus();
+ $("#HWHNAME").focus();
// 缂栬緫鑾峰彇琛ㄥご鏃舵椂闂存牸寮忕煫姝f柟寮�
function formatDate(date) {
@@ -398,8 +391,8 @@
option = {
id: 'wl-table'
, elem: '#wl-table'
- , toolbar: '#toolbarDemo'
- , page: false
+ //, toolbar: '#toolbarDemo'
+ , page: true
, cellMinWidth: 120
, height: 500
, cols: [columns]
@@ -421,7 +414,7 @@
return vars;
}
- ////鍒ゆ柇鏄惁鐧诲綍 鏈櫥褰曞垯璺冲埌鐧诲綍椤�
+ //鍒ゆ柇鏄惁鐧诲綍 鏈櫥褰曞垯璺冲埌鐧诲綍椤�
//if (sessionStorage.login != "login") {
// layer.confirm("鐧诲綍澶辨晥锛岃閲嶆柊鐧诲綍锛�", {
// icon: 4, skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず", closeBtn: 0, btn: ['閲嶆柊鐧诲綍']
@@ -507,7 +500,7 @@
table.render({
elem: '#wl-table'
, url: GetWEBURL() + '/ProductIn/DisBillEntryList_Webs_Json'
- , toolbar: '#toolbarDemo'
+ //, toolbar: '#toolbarDemo'
, defaultToolbar: []
, where: { HBillID: sInterID, HBillType: '1202', sWhere: '' }
, cols: [[
@@ -523,7 +516,8 @@
//, { field: 'HBatchNo', title: '鎵规', width: 150 }
]]
// , data: [linterid]
- // , page: true
+ , page: true
+ , limie: 100
, height: 500
, done: function () {
layer.closeAll("loading");
@@ -576,7 +570,7 @@
//鑾峰彇鏈�澶у崟鎹彿 new
$("#HInterID").val("");
$("#HBillNo").val("");
- $("#HBillType").val("3714");
+ $("#HBillType").val("3710");
form.render('select');
$.ajax({
url: GetWEBURL() + "/Web/GetMAXNumPDA",
@@ -629,7 +623,7 @@
}
})
});
- ////閫夋嫨浠撳簱
+ //閫夋嫨浠撳簱
//form.on('submit(HWHID-BT)', function () {//閫夋嫨浠撳簱
// layer.open({
// type: 2
@@ -807,9 +801,11 @@
elem: '#wl-table'
//, url: 'http://61.130.49.162:9090/WMSAPI///ProductIn/DisBillEntryList_Webs_Json'
, url: GetWEBURL() + '/ProductIn/DisBillEntryList_Webs_Json'
- , toolbar: '#toolbarDemo'
+ //, toolbar: '#toolbarDemo'
, defaultToolbar: []
, where: { HBillID: sInterID, HBillType: '1202', sWhere: '' }
+ , page: true
+ , limit: 100
, cols: [[
{ type: 'radio' }
, { field: 'HQty', title: '鏁伴噺', width: 150 }
@@ -841,7 +837,7 @@
});
})
- ////鍒犻櫎
+ //鍒犻櫎
//form.on('submit(cmdDelete)', function () {//鍒犻櫎
// var checkStatus = table.checkStatus('wl-table')
// , data = checkStatus.data;
@@ -894,7 +890,7 @@
// elem: '#wl-table'
// //, url: 'http://61.130.49.162:9090/WMSAPI///ProductIn/DisBillEntryList_Webs_Json'
// , url: GetWEBURL() + '/ProductIn/DisBillEntryList_Webs_Json'
- // , toolbar: '#toolbarDemo'
+ // //, toolbar: '#toolbarDemo'
// , defaultToolbar: []
// , where: { HBillID: sInterID, HBillType: '1202', sWhere: '' }
// , cols: [[
@@ -1150,6 +1146,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);
+ $("#HBarCode").focus();
+ $("#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 });
+ }
+ });
+
//鍒锋柊鏄庣粏椤电
table.render({
elem: '#mx-table'
@@ -1160,6 +1190,7 @@
, { field: 'HMaterID', title: '鐗╂枡ID', width: 100, hide: true }
]]
, page: true
+ , limit: 100
, height: 500
, done: function () {
}
@@ -1200,8 +1231,10 @@
table.render({
elem: '#wl-table'
, url: GetWEBURL() + '/ProductIn/DisBillEntryList_Webs_Json'
- , toolbar: '#toolbarDemo'
+ //, toolbar: '#toolbarDemo'
, defaultToolbar: []
+ , page: true
+ , limit: 100
, where: { HBillID: sInterID, HBillType: '1202', sWhere: '' }
, cols: [[
{ type: 'radio' }
@@ -1223,6 +1256,8 @@
layer.closeAll("loading");
}
})
+ //娓呯┖鏁伴噺
+ $("#HQty").val("");
}
else {
playSound();
@@ -1270,34 +1305,37 @@
//data: { "sCode": sBarCode, "sInterID": sInterID, "sBillNo": sBillNo, "sBillType": sBillType, "sMaker": sessionStorage["HUserName"], "WhID": sHWHID, "SPID": sHSPID, "sQty": sQty, "sRedBlue": false, "SourceFlag": HSourceFlag, "sSourceBillNo": sSourceBillNo, "sSourceType": sHBillType, "HOWNERID": sessionStorage["OrganizationID"] }, //鏃�
success: function (result) {
//debugger;
- playSound1();
if (result.count == 1) {
- if (result.data.HBarType == '浠撳簱鏉$爜') {
- $("#HWHNAME").val(result.data.HWhName);
- $("#HWHID").val(result.data.HWhID);
+ playSound1();
+ if (result.data.hBarTypeField == '浠撳簱鏉$爜') {
+ $("#HWHNAME").val(result.data.hWhNameField);
+ $("#HWHID").val(result.data.hWhIDField);
$("#HStockPlaceName").val("");
$("#HNote").val(";涓�閿壂鐮佷粨搴撴潯鐮�");
element.tabChange('tab-ProductlnBill', '2'); //璺宠浆椤电
+ return;
}
- else if (result.data.HBarType == '浠撲綅鏉$爜') {
- $("#HStockPlaceName").val(result.data.HSPName);
- $("#HStockPlaceID").val(result.data.HSPID);
- $("#HWHNAME").val(result.data.HWhName);
- $("#HWHID").val(result.data.HWhID);
+ else if (result.data.hBarTypeField == '浠撲綅鏉$爜') {
+ $("#HStockPlaceName").val(result.data.hSPNameField);
+ $("#HStockPlaceID").val(result.data.hSPIDField);
+ $("#HWHNAME").val(result.data.hWhNameField);
+ $("#HWHID").val(result.data.hWhIDField);
$("#HNote").val(";涓�閿壂鐮佷粨浣嶆潯鐮�");
element.tabChange('tab-ProductlnBill', '2');//璺宠浆椤电
+ return;
}
- else if (result.data.HBarType == '閮ㄩ棬鏉$爜') {
- $("#HDeptName").val(result.data.HDeptName);
- $("#HDeptID").val(result.data.HDeptID);
+ else if (result.data.hBarTypeField == '閮ㄩ棬鏉$爜') {
+ $("#HDeptName").val(result.data.hDeptNameField);
+ $("#HDeptID").val(result.data.hDeptIDField);
$("#HNote").val(";涓�閿壂鐮侀儴闂ㄦ潯鐮�");
element.tabChange('tab-ProductlnBill', '2');//璺宠浆椤电
+ return;
}
- else if (result.data.HBarType == '婧愬崟鏉$爜') {
- //$("#HSupName").val(result.data.HSupName);
- //$("#HSupID").val(result.data.HSupID);
- //$("#HDeptName").val(result.data.HDeptName);
- //$("#HDeptID").val(result.data.HDeptID);
+ else if (result.data.hBarTypeField == '婧愬崟鏉$爜') {
+ //$("#HSupName").val(result.data.hSupName);
+ //$("#HSupID").val(result.data.hSupID);
+ //$("#HDeptName").val(result.data.hDeptName);
+ //$("#HDeptID").val(result.data.hDeptID);
if (result.data.hDeptIDField != 0) {
$("#HDeptID").val(result.data.hDeptIDField);
$("#HDeptName").val(result.data.hDeptNameField);
@@ -1376,7 +1414,7 @@
// elem: '#wl-table'
// //, url: 'http://61.130.49.162:9090/WMSAPI///ProductIn/DisBillEntryList_Webs_Json'
// , url: GetWEBURL() + '/ProductIn/DisBillEntryList_Webs_Json'
- // , toolbar: '#toolbarDemo'
+ // //, toolbar: '#toolbarDemo'
// , defaultToolbar: []
// , where: { HBillID: sInterID, HBillType: '1202', sWhere: '' }
// , cols: [[
@@ -1431,6 +1469,8 @@
layer.closeAll("loading");
}
});
+ //娓呯┖鏁伴噺
+ $("#HQty").val("");
}
else {
playSound();
@@ -1449,9 +1489,11 @@
var listOption = {
elem: '#wl-table'
- , toolbar: '#toolbarDemo'
+ //, toolbar: '#toolbarDemo'
, totalRow: true
, cellMinWidth: 90
+ , page: true
+ ,limit: 100
, cols: [[
{ type: 'radio' }
, { field: 'HQty', title: '鏁伴噺', width: 150, totalRow: true}
@@ -1472,7 +1514,7 @@
}
var listOption1 = {
elem: '#mx-table'
- , toolbar: '#toolbarDemo'
+ //, toolbar: '#toolbarDemo'
, cellMinWidth: 90
, cols: [[
{ type: 'radio' }
@@ -1538,9 +1580,11 @@
table.render({
elem: '#wl-table'
, url: GetWEBURL() + '/ProductIn/DisBillEntryList_Webs_Json'
- , toolbar: '#toolbarDemo'
+ //, toolbar: '#toolbarDemo'
, totalRow: true
, defaultToolbar: []
+ , page: true
+ , limit: 100
, where: { HBillID: sInterID, HBillType: '1202', sWhere: '' }
, cols: [[
{ type: 'radio' }
@@ -1556,7 +1600,6 @@
, { field: 'HPieceQty', title: '鏉$爜鏁伴噺', width: 150 }
]]
// , data: [linterid]
- // , page: true
, height: 500
, done: function () {
layer.closeAll("loading");
--
Gitblit v1.9.1