zgq
2021-02-22 bce487d7ba324c0f623f0c605f4686f382dbdcec
WebTM/views/²Ö´æ¹ÜÀí/²Ö¿âµ÷²¦/Cc_LookingForReturnBill.html
@@ -2,7 +2,7 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>归还单</title>
<title>上架归还单</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
@@ -191,7 +191,7 @@
            if (sessionStorage.login != "login") {
                layer.confirm("登录失效,请重新登录!", {
                    icon: 4, skin: 'layui-layer-lan', title: "温馨提示", closeBtn: 0, btn: ['重新登录']
                }, function () { window.location.href = "user/login.html"; });
                }, function () { window.location.href = "../../user/login.html"; });
            }
            //初始基本信息赋值
@@ -230,14 +230,14 @@
                , cols: [[
                    { type: 'numbers', title: '序号' }
                    , { field: 'HIsStatus', title: '是否扫码' }
                    , { field: 'HSourceInterID', title: '源单ID', hide: true }
                    , { field: 'HSourceBillNo', title: '源单号', width: 110 }
                    , { field: 'HMTONo', title: '批号', width: 180 }
                    , { field: 'HSPID', title: '仓位ID', hide: true }
                    , { field: 'HSPName', title: '仓位' }
                    , { field: 'HStatus', title: '在库状态', width: 165 }
                    , { field: 'HWhID', title: '仓库ID', hide: true }
                    , { field: 'HWhName', title: '仓库' }
                    , { field: 'HSPID', title: '仓位ID', hide: true }
                    , { field: 'HSPName', title: '仓位' }
                    , { field: 'HSourceInterID', title: '源单ID', hide: true }
                    , { field: 'HSourceBillNo', title: '源单号', width: 110 }
                    , { field: 'HGroupID', title: '班组ID', hide: true }
                    , { field: 'HGroup', title: '班组' }
                    , { field: 'HSourceID', title: '生产资源ID', hide: true }
@@ -436,24 +436,33 @@
                        data: { "HBarCode": HBarCode },
                        success: function (result) {
                            if (result.count == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†ï¼Œ
                                var data = result.data;
                                option2.data = data;
                                table.render(option2);
                                var sSubStr = table.cache['bzd-table2'];
                                sSubStr[0].HSourceID = $("#HSourceID").val();
                                sSubStr[0].HSource = $("#HSource").val();
                                sSubStr[0].HGroupID = $("#HGroupID").val();
                                sSubStr[0].HGroup = $("#HGroup").val();
                                sSubStr[0].HInterID = $("#HInterID").val();
                                sSubStr[0].HBillNo = $("#HBillNo").val();
                                sSubStr[0].HMakerID = $("#HMakerID").val();
                                sSubStr[0].HMaker = $("#HMaker").val();
                                option2.data = table.cache["bzd-table2"];
                                table.render(option2);
                                layer.close(index);
                                $('#HBarCode').val("");
                                layer.close(index);
                                layer.msg("扫码成功!", { icon: 1, time: 1000 });
                                if (sSubStr[i].HIsStatus == "是") {
                                    layer.close(index);
                                    $('#HBarCode').val("");
                                    layer.msg("该实物已扫码,请勿重复扫码", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                                } else if (sSubStr[i].HStatus != null && sSubStr[i].HStatus == "" && sSubStr[i].HStatus == "在库") {
                                    layer.close(index);
                                    layer.msg("该实物在库,不允许扫码", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                                } else {
                                    var data = result.data;
                                    option2.data = data;
                                    table.render(option2);
                                    var sSubStr = table.cache['bzd-table2'];
                                    sSubStr[0].HSourceID = $("#HSourceID").val();
                                    sSubStr[0].HSource = $("#HSource").val();
                                    sSubStr[0].HGroupID = $("#HGroupID").val();
                                    sSubStr[0].HGroup = $("#HGroup").val();
                                    sSubStr[0].HInterID = $("#HInterID").val();
                                    sSubStr[0].HBillNo = $("#HBillNo").val();
                                    sSubStr[0].HMakerID = $("#HMakerID").val();
                                    sSubStr[0].HMaker = $("#HMaker").val();
                                    option2.data = table.cache["bzd-table2"];
                                    table.render(option2);
                                    layer.close(index);
                                    $('#HBarCode').val("");
                                    layer.close(index);
                                    layer.msg("扫码成功!", { icon: 1, time: 1000 });
                                }
                            }
                            else {
                                option2.data = [];