|
|
@@ -828,6 +828,7 @@
|
|
|
var db = ""; //服务器端口(前缀)
|
|
|
var checkprocedureId = ""; //校验工序ID
|
|
|
var checkworkstationname = ""; //校验工位名称
|
|
|
+ var refireflag = 0;//重烧接收产品1:重烧接收0:重烧交接
|
|
|
|
|
|
var socketbarcode = new WebSocket('ws://172.18.32.32:9102');
|
|
|
|
|
|
@@ -1219,15 +1220,6 @@
|
|
|
|
|
|
//新方式-作业指导书
|
|
|
function showUrl() {
|
|
|
- var width = window.screen.width - 100;
|
|
|
- var height = window.screen.height - 200;;
|
|
|
- var left = 50;
|
|
|
- var top = 50;
|
|
|
- window.open(sopURL, "newwindow", "width=" + width + ",height=" + height + ",left=" + left + ",top=" + top + ",toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, status=no")
|
|
|
- }
|
|
|
-
|
|
|
- //新方式-获取作业指导书路径
|
|
|
- function getSopUrl() {
|
|
|
var loginguid = '';
|
|
|
$.get('api/datevaleof.ashx', function (data) {
|
|
|
var json = JSON.parse(data);
|
|
|
@@ -1250,12 +1242,49 @@
|
|
|
sopURL = 'http://172.17.193.134:81/openservice/?action=DataView&e=hegii&s=142&p1=' + sopType + '&p2=' + goodsModel + '&loginguid=' + loginguid;
|
|
|
|
|
|
console.log('sopURL1', sopURL)
|
|
|
-
|
|
|
+ var width = window.screen.width - 100;
|
|
|
+ var height = window.screen.height - 200;;
|
|
|
+ var left = 50;
|
|
|
+ var top = 50;
|
|
|
+ window.open(sopURL, "newwindow", "width=" + width + ",height=" + height + ",left=" + left + ",top=" + top + ",toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, status=no")
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ //新方式-获取作业指导书路径
|
|
|
+ function getSopUrl() {
|
|
|
+ //var loginguid = '';
|
|
|
+ //$.get('api/datevaleof.ashx', function (data) {
|
|
|
+ // var json = JSON.parse(data);
|
|
|
+ // if (json["success"] == true) {
|
|
|
+
|
|
|
+ // var text = "{\"userid\":\"mesuser\",\"time\":" + json["sj"] + "}";
|
|
|
+ // //var text = "{\"userid\":\"mesuser\",\"time\":" + (new Date()).valueOf() + "}";
|
|
|
+ // var encrypted = encryptionHandler(text);
|
|
|
+ // console.log('text', text);
|
|
|
+ // console.log('encrypted', encrypted);
|
|
|
+ // $.get('http://172.17.193.134:81/openservice/?action=fetchtoken&entcode=hegii&authheader=' + encrypted, function (data) {
|
|
|
+ // var json = JSON.parse(data);
|
|
|
+ // if (json["result"] == 'true') {
|
|
|
+ // if (json["loginguid"] != "") {
|
|
|
+
|
|
|
+ // loginguid = json["loginguid"];
|
|
|
+ // var index = goodsModelForCheck.indexOf('#');
|
|
|
+ // var goodsModel = goodsModelForCheck.substring(0, index);
|
|
|
+
|
|
|
+ // sopURL = 'http://172.17.193.134:81/openservice/?action=DataView&e=hegii&s=142&p1=' + sopType + '&p2=' + goodsModel + '&loginguid=' + loginguid;
|
|
|
+
|
|
|
+ // console.log('sopURL1', sopURL)
|
|
|
+
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // });
|
|
|
+ // }
|
|
|
+ //});
|
|
|
}
|
|
|
|
|
|
function encryptionHandler(word) {
|
|
|
@@ -1326,6 +1355,8 @@
|
|
|
|
|
|
//通过物料编码后续区分大件小件 20230223
|
|
|
goodsModelForCheck = json['rows']["BarCodeTable"][0]["GOODSMODELforCheck"];
|
|
|
+ //20250624 重烧接收
|
|
|
+ refireflag = json['rows']["BarCodeTable"][0]["refireflag"];
|
|
|
//读取产品信息
|
|
|
$('#产品商标').val('商标:' + json['rows']["BarCodeTable"][0]["out_logoName"]);
|
|
|
$('#产品釉料').val('釉料:' + json['rows']["BarCodeTable"][0]["out_glazeName"]);
|
|
|
@@ -1861,6 +1892,8 @@
|
|
|
|
|
|
//通过物料编码后续区分大件小件 20230223
|
|
|
goodsModelForCheck = json['rows']["BarCodeTable"][0]["GOODSMODELforCheck"];
|
|
|
+ //20250624 重烧接收
|
|
|
+ refireflag = json['rows']["BarCodeTable"][0]["refireflag"];
|
|
|
//读取产品信息
|
|
|
$('#产品商标').val('商标:' + json['rows']["BarCodeTable"][0]["out_logoName"]);
|
|
|
$('#产品釉料').val('釉料:' + json['rows']["BarCodeTable"][0]["out_glazeName"]);
|
|
|
@@ -2209,6 +2242,8 @@
|
|
|
|
|
|
//通过物料编码后续区分大件小件 20230223
|
|
|
goodsModelForCheck = json['rows']["BarCodeTable"][0]["GOODSMODELforCheck"];
|
|
|
+ //20250624 重烧接收
|
|
|
+ refireflag = json['rows']["BarCodeTable"][0]["refireflag"];
|
|
|
//读取产品信息
|
|
|
$('#产品商标').val('商标:' + json['rows']["BarCodeTable"][0]["out_logoName"]);
|
|
|
$('#产品釉料').val('釉料:' + json['rows']["BarCodeTable"][0]["out_glazeName"]);
|
|
|
@@ -2932,6 +2967,8 @@
|
|
|
|
|
|
//通过物料编码后续区分大件小件 20230223
|
|
|
goodsModelForCheck = json['rows']["BarCodeTable"][0]["GOODSMODELforCheck"];
|
|
|
+ //20250624 重烧接收
|
|
|
+ refireflag = json['rows']["BarCodeTable"][0]["refireflag"];
|
|
|
//读取产品信息
|
|
|
$('#产品商标').val('商标:' + json['rows']["BarCodeTable"][0]["out_logoName"]);
|
|
|
$('#产品釉料').val('釉料:' + json['rows']["BarCodeTable"][0]["out_glazeName"]);
|
|
|
@@ -3519,6 +3556,8 @@
|
|
|
|
|
|
//通过物料编码后续区分大件小件 20230223
|
|
|
goodsModelForCheck = json['rows']["BarCodeTable"][0]["GOODSMODELforCheck"];
|
|
|
+ //20250624 重烧接收
|
|
|
+ refireflag = json['rows']["BarCodeTable"][0]["refireflag"];
|
|
|
//读取产品信息
|
|
|
$('#产品商标').val('商标:' + json['rows']["BarCodeTable"][0]["out_logoName"]);
|
|
|
$('#产品釉料').val('釉料:' + json['rows']["BarCodeTable"][0]["out_glazeName"]);
|
|
|
@@ -4003,6 +4042,8 @@
|
|
|
|
|
|
//通过物料编码后续区分大件小件 20230223
|
|
|
goodsModelForCheck = json['rows']["BarCodeTable"][0]["GOODSMODELforCheck"];
|
|
|
+ //20250624 重烧接收
|
|
|
+ refireflag = json['rows']["BarCodeTable"][0]["refireflag"];
|
|
|
//读取产品信息
|
|
|
$('#产品商标').val('商标:' + json['rows']["BarCodeTable"][0]["out_logoName"]);
|
|
|
$('#产品釉料').val('釉料:' + json['rows']["BarCodeTable"][0]["out_glazeName"]);
|
|
|
@@ -4700,6 +4741,8 @@
|
|
|
|
|
|
//通过物料编码后续区分大件小件 20230223
|
|
|
goodsModelForCheck = json['rows']["BarCodeTable"][0]["GOODSMODELforCheck"];
|
|
|
+ //20250624 重烧接收
|
|
|
+ refireflag = json['rows']["BarCodeTable"][0]["refireflag"];
|
|
|
//读取产品信息
|
|
|
$('#产品商标').val('商标:' + json['rows']["BarCodeTable"][0]["out_logoName"]);
|
|
|
$('#产品釉料').val('釉料:' + json['rows']["BarCodeTable"][0]["out_glazeName"]);
|
|
|
@@ -5586,7 +5629,9 @@
|
|
|
$('#返工工序').prop('disabled', false);
|
|
|
$('#返工工序').loadSelectFromData(procedureReFire);
|
|
|
//通过物料编码区分大件小件 大件默认重烧工序为:【重烧接收】小件默认:【4-5重烧交接】 20230223
|
|
|
- if (goodsModelForCheck.substring(0, 2) == "CT") {
|
|
|
+ //if (goodsModelForCheck.substring(0, 2) == "CT") {
|
|
|
+ //通过是否在重烧接收中的产品判断,如果产品配置在重烧接收,则走重烧接收,否则走重烧交接
|
|
|
+ if (refireflag == 1) {
|
|
|
$('#返工工序').val("138");
|
|
|
}
|
|
|
else {
|
|
|
@@ -6345,7 +6390,9 @@
|
|
|
$('#返工工序').prop('disabled', false);
|
|
|
$('#返工工序').loadSelectFromData(procedureReFire);
|
|
|
//通过物料编码区分大件小件 大件默认重烧工序为:【重烧接收】小件默认:【4-5重烧交接】 20230223
|
|
|
- if (goodsModelForCheck.substring(0, 2) == "CT") {
|
|
|
+ //if (goodsModelForCheck.substring(0, 2) == "CT") {
|
|
|
+ //通过是否在重烧接收中的产品判断,如果产品配置在重烧接收,则走重烧接收,否则走重烧交接
|
|
|
+ if (refireflag == 1) {
|
|
|
$('#返工工序').val("138");
|
|
|
}
|
|
|
else {
|