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
8a77e18e
Commit
8a77e18e
authored
Nov 16, 2017
by
季圣华
Browse files
单据明细增加'单位'字段的显示
parent
26295a52
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/main/java/com/jsh/action/materials/DepotHeadAction.java
View file @
8a77e18e
...
...
@@ -393,7 +393,6 @@ public class DepotHeadAction extends BaseAction<DepotHeadModel>
String
allReturn
=
""
;
List
dataList
=
pageUtil
.
getPageList
();
if
(
dataList
!=
null
)
{
System
.
out
.
println
(
"dataList:"
+
dataList
.
size
());
for
(
Integer
i
=
0
;
i
<
dataList
.
size
();
i
++)
{
Object
dl
=
dataList
.
get
(
i
);
//获取对象
allReturn
=
allReturn
+
dl
.
toString
()
+
","
;
...
...
src/main/java/com/jsh/action/materials/DepotItemAction.java
View file @
8a77e18e
...
...
@@ -284,7 +284,7 @@ public class DepotItemAction extends BaseAction<DepotItemModel>
//品名/型号/扩展信息/包装
String
MaterialName
=
depotItem
.
getMaterialId
().
getName
()
+
((
depotItem
.
getMaterialId
().
getModel
()
==
null
||
depotItem
.
getMaterialId
().
getModel
().
equals
(
""
))?
""
:
"("
+
depotItem
.
getMaterialId
().
getModel
()
+
")"
);
String
materialOther
=
getOtherInfo
(
mpArr
,
depotItem
);
MaterialName
=
MaterialName
+
materialOther
+
ratio
;
MaterialName
=
MaterialName
+
materialOther
+
((
depotItem
.
getMaterialId
().
getUnit
()
==
null
||
depotItem
.
getMaterialId
().
getUnit
().
equals
(
""
))?
""
:
"("
+
depotItem
.
getMaterialId
().
getUnit
()
+
")"
)
+
ratio
;
item
.
put
(
"MaterialName"
,
MaterialName
);
item
.
put
(
"Unit"
,
depotItem
.
getMUnit
());
item
.
put
(
"OperNumber"
,
depotItem
.
getOperNumber
());
...
...
src/main/java/com/jsh/action/materials/MaterialAction.java
View file @
8a77e18e
...
...
@@ -487,7 +487,7 @@ public class MaterialAction extends BaseAction<MaterialModel>
MaterialName
=
MaterialName
+
((
material
.
getOtherField3
()
==
null
||
material
.
getOtherField3
().
equals
(
""
))?
""
:
"("
+
material
.
getOtherField3
()
+
")"
);
}
}
MaterialName
=
MaterialName
+
ratio
;
MaterialName
=
MaterialName
+
((
material
.
getUnit
()
==
null
||
material
.
getUnit
().
equals
(
""
))?
""
:
"("
+
material
.
getUnit
()
+
")"
)
+
ratio
;
item
.
put
(
"MaterialName"
,
MaterialName
);
dataArray
.
add
(
item
);
}
...
...
src/main/webapp/js/pages/materials/in_out.js
View file @
8a77e18e
...
...
@@ -817,7 +817,7 @@
}
}
},
{ title: '品名(型号)(扩展信息)(
包装
)',field: 'MaterialId',width:230,
{ title: '品名(型号)(扩展信息)(
单位
)',field: 'MaterialId',width:230,
formatter:function(value,row,index){
return row.MaterialName;
},
...
...
@@ -1187,7 +1187,7 @@
columns:[[
{ title: '商品类型',field: 'MType',width:80, hidden:isShowMaterialTypeColumn},
{ title: depotHeadName,field: 'DepotName',editor:'validatebox',width:90},
{ title: '品名(型号)(扩展信息)(
包装
)',field: 'MaterialName',width:230},
{ title: '品名(型号)(扩展信息)(
单位
)',field: 'MaterialName',width:230},
{ title: anotherDepotHeadName,field: 'AnotherDepotName',hidden:isShowAnotherDepot,width:90},
{ title: '单位',field: 'Unit',editor:'validatebox',width:60},
{ title: '数量',field: 'OperNumber',editor:'validatebox',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