From 66d4b2fcf2304f2492646daf017c2c92999eae34 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=AD=A3=E5=9C=A3=E5=8D=8E?= <752718920@qq.com>
Date: Sun, 8 Jan 2017 16:17:24 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=967=E5=BC=A0=E8=BF=9B=E9=94=80?=
=?UTF-8?q?=E5=AD=98=E5=BD=95=E5=85=A5=E5=8D=95=E6=8D=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
WebRoot/js/pages/materials/in_out.js | 37 +-
.../pages/materials/allocation_out_list.jsp | 892 -----------------
WebRoot/pages/materials/other_in_list.jsp | 891 -----------------
WebRoot/pages/materials/other_out_list.jsp | 890 +----------------
.../pages/materials/purchase_back_list.jsp | 893 +-----------------
WebRoot/pages/materials/sale_out_list.jsp | 888 -----------------
WebRoot/pages/user/password.jsp | 24 +-
7 files changed, 31 insertions(+), 4484 deletions(-)
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 @@
-
-