| | |
| | | |
| | | //æ¡å½¢ç åè½¦æ¹æ³ |
| | | function txtHBarCode_KeyDown(HBarCode) { |
| | | var HBillType = ""; |
| | | var barNo = ""; |
| | | if (HBarCode.length < 22) { |
| | | barNo = HBarCode.substr(0, 4); |
| | | switch (barNo) { |
| | | case "GXLX": |
| | | HBillType = "3772"; |
| | | break; |
| | | } |
| | | } |
| | | |
| | | if (HBarCode.length > 22) { |
| | | barNo = HBarCode.substr(0, 22); |
| | | switch (barNo) { |
| | | case "https://qr61.cn/omM1Cj": |
| | | HBillType = "3899"; |
| | | break; |
| | | case "https://qr61.cn/oAhaGh": |
| | | HBillType = "3308"; |
| | | break; |
| | | } |
| | | } |
| | | |
| | | var index = layer.load(); |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Sc_MouldUpperBill/txtHBarCode_KeyDown", |
| | | type: "GET", |
| | | data: { "HBarCode": HBarCode, "HSourceID": $("#HSourceID").val(), "UserID": sessionStorage["Czybm"], "HBillType": "Sc_MouldUpperBill" }, |
| | | data: { "HBarCode": HBarCode, "HSourceID": $("#HSourceID").val(), "UserID": sessionStorage["Czybm"], "HBillType": HBillType }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | var data = result.data[0]; |
| | | |
| | | layer.close(index); |
| | | $("#HBarCode").val(""); |
| | | |
| | | |
| | | var num = data["Num"]; |
| | | |
| | | if ($("#HSourceID").val() == "0" && num != 1) { |
| | |
| | | , { field: 'çäº§èµæºä»£ç ', title: 'çäº§èµæºä»£ç ', sort: true } |
| | | , { field: 'çäº§èµæº', title: 'çäº§èµæº', sort: true } |
| | | , { field: 'HEquipID', title: 'HEquipID', hide: true, sort: true } |
| | | , { field: 'ç产设å¤ä»£ç ', title: 'ç产设å¤ä»£ç ', sort: true } |
| | | , { field: 'ç产设å¤', title: 'ç产设å¤', sort: true } |
| | | , { field: 'ç产主设å¤ä»£ç ', title: 'ç产主设å¤ä»£ç ', sort: true } |
| | | , { field: 'ç产主设å¤', title: 'ç产主设å¤', sort: true } |
| | | , { field: 'è¾
å©è®¾å¤ä»£ç ', title: 'è¾
å©è®¾å¤ä»£ç ', sort: true } |
| | | , { field: 'è¾
å©è®¾å¤', title: 'è¾
å©è®¾å¤', sort: true } |
| | | , { field: 'HWorkerID', title: 'HWorkerID', hide: true, sort: true } |
| | | , { field: 'æä½å·¥ä»£ç ', title: 'æä½å·¥ä»£ç ', sort: true } |
| | | , { field: 'æä½å·¥', title: 'æä½å·¥', sort: true } |
| | |
| | | field: data[i].id, title: data[i].name, align: 'center', sort: true, width: 150, templet: function (e) { |
| | | var html = ""; |
| | | if (e.å·¥åºåç§° == "æç
§" ) { |
| | | html = '<a style="color:#1E9FFF" href="' + e.ç
§çè·¯å¾ + '" target="main_self_frame">' + e.ç
§çè·¯å¾+'</a>'; |
| | | html = '<a style="color:#1E9FFF" href="" target="main_self_frame">' + e.ç
§çè·¯å¾+'</a>'; |
| | | } |
| | | return html |
| | | } |