zgq
2021-02-23 c5d31b89210479468708e0eda65c4cb5074c026e
WebTM/views/²Ö´æ¹ÜÀí/²Ö¿âµ÷²¦/Cc_LookingForBill.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">
@@ -174,6 +174,14 @@
            $("#HMakerID").val(sessionStorage["Czybm"]);
            $("#HMaker").val(sessionStorage["HUserName"]);
            //判断用户是否绑定班组和生产资源
            if ($("#HGroupID").val() == 0 || $("#HSourceID").val() == 0) {
                layer.confirm("该用户未绑定班组或生产资源!不允许找货!", {
                    icon: 4, skin: 'layui-layer-lan', title: "温馨提示", closeBtn: 0, btn: ['确认退出']
                }, function () { window.location.href = "../../index.html"; });
            }
            //获取最大单据号 new
            $("#HInterID").val("");
            $("#HBillNo").val("");
@@ -195,6 +203,7 @@
                , page: true
                //, height: 256
                , cellMinWidth: 90
                , limit: 500
                , cols: [[
                    { type: 'numbers', title: '序号' }
                    , { field: 'HIsStatus', title: '是否扫码' }
@@ -203,7 +212,7 @@
                    , { field: 'HSPName', title: '仓位' }
                    , { field: 'HStatus', title: '在库状态', width: 165 }
                    , { field: 'HWhID', title: '仓库ID', hide: true }
                    , { field: 'HWhName', title: '仓库' }
                    , { field: 'HWhName', title: '仓库', width: 130 }
                    , { field: 'HSourceInterID', title: '源单ID', hide: true }
                    , { field: 'HSourceBillNo', title: '源单号', width: 110 }
                    , { field: 'HGroupID', title: '班组ID', hide: true }
@@ -217,11 +226,11 @@
                    , { field: 'HMaterModel', title: '规格型号' }
                    , { field: '即时库存', title: '即时库存' }
                    , { field: 'HBarCode', title: '条码编号', hide: true }
                    , { field: 'HInterID', title: '单据ID' }
                    , { field: 'HInterID', title: '单据ID', hide: true }
                    , { field: 'HBillNo', title: '单据号' }
                    , { field: 'HMakerID', title: '制单人ID' }
                    , { field: 'HMakerID', title: '制单人ID', hide: true }
                    , { field: 'HMaker', title: '制单人' }
                    , { field: 'HBillType', title: 'HBillType' }
                    , { field: 'HBillType', title: 'HBillType', hide: true }
                ]]
                , text: {
                    none: '暂无相关数据,请先扫描源单号!' //默认:无数据。注:该属性为 layui 2.2.5 å¼€å§‹æ–°å¢ž
@@ -319,10 +328,14 @@
                                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 {
                            }
                            //else if (sSubStr[i].HStatus != null && sSubStr[i].HStatus != "" && sSubStr[i].HStatus != "在库")
                            //{
                            //    layer.close(index);
                            //    layer.msg("该实物在" + sSubStr[i].HSource+"裁切中,不允许扫码", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                            //}
                            else
                            {
                                sSubStr[i].HIsStatus = "是";
                                sSubStr[i].HSourceID = $("#HSourceID").val();
                                sSubStr[i].HSource = $("#HSource").val();
@@ -342,7 +355,7 @@
                    }
                    if (rowCount == 0) {
                        layer.close(index);
                        layer.msg("无效条码!", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                        layer.msg("您扫的条码不在找货清单中!", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                    }
@@ -452,15 +465,15 @@
                        async: true,
                        data: { "oMain": sSubStr },
                        dataType: "json",
                        success: function (data) {
                            if (data.count == 1) {
                                layer.confirm(data.Message, {
                                    icon: 1, skin: 'layui-layer-lan', title: "温馨提示", closeBtn: 0, btn: ['新增'],
                                    btn2: function () {
                                        //parent.layui.admin.events.closeThisTabs();关闭页签
                                        //window.close();//关闭页面,浏览器有效,PDA无效
                                        parent.location.href = "../../../views/index.html"
                                    }//关闭
                        success: function (result) {
                            if (result.count == 1) {
                                layer.confirm(result.Message, {
                                icon: 1, skin: 'layui-layer-lan', title: "温馨提示", closeBtn: 0, btn: ['新增'],
                                btn2: function () {
                                    //parent.layui.admin.events.closeThisTabs();关闭页签
                                    //window.close();//关闭页面,浏览器有效,PDA无效
                                    parent.location.href = "../../../views/index.html"
                                }//关闭
                                }, function () { window.location.reload(); });//新增
                            }
                            else {