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
e4c8aa03
Commit
e4c8aa03
authored
Feb 17, 2019
by
季圣华
Browse files
更新单据的编号的构造方式
parent
435a6f90
Changes
2
Show whitespace changes
Inline
Side-by-side
erp_web/js/pages/materials/in_out.js
View file @
e4c8aa03
...
...
@@ -582,7 +582,7 @@
}
},
{ title: organNameTitle, field: 'organName',width:120, hidden:isShowOrganNameColumn},
{ title: '单据编号',field: 'number',width:1
4
5},
{ title: '单据编号',field: 'number',width:1
2
5},
{ title: '商品信息',field: 'materialsList',width:180,formatter:function(value){
if(value) {
return value.replace(",",",");
...
...
@@ -1544,8 +1544,7 @@
if(res && res.code === 200){
var obj = res.data;
var defaultNumber = obj.DefaultNumber;
var thisDateTwo = getNowFormatDateTwo(); //当前日期
var newNumber = amountNum + thisDateTwo + defaultNumber
var newNumber = amountNum + defaultNumber
$("#Number").val(newNumber).attr("data-defaultNumber",newNumber);
}
},
...
...
src/main/java/com/jsh/erp/constants/BusinessConstants.java
View file @
e4c8aa03
...
...
@@ -65,7 +65,7 @@ public class BusinessConstants {
* sequence名称
* */
//sequence返回字符串的最小长度
public
static
final
Long
SEQ_TO_STRING_MIN_LENGTH
=
1000000L
;
public
static
final
Long
SEQ_TO_STRING_MIN_LENGTH
=
1000000
00
L
;
//sequence长度小于基准长度时前追加基础值
public
static
final
String
SEQ_TO_STRING_LESS_INSERT
=
"0"
;
//单据编号
...
...
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