yusijie
2025-09-13 84db7d3a910d452c518e75ba55d43581c349613b
Merge branch 'master' of http://101.37.171.70:10101/r/SRM-LAYUI-HK
3个文件已修改
68 ■■■■■ 已修改文件
WebSRM/layuiAdmin.std-v1.2.1/src/views/SRM/SRM_MaterialBarCodeBill.html 41 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebSRM/layuiAdmin.std-v1.2.1/src/views/SRM/SRM_MaterialHanding.html 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebSRM/layuiAdmin.std-v1.2.1/src/views/SRM/SRM_MaterialHandingEdit.html 22 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebSRM/layuiAdmin.std-v1.2.1/src/views/SRM/SRM_MaterialBarCodeBill.html
@@ -166,6 +166,7 @@
                , element = layui.element; //Tab的切换功能,切换事件监听等,需要依赖element模块
            var option;
            FetchSupInfo();
            option = {
                elem: '#mainTable'
                , toolbar: '#toolbarDemo'
@@ -176,24 +177,25 @@
                , cols: [[
                    { type: 'checkbox', fixed: 'left' }
                    , { field: 'HMaterID', title: '物料ID', width: 100, hide: true }
                    , { field: 'HItemID', title: 'ID', width: 100, hide: true }
                    , { field: 'HMaterNumber', title: '物料编码', width: 120 }
/*                    , { field: 'HOldMaterNumber', title: '旧物料编码', width: 120, hide: true }*/
/*                   , { field: 'HOldMaterNumber', title: '旧物料编码', width: 120, hide: true }*/
                    , { field: 'HMaterShortNumber', title: '物料代码', width: 120, hide: true }
                   /* , { field: 'HSubjoin', title: '物料代码', width: 120, hide: true }*/
                  , { field: 'HSubjoin', title: '物料简称', width: 120, }
                    , { field: 'HMaterName', title: '物料名称', width: 120 }
                    , { field: 'HMaterModel', title: '规格型号', width: 120 }
                    , { field: 'HQty', title: '本次生成条码数量', width: 135, edit: 'text', event: "inputHQty" }
                    , { field: 'HMinQty', title: '标准包装数(内箱装箱数)', width: 100, edit: 'text', event: "inputHMinQty" }
                    , { field: 'HMinQty', title: '标准包装数(内箱装箱数)', width: 100, event: "inputHMinQty" }
                    , { field: 'HBQty', title: '最小包装数(内箱数)', width: 100 } 
                    , { field: 'biaoqianzhangshu', title: '标签张数', width: 100 }
                    , { field: 'HBatchNo', title: '批号', width: 100, edit: 'text' }
                    , { field: 'HBatchNo', title: '批号', width: 100, edit: 'text', hide: true }
                    , { field: 'HBatchManager', title: '启用批号', width: 100, hide: true }
                    , { field: 'HISKFPERIOD', title: '是否启用保质期', width: 100, edit: 'text', hide: true }
                    , { field: 'HEXPUNIT', title: '保质期单位', width: 100, edit: 'text', hide: true }
                    , { field: 'HSourceBillType', title: '条码类型', width: 100, templet: '#barCodeTypeTpl' }  
                    , { field: 'HKFDate', title: '生产日期', align: 'center', width: 150, data_field: 'HKFDate', event: "chooseHKFDate" }//, event: "chooseHKFDate"
                    , { field: 'HKFPeriod', title: '保质期', width: 100,event:"inputHKFPeriod" }//
                    , { field: 'HKFDQDate', title: '到期日期', align: 'center', width: 150, data_field: 'HKFDQDate' }//, event: "chooseHKFDQDate"
                    , { field: 'HKFPeriod', title: '保质期', width: 100, event: "inputHKFPeriod", hide: true }//
                    , { field: 'HKFDQDate', title: '到期日期', align: 'center', width: 150, data_field: 'HKFDQDate', hide: true }//, event: "chooseHKFDQDate"
                    , { field: 'HSupID', title: '供应商ID', width: 150, hide: true }
                    , { field: 'HSupName', title: '供应商名称', width: 150, hide: true }
                ]]
@@ -234,17 +236,17 @@
                        , { field: 'HMaterName', title: '物料名称', width: 120 }
                        , { field: 'HMaterModel', title: '规格型号', width: 120 }
                        , { field: 'HQty', title: '本次生成条码数量', width: 135, edit: 'text', event: "inputHQty" }
                        , { field: 'HMinQty', title: '标准包装数(内箱装箱数)', width: 100, edit: 'text', event: "inputHMinQty" }
                        , { field: 'HMinQty', title: '标准包装数(内箱装箱数)', width: 100, event: "inputHMinQty" }
                        , { field: 'HBQty', title: '最小包装数(内箱数)', width: 100 }
                        , { field: 'biaoqianzhangshu', title: '标签张数', width: 100 }
                        , { field: 'HBatchNo', title: '批号', width: 100, edit: 'text' }
                        , { field: 'HBatchNo', title: '批号', width: 100, edit: 'text', hide: true }
                        , { field: 'HBatchManager', title: '启用批号', width: 100, hide: true }
                        , { field: 'HISKFPERIOD', title: '是否启用保质期', width: 100, edit: 'text', hide: true }
                        , { field: 'HEXPUNIT', title: '保质期单位', width: 100, edit: 'text', hide: true }
                        , { field: 'HSourceBillType', title: '条码类型', width: 100 }
                        , { field: 'HKFDate', title: '生产日期', align: 'center', width: 150, data_field: 'HKFDate', event: "chooseHKFDate" }//, event: "chooseHKFDate"
                        , { field: 'HKFPeriod', title: '保质期', width: 100 }//
                        , { field: 'HKFDQDate', title: '到期日期', align: 'center', width: 150, data_field: 'HKFDQDate' }//, event: "chooseHKFDQDate"
                        , { field: 'HKFDate', title: '生产日期', align: 'center', width: 150, data_field: 'HKFDate', event: "chooseHKFDate", hide: true }//, event: "chooseHKFDate"
                        , { field: 'HKFPeriod', title: '保质期', width: 100, hide: true }//
                        , { field: 'HKFDQDate', title: '到期日期', align: 'center', width: 150, data_field: 'HKFDQDate', hide: true}//, event: "chooseHKFDQDate"
                        , { field: 'HSupID', title: '供应商ID', width: 150, hide: true }
                        , { field: 'HSupName', title: '供应商名称', width: 150, hide: true }
@@ -257,7 +259,6 @@
            else {
                //合并数量生成条码
                layer.load(3);
                FetchSupInfo();
                $("#HDate").val(Format(new Date(), "yyyy-MM-dd"));
                $.ajax({
                    type: "GET",
@@ -272,11 +273,12 @@
                            for (var i = 0; i < data.length; i++) {
                                rowdata.push({
                                    "HMaterID": data[i].HItemID,
                                    "HMaterID": data[i].MaterID,
                                    "HItemID": data[i].HItemID,
                                    "HMaterNumber": data[i].物料代码,
/*                                    "HOldMaterNumber": "",*/
                                    "HMaterShortNumber": "",
                                    /*"HSubjoin": "",*/
                                    "HSubjoin": data[i].物料简称,
                                    "HMaterName": data[i].物料名称,
                                    "HMaterModel": data[i].规格型号,
                                    "HMinQty": data[i].标准包装数,
@@ -596,10 +598,11 @@
                                        , { field: 'HMaterID', title: '物料ID', width: 100, hide: true }
                                        , { field: 'HBarItemID', title: '条码ID', width: 100, hide: true }
                                        , { field: 'HMaterNumber', title: '物料编码', width: 120 }
/*                                        , { field: 'LSH', title: '流水号', width: 120 }*/
                                        /*                    , { field: 'HOldMaterNumber', title: '旧物料编码', width: 120, hide: true }*/
                                        , { field: 'HMaterShortNumber', title: '物料代码', width: 120, hide: true }
                                        /* , { field: 'HSubjoin', title: '物料代码', width: 120, hide: true }*/
                                        , { field: 'HMaterName', title: '物料名称', width: 120 }
                                        , { field: 'HMaterShortNumber', title: '物料代码', width: 120 }
                                        , { field: 'HSubjoin', title: '物料简称', width: 120, hide: true }
                                        , { field: 'HMaterName', title: '物料名称', width: 120, hide: true }
                                        , { field: 'HMaterModel', title: '规格型号', width: 120 }
                                        , { field: 'HQty', title: '本次生成条码数量', width: 135 }
                                        , { field: 'HMinQty', title: '标准包装数(内箱装箱数)', width: 100 }
@@ -636,11 +639,13 @@
                                            for (var i = 0; i < data.length; i++) {
                                                
                                                    rowdata_1.push({
                                                        "HMaterID": data[i].HItemID,
                                                        "HMaterID": data[i].HMaterID,
                                                        "HBarItemID": data[i].HBarItemID,
/*                                                        "LSH": data[i].HBarItemID,*/
                                                        "HBarCode": data[i].HBarCode,
                                                        "HMaterNumber": data[i].物料代码,
                                                        "HMaterShortNumber": "",
                                                        "HSubjoin": data[i].物料简称,
                                                        "HMaterName": data[i].物料名称,
                                                        "HMaterModel": data[i].规格型号,
                                                        "HMinQty": data[i].标准包装数,
WebSRM/layuiAdmin.std-v1.2.1/src/views/SRM/SRM_MaterialHanding.html
@@ -619,11 +619,12 @@
                , data = checkStatus.data;
            if (checkStatus.data.length === 1) {
                var InterID = data[0].HItemID.toString();
                var HMaterID = data[0].物料ID.toString();
                //逻辑审核方法
                $.ajax({
                    type: "GET",
                    url: GetWEBURL() + "/MaterialHandingController/OpenMaterial", //方法所在页面和方法名
                    data: { "HInterID": InterID, "IsUse": num, "CurUserName": sessionStorage["HUserName"] },
                    data: { "HInterID": InterID, "IsUse": num, "CurUserName": sessionStorage["HUserName"], "HMaterID": HMaterID},
                    success: function (result) {
                        if (result.count == 1) {
                            layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () {
@@ -636,7 +637,7 @@
                            });
                        } else {
                            layer.alert(result.code + result.Message, { icon: 5 });
                            layer.alert("已经启用,不准再次启用!", { icon: 5 });
                        }
                    }, error: function () {
                        layer.alert("接口请求失败!", { icon: 5 });
WebSRM/layuiAdmin.std-v1.2.1/src/views/SRM/SRM_MaterialHandingEdit.html
@@ -524,8 +524,10 @@
        function set_ClearBill() {
            $("#HMaker").val(sessionStorage["HUserName"]);
            $("#HMakeTime").val(Format(new Date(), "yyyy-MM-dd"));
            //$("#HSupID").val(sessionStorage["HUserName"]);
            $("#HUseFlag").val('true');
            $("#checkboxHUseFlag").prop("checked", true);
            form.render('checkbox');
            FetchSupInfo();
            //$("#HCheckEmp").val(sessionStorage["HUserName"]);
            //$("#HCheckTime").val(Format(new Date(), "yyyy-MM-dd"));
@@ -558,12 +560,19 @@
        }
        //非空验证
        function AllowLoadData(data) {
            if ($("#HInBoxPackQty").val() < $("#HMinPackQty").val()) {
            var checkValue = parseFloat($("#HInBoxPackQty").val());
            var checkValue_1 = parseFloat($("#HMinPackQty").val());
            if (isNaN(checkValue) || isNaN(checkValue_1)) {
                layer.alert("包装数必须为数字");
                return false;
            }
            if (checkValue < checkValue_1) {
                layer.alert("标准包装数不允许小于最小包装数");
                return false;
            }
            else
                return true;
            return true;
        }
        //保存HMaker
@@ -752,6 +761,7 @@
        // 物料校验
        function get_MaterialCheck(param = 0) {
            var HMaterNumber = $("#HMaterNumber").val();
            var HMaterID = $("#HMaterID").val();
            var user = sessionStorage["HUserName"];
            var OrganizationID = sessionStorage["OrganizationID"];
@@ -785,7 +795,7 @@
                        return;
                    }
                    if (responseData === 1) {
                        layer.confirm('该物料已经被本供应商获取,是否继续?', {
                        layer.confirm('该物料已经被本供应商获取,是否确认启用并将历史的启用给取消?', {
                            icon: 3,
                            title: '提示'
                        }, function (index) {
@@ -794,7 +804,7 @@
                        });
                    } else if (responseData.code === "1") {
                        $("#HMaterName").val(responseData.data[0]["HName"]);
                        $("#HMaterName").val(responseData.data[0]["HSubjoin"] == null ? responseData.data[0]["HName"] : responseData.data[0]["HSubjoin"]);
                        $("#HModel").val(responseData.data[0]["HModel"]);
                        form.render('select');
                    } else {