优化入库、出库的前端UI,并修复相关BUG

This commit is contained in:
季圣华 2016-12-18 22:02:59 +08:00
parent 5b11628ec1
commit 77e30a07c8
20 changed files with 2846 additions and 2851 deletions

File diff suppressed because it is too large Load Diff

View File

@ -8,7 +8,7 @@
<!DOCTYPE html>
<html>
<head>
<title>财务管理</title>
<title>收入单</title>
<meta charset="utf-8">
<!-- 指定以IE8的方式来渲染 -->
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8"/>
@ -49,7 +49,7 @@
</div>
<!-- 数据显示table -->
<div id = "tablePanel" class="easyui-panel" style="padding:1px;top:300px;" title="财务管理列表" iconCls="icon-list" collapsible="true" closable="false">
<div id = "tablePanel" class="easyui-panel" style="padding:1px;top:300px;" title="收入单列表" iconCls="icon-list" collapsible="true" closable="false">
<table id="tableData" style="top:300px;border-bottom-color:#FFFFFF"></table>
</div>
@ -389,7 +389,7 @@
valueField:'Id',
textField:'InOutItemName',
method:'get',
url: "<%=path%>/inOutItem/findBySelect.action"
url: "<%=path%>/inOutItem/findBySelect.action?type=in"
}
}
},

View File

@ -8,7 +8,7 @@
<!DOCTYPE html>
<html>
<head>
<title>财务管理</title>
<title>支出单</title>
<meta charset="utf-8">
<!-- 指定以IE8的方式来渲染 -->
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8"/>
@ -49,7 +49,7 @@
</div>
<!-- 数据显示table -->
<div id = "tablePanel" class="easyui-panel" style="padding:1px;top:300px;" title="财务管理列表" iconCls="icon-list" collapsible="true" closable="false">
<div id = "tablePanel" class="easyui-panel" style="padding:1px;top:300px;" title="支出单列表" iconCls="icon-list" collapsible="true" closable="false">
<table id="tableData" style="top:300px;border-bottom-color:#FFFFFF"></table>
</div>
@ -379,7 +379,7 @@
pageList: [50,100,150],
columns:[[
{ field: 'Id',width:35,align:"center",checkbox:true},
{ title: '收入项目',field: 'InOutItemId',width:230,
{ title: '支出项目',field: 'InOutItemId',width:230,
formatter:function(value,row,index){
return row.InOutItemName;
},
@ -389,7 +389,7 @@
valueField:'Id',
textField:'InOutItemName',
method:'get',
url: "<%=path%>/inOutItem/findBySelect.action"
url: "<%=path%>/inOutItem/findBySelect.action?type=out"
}
}
},

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -27,7 +27,7 @@
<div id = "searchPanel" class="easyui-panel" style="padding:3px;" title="查询窗口" iconCls="icon-search" collapsible="true" closable="false">
<table id="searchTable">
<tr>
<td>仓库:</td>
<td>发货仓库:</td>
<td>
<select name="searchProjectId" id="searchProjectId" style="width:80px;"></select>
</td>
@ -62,7 +62,7 @@
<form id="depotHeadFM" method="post" novalidate>
<table>
<tr>
<td>仓 库:</td>
<td>发货仓库:</td>
<td style="padding:5px">
<select name="ProjectId" id="ProjectId" style="width:120px;"></select>
</td>
@ -70,7 +70,7 @@
<td style="padding:5px">
<input type="text" name="OperTime" id="OperTime" onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})" class="txt Wdate" style="width:120px;"/>
</td>
<td>对方仓库:</td>
<td>收货仓库:</td>
<td style="padding:5px">
<select name="AllocationProjectId" id="AllocationProjectId" style="width:120px;"></select>
</td>
@ -111,7 +111,7 @@
closed="true" modal="true" cache="false" collapsible="false" closable="true">
<table>
<tr>
<td>仓 库:</td>
<td>发货仓库:</td>
<td style="padding:5px;width:120px;">
<span id="ProjectIdShow"></span>
</td>
@ -119,7 +119,7 @@
<td style="padding:5px;width:120px;">
<span id="OperTimeShow"></span>
</td>
<td>对方仓库:</td>
<td>收货仓库:</td>
<td style="padding:5px;width:120px;">
<span id="AllocationProjectIdShow"></span>
</td>

View File

@ -27,7 +27,7 @@
<div id = "searchPanel" class="easyui-panel" style="padding:3px;" title="查询窗口" iconCls="icon-search" collapsible="true" closable="false">
<table id="searchTable">
<tr>
<td>仓库:</td>
<td>收货仓库:</td>
<td>
<select name="searchProjectId" id="searchProjectId" style="width:80px;"></select>
</td>
@ -62,7 +62,7 @@
<form id="depotHeadFM" method="post" novalidate>
<table>
<tr>
<td>仓 库:</td>
<td>收货仓库:</td>
<td style="padding:5px">
<select name="ProjectId" id="ProjectId" style="width:120px;"></select>
</td>
@ -118,7 +118,7 @@
closed="true" modal="true" cache="false" collapsible="false" closable="true">
<table>
<tr>
<td>仓 库:</td>
<td>收货仓库:</td>
<td style="padding:5px;width:120px;">
<span id="ProjectIdShow"></span>
</td>

View File

@ -27,7 +27,7 @@
<div id = "searchPanel" class="easyui-panel" style="padding:3px;" title="查询窗口" iconCls="icon-search" collapsible="true" closable="false">
<table id="searchTable">
<tr>
<td>仓库:</td>
<td>发货仓库:</td>
<td>
<select name="searchProjectId" id="searchProjectId" style="width:80px;"></select>
</td>
@ -62,7 +62,7 @@
<form id="depotHeadFM" method="post" novalidate>
<table>
<tr>
<td>仓 库:</td>
<td>发货仓库:</td>
<td style="padding:5px">
<select name="ProjectId" id="ProjectId" style="width:120px;"></select>
</td>
@ -111,7 +111,7 @@
closed="true" modal="true" cache="false" collapsible="false" closable="true">
<table>
<tr>
<td>仓 库:</td>
<td>发货仓库:</td>
<td style="padding:5px;width:120px;">
<span id="ProjectIdShow"></span>
</td>

View File

@ -27,7 +27,7 @@
<div id = "searchPanel" class="easyui-panel" style="padding:3px;" title="查询窗口" iconCls="icon-search" collapsible="true" closable="false">
<table id="searchTable">
<tr>
<td>仓库:</td>
<td>发货仓库:</td>
<td>
<select name="searchProjectId" id="searchProjectId" style="width:80px;"></select>
</td>
@ -62,7 +62,7 @@
<form id="depotHeadFM" method="post" novalidate>
<table>
<tr>
<td>仓 库:</td>
<td>发货仓库:</td>
<td style="padding:5px">
<select name="ProjectId" id="ProjectId" style="width:120px;"></select>
</td>
@ -118,7 +118,7 @@
closed="true" modal="true" cache="false" collapsible="false" closable="true">
<table>
<tr>
<td>仓 库:</td>
<td>发货仓库:</td>
<td style="padding:5px;width:120px;">
<span id="ProjectIdShow"></span>
</td>

View File

@ -27,7 +27,7 @@
<div id = "searchPanel" class="easyui-panel" style="padding:3px;" title="查询窗口" iconCls="icon-search" collapsible="true" closable="false">
<table id="searchTable">
<tr>
<td>仓库:</td>
<td>收货仓库:</td>
<td>
<select name="searchProjectId" id="searchProjectId" style="width:80px;"></select>
</td>
@ -62,7 +62,7 @@
<form id="depotHeadFM" method="post" novalidate>
<table>
<tr>
<td>仓 库:</td>
<td>收货仓库:</td>
<td style="padding:5px">
<select name="ProjectId" id="ProjectId" style="width:120px;"></select>
</td>
@ -118,7 +118,7 @@
closed="true" modal="true" cache="false" collapsible="false" closable="true">
<table>
<tr>
<td>仓 库:</td>
<td>收货仓库:</td>
<td style="padding:5px;width:120px;">
<span id="ProjectIdShow"></span>
</td>

View File

@ -27,7 +27,7 @@
<div id = "searchPanel" class="easyui-panel" style="padding:3px;" title="查询窗口" iconCls="icon-search" collapsible="true" closable="false">
<table id="searchTable">
<tr>
<td>仓库:</td>
<td>收货仓库:</td>
<td>
<select name="searchProjectId" id="searchProjectId" style="width:80px;"></select>
</td>
@ -35,7 +35,7 @@
<td>
<input type="text" name="searchNumber" id="searchNumber" style="width:60px;"/>
</td>
<td>库时间:</td>
<td>库时间:</td>
<td>
<input type="text" name="searchBeginTime" id="searchBeginTime" onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})" class="txt Wdate" style="width:80px;"/>
</td>
@ -62,7 +62,7 @@
<form id="depotHeadFM" method="post" novalidate>
<table>
<tr>
<td>仓 库:</td>
<td>收货仓库:</td>
<td style="padding:5px">
<select name="ProjectId" id="ProjectId" style="width:120px;"></select>
</td>
@ -70,7 +70,7 @@
<td style="padding:5px">
<input type="text" name="OperTime" id="OperTime" onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})" class="txt Wdate" style="width:120px;"/>
</td>
<td>客户</td>
<td>退货单位</td>
<td style="padding:5px">
<input id="OrganId" name="OrganId" style="width:120px;" />
</td>
@ -119,7 +119,7 @@
<td style="padding:5px;width:120px;">
<span id="OperTimeShow"></span>
</td>
<td>客户</td>
<td>退货单位</td>
<td style="padding:5px;width:120px;">
<span id="OrganIdShow"></span>
</td>

View File

@ -27,7 +27,7 @@
<div id = "searchPanel" class="easyui-panel" style="padding:3px;" title="查询窗口" iconCls="icon-search" collapsible="true" closable="false">
<table id="searchTable">
<tr>
<td>仓库:</td>
<td>发货仓库:</td>
<td>
<select name="searchProjectId" id="searchProjectId" style="width:80px;"></select>
</td>
@ -62,7 +62,7 @@
<form id="depotHeadFM" method="post" novalidate>
<table>
<tr>
<td>仓 库:</td>
<td>发货仓库:</td>
<td style="padding:5px">
<select name="ProjectId" id="ProjectId" style="width:120px;"></select>
</td>
@ -111,7 +111,7 @@
closed="true" modal="true" cache="false" collapsible="false" closable="true">
<table>
<tr>
<td>仓 库:</td>
<td>发货仓库:</td>
<td style="padding:5px;width:120px;">
<span id="ProjectIdShow"></span>
</td>

View File

@ -291,9 +291,9 @@ public class AccountAction extends BaseAction<AccountModel>
for(Account account:dataList)
{
JSONObject item = new JSONObject();
item.put("id", account.getId());
item.put("Id", account.getId());
//结算账户名称
item.put("name", account.getName());
item.put("AccountName", account.getName());
dataArray.add(item);
}
}

View File

@ -308,6 +308,12 @@ public class InOutItemAction extends BaseAction<InOutItemModel>
* 拼接搜索条件
*/
Map<String,Object> condition = new HashMap<String,Object>();
if(model.getType().equals("in")) {
condition.put("type_s_eq", "收入");
}
else if(model.getType().equals("out")) {
condition.put("type_s_eq", "支出");
}
condition.put("id_s_order", "desc");
return condition;
}

View File

@ -1,30 +1,23 @@
package com.jsh.action.materials;
import java.io.File;
import java.io.IOException;
import java.sql.Timestamp;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletResponse;
import net.sf.json.JSONArray;
import net.sf.json.JSONObject;
import org.springframework.dao.DataAccessException;
import com.jsh.base.BaseAction;
import com.jsh.base.Log;
import com.jsh.util.AssetConstants;
import com.jsh.util.JshException;
import com.jsh.model.po.Asset;
import com.jsh.model.po.AccountHead;
import com.jsh.model.po.AccountItem;
import com.jsh.model.po.Logdetails;
import com.jsh.model.po.Account;
import com.jsh.model.po.InOutItem;
import com.jsh.model.vo.materials.AccountItemModel;
import com.jsh.service.materials.AccountHeadIService;
import com.jsh.service.materials.AccountItemIService;
import com.jsh.util.PageUtil;
import com.jsh.util.Tools;
/*
* 财务明细管理(收支|收付款|转账)
* @author jishenghua qq:752718920

View File

@ -232,10 +232,6 @@ public class PersonAction extends BaseAction<PersonModel>
personService.find(pageUtil);
List<Person> dataList = pageUtil.getPageList();
//开始拼接json数据
// {"total":28,"rows":[
// {"productid":"AV-CB-01","attr1":"Adult Male","itemid":"EST-18"}
// ]}
JSONObject outer = new JSONObject();
outer.put("total", pageUtil.getTotalCount());
//存放数据json数组

View File

@ -4,7 +4,7 @@ import org.apache.log4j.Logger;
/**
* 封装log4j日志信息打印日志信息类
* @author ji/sheng/hua qq_752718920
* @author ji/sheng/hua qq_7527.18920
* @since 2014-01-22
*/
public class Log