yusijie
2024-10-14 e63e2d1d2b0354896dc6aaea0e3a13cdb25f7eed
WebTM/views/Éú²ú¹ÜÀí/±¨¹¤Ì¨¹¤Ðò/·À´í/Sc_Add_MaterToSourceStepBillList.html
@@ -159,6 +159,8 @@
                                                        <label class="layui-form-label">流转卡号:</label>
                                                        <div class="layui-input-inline">
                                                            <input class="layui-input" name="HProcExchBillNo" lay-verify="HProcExchBillNo" id="HProcExchBillNo" disabled autocomplete="off">
                                                            <input id="HProcExchInterID" name="HProcExchInterID" type="hidden" />   <!--流转卡主id-->
                                                            <input id="HProcExchEntryID" name="HProcExchEntryID" type="hidden" />   <!--流转卡子id-->
                                                            <input id="HSourceInterID" name="HSourceInterID" type="hidden" />
                                                            <input id="HSourceEntryID" name="HSourceEntryID" type="hidden" />
                                                            <input type="hidden" name="HSourceBillNo" id="HSourceBillNo">
@@ -366,16 +368,21 @@
            var OperationType = params[params[0]];//操作类型
            var linterid = params[params[1]];//源单id
            var HSBillType = params[params[2]];//源单类型
            var HBillType = params[params[3]];
            var HSourceInterID = params[params[4]];
            var HSourceEntryID = params[params[5]];
            var HSourceBillNo = params[params[6]];
            var HSourceBillType = params[params[7]];
        }
        var edit = function (data) {
            HBillType = data[0].HBillType;
            HSourceInterID = data[0].HSourceInterID;
            HSourceEntryID = data[0].HSourceEntryID;
            HSourceBillNo = data[0].HSourceBillNo;
            HSourceBillType = data[0].HSourceBillType;
        //var edit = function (data) {
        //    HBillType = data[0].HBillType;
        //    HSourceInterID = data[0].HSourceInterID;
        //    HSourceEntryID = data[0].HSourceEntryID;
        //    HSourceBillNo = data[0].HSourceBillNo;
        //    HSourceBillType = data[0].HSourceBillType;
        }
        //}
        layui.config({
@@ -442,7 +449,7 @@
                var sMainStr = JSON.stringify(data.field);
                var sSubStr = JSON.stringify(table.cache['mainTable']);
                var sSubStr1 = JSON.stringify(table.cache['mainTable1']);
                var sMainSub = sMainStr + ';' + sSubStr + ';' + refSav;
                var sMainSub = sMainStr + ';' + sSubStr + ';' + refSav + ";" + sessionStorage["HUserName"];
                if (!AllowLoadData(sSubStr, sSubStr1))//数据验证
                {
@@ -568,7 +575,7 @@
                    shift: 2,
                    area: ['80%', '80%'],
                    maxmin: true,
                    content: ['../../../PublicPage/PartInformation.html', 'yes'],
                    content: ['../../../基础资料/公用基础资料/Gy_Material.html', 'yes'],
                    btn: ['确定', '取消']
                    , btn1: function (index, layero) {
@@ -578,10 +585,10 @@
                        if (checkStatus.data.length === 0) {
                            return layer.msg('请选择数据');
                        }
                        $("#HMaterName").val(checkStatus.data[0].HName);
                        $("#HMaterCode").val(checkStatus.data[0].HNumber);
                        $("#HMaterName").val(checkStatus.data[0].物料名称);
                        $("#HMaterNumber").val(checkStatus.data[0].物料代码);
                        $("#HMaterID").val(checkStatus.data[0].HItemID);
                        $("#HMaterSpec").val(checkStatus.data[0].HModel);
                        $("#HMaterSpec").val(checkStatus.data[0].规格型号);
                        layer.close(layer.index); //它获取的始终是最新弹出的某个层,值是由layer内部动态递增计算的
                    }
                    , btn2: function (index, layero) {
@@ -608,7 +615,7 @@
                    shift: 2,
                    area: ['80%', '80%'],
                    maxmin: true,
                    content: ['../../../PublicPage/SourceInformation.html', 'yes'],
                    content: ['../../../基础资料/生产基础资料/Gy_Source.html', 'yes'],
                    btn: ['确定', '取消']
                    , btn1: function (index, layero) {
@@ -618,7 +625,7 @@
                        if (checkStatus.data.length === 0) {
                            return layer.msg('请选择数据');
                        }
                        $("#HSourceName").val(checkStatus.data[0].HName);
                        $("#HSourceName").val(checkStatus.data[0].生产资源名称);
                        $("#HSourceID").val(checkStatus.data[0].HItemID);
                        layer.close(layer.index); //它获取的始终是最新弹出的某个层,值是由layer内部动态递增计算的
                    }
@@ -646,7 +653,7 @@
                    shift: 2,
                    area: ['80%', '80%'],
                    maxmin: true,
                    content: ['../../../PublicPage/UserInformation.html', 'yes'],
                    content: ['../../../基础资料/公用基础资料/Gy_EmployeeList.html?type=HEmp', 'yes'],
                    btn: ['确定', '取消']
                    , btn1: function (index, layero) {
@@ -656,7 +663,7 @@
                        if (checkStatus.data.length === 0) {
                            return layer.msg('请选择数据');
                        }
                        $("#HWorkerName").val(checkStatus.data[0].HName);
                        $("#HWorkerName").val(checkStatus.data[0].职员名称);
                        $("#HWorkerID").val(checkStatus.data[0].HItemID);
                        layer.close(layer.index); //它获取的始终是最新弹出的某个层,值是由layer内部动态递增计算的
                    }
@@ -684,7 +691,7 @@
                    shift: 2,
                    area: ['80%', '80%'],
                    maxmin: true,
                    content: ['../../../PublicPage/GroupInformation.html', 'yes'],
                    content: ['../../../基础资料/工资基础资料/Gy_Group.html?type=HGroup', 'yes'],
                    btn: ['确定', '取消']
                    , btn1: function (index, layero) {
@@ -694,7 +701,7 @@
                        if (checkStatus.data.length === 0) {
                            return layer.msg('请选择数据');
                        }
                        $("#HGroupName").val(checkStatus.data[0].HName);
                        $("#HGroupName").val(checkStatus.data[0].班组名称);
                        $("#HGroupID").val(checkStatus.data[0].HItemID);
                        layer.close(layer.index); //它获取的始终是最新弹出的某个层,值是由layer内部动态递增计算的
                    }
@@ -722,7 +729,7 @@
                    shift: 2,
                    area: ['80%', '80%'],
                    maxmin: true,
                    content: ['../../../PublicPage/DeptInformation.html', 'yes'],
                    content: ['../../../基础资料/公用基础资料/Gy_DepartmentList.html', 'yes'],
                    btn: ['确定', '取消']
                    , btn1: function (index, layero) {
@@ -732,7 +739,7 @@
                        if (checkStatus.data.length === 0) {
                            return layer.msg('请选择数据');
                        }
                        $("#HDeptName").val(checkStatus.data[0].HName);
                        $("#HDeptName").val(checkStatus.data[0].部门名称);
                        $("#HDeptID").val(checkStatus.data[0].HItemID);
                        layer.close(layer.index); //它获取的始终是最新弹出的某个层,值是由layer内部动态递增计算的
                    }
@@ -943,6 +950,8 @@
                                , "HICMOInterID": data.HICMOInterID
                                , "HICMOEntryID": data.HICMOEntryID
                                , "HProcExchBillNo": data.工序流转卡号
                                , "HProcExchInterID": data.HProcExchInterID
                                , "HProcExchEntryID": data.HProcExchEntryID
                                , "HProcExchQty": ""
                                , "HSourceInterID": data.HMainSourceInterID
                                , "HSourceEntryID": data.HMainSourceEntryID
@@ -1286,6 +1295,17 @@
            return [year, month, day].join('-');
        }
        //操作员
        function GetHEmpValue(obj) {
            $("#HWorkerName").val(obj[0].职员名称);
            $("#HWorkerID").val(obj[0].HItemID);
        }
        //生产班组
        function GetHGroupValue(obj) {
            $("#HGroupName").val(obj[0].班组名称);
            $("#HGroupID").val(obj[0].HItemID);
        }
    </script>
</body>
</html>