From ede7e32d1ed1b4966cd5ed9d3fb68f5b1176932f Mon Sep 17 00:00:00 2001
From: zzr99 <1940172413@qq.com>
Date: 星期三, 16 二月 2022 11:19:06 +0800
Subject: [PATCH] nothing
---
WebTM/views/验收入库/外购入库/Kf_POStockInBill_Fast.html | 212 +++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 212 insertions(+), 0 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 8d3a223..cf8e732 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"
@@ -336,6 +336,16 @@
<button type="button" lay-submit="" class="layui-btn" lay-filter="cmdDelete">鍒犻櫎</button>
<button type="button" lay-submit="" class="layui-btn" lay-filter="Cancel">閫�鍑�</button>
</div>
+ <div id="" style="display:none;">
+ <audio id="cs" hidden controls>
+ <source src="../../video/jingbao.wav" type="audio/ogg">
+ </audio>
+ </div>
+ <div id="" style="display:none;">
+ <audio id="cs2" hidden controls>
+ <source src="../../video/success.wav" type="audio/ogg">
+ </audio>
+ </div>
</form>
</div>
</div>
@@ -800,6 +810,69 @@
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;
@@ -886,6 +959,67 @@
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");
@@ -955,6 +1089,84 @@
}
}
+ function playSound() {
+ var audio = document.getElementById("cs");
+ audio.play();
+ }
+
+ function playSound1() {
+ var audio = document.getElementById("cs2");
+ audio.play();
+ }
+
+ //鎵簮鍗�
+ $('#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) {
+ playSound();
+ layer.msg("婧愬崟鍙蜂负绌猴紝鎴栬�呭唴鐮佷笉瀛樺湪锛�", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+ return;
+ }
+ //
+ $.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) { // 璇存槑楠岃瘉鎴愬姛浜嗭紝
+ playSound1();
+ $("#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 });
+ 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 });
+ }
+ });
//鎵簮鍗�
$('#HSourceBillNo').on('keydown', function (event) { //鎵簮鍗�
var HSourceBillNo = $('#HSourceBillNo').val()
--
Gitblit v1.9.1