From 9bb36642205ada0adfbc79ec030cafe0f6bcd923 Mon Sep 17 00:00:00 2001
From: zzr99 <1940172413@qq.com>
Date: 星期三, 16 二月 2022 12:00:46 +0800
Subject: [PATCH] nothing
---
WebTM/views/验收入库/外购入库/Kf_POStockInBill_Fast.html | 470 +++++++++++++++++-----------------------------------------
1 files changed, 136 insertions(+), 334 deletions(-)
diff --git "a/WebTM/views/\351\252\214\346\224\266\345\205\245\345\272\223/\345\244\226\350\264\255\345\205\245\345\272\223/Kf_POStockInBill_Fast.html" "b/WebTM/views/\351\252\214\346\224\266\345\205\245\345\272\223/\345\244\226\350\264\255\345\205\245\345\272\223/Kf_POStockInBill_Fast.html"
index cf8e732..c55af06 100644
--- "a/WebTM/views/\351\252\214\346\224\266\345\205\245\345\272\223/\345\244\226\350\264\255\345\205\245\345\272\223/Kf_POStockInBill_Fast.html"
+++ "b/WebTM/views/\351\252\214\346\224\266\345\205\245\345\272\223/\345\244\226\350\264\255\345\205\245\345\272\223/Kf_POStockInBill_Fast.html"
@@ -406,8 +406,7 @@
var lSourceBillType = params[params[2]]; //浠庡崟鎹幏鍙� 婧愬崟绫诲瀷
//鍔犺浇琛ㄥご
- function RoadBillMain(linterid)
- {
+ function RoadBillMain(linterid) {
$.ajax({
url: GetWEBURL() + "/Web/GetPonderationBill",
type: "GET",
@@ -430,8 +429,7 @@
})
}
//鏍规嵁婧愬崟绫诲瀷鍙婃簮鍗曞彿 鍔犺浇渚涘簲鍟�
- function RoadSup()
- {
+ function RoadSup() {
//var sInterID = $("#HInterID").val()
var HSourceBillNo = $('#HSourceBillNo').val()
var sInterID = $("#HInterID").val()
@@ -466,8 +464,7 @@
}
}
//鍔犺浇琛ㄤ綋
- function RoadBillSub(linterid)
- {
+ function RoadBillSub(linterid) {
table.render({
elem: '#wl-table'
, url: GetWEBURL() + '/POStockInBill/DisBillEntryList_Webs_Json'
@@ -810,69 +807,6 @@
var sHSPID = $("#HStockPlaceID").val()
var sSourceBillNo = $("#HSourceBillNo").val()
- // var Flag = sessionStorage["SourceFlag"];
- if (sQty == "") {
- sQty = 0;
- }
- if (event.keyCode == 13) {
- //鍒ゆ柇鏉$爜鏄惁涓虹┖ new
- if (sBarCode == '') {
- playSound();
- layer.msg("鏉$爜涓虹┖锛屼笉鑳芥壂鎻忥紒", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
- return false;
- }
- if (sBarCode != "") {
- $('#HBarCode').val("");
- }
- if (sQty != "") {
- $('#HQty').val("");
- }
- if (sHWHID == "184154") {
- if (sHSPID == "0") {
- playSound();
- layer.msg("浠撲綅涓虹┖锛岃閫夋嫨浠撲綅锛�", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
- return false;
- }
- }
- //if (AllowLoadData(sSubStr, 'HBarCode') != false) {//闈炵┖楠岃瘉
- $.ajax({
- url: GetWEBURL() + "/POStockInBill/get_CheckTypeByBarCode_Json",
- type: "GET",
- data: { "sCode": sBarCode, "sInterID": sInterID, "sBillNo": sBillNo, "sBillType": sBillType, "sMaker": sessionStorage["HUserName"], "WhID": sHWHID, "SPID": sHSPID, "sQty": sQty, "sRedBlue": false, "SourceFlag": true, "sSourceBillNo": sSourceBillNo, "sSourceType": '1103', "HOWNERID": sessionStorage["OrganizationID"] },
- success: function (result) {
- if (result.count == 1) {
- playSound1();
- if (result.data.HBarType == '浠撳簱鏉$爜') {
- $("#HWHNAME").val(result.data.HWhName);
- $("#HWHID").val(result.data.HWhID);
- $("#HStockPlaceName").val("");
- $("#HNote").val(";涓�閿壂鐮佷粨搴撴潯鐮�");
- element.tabChange('tab-POStockInBill', '2'); //璺宠浆椤电
- }
- 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);
- $("#HNote").val(";涓�閿壂鐮佷粨浣嶆潯鐮�");
- element.tabChange('tab-POStockInBill', '2');//璺宠浆椤电
- }
- else if (result.data.HBarType == '閮ㄩ棬鏉$爜') {
- $("#HDeptName").val(result.data.HDeptName);
- $("#HDeptID").val(result.data.HDeptID);
- $("#HNote").val(";涓�閿壂鐮侀儴闂ㄦ潯鐮�");
- element.tabChange('tab-POStockInBill', '2');//璺宠浆椤电
- }
- 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);
- $("#HSourceBillNo").val(result.data.HSourceBillNo);
- sessionStorage["SourceFlag"] = true;
- //鑾峰彇婧愬崟绫诲瀷銆佹簮鍗曞崟鍙�
- if (result.data.HSourceBillType == "1102") {
- $("#HBillType").val("1102");
// var Flag = sessionStorage["SourceFlag"];
if (sQty == "") {
sQty = 0;
@@ -880,6 +814,7 @@
if (event.keyCode == 13) {
//鍒ゆ柇鏉$爜鏄惁涓虹┖ new
if (sBarCode == '') {
+ playSound();
layer.msg("鏉$爜涓虹┖锛屼笉鑳芥壂鎻忥紒", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
return false;
}
@@ -891,17 +826,18 @@
}
if (sHWHID == "184154") {
if (sHSPID == "0") {
+ playSound();
layer.msg("浠撲綅涓虹┖锛岃閫夋嫨浠撲綅锛�", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
return false;
}
}
- //if (AllowLoadData(sSubStr, 'HBarCode') != false) {//闈炵┖楠岃瘉
$.ajax({
url: GetWEBURL() + "/POStockInBill/get_CheckTypeByBarCode_Json",
type: "GET",
data: { "sCode": sBarCode, "sInterID": sInterID, "sBillNo": sBillNo, "sBillType": sBillType, "sMaker": sessionStorage["HUserName"], "WhID": sHWHID, "SPID": sHSPID, "sQty": sQty, "sRedBlue": false, "SourceFlag": true, "sSourceBillNo": sSourceBillNo, "sSourceType": '1103', "HOWNERID": sessionStorage["OrganizationID"] },
success: function (result) {
if (result.count == 1) {
+ playSound1();
if (result.data.HBarType == '浠撳簱鏉$爜') {
$("#HWHNAME").val(result.data.HWhName);
$("#HWHID").val(result.data.HWhID);
@@ -958,85 +894,17 @@
//鑾峰彇婧愬崟绫诲瀷銆佹簮鍗曞崟鍙�
if (result.data.hSourceBillTypeField == "1102") {
$("#HBillType").val("1102");
-
- }
- else if (result.data.hSourceBillTypeField == "1103") {
- $("#HBillType").val("1103");
- }
- else {
- $("#HBillType").val("鎵嬪伐褰曞叆");
- }
- $("#HNote").val(";鐗╂枡鏉$爜");
- element.tabChange('tab-POStockInBill', '3');
- }
- }
- //$("#HSupID").val(result.data.HSupID);
- //$("#HSupName").val(result.data.HSupName);
- //$("#HDeptID").val(result.data.HDeptID);
- //$("#HDeptName").val(result.data.HDeptName);
- layer.load(3)
- table.render({
- elem: '#wl-table'
- , url: GetWEBURL() + '/POStockInBill/DisBillEntryList_Webs_Json'
- , where: { HBillID: sInterID, HBillType: '1201', sWhere: '' }
- , cellMinWidth : 115
- , cols: [[
- { type: 'radio' }
- , { field: 'HQty', title: '鏁伴噺', sort: true, width:100 }
- , { field: 'HQtyMust', title: '搴旀敹鏁伴噺', sort: true, width: 100 }
- , { field: 'HMaterNumber', title: '鐗╂枡浠g爜', sort: true, width: 200}
- , { field: 'HMaterName', title: '鐗╂枡鍚嶇О', sort: true, width: 200}
- , { field: 'HMaterModel', title: '瑙勬牸鍨嬪彿', sort: true, width: 200}
- , { field: 'HSourceInterID', title: '婧愬崟涓诲唴鐮�', sort: true, width: 200}
- , { field: 'HSourceEntryID', title: '婧愬崟瀛愬唴鐮�', sort: true, width: 200}
- , { field: 'HSourceBillNo', title: '婧愬崟鍗曞彿', sort: true, width: 200}
- , { field: 'HBatchNo', title: '鎵规', sort: true, width: 200}
- ]]
- , height: 500
- , done: function () {
- layer.closeAll("loading");
- }
- });
- }
- else {
- // $("#verifycode").click();
- //layer.msg(result.Message, { icon: 5 });
- playSound();
- layer.msg(result.Message, { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
- }
- layer.closeAll("loading");
- },
- error: function (err) {
- playSound();
- layer.msg("鎺ュ彛璇锋眰寮傚父:" + err, { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
- console.log(err);
- }
- });
- }
- //else
- //{
- // layer.msg(result.Message, { icon: 5 });
- //}
- //layer.closeAll("loading");
- //}
- });
- }
- else if (result.data.hSourceBillTypeField == "1103") {
- $("#HBillType").val("1103");
- }
- else {
- $("#HBillType").val("鎵嬪伐褰曞叆");
}
$("#HNote").val(";鐗╂枡鏉$爜");
element.tabChange('tab-POStockInBill', '3');
}
}
- layer.load(3)
+ layer.load(3)
$.ajax({
url: GetWEBURL() + '/MateOutBill/DisBillEntryList_Webs_New_Json1',
type: "GET",
- data: { HBillID: sInterID, HBillType: '1204', sWhere: '' },
+ data: { HBillID: sInterID, HBillType: '1201', sWhere: '' },
success: function (result) {
if (result.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜嗭紝
listOption.data = result.data.list;
@@ -1059,6 +927,7 @@
});
}
else {
+ playSound();
layer.msg(result.Message, { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
}
layer.closeAll("loading");
@@ -1066,28 +935,28 @@
});
}
});
- var listOption = {
- elem: '#wl-table'
- , toolbar: '#toolbarDemo'
- , cellMinWidth: 90
- , cols: [[
- { type: 'radio' }
- , { field: 'HSNO', title: '搴忓彿', width: 60 }
- , { field: 'HQty', title: '鏁伴噺', width: 80 }
- , { field: 'HQtyMust', title: '搴斿彂鏁伴噺', width: 80 }
- , { field: 'HMaterNumber', title: '鐗╂枡浠g爜', width: 150 }
- , { field: 'HMaterName', title: '鐗╂枡鍚嶇О', width: 150 }
- , { field: 'HMaterModel', title: '瑙勬牸鍨嬪彿', width: 150 }
- , { field: 'HSourceInterID', title: '婧愬崟涓诲唴鐮�', width: 150 }
- , { field: 'HSourceEntryID', title: '婧愬崟瀛愬唴鐮�', width: 150 }
- , { field: 'HSourceBillNo', title: '婧愬崟鍗曞彿', width: 150 }
- , { field: 'HBatchNo', title: '鎵规', width: 150 }
- ]]
- , height: 500
- , done: function () {
- layer.closeAll("loading");
- }
+ var listOption = {
+ elem: '#wl-table'
+ , toolbar: '#toolbarDemo'
+ , cellMinWidth: 90
+ , cols: [[
+ { type: 'radio' }
+ , { field: 'HSNO', title: '搴忓彿', width: 60 }
+ , { field: 'HQty', title: '鏁伴噺', width: 80 }
+ , { field: 'HQtyMust', title: '搴斿彂鏁伴噺', width: 80 }
+ , { field: 'HMaterNumber', title: '鐗╂枡浠g爜', width: 150 }
+ , { field: 'HMaterName', title: '鐗╂枡鍚嶇О', width: 150 }
+ , { field: 'HMaterModel', title: '瑙勬牸鍨嬪彿', width: 150 }
+ , { field: 'HSourceInterID', title: '婧愬崟涓诲唴鐮�', width: 150 }
+ , { field: 'HSourceEntryID', title: '婧愬崟瀛愬唴鐮�', width: 150 }
+ , { field: 'HSourceBillNo', title: '婧愬崟鍗曞彿', width: 150 }
+ , { field: 'HBatchNo', title: '鎵规', width: 150 }
+ ]]
+ , height: 500
+ , done: function () {
+ layer.closeAll("loading");
}
+ }
function playSound() {
var audio = document.getElementById("cs");
@@ -1099,6 +968,7 @@
audio.play();
}
+
//鎵簮鍗�
$('#HSourceBillNo').on('keydown', function (event) { //鎵簮鍗�
var HSourceBillNo = $('#HSourceBillNo').val()
@@ -1108,7 +978,6 @@
if (event.keyCode == 13) {
//鍒ゆ柇鏂囨湰妗嗘槸鍚︽湁鏁版嵁 new
if (HSourceBillNo == "" || sInterID <= 0) {
- playSound();
layer.msg("婧愬崟鍙蜂负绌猴紝鎴栬�呭唴鐮佷笉瀛樺湪锛�", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
return;
}
@@ -1120,7 +989,6 @@
data: { "HSourceBillType": HSourceBillType, "HSourceBillNo": HSourceBillNo, "sInterID": sInterID, "sBillNo": sBillNo },
success: function (result) {
if (result.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜嗭紝
- playSound1();
$("#HSupID").val(result.data[0].HSupID);
$("#HSupName").val(result.data[0].HSupName);
//$("#HDeptID").val(result.data[0].HDeptID);
@@ -1131,193 +999,127 @@
table.render({
elem: '#wl-table'
, cellMinWidth: 80
- //, url: 'http://61.130.49.162:9090/WMSAPI///POStockInBill/DisBillEntryList_Webs_Json'
- , url: GetWEBURL() + '/POStockInBill/DisBillEntryList_Webs_Json'
- //, toolbar: '#toolbarDemo'
- , where: { HBillID: sInterID, HBillType: '1201', sWhere: '' }
- , cols: [[
- { type: 'radio' }
- , { field: 'HQty', title: '鏁伴噺', sort: true, width: 100}
- , { field: 'HQtyMust', title: '搴旀敹鏁伴噺', sort: true, width: 100}
- , { field: 'HMaterNumber', title: '鐗╂枡浠g爜', sort: true, width: 200}
- , { field: 'HMaterName', title: '鐗╂枡鍚嶇О', sort: true, width: 200}
- , { field: 'HMaterModel', title: '瑙勬牸鍨嬪彿', sort: true, width: 200}
- , { field: 'HSourceInterID', title: '婧愬崟涓诲唴鐮�', sort: true, width: 200}
- , { field: 'HSourceEntryID', title: '婧愬崟瀛愬唴鐮�', sort: true, width: 200}
- , { field: 'HSourceBillNo', title: '婧愬崟鍗曞彿', sort: true, width: 200}
- , { field: 'HBatchNo', title: '鎵规'}
- ]]
+ //, url: 'http://61.130.49.162:9090/WMSAPI///POStockInBill/DisBillEntryList_Webs_Json'
+ , url: GetWEBURL() + '/POStockInBill/DisBillEntryList_Webs_Json'
+ //, toolbar: '#toolbarDemo'
+ , where: { HBillID: sInterID, HBillType: '1201', sWhere: '' }
+ , cols: [[
+ { type: 'radio' }
+ , { field: 'HQty', title: '鏁伴噺', sort: true, width: 100 }
+ , { field: 'HQtyMust', title: '搴旀敹鏁伴噺', sort: true, width: 100 }
+ , { field: 'HMaterNumber', title: '鐗╂枡浠g爜', sort: true, width: 200 }
+ , { field: 'HMaterName', title: '鐗╂枡鍚嶇О', sort: true, width: 200 }
+ , { field: 'HMaterModel', title: '瑙勬牸鍨嬪彿', sort: true, width: 200 }
+ , { field: 'HSourceInterID', title: '婧愬崟涓诲唴鐮�', sort: true, width: 200 }
+ , { field: 'HSourceEntryID', title: '婧愬崟瀛愬唴鐮�', sort: true, width: 200 }
+ , { field: 'HSourceBillNo', title: '婧愬崟鍗曞彿', sort: true, width: 200 }
+ , { field: 'HBatchNo', title: '鎵规' }
+ ]]
// , data: [linterid]
// , page: true
- , height: 500
- , done: function () {
- layer.closeAll("loading");
- }
+ , height: 500
+ , done: function () {
+ layer.closeAll("loading");
+ }
});
}
else {
// $("#verifycode").click();
//layer.msg(result.Message, { icon: 5 });
- playSound();
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 });
+ // layer.msg($('#HSourceBillNo').val(), { icon: 1 });
}
});
- //鎵簮鍗�
- $('#HSourceBillNo').on('keydown', function (event) { //鎵簮鍗�
- var HSourceBillNo = $('#HSourceBillNo').val()
- var sInterID = $("#HInterID").val()
- var sBillNo = $("#HBillNo").val()
- var HSourceBillType = $("#HBillType").val()
- if (event.keyCode == 13) {
- //鍒ゆ柇鏂囨湰妗嗘槸鍚︽湁鏁版嵁 new
- if (HSourceBillNo == "" || sInterID <= 0) {
- layer.msg("婧愬崟鍙蜂负绌猴紝鎴栬�呭唴鐮佷笉瀛樺湪锛�", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
- return;
+
+ //鎵粨浣�
+ $('#HStockPlaceName').on('keydown', function (event) {
+ var HBarCode = $('#HStockPlaceName').val()
+ if (event.keyCode == 13) {
+ //鍒ゆ柇鏂囨湰妗嗘槸鍚︽湁鏁版嵁 new
+ $.ajax({
+ url: GetWEBURL() + "/LookingFor/getSpName_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].HWHID);
+ $("#HWHNAME").val(result.data[0].HWhName);
+ 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");
}
- //
- $.ajax({
- //url: "http://61.130.49.162:9090/WMSAPI///POStockInBill/set_SavePonderationBillMain_Temp_Source_Fast_Json",
- url: GetWEBURL() + "/POStockInBill/set_SavePonderationBillMain_Temp_Source_Fast_Json",
- type: "GET",
- data: { "HSourceBillType": HSourceBillType, "HSourceBillNo": HSourceBillNo, "sInterID": sInterID, "sBillNo": sBillNo },
- success: function (result) {
- if (result.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜嗭紝
- $("#HSupID").val(result.data[0].HSupID);
- $("#HSupName").val(result.data[0].HSupName);
- //$("#HDeptID").val(result.data[0].HDeptID);
- //$("#HDeptName").val(result.data[0].HDeptName);
- sessionStorage["SourceFlag"] = true;
- layer.load(3);
- element.tabChange('tab-POStockInBill', '2');
- table.render({
- elem: '#wl-table'
- , cellMinWidth: 80
- //, url: 'http://61.130.49.162:9090/WMSAPI///POStockInBill/DisBillEntryList_Webs_Json'
- , url: GetWEBURL() + '/POStockInBill/DisBillEntryList_Webs_Json'
- //, toolbar: '#toolbarDemo'
- , where: { HBillID: sInterID, HBillType: '1201', sWhere: '' }
- , cols: [[
- { type: 'radio' }
- , { field: 'HQty', title: '鏁伴噺', sort: true, width: 100 }
- , { field: 'HQtyMust', title: '搴旀敹鏁伴噺', sort: true, width: 100 }
- , { field: 'HMaterNumber', title: '鐗╂枡浠g爜', sort: true, width: 200 }
- , { field: 'HMaterName', title: '鐗╂枡鍚嶇О', sort: true, width: 200 }
- , { field: 'HMaterModel', title: '瑙勬牸鍨嬪彿', sort: true, width: 200 }
- , { field: 'HSourceInterID', title: '婧愬崟涓诲唴鐮�', sort: true, width: 200 }
- , { field: 'HSourceEntryID', title: '婧愬崟瀛愬唴鐮�', sort: true, width: 200 }
- , { field: 'HSourceBillNo', title: '婧愬崟鍗曞彿', sort: true, width: 200 }
- , { field: 'HBatchNo', title: '鎵规' }
- ]]
- // , data: [linterid]
- // , page: true
- , height: 500
- , done: function () {
- layer.closeAll("loading");
- }
- });
- }
- 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 });
- }
- });
-
- //鎵粨浣�
- $('#HStockPlaceName').on('keydown', function (event) {
- var HBarCode = $('#HStockPlaceName').val()
- if (event.keyCode == 13) {
- //鍒ゆ柇鏂囨湰妗嗘槸鍚︽湁鏁版嵁 new
- $.ajax({
- url: GetWEBURL() + "/LookingFor/getSpName_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].HWHID);
- $("#HWHNAME").val(result.data[0].HWhName);
- 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'
- // , url: 'http://localhost:8083/POStockInBill/GetHBarCodeShowBillSub'
- //, toolbar: '#toolbarDemo'
- // , where: { sMsg: linterid, sMsg2: lentryid }
- , cols: [[
- , { field: 'HMaterID', title: '鐗╂枡ID', width: 100, hide: true }
- ]]
- , page: true
- , height: 500
- , done: function () {
- }
- });
-
- //鎵玀ES浠撲綅
- $('#HMESSPName').on('keydown', function (event) { //鎵粨浣�
- var HBarCode = $('#HMESSPName').val();
- if (event.keyCode == 13) {
- $.ajax({
- url: GetWEBURL() + "/LookingFor/getSpName_Json",
- type: "GET",
- data: { "HBarCode": HBarCode },
- success: function (result) {
- if (result.count == 1) {
- $("#HMESSPID").val(result.data[0].HWHID);
- $("#HMESSPName").val(result.data[0].HWhName + "-" + result.data[0].HName);
- $("#HExplanation").val(result.data[0].HName + "-" + result.data[0].HWhName);
- $.ajax({
- url: GetWEBURL() + "/LookingFor/GetSpNameMES_Json",
- type: "GET",
- data: { "HERPWHID": result.data[0].HWHID },
- success: function (result) {
- if (result.count == 1) {
- $("#HWHID").val(result.data[0].HMESWHID);
- $("#HWHNAME").val(result.data[0].HMESWHNAME);
- $("#HMESSPName").attr("readonly", "readonly");//MES浠撲綅鍙HExplanation
- $("#HMESSPName").css("background-color", "#efefef4d");
- }
- else {
- layer.msg(result.Message, { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
- }
- layer.closeAll("loading");
- }
- });
- }
- else {
- layer.msg(result.Message, { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
- }
- layer.closeAll("loading");
- }
- });
- }
- });
-
- //浠ヤ笂涓簂ayui妯″潡
+ });
+ // layer.msg($('#HSourceBillNo').val(), { icon: 1 });
+ }
});
+ //鍒锋柊鏄庣粏椤电
+ table.render({
+ elem: '#mx-table'
+ // , url: 'http://localhost:8083/POStockInBill/GetHBarCodeShowBillSub'
+ //, toolbar: '#toolbarDemo'
+ // , where: { sMsg: linterid, sMsg2: lentryid }
+ , cols: [[
+ , { field: 'HMaterID', title: '鐗╂枡ID', width: 100, hide: true }
+ ]]
+ , page: true
+ , height: 500
+ , done: function () {
+ }
+ });
+
+ //鎵玀ES浠撲綅
+ $('#HMESSPName').on('keydown', function (event) { //鎵粨浣�
+ var HBarCode = $('#HMESSPName').val();
+ if (event.keyCode == 13) {
+ $.ajax({
+ url: GetWEBURL() + "/LookingFor/getSpName_Json",
+ type: "GET",
+ data: { "HBarCode": HBarCode },
+ success: function (result) {
+ if (result.count == 1) {
+ $("#HMESSPID").val(result.data[0].HWHID);
+ $("#HMESSPName").val(result.data[0].HWhName + "-" + result.data[0].HName);
+ $("#HExplanation").val(result.data[0].HName + "-" + result.data[0].HWhName);
+ $.ajax({
+ url: GetWEBURL() + "/LookingFor/GetSpNameMES_Json",
+ type: "GET",
+ data: { "HERPWHID": result.data[0].HWHID },
+ success: function (result) {
+ if (result.count == 1) {
+ $("#HWHID").val(result.data[0].HMESWHID);
+ $("#HWHNAME").val(result.data[0].HMESWHNAME);
+ $("#HMESSPName").attr("readonly", "readonly");//MES浠撲綅鍙HExplanation
+ $("#HMESSPName").css("background-color", "#efefef4d");
+ }
+ else {
+ layer.msg(result.Message, { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+ }
+ layer.closeAll("loading");
+ }
+ });
+ }
+ else {
+ layer.msg(result.Message, { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+ }
+ layer.closeAll("loading");
+ }
+ });
+ }
+ });
+
+ //浠ヤ笂涓簂ayui妯″潡
+ });
function GetHWHValue(obj) //杩斿洖璋冨叆浠撳簱
{
--
Gitblit v1.9.1