WebTM/views/ÏúÊÛ¹ÜÀí/ÊÕ¿îµ¥/YS_ReceiveBill.html
@@ -539,7 +539,7 @@
                if (obj.event === 'del') {
                    layer.confirm('真的删除行吗?', function (index) {
                        console.log("索引为:" + rowIndex);
                        if (rowIndex === '0') {
                        if (rowIndex === '0' && table.cache["mainTable"].length == 1) {
                            layer.msg('首行无法删除!!!');
                        } else {
                            obj.del();
@@ -1161,6 +1161,17 @@
                        if (checkStatus.data.length === 0) {
                            return layer.msg('请选择数据');
                        }
                        var HCusID = $("#HCusID").val();//判断客户
                        if (HCusID == 0 || HCusID == '') {
                            HCusID = checkStatus.data[0]["HCusID"];
                        }
                        for (var i = 0; i < checkStatus.data.length; i++) {
                            if (checkStatus.data[i]["HCusID"] != HCusID) {
                                layer.msg("下推失败!已经选中的记录中存在不同客户!");
                                layer.close(index);
                                return;
                            }
                        }
                        setReceivableBill(checkStatus);
                        layer.close(index); //它获取的始终是最新弹出的某个层,值是由layer内部动态递增计算的
@@ -1195,7 +1206,7 @@
                    "HMainSourceInterID": 0
                    , "HMainSourceEntryID": 0
                    , "HMainSourceBillNo": ''
                    , "HMainSourceBillType": '1114'
                    , "HMainSourceBillType": '1426'
                    , "HDeptID": dataArray[0].HDeptID
                    , "HDeptName": dataArray[0].部门
@@ -1241,7 +1252,7 @@
                            , "HSourceInterID": dataArray[i].hmainid
                            , "HSourceEntryID": dataArray[i].hsubid
                            , "HSourceBillNo": dataArray[i].单据号
                            , "HSourceBillType": 1114
                            , "HSourceBillType": 1426
                            , "HRelationQty": "0"
                            , "HRelationMoney": "0"
@@ -1315,7 +1326,11 @@
                        if (data.count == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†ï¼Œ
                            layer.msg(data.Message, { time: 1 * 1000, icon: 1 }, function () {
                                $('#btnSave').addClass("layui-btn-disabled").attr("disabled", true);
                                layer.msg("提交成功");
                                if (data.Verify == "Y") //自动审核
                                {
                                    $("#HInterID").val(data.HInterID);//获取提交成功返回的单据主ID
                                    set_CheckBill(0); //审核
                                }
                            });
                        }
                        else {
@@ -1427,7 +1442,7 @@
                                            , "HSourceInterID": result.data[i].源单主内码
                                            , "HSourceEntryID": result.data[i].源单子内码
                                            , "HSourceBillNo": result.data[i].源单单号
                                            , "HSourceBillType": 1114
                                            , "HSourceBillType": result.data[i].源单类型
                                            , "HRelationQty": result.data[i].关联数量
                                            , "HRelationMoney": result.data[i].关联金额
@@ -1733,7 +1748,7 @@
                                    for (var i = 0; i < option.cols[0].length - 1; i++) {
                                        var dataCols = dataCol[j].split('|');
                                        //选择与datacols相应列进行修改
                                        if (option.cols[0][i + 1]["field"] == dataCols[4]) {
                                        if (option.cols[0][i + 1]["field"] == dataCols[5]) {
                                            //隐藏列
                                            if (dataCols[1] == 1) {
                                                option.cols[0][i + 1]["hide"] = true;