1
duhe
2024-08-23 51c957b4dc4f6cd814bbaa225d26b3a050b1d06a
WebTM/views/²É¹º¹ÜÀí/¸¶¿îµ¥/YF_PayMentBill.html
@@ -702,14 +702,14 @@
                    , loading: false
                    , cols: [[ //子表
                        { type: 'checkbox', totalRowText: '合计行' }
                        , { type: 'numbers', title: '序号', width: 100 }
                        , { type: 'numbers', field: '序号', title: '序号', width: 100 }
                        , { field: 'HMaterID', title: 'HMaterID', width: 100, hide: true, style: 'background-color:#efefef4d;' }
                        , { field: '物料代码', title: '物料代码', width: 150, style: 'background-color:#efefef4d;'}
                        , { field: '物料名称', title: '物料名称', width: 150, style: 'background-color:#efefef4d;' }
                        , { field: '规格型号', title: '规格型号', width: 100, style: 'background-color:#efefef4d;' }
                        , { field: 'HUnitID', title: 'HUnitID', width: 100, hide: true, style: 'background-color:#efefef4d;' }
                        , { field: '计量单位', title: '计量单位', width: 100, style: 'background-color:#efefef4d;'}
                        , { field: 'HQty', title: '数量', width: 100, totalRow: true }
                        , { field: 'HQty', title: '数量', width: 100, totalRow: true,edit:'text' }
                        , { field: 'HPrice', title: '单价', width: 100, style: 'background-color:#efefef4d;' }
                        , { field: 'HMoney', title: '结算金额', width: 100, totalRow: true, style: 'background-color:#efefef4d;' }
                        , { field: 'HReceiveBillInterID', title: '接收源单内码', width: 100, hide: true, style: 'background-color:#efefef4d;' }
@@ -747,11 +747,13 @@
                        //, { field: 'HSeContractInterID', title: '销售合同内码', width: 100, hide: true, style: 'background-color:#efefef4d;' }
                        //, { field: 'HSeContractEntryID', title: '销售合同子内码', width: 100, hide: true, style: 'background-color:#efefef4d;' }
                        //, { field: 'HSeContractBillNo', title: '销售合同号', width: 100, hide: true, style: 'background-color:#efefef4d;' }
                        , { fixed: 'right', title: '操作', toolbar: '#barDemo', width: 70 }
                        , { field: '操作' ,fixed: 'right', title: '操作', toolbar: '#barDemo', width: 70 }
                    ]]
                }
                option.data = [];
                table.render(option);
                DisPlay_HideColumn();
            }
            //#endregion
@@ -986,7 +988,7 @@
            //#endregion
            //#region é€‰æ‹©æºå•-付款单
            //#region é€‰æ‹©æºå•-应付单
            function setPayableBill(checkStatus) {
                var dataArray = [];
@@ -997,10 +999,10 @@
                            layer.msg("下推失败!单据号【" + temp.单据号 + "】单据状态不为已审核状态!");
                            return;
                        }
                        //if (temp.行状态 == "已关闭") {
                        //    layer.msg("下推失败!单据号【" + temp.单据号 + "】下选中的记录中存在已关闭状态的记录!");
                        //    return;
                        //}
                        if (temp.行状态 == "已关闭") {
                            layer.msg("下推失败!单据号【" + temp.单据号 + "】下选中的记录中存在已关闭状态的记录!");
                            return;
                        }
                        dataArray.push(temp);
                    } else {
                        return;
@@ -1057,7 +1059,7 @@
                            , "HSourceInterID": dataArray[i].hmainid
                            , "HSourceEntryID": dataArray[i].hsubid
                            , "HSourceBillNo": dataArray[i].单据号
                            , "HSourceBillType": dataArray[i].单据类型
                            , "HSourceBillType": '1114'
                            , "HRelationQty": "0"
                            , "HRelationMoney": "0"
@@ -1338,7 +1340,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].关联金额
@@ -1534,7 +1536,7 @@
            function get_HideColumn() {
                var colName = "";
                for (var i = 1; i < option.cols[0].length; i++) {
                    colName += option.cols[0][i]["title"] + ",";
                    colName += option.cols[0][i]["field"] + ",";
                }
                colName = encodeURI(colName.substring(0, colName.length - 1));//对 URI è¿›è¡Œç¼–码
@@ -1563,6 +1565,7 @@
                $.ajax({
                    url: GetWEBURL() + '/Xt_grdAlignment_WMES/grdAlignmentWMESList',
                    type: "GET",
                    async: false,
                    data: { "HModName": HModName, "user": sessionStorage["HUserName"] },
                    success: function (data1) {
                        if (data1.data.length != 0) {
@@ -1579,7 +1582,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;
@@ -1610,7 +1613,11 @@
                                                    option.cols[0][i + 1]["align"] = "right";
                                                    break;
                                            }
                                            newCols[0].push(option.cols[0][i + 1]);
                                            //设置表格title属性显示别名
                                            if (dataCols[4] != null && dataCols[4] != "") {
                                                option.cols[0][i + 1]["title"] = dataCols[4];
                                            }
                                            newCols[0].push(option.cols[0][i+1]);
                                        }
                                    }
                                }
@@ -1638,16 +1645,8 @@
                                }
                            }
                            table.render(option);
                            var HBillType = "1102";
                            //刷新按钮显示
                            var btns = document.getElementsByTagName("button");     //获取本页所有按钮对象
                            Display_HideButton(btns, HBillType, HModName, sessionStorage["HUserName"]);
                        } else {
                            table.render(option);
                            var HBillType = "1102";
                            //刷新按钮显示
                            var btns = document.getElementsByTagName("button");     //获取本页所有按钮对象
                            Display_HideButton(btns, HBillType, HModName, sessionStorage["HUserName"]);
                        }
                    }, error: function () {
                        layer.alert("接口请求失败!", { icon: 5 });