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
70f0dae4
Commit
70f0dae4
authored
Jul 21, 2020
by
季圣华
Browse files
优化表结构
parent
13932441
Changes
104
Expand all
Hide whitespace changes
Inline
Side-by-side
docs/jsh_erp.sql
View file @
70f0dae4
This diff is collapsed.
Click to expand it.
docs/数据库更新记录-方便升级.txt
View file @
70f0dae4
...
...
@@ -820,4 +820,86 @@ ROW_FORMAT=COMPACT
-- 修改jsh_material_initial_stock表的删除字段
-- --------------------------------------------------------
alter table jsh_material_stock rename to jsh_material_initial_stock;
alter table jsh_material_initial_stock change delete_fag delete_flag varchar(1) NULL DEFAULT '0' COMMENT '删除标记,0未删除,1删除';
\ No newline at end of file
alter table jsh_material_initial_stock change delete_fag delete_flag varchar(1) NULL DEFAULT '0' COMMENT '删除标记,0未删除,1删除';
-- --------------------------------------------------------
-- 时间 2020年07月20日
-- by jishenghua
-- 优化表和字段的格式
-- --------------------------------------------------------
alter table jsh_log change userID user_id bigint(20) DEFAULT NULL COMMENT '用户id';
alter table jsh_log change clientIP client_ip varchar(50) DEFAULT NULL COMMENT '客户端IP';
alter table jsh_log change createtime create_time datetime DEFAULT NULL COMMENT '创建时间';
alter table jsh_log change contentdetails content varchar(1000) DEFAULT NULL COMMENT '详情';
alter table jsh_log drop column remark;
alter table jsh_materialcategory rename to jsh_material_category;
alter table jsh_material_category change Id id bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键';
alter table jsh_material_category change Name name varchar(50) DEFAULT NULL COMMENT '名称';
alter table jsh_material_category change CategoryLevel category_level smallint(6) DEFAULT NULL COMMENT '等级';
alter table jsh_material_category change ParentId parent_id bigint(20) DEFAULT NULL COMMENT '上级id';
alter table jsh_materialproperty rename to jsh_material_property;
alter table jsh_material_property change nativeName native_name varchar(50) DEFAULT NULL COMMENT '原始名称';
alter table jsh_material_property change anotherName another_name varchar(50) DEFAULT NULL COMMENT '别名';
alter table jsh_material_property change delete_Flag delete_flag varchar(1) DEFAULT '0' COMMENT '删除标记,0未删除,1删除';
alter table jsh_role change Id id bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键';
alter table jsh_role change Name name varchar(50) DEFAULT NULL COMMENT '名称';
alter table jsh_role change delete_Flag delete_flag varchar(1) DEFAULT '0' COMMENT '删除标记,0未删除,1删除';
alter table jsh_person change Id id bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键';
alter table jsh_person change Type type varchar(20) DEFAULT NULL COMMENT '类型';
alter table jsh_person change Name name varchar(50) DEFAULT NULL COMMENT '姓名';
alter table jsh_person change delete_Flag delete_flag varchar(1) DEFAULT '0' COMMENT '删除标记,0未删除,1删除';
alter table jsh_systemconfig rename to jsh_system_config;
alter table jsh_system_config change delete_Flag delete_flag varchar(1) DEFAULT '0' COMMENT '删除标记,0未删除,1删除';
alter table jsh_account change Id id bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键';
alter table jsh_account change Name name varchar(50) DEFAULT NULL COMMENT '名称';
alter table jsh_account change SerialNo serial_no varchar(50) DEFAULT NULL COMMENT '编号';
alter table jsh_account change InitialAmount initial_amount decimal(24,6) DEFAULT NULL COMMENT '期初金额';
alter table jsh_account change CurrentAmount current_amount decimal(24,6) DEFAULT NULL COMMENT '当前余额';
alter table jsh_account change Remark remark varchar(100) DEFAULT NULL COMMENT '备注';
alter table jsh_account change IsDefault is_default bit(1) DEFAULT NULL COMMENT '是否默认';
alter table jsh_account change delete_Flag delete_flag varchar(1) DEFAULT '0' COMMENT '删除标记,0未删除,1删除';
alter table jsh_functions rename to jsh_function;
alter table jsh_function change Id id bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键';
alter table jsh_function change Number number varchar(50) DEFAULT NULL COMMENT '编号';
alter table jsh_function change Name name varchar(50) DEFAULT NULL COMMENT '名称';
alter table jsh_function change PNumber parent_number varchar(50) DEFAULT NULL COMMENT '上级编号';
alter table jsh_function change URL url varchar(100) DEFAULT NULL COMMENT '链接';
alter table jsh_function change State state bit(1) DEFAULT NULL COMMENT '收缩';
alter table jsh_function change Sort sort varchar(50) DEFAULT NULL COMMENT '排序';
alter table jsh_function change Enabled enabled bit(1) DEFAULT NULL COMMENT '启用';
alter table jsh_function change Type type varchar(50) DEFAULT NULL COMMENT '类型';
alter table jsh_function change PushBtn push_btn varchar(50) DEFAULT NULL COMMENT '功能按钮';
alter table jsh_function change delete_Flag delete_flag varchar(1) DEFAULT '0' COMMENT '删除标记,0未删除,1删除';
alter table jsh_userbusiness rename to jsh_user_business;
alter table jsh_user_business change Id id bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键';
alter table jsh_user_business change Type type varchar(50) DEFAULT NULL COMMENT '类别';
alter table jsh_user_business change KeyId key_id varchar(50) DEFAULT NULL COMMENT '主id';
alter table jsh_user_business change Value value varchar(10000) DEFAULT NULL COMMENT '值';
alter table jsh_user_business change BtnStr btn_str varchar(2000) DEFAULT NULL COMMENT '按钮权限';
alter table jsh_user_business change delete_Flag delete_flag varchar(1) DEFAULT '0' COMMENT '删除标记,0未删除,1删除';
alter table jsh_unit change UName name varchar(50) DEFAULT NULL COMMENT '名称,支持多单位';
alter table jsh_unit change delete_Flag delete_flag varchar(1) DEFAULT '0' COMMENT '删除标记,0未删除,1删除';
alter table jsh_inoutitem rename to jsh_in_out_item;
alter table jsh_in_out_item change Id id bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键';
alter table jsh_in_out_item change Name name varchar(50) DEFAULT NULL COMMENT '名称';
alter table jsh_in_out_item change Type type varchar(20) DEFAULT NULL COMMENT '类型';
alter table jsh_in_out_item change Remark remark varchar(100) DEFAULT NULL COMMENT '备注';
alter table jsh_in_out_item change delete_Flag delete_flag varchar(1) DEFAULT '0' COMMENT '删除标记,0未删除,1删除';
alter table jsh_serial_number change material_Id material_id bigint(20) DEFAULT NULL COMMENT '产品表id';
alter table jsh_serial_number change serial_Number serial_number varchar(64) DEFAULT NULL COMMENT '序列号';
alter table jsh_serial_number change is_Sell is_sell varchar(1) DEFAULT '0' COMMENT '是否卖出,0未卖出,1卖出';
alter table jsh_serial_number change delete_Flag delete_flag varchar(1) DEFAULT '0' COMMENT '删除标记,0未删除,1删除';
alter table jsh_serial_number change create_Time create_time datetime DEFAULT NULL COMMENT '创建时间';
alter table jsh_serial_number change update_Time update_time datetime DEFAULT NULL COMMENT '更新时间';
alter table jsh_serial_number change depothead_Id depot_head_id bigint(20) DEFAULT NULL COMMENT '单据主表id,用于跟踪序列号流向';
\ No newline at end of file
erp_web/js/modules/sys/menu.js
View file @
70f0dae4
...
...
@@ -42,7 +42,7 @@ function initSelectInfo(lei) {
}
//按钮权限列表
else
if
(
lei
==
3
)
{
var
btnStr
=
userBusinessList
[
0
].
btn
s
tr
;
var
btnStr
=
userBusinessList
[
0
].
btn
S
tr
;
if
(
btnStr
!=
null
)
{
var
btnObj
=
JSON
.
parse
(
btnStr
);
for
(
var
j
=
0
;
j
<
btnObj
.
length
;
j
++
)
{
...
...
@@ -71,10 +71,10 @@ if (btnStrList.length > 0) {
}
$
.
ajax
({
type
:
"
post
"
,
url
:
"
/function
s
/findMenu
"
,
url
:
"
/function/findMenu
"
,
data
:
({
pNumber
:
0
,
hasFunction
s
:
functions
hasFunction
:
functions
}),
dataType
:
"
json
"
,
async
:
false
,
...
...
erp_web/js/pages/materials/in_out.js
View file @
70f0dae4
...
...
@@ -312,8 +312,8 @@
options
+=
"
<option value='many' class='many' data-manyAmount=''>多账户</option>
"
;
for
(
var
i
=
0
;
i
<
accountList
.
length
;
i
++
)
{
var
account
=
accountList
[
i
];
options
+=
'
<option value="
'
+
account
.
id
+
'
" data-currentAmount="
'
+
account
.
current
a
mount
+
'
">
'
+
account
.
name
+
'
</option>
'
;
if
(
account
.
is
d
efault
)
{
options
+=
'
<option value="
'
+
account
.
id
+
'
" data-currentAmount="
'
+
account
.
current
A
mount
+
'
">
'
+
account
.
name
+
'
</option>
'
;
if
(
account
.
is
D
efault
)
{
defaultAccountId
=
account
.
id
;
//给账户赋值默认id
}
}
...
...
erp_web/pages/manage/account.html
View file @
70f0dae4
...
...
@@ -124,13 +124,13 @@
columns
:
[[
{
field
:
'
id
'
,
width
:
35
,
align
:
"
center
"
,
checkbox
:
true
},
{
title
:
'
名称
'
,
field
:
'
name
'
,
width
:
100
},
{
title
:
'
编号
'
,
field
:
'
serial
n
o
'
,
width
:
150
,
align
:
"
center
"
},
{
title
:
'
期初金额
'
,
field
:
'
initial
a
mount
'
,
width
:
100
,
align
:
"
center
"
},
{
title
:
'
当前余额
'
,
field
:
'
current
a
mount
'
,
width
:
100
,
align
:
"
center
"
},
{
title
:
'
编号
'
,
field
:
'
serial
N
o
'
,
width
:
150
,
align
:
"
center
"
},
{
title
:
'
期初金额
'
,
field
:
'
initial
A
mount
'
,
width
:
100
,
align
:
"
center
"
},
{
title
:
'
当前余额
'
,
field
:
'
current
A
mount
'
,
width
:
100
,
align
:
"
center
"
},
{
title
:
'
是否默认
'
,
field
:
'
is
d
efault
'
,
width
:
100
,
align
:
"
center
"
,
title
:
'
是否默认
'
,
field
:
'
is
D
efault
'
,
width
:
100
,
align
:
"
center
"
,
formatter
:
function
(
value
,
rec
)
{
if
(
rec
.
is
d
efault
)
{
if
(
rec
.
is
D
efault
)
{
return
"
<span style='color:green'>是</span>
"
;
}
else
{
...
...
@@ -456,17 +456,14 @@
//编辑结算账户
function
editAccount
(
index
)
{
var
rowsdata
=
$
(
"
#tableData
"
).
datagrid
(
"
getRows
"
)[
index
];
var
row
=
{
name
:
rowsdata
.
name
,
serialNo
:
rowsdata
.
serialno
,
initialAmount
:
rowsdata
.
initialamount
,
currentAmount
:
rowsdata
.
currentamount
,
remark
:
rowsdata
.
remark
};
$
(
"
#name
"
).
textbox
(
"
setValue
"
,
rowsdata
.
name
);
$
(
"
#serialNo
"
).
textbox
(
"
setValue
"
,
rowsdata
.
serialNo
);
$
(
"
#initialAmount
"
).
textbox
(
"
setValue
"
,
rowsdata
.
initialAmount
);
$
(
"
#currentAmount
"
).
textbox
(
"
setValue
"
,
rowsdata
.
currentAmount
);
$
(
"
#remark
"
).
textbox
(
"
setValue
"
,
rowsdata
.
remark
);
oldAccount
=
rowsdata
.
name
;
$
(
'
#accountDlg
'
).
dialog
(
'
open
'
).
dialog
(
'
setTitle
'
,
'
<img src="/js/easyui/themes/icons/pencil.png"/> 编辑结算账户
'
);
$
(
"
.window-mask
"
).
css
({
width
:
webW
,
height
:
webH
});
$
(
'
#accountFM
'
).
form
(
'
load
'
,
row
);
accountID
=
rowsdata
.
id
;
url
=
'
/account/update?id=
'
+
rowsdata
.
id
;
}
...
...
@@ -558,7 +555,7 @@
function
showAccountInOutList
(
index
)
{
var
rowsdata
=
$
(
"
#tableData
"
).
datagrid
(
"
getRows
"
)[
index
];
var
accountId
=
rowsdata
.
id
;
var
initialAmount
=
rowsdata
.
initial
a
mount
;
var
initialAmount
=
rowsdata
.
initial
A
mount
;
$
(
'
#accountDetailListDlg
'
).
dialog
(
'
open
'
).
dialog
(
'
setTitle
'
,
'
<img src="/js/easyui/themes/icons/pencil.png"/> 查看账户流水
'
);
$
(
"
.window-mask
"
).
css
({
width
:
webW
,
height
:
webH
});
initAccountDetailData
(
accountId
);
...
...
erp_web/pages/manage/depot.html
View file @
70f0dae4
...
...
@@ -172,10 +172,10 @@
},
{
title
:
'
仓库名称
'
,
field
:
'
name
'
,
width
:
200
},
{
title
:
'
仓库地址
'
,
field
:
'
address
'
,
width
:
200
},
{
title
:
'
仓储费
'
,
field
:
'
warehousing
'
,
width
:
6
0
},
{
title
:
'
搬运费
'
,
field
:
'
truckage
'
,
width
:
6
0
},
{
title
:
'
负责人
'
,
field
:
'
principalName
'
,
width
:
6
0
},
{
title
:
'
排序
'
,
field
:
'
sort
'
,
width
:
6
0
},
{
title
:
'
仓储费
'
,
field
:
'
warehousing
'
,
width
:
10
0
},
{
title
:
'
搬运费
'
,
field
:
'
truckage
'
,
width
:
10
0
},
{
title
:
'
负责人
'
,
field
:
'
principalName
'
,
width
:
10
0
},
{
title
:
'
排序
'
,
field
:
'
sort
'
,
width
:
8
0
},
{
title
:
'
是否默认
'
,
field
:
'
isDefault
'
,
width
:
100
,
align
:
"
center
"
,
formatter
:
function
(
value
,
rec
)
{
...
...
erp_web/pages/manage/functions.html
View file @
70f0dae4
...
...
@@ -153,7 +153,7 @@
{
field
:
'
id
'
,
width
:
35
,
align
:
"
center
"
,
checkbox
:
true
},
{
title
:
'
编号
'
,
field
:
'
number
'
,
width
:
80
},
{
title
:
'
名称
'
,
field
:
'
name
'
,
width
:
100
},
{
title
:
'
上级编号
'
,
field
:
'
p
n
umber
'
,
width
:
80
},
{
title
:
'
上级编号
'
,
field
:
'
p
arentN
umber
'
,
width
:
80
},
{
title
:
'
链接
'
,
field
:
'
url
'
,
width
:
250
},
{
title
:
'
排序
'
,
field
:
'
sort
'
,
width
:
60
},
{
...
...
@@ -257,7 +257,7 @@
if
(
r
)
{
$
.
ajax
({
type
:
"
post
"
,
url
:
"
/function
s
/batchDeleteFunctionsByIds
"
,
url
:
"
/function/batchDeleteFunctionsByIds
"
,
dataType
:
"
json
"
,
data
:
({
ids
:
functionsID
...
...
@@ -299,7 +299,7 @@
}
$
.
ajax
({
type
:
"
post
"
,
url
:
"
/function
s
/batchDeleteFunctionsByIds
"
,
url
:
"
/function/batchDeleteFunctionsByIds
"
,
dataType
:
"
json
"
,
async
:
false
,
data
:
({
...
...
@@ -339,7 +339,7 @@
iconBtnFun
();
oldFunctions
=
""
;
functionsID
=
0
;
url
=
'
/function
s
/add
'
;
url
=
'
/function/add
'
;
}
//保存信息
...
...
@@ -380,7 +380,7 @@
var
rowsdata
=
$
(
"
#tableData
"
).
datagrid
(
"
getRows
"
)[
index
];
$
(
"
#Number
"
).
textbox
(
"
setValue
"
,
rowsdata
.
number
);
$
(
"
#Name
"
).
focus
().
textbox
(
"
setValue
"
,
rowsdata
.
name
);
$
(
"
#PNumber
"
).
textbox
(
"
setValue
"
,
rowsdata
.
p
n
umber
);
$
(
"
#PNumber
"
).
textbox
(
"
setValue
"
,
rowsdata
.
p
arentN
umber
);
$
(
"
#URL
"
).
textbox
(
"
setValue
"
,
rowsdata
.
url
);
$
(
"
#State
"
).
attr
(
"
checked
"
,
rowsdata
.
state
);
$
(
"
#Sort
"
).
textbox
(
"
setValue
"
,
rowsdata
.
sort
);
...
...
@@ -389,8 +389,8 @@
$
(
"
#Type
"
).
textbox
(
"
setValue
"
,
rowsdata
.
type
);
//点击icon图标弹出页面
iconBtnFun
();
if
(
rowsdata
.
push
b
tn
)
{
var
arr
=
rowsdata
.
push
b
tn
.
split
(
"
,
"
);
if
(
rowsdata
.
push
B
tn
)
{
var
arr
=
rowsdata
.
push
B
tn
.
split
(
"
,
"
);
var
pushBtnArray
=
[];
for
(
var
i
=
0
;
i
<
arr
.
length
;
i
++
)
{
if
(
arr
[
i
])
{
...
...
@@ -411,7 +411,7 @@
functionsID
=
rowsdata
.
id
;
//焦点在名称输入框==定焦在输入文字后面
$
(
"
#Name
"
).
val
(
""
).
focus
().
val
(
rowsdata
.
name
);
url
=
'
/function
s
/update?id=
'
+
rowsdata
.
id
;
url
=
'
/function/update?id=
'
+
rowsdata
.
id
;
}
//点击icon图标弹出页面
...
...
@@ -432,7 +432,7 @@
if
(
name
.
length
>
0
&&
(
oldFunctions
.
length
==
0
||
name
!=
oldFunctions
))
{
$
.
ajax
({
type
:
"
get
"
,
url
:
"
/function
s
/checkIsNameExist
"
,
url
:
"
/function/checkIsNameExist
"
,
dataType
:
"
json
"
,
async
:
false
,
data
:
({
...
...
@@ -480,7 +480,7 @@
var
type
=
$
.
trim
(
$
(
"
#searchType
"
).
val
());
$
.
ajax
({
type
:
"
get
"
,
url
:
"
/function
s
/list
"
,
url
:
"
/function/list
"
,
dataType
:
"
json
"
,
data
:
({
search
:
JSON
.
stringify
({
...
...
erp_web/pages/manage/log.html
View file @
70f0dae4
...
...
@@ -114,12 +114,12 @@
pageList
:
initPageNum
,
columns
:
[[
{
title
:
'
操作模块
'
,
field
:
'
operation
'
,
width
:
120
},
{
title
:
'
操作详情
'
,
field
:
'
content
details
'
,
width
:
350
},
{
title
:
'
操作人员
'
,
field
:
'
user
n
ame
'
,
width
:
100
,
align
:
"
center
"
},
{
title
:
'
操作详情
'
,
field
:
'
content
'
,
width
:
350
},
{
title
:
'
操作人员
'
,
field
:
'
user
N
ame
'
,
width
:
100
,
align
:
"
center
"
},
{
title
:
'
操作状态
'
,
field
:
'
status
'
,
width
:
80
,
align
:
"
center
"
,
formatter
:
function
(
value
){
return
value
?
"
失败
"
:
"
成功
"
;
}},
{
title
:
'
操作IP
'
,
field
:
'
client
i
p
'
,
width
:
100
,
align
:
"
center
"
},
{
title
:
'
操作IP
'
,
field
:
'
client
I
p
'
,
width
:
100
,
align
:
"
center
"
},
{
title
:
'
操作时间
'
,
field
:
'
createTimeStr
'
,
width
:
150
,
align
:
"
center
"
}
]],
onLoadError
:
function
()
{
...
...
@@ -222,25 +222,25 @@
function
showLogDetails
(
pageNo
,
pageSize
)
{
var
operation
=
$
.
trim
(
$
(
"
#searchOperation
"
).
val
());
var
user
nameID
=
$
.
trim
(
$
(
"
#searchUsernameID
"
).
val
());
var
user
Id
=
$
.
trim
(
$
(
"
#searchUsernameID
"
).
val
());
var
clientIp
=
$
.
trim
(
$
(
"
#searchIP
"
).
val
());
var
status
=
$
.
trim
(
$
(
"
#searchStatus
"
).
val
());
var
beginTime
=
$
.
trim
(
$
(
"
#searchBeginTime
"
).
datebox
(
"
getValue
"
));
var
endTime
=
$
.
trim
(
$
(
"
#searchEndTime
"
).
datebox
(
"
getValue
"
));
var
content
details
=
$
.
trim
(
$
(
"
#searchDesc
"
).
val
());
var
content
=
$
.
trim
(
$
(
"
#searchDesc
"
).
val
());
$
.
ajax
({
type
:
"
get
"
,
url
:
"
/log/list
"
,
dataType
:
"
json
"
,
data
:
({
search
:
JSON
.
stringify
({
operation
:
operation
,
usernameID
:
usernameID
,
clientIp
:
clientIp
,
status
:
status
,
beginTime
:
beginTime
,
endTime
:
endTime
,
content
details
:
content
details
operation
:
operation
,
userId
:
userId
,
clientIp
:
clientIp
,
status
:
status
,
beginTime
:
beginTime
,
endTime
:
endTime
,
content
:
content
}),
currentPage
:
pageNo
,
pageSize
:
pageSize
...
...
erp_web/pages/manage/roleFunctions.html
View file @
70f0dae4
...
...
@@ -64,7 +64,7 @@
$
(
function
()
{
$
(
'
#tt
'
).
tree
({
url
:
'
/function
s
/findRoleFunction
s
?UBType=
'
+
type
+
'
&UBKeyId=
'
+
url_id
,
url
:
'
/function/findRoleFunction?UBType=
'
+
type
+
'
&UBKeyId=
'
+
url_id
,
animate
:
true
,
checkbox
:
true
});
...
...
erp_web/pages/manage/rolePushBtn.html
View file @
70f0dae4
...
...
@@ -145,7 +145,7 @@
var
arr
=
getValue
.
split
(
"
][
"
);
arr
=
arr
.
toString
();
$
.
ajax
({
url
:
"
/function
s
/findByIds
"
,
url
:
"
/function/findByIds
"
,
type
:
"
get
"
,
data
:
{
functionsIds
:
arr
...
...
erp_web/pages/manage/unit.html
View file @
70f0dae4
...
...
@@ -118,7 +118,7 @@
return
str
;
}
},
{
title
:
'
计量单位
'
,
field
:
'
u
name
'
,
width
:
200
}
{
title
:
'
计量单位
'
,
field
:
'
name
'
,
width
:
200
}
]],
toolbar
:
[
{
...
...
@@ -356,7 +356,7 @@
dataType
:
"
json
"
,
data
:
({
info
:
JSON
.
stringify
({
u
name
:
name
,
name
:
name
,
basicUnit
:
basicName
,
otherUnit
:
otherName
,
ratio
:
otherNum
...
...
erp_web/pages/materials/material.html
View file @
70f0dae4
...
...
@@ -115,7 +115,7 @@
<input
name=
"parentName"
id=
"parentName"
class=
"easyui-textbox"
style=
"width: 180px;"
readonly=
"readonly"
/>
<a
href=
"javascript:void(0)"
class=
"l-btn l-btn-plain"
group=
""
id=
"lookForMaterialCategory"
>
<span
class=
"l-btn-left"
><span
class=
"l-btn-text icon-search l-btn-icon-left"
style=
"height: 20px;"
></span></span></a>
<input
name=
"parent
i
d"
id=
"parent
i
d"
type=
"hidden"
/>
<input
name=
"parent
I
d"
id=
"parent
I
d"
type=
"hidden"
/>
</td>
<td
style=
"text-align: left;"
></td>
</tr>
...
...
@@ -362,7 +362,7 @@
var
thisRows
=
res
.
data
.
page
.
rows
;
//属性列表
for
(
var
i
=
0
;
i
<
thisRows
.
length
;
i
++
)
{
if
(
thisRows
[
i
].
enabled
)
{
mPropertyListShort
+=
thisRows
[
i
].
native
n
ame
+
"
,
"
;
mPropertyListShort
+=
thisRows
[
i
].
native
N
ame
+
"
,
"
;
}
}
if
(
mPropertyListShort
)
{
...
...
@@ -906,9 +906,9 @@
//表格模板变更
$
(
"
.tb-other-info
"
).
html
(
""
);
for
(
var
i
=
0
;
i
<
mPropertyList
.
length
;
i
++
)
{
if
(
mPropertyList
[
i
].
native
n
ame
===
"
制造商
"
)
{
if
(
mPropertyList
[
i
].
native
N
ame
===
"
制造商
"
)
{
$
(
"
.tb-other-info
"
).
append
(
trMfrs
);
$
(
"
.tr-mfrs td
"
).
first
().
text
(
mPropertyList
[
i
].
another
n
ame
);
$
(
"
.tr-mfrs td
"
).
first
().
text
(
mPropertyList
[
i
].
another
N
ame
);
if
(
mPropertyList
[
i
].
enabled
)
{
$
(
"
.tr-mfrs
"
).
show
();
}
...
...
@@ -916,9 +916,9 @@
$
(
"
.tr-mfrs
"
).
hide
();
}
}
if
(
mPropertyList
[
i
].
native
n
ame
===
"
自定义1
"
)
{
if
(
mPropertyList
[
i
].
native
N
ame
===
"
自定义1
"
)
{
$
(
"
.tb-other-info
"
).
append
(
trOtherField1
);
$
(
"
.tr-otherField1 td
"
).
first
().
text
(
mPropertyList
[
i
].
another
n
ame
);
$
(
"
.tr-otherField1 td
"
).
first
().
text
(
mPropertyList
[
i
].
another
N
ame
);
if
(
mPropertyList
[
i
].
enabled
)
{
$
(
"
.tr-otherField1
"
).
show
();
}
...
...
@@ -926,9 +926,9 @@
$
(
"
.tr-otherField1
"
).
hide
();
}
}
if
(
mPropertyList
[
i
].
native
n
ame
===
"
自定义2
"
)
{
if
(
mPropertyList
[
i
].
native
N
ame
===
"
自定义2
"
)
{
$
(
"
.tb-other-info
"
).
append
(
trOtherField2
);
$
(
"
.tr-otherField2 td
"
).
first
().
text
(
mPropertyList
[
i
].
another
n
ame
);
$
(
"
.tr-otherField2 td
"
).
first
().
text
(
mPropertyList
[
i
].
another
N
ame
);
if
(
mPropertyList
[
i
].
enabled
)
{
$
(
"
.tr-otherField2
"
).
show
();
}
...
...
@@ -936,9 +936,9 @@
$
(
"
.tr-otherField2
"
).
hide
();
}
}
if
(
mPropertyList
[
i
].
native
n
ame
===
"
自定义3
"
)
{
if
(
mPropertyList
[
i
].
native
N
ame
===
"
自定义3
"
)
{
$
(
"
.tb-other-info
"
).
append
(
trOtherField3
);
$
(
"
.tr-otherField3 td
"
).
first
().
text
(
mPropertyList
[
i
].
another
n
ame
);
$
(
"
.tr-otherField3 td
"
).
first
().
text
(
mPropertyList
[
i
].
another
N
ame
);
if
(
mPropertyList
[
i
].
enabled
)
{
$
(
"
.tr-otherField3
"
).
show
();
}
...
...
@@ -1156,7 +1156,7 @@
}
var
objInfo
=
$
(
"
#materialFM
"
).
serializeObject
();
objInfo
.
UnitId
=
$
(
"
#manyUnit
"
).
val
();
objInfo
.
CategoryId
=
$
(
"
#parent
i
d
"
).
val
();
objInfo
.
CategoryId
=
$
(
"
#parent
I
d
"
).
val
();
//初始库存信息
var
stockArr
=
[];
$
(
"
#initDepot input
"
).
each
(
function
()
{
...
...
@@ -1221,7 +1221,7 @@
$
(
"
#Name
"
).
focus
().
textbox
(
"
setValue
"
,
rowsdata
.
name
);
$
(
"
#EnableSerialNumber
"
).
val
(
rowsdata
.
enableserialnumber
==
'
1
'
?
'
1
'
:
'
0
'
);
//商品类别id
$
(
"
#parent
i
d
"
).
val
(
rowsdata
.
categoryid
);
$
(
"
#parent
I
d
"
).
val
(
rowsdata
.
categoryid
);
//商品类别名称
$
(
"
#parentName
"
).
textbox
(
"
setValue
"
,
rowsdata
.
categoryName
);
mId
=
rowsdata
.
categoryid
;
...
...
@@ -1397,7 +1397,7 @@
console
.
log
(
res
.
length
);
if
(
res
.
length
)
{
for
(
var
i
=
0
;
i
<
res
.
length
;
i
++
)
{
options
+=
'
<option value="
'
+
res
[
i
].
id
+
'
">
'
+
res
[
i
].
u
name
+
'
</option>
'
;
options
+=
'
<option value="
'
+
res
[
i
].
id
+
'
">
'
+
res
[
i
].
name
+
'
</option>
'
;
}
$
(
"
#manyUnit
"
).
empty
().
append
(
'
<option value="">(空)</option>
'
).
append
(
options
);
//下拉框事件
...
...
erp_web/pages/materials/materialProperty.html
View file @
70f0dae4
...
...
@@ -111,7 +111,7 @@
//loadFilter: pagerFilter,
columns
:
[[
{
field
:
'
id
'
,
width
:
10
,
align
:
"
center
"
,
hidden
:
true
},
{
title
:
'
名称
'
,
field
:
'
native
n
ame
'
,
width
:
100
},
{
title
:
'
名称
'
,
field
:
'
native
N
ame
'
,
width
:
100
},
{
title
:
'
是否启用
'
,
field
:
'
enabled
'
,
width
:
100
,
formatter
:
function
(
value
,
rec
)
{
if
(
rec
.
enabled
)
{
...
...
@@ -123,7 +123,7 @@
}
},
{
title
:
'
排序
'
,
field
:
'
sort
'
,
width
:
100
},
{
title
:
'
别名
'
,
field
:
'
another
n
ame
'
,
width
:
100
},
{
title
:
'
别名
'
,
field
:
'
another
N
ame
'
,
width
:
100
},
{
title
:
'
操作
'
,
field
:
'
op
'
,
align
:
"
center
"
,
width
:
80
,
formatter
:
function
(
value
,
rec
,
index
)
{
var
str
=
''
;
...
...
@@ -213,10 +213,10 @@
//编辑信息
function
editMaterialProperty
(
index
)
{
var
rowsdata
=
$
(
"
#tableData
"
).
datagrid
(
"
getRows
"
)[
index
];
$
(
"
#nativeName
"
).
text
(
rowsdata
.
native
n
ame
);
$
(
"
#nativeName
"
).
text
(
rowsdata
.
native
N
ame
);
$
(
"
#enabled
"
).
attr
(
"
checked
"
,
rowsdata
.
enabled
==
true
?
true
:
false
);
$
(
"
#sort
"
).
textbox
(
"
setValue
"
,
rowsdata
.
sort
);
$
(
"
#anotherName
"
).
textbox
(
"
setValue
"
,
rowsdata
.
another
n
ame
);
$
(
"
#anotherName
"
).
textbox
(
"
setValue
"
,
rowsdata
.
another
N
ame
);
$
(
'
#materialPropertyDlg
'
).
dialog
(
'
open
'
).
dialog
(
'
setTitle
'
,
'
<img src="/js/easyui/themes/icons/pencil.png"/> 编辑商品属性
'
);
$
(
"
.window-mask
"
).
css
({
width
:
webW
,
height
:
webH
});
//焦点在名称输入框==定焦在输入文字后面
...
...
erp_web/pages/materials/materialcategory.html
View file @
70f0dae4
...
...
@@ -36,13 +36,13 @@
<input
name=
"parentName"
id=
"parentName"
class=
"easyui-textbox"
style=
"width: 200px;"
readonly=
"readonly"
/>
<a
href=
"javascript:void(0)"
class=
"l-btn l-btn-plain"
group=
""
id=
"lookForSelectMaterialCategory"
>
<span
class=
"l-btn-left"
><span
class=
"l-btn-text icon-search l-btn-icon-left"
style=
"height: 20px;"
></span></span></a>
<input
name=
"parent
i
d"
id=
"parent
i
d"
type=
"hidden"
/>
<input
name=
"parent
I
d"
id=
"parent
I
d"
type=
"hidden"
/>
</td>
</tr>
<tr>
<td>
名称
</td>
<td
style=
"padding:5px"
>
<input
name=
"
N
ame"
id=
"
N
ame"
class=
"easyui-textbox"
<input
name=
"
n
ame"
id=
"
n
ame"
class=
"easyui-textbox"
data-options=
"required:true,validType:'length[2,30]'"
style=
"width: 200px;"
/>
<input
name=
"id"
id=
"id"
type=
"hidden"
/>
</td>
...
...
@@ -145,9 +145,9 @@
$
(
'
#materialCategoryFM
'
).
form
(
'
clear
'
);
$
(
'
#materialCategoryDlg
'
).
dialog
(
'
open
'
).
dialog
(
'
setTitle
'
,
'
<img src="/js/easyui/themes/icons/edit_add.png"/> 修改商品类别信息
'
);
$
(
"
.window-mask
"
).
css
({
width
:
webW
,
height
:
webH
});
$
(
"
#
N
ame
"
).
textbox
(
"
setValue
"
,
res
.
data
.
name
).
focus
();
$
(
"
#
n
ame
"
).
textbox
(
"
setValue
"
,
res
.
data
.
name
).
focus
();
$
(
"
#parentName
"
).
textbox
(
"
setValue
"
,
res
.
data
.
parentName
);
$
(
"
#parent
i
d
"
).
val
(
res
.
data
.
parentId
);
$
(
"
#parent
I
d
"
).
val
(
res
.
data
.
parentId
);
$
(
"
#serialNo
"
).
textbox
(
"
setValue
"
,
res
.
data
.
serialNo
);
$
(
"
#sort
"
).
textbox
(
"
setValue
"
,
res
.
data
.
sort
);
$
(
"
#remark
"
).
textbox
(
"
setValue
"
,
res
.
data
.
remark
);
...
...
@@ -250,7 +250,7 @@
//保存信息
$
(
"
#saveMaterialCategory
"
).
off
(
"
click
"
).
on
(
"
click
"
,
function
()
{
if
(
!
$
(
"
#
N
ame
"
).
val
())
{
if
(
!
$
(
"
#
n
ame
"
).
val
())
{
$
.
messager
.
alert
(
'
提示
'
,
'
商品类别名称不能为空!
'
,
'
warning
'
);
return
;
}
...
...
erp_web/pages/materials/materialcategory_forselect.html
View file @
70f0dae4
...
...
@@ -56,12 +56,12 @@
initMCData
(
node
.
id
);
}
else
if
(
clickType
==
"
editBtn
"
)
{
$
(
"
#parentName
"
).
textbox
(
"
setValue
"
,
node
.
text
);
$
(
"
#parent
i
d
"
).
val
(
node
.
id
);
$
(
"
#parent
I
d
"
).
val
(
node
.
id
);
}
}
else
{
$
(
"
#parentName
"
).
textbox
(
"
setValue
"
,
node
.
text
);
$
(
"
#parent
i
d
"
).
val
(
node
.
id
);
$
(
"
#parent
I
d
"
).
val
(
node
.
id
);
}
$
(
'
#forSelectMaterialCategoryDlg
'
).
dialog
(
'
close
'
);
}
...
...
erp_web/pages/reports/account_report.html
View file @
70f0dae4
...
...
@@ -88,14 +88,14 @@
pageList
:
initPageNum
,
columns
:
[[
{
title
:
'
名称
'
,
field
:
'
name
'
,
width
:
100
},
{
title
:
'
编号
'
,
field
:
'
serial
n
o
'
,
width
:
150
,
align
:
"
center
"
},
{
title
:
'
期初金额
'
,
field
:
'
initial
a
mount
'
,
width
:
100
,
align
:
"
center
"
},
{
title
:
'
本月发生额
'
,
field
:
'
this
m
onth
a
mount
'
,
width
:
100
,
align
:
"
center
"
},
{
title
:
'
当前余额
'
,
field
:
'
current
a
mount
'
,
width
:
100
,
align
:
"
center
"
},
{
title
:
'
编号
'
,
field
:
'
serial
N
o
'
,
width
:
150
,
align
:
"
center
"
},
{
title
:
'
期初金额
'
,
field
:
'
initial
A
mount
'
,
width
:
100
,
align
:
"
center
"
},
{
title
:
'
本月发生额
'
,
field
:
'
this
M
onth
A
mount
'
,
width
:
100
,
align
:
"
center
"
},
{
title
:
'
当前余额
'
,
field
:
'
current
A
mount
'
,
width
:
100
,
align
:
"
center
"
},
{
title
:
'
操作
'
,
field
:
'
op
'
,
width
:
100
,
align
:
"
center
"
,
formatter
:
function
(
value
,
rec
)
{
var
str
=
''
;
var
rowInfo
=
rec
.
id
+
'
AaBb
'
+
rec
.
name
+
'
AaBb
'
+
rec
.
serial
n
o
+
'
AaBb
'
+
rec
.
initial
a
mount
+
'
AaBb
'
+
rec
.
current
a
mount
;
var
rowInfo
=
rec
.
id
+
'
AaBb
'
+
rec
.
name
+
'
AaBb
'
+
rec
.
serial
N
o
+
'
AaBb
'
+
rec
.
initial
A
mount
+
'
AaBb
'
+
rec
.
current
A
mount
;
str
+=
'
<img src="/js/easyui/themes/icons/list.png" style="cursor: pointer;" onclick="showAccountInOutList(
\'
'
+
rowInfo
+
'
\'
);"/> <a onclick="showAccountInOutList(
\'
'
+
rowInfo
+
'
\'
);" style="text-decoration:none;color:black;" href="javascript:void(0)">流水</a>
'
;
return
str
;
}
...
...
erp_web/pages/reports/buy_in_report.html
View file @
70f0dae4
...
...
@@ -84,6 +84,8 @@
type
:
"
get
"
,
url
:
"
/materialProperty/list
"
,
dataType
:
"
json
"
,
//设置为同步
async
:
false
,
data
:
({
search
:
JSON
.
stringify
({
name
:
""
...
...
@@ -96,7 +98,7 @@
var
thisRows
=
res
.
data
.
page
.
rows
;
for
(
var
i
=
0
;
i
<
thisRows
.
length
;
i
++
)
{
if
(
thisRows
[
i
].
enabled
)
{
mPropertyList
+=
thisRows
[
i
].
native
n
ame
+
"
,
"
;
mPropertyList
+=
thisRows
[
i
].
native
N
ame
+
"
,
"
;
}
}
if
(
mPropertyList
)
{
...
...
erp_web/pages/reports/in_out_stock_report.html
View file @
70f0dae4
...
...
@@ -187,6 +187,8 @@
type
:
"
get
"
,
url
:
"
/materialProperty/list
"
,
dataType
:
"
json
"
,
//设置为同步
async
:
false
,
data
:
({
search
:
JSON
.
stringify
({
name
:
""
...
...
@@ -199,7 +201,7 @@
var
thisRows
=
res
.
data
.
page
.
rows
;
for
(
var
i
=
0
;
i
<
thisRows
.
length
;
i
++
)
{
if
(
thisRows
[
i
].
enabled
)
{
mPropertyList
+=
thisRows
[
i
].
native
n
ame
+
"
,
"
;
mPropertyList
+=
thisRows
[
i
].
native
N
ame
+
"
,
"
;
}
}
if
(
mPropertyList
)
{
...
...
erp_web/pages/reports/sale_out_report.html
View file @
70f0dae4
...
...
@@ -88,6 +88,8 @@
type
:
"
get
"
,
url
:
"
/materialProperty/list
"
,
dataType
:
"
json
"
,
//设置为同步
async
:
false
,
data
:
({
search
:
JSON
.
stringify
({
name
:
""
...
...
@@ -100,7 +102,7 @@
var
thisRows
=
res
.
data
.
page
.
rows
;
for
(
var
i
=
0
;
i
<
thisRows
.
length
;
i
++
)
{
if
(
thisRows
[
i
].
enabled
)
{
mPropertyList
+=
thisRows
[
i
].
native
n
ame
+
"
,
"
;
mPropertyList
+=
thisRows
[
i
].
native
N
ame
+
"
,
"
;
}
}
if
(
mPropertyList
)
{
...
...
erp_web/pages/reports/stock_warning_report.html
View file @
70f0dae4
...
...
@@ -155,6 +155,8 @@
type
:
"
get
"
,
url
:
"
/materialProperty/list
"
,
dataType
:
"
json
"
,
//设置为同步
async
:
false
,
data
:
({
search
:
JSON
.
stringify
({
name
:
""
...
...
@@ -167,7 +169,7 @@
var
thisRows
=
res
.
data
.
page
.
rows
;
for
(
var
i
=
0
;
i
<
thisRows
.
length
;
i
++
)
{
if
(
thisRows
[
i
].
enabled
)
{
mPropertyList
+=
thisRows
[
i
].
native
n
ame
+
"
,
"
;
mPropertyList
+=
thisRows
[
i
].
native
N
ame
+
"
,
"
;
}
}
if
(
mPropertyList
)
{
...
...
Prev
1
2
3
4
5
6
Next
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