yusijie
2025-09-13 ddb3b1afa070cdbd7b77e8fcaf4218874561f80e
WebSRM/layuiAdmin.std-v1.2.1/src/views/SRM/SRM_MaterialBarCodeBill.html
@@ -184,6 +184,7 @@
                  , { field: 'HSubjoin', title: '物料简称', width: 120, }
                    , { field: 'HMaterName', title: '物料名称', width: 120 }
                    , { field: 'HMaterModel', title: '规格型号', width: 120 }
                    , { field: 'HStatusMan', title: '工号', width: 120, edit: 'text' }
                    , { field: 'HQty', title: '本次生成条码数量', width: 135, edit: 'text', event: "inputHQty" }
                    , { field: 'HMinQty', title: '标准包装数(内箱装箱数)', width: 100, event: "inputHMinQty" }
                    , { field: 'HBQty', title: '最小包装数(内箱数)', width: 100 } 
@@ -192,8 +193,9 @@
                    , { 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: 'HSourceBillType', title: '条码类型', width: 100, templet: '#barCodeTypeTpl', hide: true }
                    , { field: 'HKFDate', title: '生产日期', align: 'center', width: 150, data_field: 'HKFDate', event: "chooseHKFDate", hide: true }//, event: "chooseHKFDate"
                    , { field: 'HBarCodeDate', title: '条码日期', align: 'center', width: 150, data_field: 'HBarCodeDate', event: "chooseHBarCodeDate" }
                    , { 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 }
@@ -235,6 +237,7 @@
                        , { field: 'HSubjoin', title: '物料代码', width: 120, hide: true }
                        , { field: 'HMaterName', title: '物料名称', width: 120 }
                        , { field: 'HMaterModel', title: '规格型号', width: 120 }
                        , { field: 'HStatusMan', title: '工号', width: 120, edit: 'text'}
                        , { field: 'HQty', title: '本次生成条码数量', width: 135, edit: 'text', event: "inputHQty" }
                        , { field: 'HMinQty', title: '标准包装数(内箱装箱数)', width: 100, event: "inputHMinQty" }
                        , { field: 'HBQty', title: '最小包装数(内箱数)', width: 100 }
@@ -243,7 +246,8 @@
                        , { 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: 'HBarCodeDate', title: '条码日期', align: 'center', width: 150, data_field: 'HBarCodeDate', event: "chooseHBarCodeDate" }
                        , { field: 'HSourceBillType', title: '条码类型', width: 100, hide: true }
                        , { 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"
@@ -294,6 +298,7 @@
                                    "HSupName": data[i].供应商名称,
                                    "HEXPUNIT": data[i].保质期单位,
                                    "HQty": 1, // 默认生成条码数量
                                    "HBarCodeDate": data[i].条码日期,
                                    "biaoqianzhangshu": 1 // 标签张数
                                });
                            }
@@ -392,6 +397,18 @@
                            data[field] = value;
                            obj.update(data);
                        }
                    });
                }
                else if (obj.event == 'chooseHBarCodeDate') {
                    var field = $(this).data('field');
                    laydate.render({
                        elem: this.firstChild
                        , show: true //直接显示
                        , closeStop: this
                        , done: function (value, date) {
                            data[field] = value;
                            obj.update(data);
                        }
                    });
                }
@@ -594,28 +611,31 @@
                                    , defaultToolbar: ['filter', 'exports']
                                    , limit: 500
                                    , cols: [[
                                        { field: 'HBarCode', title: '条码', width: 230, ellipsis: true }
                                        { field: 'HLSH', title: '流水号', align: 'center', width: 150, data_field: 'HBarCodeDate' }
                                        , { field: 'HBarCode', title: '条码', width: 230, ellipsis: true }
                                        , { 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 }
                                        , { field: 'HSubjoin', title: '物料简称', width: 120, hide: true }
                                        , { field: 'HMaterShortNumber', title: '物料代码', width: 120, hide: true }
                                        , { field: 'HSubjoin', title: '物料简称', width: 120 }
                                        , { field: 'HMaterName', title: '物料名称', width: 120, hide: true }
                                        , { field: 'HMaterModel', title: '规格型号', width: 120 }
                                        , { field: 'HStatusMan', title: '工号', width: 120 }
                                        , { field: 'HQty', title: '本次生成条码数量', width: 135 }
                                        , { field: 'HMinQty', title: '标准包装数(内箱装箱数)', width: 100 }
                                        , { field: 'HBQty', title: '最小包装数(内箱数)', width: 100 }
                                        , { field: 'biaoqianzhangshu', title: '标签张数', width: 100 }
                                        , { field: 'HBatchNo', title: '批号', width: 100 }
                                        , { field: 'HBarCodeDate', title: '条码日期', align: 'center', width: 150, data_field: 'HBarCodeDate' }
                                        , { field: 'HBatchNo', title: '批号', width: 100, hide: true }
                                        , { field: 'HBatchManager', title: '启用批号', width: 100, hide: true }
                                        , { field: 'HISKFPERIOD', title: '是否启用保质期', width: 100, hide: true }
                                        , { field: 'HEXPUNIT', title: '保质期单位', width: 100, hide: true }
                                        , { field: 'HSourceBillType', title: '条码类型', width: 100 }
                                        , { field: 'HKFDate', title: '生产日期', align: 'center', width: 150 }//, event: "chooseHKFDate"
                                        , { field: 'HKFPeriod', title: '保质期', width: 100 }//
                                        , { field: 'HKFDQDate', title: '到期日期', align: 'center', width: 150 }//, event: "chooseHKFDQDate"
                                        , { field: 'HSourceBillType', title: '条码类型', width: 100, hide: true }
                                        , { field: 'HKFDate', title: '生产日期', align: 'center', width: 150, hide: true }//, event: "chooseHKFDate"
                                        , { field: 'HKFPeriod', title: '保质期', width: 100, hide: true}//
                                        , { field: 'HKFDQDate', title: '到期日期', align: 'center', width: 150, hide: true }//, event: "chooseHKFDQDate"
                                        , { field: 'HSupID', title: '供应商ID', width: 150, hide: true }
                                        , { field: 'HSupName', title: '供应商名称', width: 150, hide: true }
@@ -661,7 +681,10 @@
                                                        "HSupName": data[i].供应商名称,
                                                        "HEXPUNIT": data[i].保质期单位,
                                                        "HQty":data[i].生成条码数量 , // 本次生成条码数量
                                                        "biaoqianzhangshu": 1
                                                        "biaoqianzhangshu": 1,
                                                        "HStatusMan": data[i].工号,
                                                        "HBarCodeDate": data[i].条码日期,
                                                        "HLSH": data[i].流水号,
                                                    });
                                                
                                                
@@ -833,7 +856,7 @@
            //获取供应商ID
            function FetchSupInfo() {
                var sWhere = "";
                //var sWhere = " and 供应商名称 ='" + sessionStorage["HUserName"] + "'";
                var sWhere = " and 供应商名称 ='" + sessionStorage["HUserName"] + "'";
                $.ajax({
                    url: GetWEBURL() + "/Gy_Supplier/list",
                    type: "GET",