diff --git a/WebRoot/js/pages/materials/in_out.js b/WebRoot/js/pages/materials/in_out.js index 155a4b9c..f81d7f6b 100644 --- a/WebRoot/js/pages/materials/in_out.js +++ b/WebRoot/js/pages/materials/in_out.js @@ -311,7 +311,8 @@ var rowInfo = rec.Id + 'AaBb' + rec.ProjectId+ 'AaBb' + rec.Number+ 'AaBb' + rec.OperPersonName + 'AaBb' + rec.OperTime+ 'AaBb' + rec.OrganId+ 'AaBb' + rec.HandsPersonId + 'AaBb' + rec.AccountId+ 'AaBb' + rec.ChangeAmount+ 'AaBb' + rec.Remark - + 'AaBb' + rec.ProjectName+ 'AaBb' + rec.OrganName+ 'AaBb' + rec.HandsPersonName+ 'AaBb' + rec.AccountName + 'AaBb' + rec.TotalPrice; + + 'AaBb' + rec.ProjectName+ 'AaBb' + rec.OrganName+ 'AaBb' + rec.HandsPersonName + + 'AaBb' + rec.AccountName + 'AaBb' + rec.TotalPrice + 'AaBb' + rec.AllocationProjectId + 'AaBb' + rec.AllocationProjectName; if(1 == value) { str += ' 查看  '; @@ -662,7 +663,7 @@ $("#ChangeAmount").attr("data-changeamount", depotHeadInfo[8]); $("#Remark").val(depotHeadInfo[9]); var TotalPrice = depotHeadInfo[14]; - + $("#AllocationProjectId").val(depotHeadInfo[15]); //orgDepotHead = depotHeadInfo[1]; var editTitle = listTitle.replace("列表","信息"); $('#depotHeadDlg').dialog('open').dialog('setTitle',' 编辑' + editTitle); @@ -686,6 +687,7 @@ $("#ChangeAmountShow").text(depotHeadInfo[8]); $("#RemarkShow").text(depotHeadInfo[9]); var TotalPrice = depotHeadInfo[14]; + $("#AllocationProjectIdShow").text(depotHeadInfo[16]); var showTitle = listTitle.replace("列表","信息"); $('#depotHeadDlgShow').dialog('open').dialog('setTitle',' 查看' + showTitle); $(".window-mask").css({ width: webW ,height: webH}); @@ -737,6 +739,13 @@ return; else { + var OrganId = null, AllocationProjectId = null; + if(listSubType !=="调拨"){ + OrganId = $('#OrganId').combobox('getValue'); + } + else { + AllocationProjectId = $.trim($("#AllocationProjectId").val()); //收货仓库-对方 + } $.ajax({ type:"post", url: url, @@ -745,10 +754,11 @@ data: ({ Type: listType, SubType: listSubType, - ProjectId : $.trim($("#ProjectId").val()), - Number : $.trim($("#Number").val()), + ProjectId: $.trim($("#ProjectId").val()), + AllocationProjectId: AllocationProjectId, + Number: $.trim($("#Number").val()), OperTime: $("#OperTime").val(), - OrganId: $('#OrganId').combobox('getValue'), + OrganId: OrganId, HandsPersonId: $.trim($("#HandsPersonId").val()), AccountId: $.trim($("#AccountId").val()), ChangeAmount: $.trim($("#ChangeAmount").val()), @@ -760,18 +770,25 @@ { if(tipInfo) { + function closeDialog(){ + $('#depotHeadDlg').dialog('close'); + var opts = $("#tableData").datagrid('options'); + showDepotHeadDetails(opts.pageNumber,opts.pageSize); + } //保存明细记录 if(depotHeadID ==0) { getMaxId(); //查找最大的Id accept(depotHeadMaxId); //新增 - changeAmountFn(); //改变账户金额 + //changeAmountFn(); //改变账户金额 + closeDialog(); } else { accept(depotHeadID); //修改 - changeAmountFn(); //改变账户金额 - } + //changeAmountFn(); //改变账户金额 + closeDialog(); + } } else { @@ -1047,9 +1064,7 @@ currentAmount: currentAmount + ChangeAmount - oldChangeAmount }, success: function(res){ - $('#depotHeadDlg').dialog('close'); - var opts = $("#tableData").datagrid('options'); - showDepotHeadDetails(opts.pageNumber,opts.pageSize); + }, error:function(){ $.messager.alert('提示','请检查网络连接!','error'); diff --git a/WebRoot/pages/materials/allocation_out_list.jsp b/WebRoot/pages/materials/allocation_out_list.jsp index 1b874053..bca2e33a 100644 --- a/WebRoot/pages/materials/allocation_out_list.jsp +++ b/WebRoot/pages/materials/allocation_out_list.jsp @@ -157,897 +157,5 @@ - - \ No newline at end of file diff --git a/WebRoot/pages/materials/other_in_list.jsp b/WebRoot/pages/materials/other_in_list.jsp index 44992dfb..42d1308d 100644 --- a/WebRoot/pages/materials/other_in_list.jsp +++ b/WebRoot/pages/materials/other_in_list.jsp @@ -157,896 +157,5 @@ - - diff --git a/WebRoot/pages/materials/other_out_list.jsp b/WebRoot/pages/materials/other_out_list.jsp index 85e529a4..07318857 100644 --- a/WebRoot/pages/materials/other_out_list.jsp +++ b/WebRoot/pages/materials/other_out_list.jsp @@ -156,894 +156,6 @@ - - - + \ No newline at end of file diff --git a/WebRoot/pages/materials/purchase_back_list.jsp b/WebRoot/pages/materials/purchase_back_list.jsp index 567889da..758100c6 100644 --- a/WebRoot/pages/materials/purchase_back_list.jsp +++ b/WebRoot/pages/materials/purchase_back_list.jsp @@ -164,897 +164,6 @@ - - - + diff --git a/WebRoot/pages/materials/sale_out_list.jsp b/WebRoot/pages/materials/sale_out_list.jsp index 06f5497b..27d93148 100644 --- a/WebRoot/pages/materials/sale_out_list.jsp +++ b/WebRoot/pages/materials/sale_out_list.jsp @@ -164,893 +164,5 @@ - - \ No newline at end of file diff --git a/WebRoot/pages/user/password.jsp b/WebRoot/pages/user/password.jsp index 8b35eaba..f8a1bdc7 100644 --- a/WebRoot/pages/user/password.jsp +++ b/WebRoot/pages/user/password.jsp @@ -30,13 +30,13 @@
- +
- - + +
@@ -58,27 +58,9 @@ return false; } }); - browserFit(); $("#userDlg").panel({height:webH-35}); }); - //浏览器适配 - function browserFit() - { - if(getOs()=='MSIE') - { - $("#passwordLabel").empty().append("原始密码  "); - $("#newPassword").empty().append("密        码  "); - $("#repasswordLabel").empty().append("确认密码  "); - } - else - { - $("#passwordLabel").empty().append("原始密码 "); - $("#newPassword").empty().append("密       码 "); - $("#repasswordLabel").empty().append("确认密码 "); - } - } - $("#cancelpassword").unbind().bind({ click:function() {