wtt
2024-10-28 07cf94734c36d4eae6ddbc4dd338bf5af81a2193
WebTM/views/ÖÊÁ¿¹ÜÀí/³ö³§¼ìÑéµ¥/QC_OutCompCheckBill.html
@@ -292,14 +292,15 @@
            var option = {
                elem: '#mainTable'
                , toolbar: '#toolbarDemo'
                , totalRow: true
                , height: 500
                , limit: 500 //每页默认显示的数量
                //,url: '/demo/table/user/' //数据接口
                , page: true //开启分页
                , cols: [[ //表头
                    { type: 'checkbox', fixed: 'left' }
                    { type: 'checkbox', fixed: 'left', totalRowText: '合计行' }
                    , { templet: '#xuhao', title: '序号', sort: true, fixed: 'left', event: "qwe", width: 100 }
                    , { field: 'HQCCheckClassID', title: 'HQCCheckClassID', edit: 'text', width: 100, hide: true }
                    , { field: 'HQCCheckClassID', title: 'HQCCheckClassID', edit: 'text', width: 100, hide: true, totalRow: true  }
                    , { field: 'HQCCheckClassName', title: '检验项目类别名称', edit: 'text', event: "HQCCheckClassCheck", width: 150 }
                    , { field: 'HQCCheckClassNumber', title: '检验项目类别', edit: 'text', width: 100, hide: true }
                    , { field: 'HQCCheckItemID', title: 'HQCCheckItemID', edit: 'text', hide: true }
@@ -466,7 +467,7 @@
                                shift: 2,
                                area: ['80%', '80%'],
                                maxmin: true,
                                content: ['../../../views/Baseset/基础资料/Gy_QCCheckItemListView.html', 'yes'],
                                content: ['../../基础资料/公用基础资料/Gy_CheckItem.html', 'yes'],
                                btn: ['确定', '取消']
                                , btn1: function (index, layero) {
@@ -648,7 +649,7 @@
                    shift: 2,
                    area: ['80%', '80%'],
                    maxmin: true,
                    content: ['../../../views/Baseset/基础资料/Gy_CustomerList.html', 'yes'],
                    content: ['../../基础资料/销售基础资料/Gy_Customer.html', 'yes'],
                    btn: ['确定', '取消']
                    , btn1: function (index, layero) {
@@ -658,7 +659,7 @@
                        if (checkStatus.data.length === 0) {
                            return layer.msg('请选择数据');
                        }
                        $("#HCusName").val(checkStatus.data[0].HName);
                        $("#HCusName").val(checkStatus.data[0].客户名称);
                        $("#HCusID").val(checkStatus.data[0].HItemID);
                        layer.close(layer.index); //它获取的始终是最新弹出的某个层,值是由layer内部动态递增计算的
                    }
@@ -687,7 +688,7 @@
                    shift: 2,
                    area: ['80%', '80%'],
                    maxmin: true,
                    content: ['../../../views/Baseset/基础资料/Gy_MaterialList.html', 'yes'],
                    content: ['../../基础资料/公用基础资料/Gy_Material.html', 'yes'],
                    btn: ['确定', '取消']
                    , btn1: function (index, layero) {
@@ -697,7 +698,7 @@
                        if (checkStatus.data.length === 0) {
                            return layer.msg('请选择数据');
                        }
                        $("#HMaterName").val(checkStatus.data[0].HName);
                        $("#HMaterName").val(checkStatus.data[0].物料名称);
                        $("#HMaterID").val(checkStatus.data[0].HItemID);
                        layer.close(layer.index); //它获取的始终是最新弹出的某个层,值是由layer内部动态递增计算的
                    }
@@ -725,7 +726,7 @@
                    shift: 2,
                    area: ['80%', '80%'],
                    maxmin: true,
                    content: ['../../../views/Baseset/基础资料/Gy_EmployeeList.html', 'yes'],
                    content: ['../../基础资料/公用基础资料/Gy_EmployeeList.html?Type=HEmp', 'yes'],
                    btn: ['确定', '取消']
                    , btn1: function (index, layero) {
@@ -735,7 +736,7 @@
                        if (checkStatus.data.length === 0) {
                            return layer.msg('请选择数据');
                        }
                        $("#HFirstCheckEmpName").val(checkStatus.data[0].HName);
                        $("#HFirstCheckEmpName").val(checkStatus.data[0].职员名称);
                        $("#HFirstCheckEmpID").val(checkStatus.data[0].HItemID);
                        layer.close(layer.index); //它获取的始终是最新弹出的某个层,值是由layer内部动态递增计算的
                    }
@@ -775,7 +776,9 @@
                return [year, month, day].join('-');
            }
            form.on('submit(Saver)', function (data) {//保存
            //保存
            form.on('submit(Saver)', function (data) {
                //debugger;
                data.field.HMaker = sessionStorage["HUserName"];//制单人
                var sMainStr = JSON.stringify(data.field);
@@ -928,6 +931,20 @@
            return Result;
        }
        function GetHCusNameValue(obj) {  //客户
            $("#HCusName").val(obj[0].客户名称);
            $("#HCusID").val(obj[0].HItemID);
        }
        function GetMaterValue(obj) {  //物料
            $("#HMaterName").val(obj[0].物料名称);
            $("#HMaterID").val(obj[0].HItemID);
        }
        function GetHEmpValue(obj) {  //检验员
            $("#HFirstCheckEmpName").val(obj[0].职员名称);
            $("#HFirstCheckEmpID").val(obj[0].HItemID);
        }
    </script>
</body>