Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
fd015b28
"vscode:/vscode.git/clone" did not exist on "c8f80894f1acede6660da417c00e35529e0f86d2"
Commit
fd015b28
authored
Jul 05, 2017
by
季圣华
Browse files
修改款号为型号、颜色去掉必填限制
parent
bfb1fe53
Changes
6
Hide whitespace changes
Inline
Side-by-side
src/main/java/com/jsh/action/materials/MaterialAction.java
View file @
fd015b28
...
...
@@ -320,8 +320,8 @@ public class MaterialAction extends BaseAction<MaterialModel>
item
.
put
(
"Id"
,
material
.
getId
());
//名称
String
MaterialName
=
((
material
.
getModel
().
equals
(
""
))?
""
:
""
+
material
.
getModel
())
+
" "
+
material
.
getName
()
+
((
material
.
getColor
()
==
null
)?
""
:
"("
+
material
.
getColor
()
+
")"
)
+
((
material
.
getUnit
()
==
null
)?
""
:
"("
+
material
.
getUnit
()
+
")"
);
+
((
material
.
getColor
()
==
null
||
material
.
getColor
().
equals
(
""
)
)?
""
:
"("
+
material
.
getColor
()
+
")"
)
+
((
material
.
getUnit
()
==
null
||
material
.
getUnit
().
equals
(
""
)
)?
""
:
"("
+
material
.
getUnit
()
+
")"
);
item
.
put
(
"MaterialName"
,
MaterialName
);
dataArray
.
add
(
item
);
}
...
...
src/main/java/com/jsh/service/materials/DepotItemService.java
View file @
fd015b28
...
...
@@ -90,7 +90,7 @@ public class DepotItemService extends BaseService<DepotItem> implements DepotIte
WritableSheet
sheet
=
workbook
.
createSheet
(
"进销存报表"
,
0
);
//增加列头
int
[]
colunmWidth
=
{
10
,
10
,
10
,
10
,
10
,
15
,
15
,
15
,
15
,
15
};
String
[]
colunmName
=
{
"名称"
,
"
款
号"
,
"颜色"
,
"单位"
,
"单价"
,
"上月结存数量"
,
"入库数量"
,
"出库数量"
,
"本月结存数量"
,
"结存金额"
};
String
[]
colunmName
=
{
"名称"
,
"
型
号"
,
"颜色"
,
"单位"
,
"单价"
,
"上月结存数量"
,
"入库数量"
,
"出库数量"
,
"本月结存数量"
,
"结存金额"
};
for
(
int
i
=
0
;
i
<
colunmWidth
.
length
;
i
++)
{
sheet
.
setColumnView
(
i
,
colunmWidth
[
i
]);
...
...
src/main/webapp/pages/materials/material.jsp
View file @
fd015b28
...
...
@@ -65,12 +65,12 @@
</td>
</tr>
<tr>
<td>
款
号
</td>
<td
style=
"padding:5px"
><input
name=
"Model"
id=
"Model"
class=
"easyui-validatebox"
data-options=
"required:true,validType:'length[
2
,30]'"
style=
"width: 180px;height: 20px"
/></td>
<td>
型
号
</td>
<td
style=
"padding:5px"
><input
name=
"Model"
id=
"Model"
class=
"easyui-validatebox"
data-options=
"required:true,validType:'length[
1
,30]'"
style=
"width: 180px;height: 20px"
/></td>
</tr>
<tr>
<td>
颜色
</td>
<td
style=
"padding:5px"
><input
name=
"Color"
id=
"Color"
class=
"easyui-validatebox"
data-options=
"
required:true,
validType:'length[1,30]'"
style=
"width: 180px;height: 20px"
/></td>
<td
style=
"padding:5px"
><input
name=
"Color"
id=
"Color"
class=
"easyui-validatebox"
data-options=
"validType:'length[1,30]'"
style=
"width: 180px;height: 20px"
/></td>
</tr>
<tr>
<td>
单位
</td>
...
...
@@ -316,7 +316,7 @@
columns
:[[
{
field
:
'
Id
'
,
width
:
35
,
align
:
"
center
"
,
checkbox
:
true
},
{
title
:
'
名称
'
,
field
:
'
Name
'
,
width
:
80
},
{
title
:
'
款
号
'
,
field
:
'
Model
'
,
width
:
80
},
{
title
:
'
型
号
'
,
field
:
'
Model
'
,
width
:
80
},
{
title
:
'
颜色
'
,
field
:
'
Color
'
,
width
:
40
},
{
title
:
'
单位
'
,
field
:
'
Unit
'
,
width
:
50
},
{
title
:
'
零售价
'
,
field
:
'
RetailPrice
'
,
width
:
50
},
...
...
src/main/webapp/pages/reports/buy_in_report.jsp
View file @
fd015b28
...
...
@@ -78,7 +78,7 @@
pageList: [10,50,100],
columns:[[
{ title:
'
名称
'
,field:
'
MaterialName
'
,width:60},
{ title:
'
款
号
'
,field:
'
MaterialModel
'
,width:80},
{ title:
'
型
号
'
,field:
'
MaterialModel
'
,width:80},
{ title:
'
颜色
'
,field:
'
MaterialColor
'
,width:80},
{ title:
'
单位
'
,field:
'
MaterialUnit
'
,width:80},
{ title:
'
进货数量
'
,field:
'
InSum
'
,width:60},
...
...
src/main/webapp/pages/reports/in_out_stock_report.jsp
View file @
fd015b28
...
...
@@ -98,7 +98,7 @@
pageList: [10,50,100],
columns:[[
{ title: '名称',field: 'MaterialName',width:60},
{ title: '
款
号',field: 'MaterialModel',width:80},
{ title: '
型
号',field: 'MaterialModel',width:80},
{ title: '颜色',field: 'MaterialColor',width:80},
{ title: '单位',field: 'MaterialUnit',width:80},
{ title: '单价',field: 'UnitPrice',width:60,formatter: function(value,row,index){
...
...
src/main/webapp/pages/reports/sale_out_report.jsp
View file @
fd015b28
...
...
@@ -80,7 +80,7 @@
pageList: [10,50,100],
columns:[[
{ title:
'
名称
'
,field:
'
MaterialName
'
,width:60},
{ title:
'
款
号
'
,field:
'
MaterialModel
'
,width:80},
{ title:
'
型
号
'
,field:
'
MaterialModel
'
,width:80},
{ title:
'
颜色
'
,field:
'
MaterialColor
'
,width:80},
{ title:
'
单位
'
,field:
'
MaterialUnit
'
,width:80},
{ title:
'
销售数量
'
,field:
'
OutSum
'
,width:60},
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment