wtt
2025-01-10 ccd2eb19f83850b4d2b042d35b40e928ffa6d228
WebTM/views/ÑéÊÕÈë¿â/Í⹺Èë¿â/Add_Edit_Kf_POStockInBillList.html
@@ -377,7 +377,7 @@
            var month = date.getMonth() + 1;
            var year = date.getFullYear();
            var shijian = year + "-" + month + "-" + day;
            var topScroll = 0;//记录滚动条的位置
            var allVal;
            //#endregion
            var HModName = "Add_Edit_Kf_POStockInBillList"
@@ -801,6 +801,7 @@
                var HQtyDec = (Dec["HQtyDec"] == null || Dec["HQtyDec"] == 0) ? 4 : Dec["HQtyDec"];  //数量精度
                var HPriceDec = (Dec["HPriceDec"] == null || Dec["HPriceDec"] == 0) ? 4 : Dec["HPriceDec"];  //单价精度
                var HMoneyDec = (Dec["HMoneyDec"] == null || Dec["HMoneyDec"] == 0) ? 2 : Dec["HMoneyDec"];  //金额精度
                topScroll = $('#mainTable').next('.layui-table-view').find('.layui-table-body').scrollTop();//获取滚动条位置
                // å•元格编辑之前的值
                var oldText = $(this).prev().text();
                var value = obj.value //得到修改后的值
@@ -857,7 +858,7 @@
                            , HTaxPrice: HTaxPrice
                            , HlineTotal: HlineTotal
                        });
                         //table.render(option);
                         table.render(option);
                        break;
                    case "HPrice":                                         //单价
                        //数据格式校验
@@ -899,7 +900,7 @@
                            , HTaxPrice: HTaxPrice
                            , HlineTotal: HlineTotal
                        });
                        //table.render(option)
                        table.render(option)
                        break;
                    case "HMoney":                                         //金额
                        //数据格式校验
@@ -941,7 +942,7 @@
                            , HMoney: HMoney
                            , HlineTotal: HlineTotal
                        });
                        //table.render(option);
                        table.render(option);
                        break;
                    case "HTaxRate":                                                       //数量
                        //数据格式校验
@@ -987,7 +988,7 @@
                            , HMoney: HMoney
                            , HlineTotal: HlineTotal
                        });
                        //table.render(option);
                        table.render(option);
                        break;
                    case "HTaxPrice":                                         //单价
                        //数据格式校验  
@@ -1026,7 +1027,7 @@
                            , HlineTotal: HlineTotal                  //更新HlineTotal字段,HlineTotal
                            , HTaxPrice, HTaxPrice                   //更新HTaxPrice字段,HTaxPrice
                        });
                        //table.render(option)
                        table.render(option)
                        break;
                    default:
                }
@@ -1141,6 +1142,9 @@
                        , { field: 'HRemark', title: '备注', width: 100, edit: 'text' }
                        , { fixed: 'right', title: '操作', toolbar: '#barDemo', width: 70 }
                    ]]
                    , done: function (res, curr, count) {
                        $(".layui-table-main").scrollTop(topScroll);
                    }
                }
                option.data = [];
@@ -1161,8 +1165,10 @@
                    },
                    success: function (result) {
                        if (result.code == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†ï¼Œ
                            var data = result.data[0];
                            allVal = result.data[0];
                            HBillSubType = data.HBillSubType;
                            form.val("component-form-group", { //formTest å³ class="layui-form" æ‰€åœ¨å…ƒç´ å±žæ€§ lay-filter="" å¯¹åº”的值
                                "HBillNo": data.单据号
                                , "HDate": formatDate(data.日期)
@@ -1695,7 +1701,7 @@
                    , area: ['90%', '90%']//大小
                    , title: '项目列表'//标题
                    , shift: 2//弹出动画
                    , content: ['../../项目管理/工程项目/PM_ProjectBillList.html?Type=2&HOrgID=' + HOrgID, 'yes']
                    , content: ['../../项目管理/工程项目/PM_ProjectBillList.html?Type=2&HOrgID=' + HOrgID + "&HBillSubType=" + HBillSubType, 'yes']
                    , btn: ['确定', '取消']
                    , btn1: function (index, layero) {//按钮【按钮一】的回调
                        var iframeWindow = window['layui-layer-iframe' + index]  //获取弹框页面