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
7cabc39a
Commit
7cabc39a
authored
Nov 08, 2019
by
qiankunpingtai
Browse files
切换到jsh的版本
parent
9182e734
Changes
125
Expand all
Hide whitespace changes
Inline
Side-by-side
erp_web/js/pages/materials/sale_back_list.js
deleted
100644 → 0
View file @
9182e734
This diff is collapsed.
Click to expand it.
erp_web/js/pages/materials/sale_orders_list.js
deleted
100644 → 0
View file @
9182e734
This diff is collapsed.
Click to expand it.
erp_web/js/pages/materials/sale_out_list.js
deleted
100644 → 0
View file @
9182e734
This diff is collapsed.
Click to expand it.
erp_web/pages/financial/advance_in.html
View file @
7cabc39a
...
...
@@ -14,7 +14,7 @@
<script
src=
"/js/easyui-1.3.5/locale/easyui-lang-zh_CN.js"
></script>
<script
src=
"/js/My97DatePicker/WdatePicker.js"
></script>
<script
src=
"/js/common/common.js"
></script>
<script
src=
"/js/pages/financial/
advance_in
.js"
></script>
<script
src=
"/js/pages/financial/
financial_base
.js"
></script>
</head>
<body>
<!-- 数据显示table -->
...
...
erp_web/pages/financial/giro.html
View file @
7cabc39a
...
...
@@ -14,7 +14,7 @@
<script
src=
"/js/easyui-1.3.5/locale/easyui-lang-zh_CN.js"
></script>
<script
src=
"/js/My97DatePicker/WdatePicker.js"
></script>
<script
src=
"/js/common/common.js"
></script>
<script
src=
"/js/pages/financial/
giro
.js"
></script>
<script
src=
"/js/pages/financial/
financial_base
.js"
></script>
</head>
<body>
<!-- 数据显示table -->
...
...
erp_web/pages/financial/item_in.html
View file @
7cabc39a
...
...
@@ -14,7 +14,7 @@
<script
src=
"/js/easyui-1.3.5/locale/easyui-lang-zh_CN.js"
></script>
<script
src=
"/js/My97DatePicker/WdatePicker.js"
></script>
<script
src=
"/js/common/common.js"
></script>
<script
src=
"/js/pages/financial/
item_in
.js"
></script>
<script
src=
"/js/pages/financial/
financial_base
.js"
></script>
</head>
<body>
<!-- 数据显示table -->
...
...
erp_web/pages/financial/item_out.html
View file @
7cabc39a
...
...
@@ -14,7 +14,7 @@
<script
src=
"/js/easyui-1.3.5/locale/easyui-lang-zh_CN.js"
></script>
<script
src=
"/js/My97DatePicker/WdatePicker.js"
></script>
<script
src=
"/js/common/common.js"
></script>
<script
src=
"/js/pages/financial/
item_out
.js"
></script>
<script
src=
"/js/pages/financial/
financial_base
.js"
></script>
</head>
<body>
<!-- 数据显示table -->
...
...
erp_web/pages/financial/money_in.html
View file @
7cabc39a
...
...
@@ -14,7 +14,7 @@
<script
src=
"/js/easyui-1.3.5/locale/easyui-lang-zh_CN.js"
></script>
<script
src=
"/js/My97DatePicker/WdatePicker.js"
></script>
<script
src=
"/js/common/common.js"
></script>
<script
src=
"/js/pages/financial/
money_in
.js"
></script>
<script
src=
"/js/pages/financial/
financial_base
.js"
></script>
</head>
<body>
<!-- 数据显示table -->
...
...
erp_web/pages/financial/money_out.html
View file @
7cabc39a
...
...
@@ -14,7 +14,7 @@
<script
src=
"/js/easyui-1.3.5/locale/easyui-lang-zh_CN.js"
></script>
<script
src=
"/js/My97DatePicker/WdatePicker.js"
></script>
<script
src=
"/js/common/common.js"
></script>
<script
src=
"/js/pages/financial/
money_out
.js"
></script>
<script
src=
"/js/pages/financial/
financial_base
.js"
></script>
</head>
<body>
<!-- 数据显示table -->
...
...
erp_web/pages/manage/account.html
View file @
7cabc39a
...
...
@@ -129,18 +129,12 @@
},
{
title
:
'
备注
'
,
field
:
'
remark
'
,
width
:
100
},
{
title
:
'
操作
'
,
field
:
'
op
'
,
align
:
"
center
"
,
width
:
210
,
formatter
:
function
(
value
,
rec
,
index
)
{
/**
* create by: qiankunpingtai
* create time: 2019/5/5 10:30
* website:https://qiankunpingtai.cn
* description:
* 修改效率低下的js实现
*/
title
:
'
操作
'
,
field
:
'
op
'
,
align
:
"
center
"
,
width
:
210
,
formatter
:
function
(
value
,
rec
)
{
var
str
=
''
;
str
+=
'
<img src="/js/easyui-1.3.5/themes/icons/list.png" style="cursor: pointer;" onclick="showAccountInOutList(
\'
'
+
index
+
'
\'
);"/> <a onclick="showAccountInOutList(
\'
'
+
index
+
'
\'
);" style="text-decoration:none;color:black;" href="javascript:void(0)">流水</a>
'
;
str
+=
'
<img src="/js/easyui-1.3.5/themes/icons/pencil.png" style="cursor: pointer;" onclick="editAccount(
\'
'
+
index
+
'
\'
);"/> <a onclick="editAccount(
\'
'
+
index
+
'
\'
);" style="text-decoration:none;color:black;" href="javascript:void(0)">编辑</a>
'
;
str
+=
'
<img src="/js/easyui-1.3.5/themes/icons/edit_remove.png" style="cursor: pointer;" onclick="deleteAccount(
\'
'
+
rec
.
id
+
'
\'
);"/> <a onclick="deleteAccount(
\'
'
+
rec
.
id
+
'
\'
);" style="text-decoration:none;color:black;" href="javascript:void(0)">删除</a>
'
;
var
rowInfo
=
rec
.
id
+
'
AaBb
'
+
rec
.
name
+
'
AaBb
'
+
rec
.
serialno
+
'
AaBb
'
+
rec
.
initialamount
+
'
AaBb
'
+
rec
.
currentamount
+
'
AaBb
'
+
rec
.
remark
;
str
+=
'
<img src="/js/easyui-1.3.5/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>
'
;
str
+=
'
<img src="/js/easyui-1.3.5/themes/icons/pencil.png" style="cursor: pointer;" onclick="editAccount(
\'
'
+
rowInfo
+
'
\'
);"/> <a onclick="editAccount(
\'
'
+
rowInfo
+
'
\'
);" style="text-decoration:none;color:black;" href="javascript:void(0)">编辑</a>
'
;
str
+=
'
<img src="/js/easyui-1.3.5/themes/icons/edit_remove.png" style="cursor: pointer;" onclick="deleteAccount(
\'
'
+
rowInfo
+
'
\'
);"/> <a onclick="deleteAccount(
\'
'
+
rowInfo
+
'
\'
);" style="text-decoration:none;color:black;" href="javascript:void(0)">删除</a>
'
;
return
str
;
}
}
...
...
@@ -221,16 +215,16 @@
}
//删除结算账户
function
deleteAccount
(
id
)
{
function
deleteAccount
(
accountInfo
)
{
$
.
messager
.
confirm
(
'
删除确认
'
,
'
确定要删除此结算账户吗?
'
,
function
(
r
)
{
if
(
r
)
{
//
var accountTotalInfo = accountInfo.split("AaBb");
var
accountTotalInfo
=
accountInfo
.
split
(
"
AaBb
"
);
$
.
ajax
({
type
:
"
post
"
,
url
:
"
/account/batchDeleteAccountByIds
"
,
dataType
:
"
json
"
,
data
:
({
ids
:
id
ids
:
accountTotalInfo
[
0
]
}),
success
:
function
(
res
)
{
if
(
res
&&
res
.
code
==
200
)
{
...
...
@@ -238,7 +232,7 @@
}
else
{
if
(
res
&&
res
.
code
==
601
){
var
jsondata
=
{};
jsondata
.
ids
=
id
;
jsondata
.
ids
=
accountTotalInfo
[
0
]
;
jsondata
.
deleteType
=
'
2
'
;
var
type
=
'
single
'
;
batDeleteAccountForceConfirm
(
res
,
"
/account/batchDeleteAccountByIds
"
,
jsondata
,
type
);
...
...
@@ -443,22 +437,23 @@
});
//编辑结算账户
function
editAccount
(
index
)
{
var
rowsdata
=
$
(
"
#tableData
"
).
datagrid
(
"
getRows
"
)[
index
]
;
function
editAccount
(
accountTotalInfo
)
{
var
accountInfo
=
accountTotalInfo
.
split
(
"
AaBb
"
)
;
var
row
=
{
name
:
rowsdata
.
name
,
serialNo
:
rowsdata
.
serialNo
,
initialAmount
:
rowsdata
.
initialamount
,
currentAmount
:
rowsdata
.
currentamount
,
remark
:
rowsdata
.
remark
name
:
accountInfo
[
1
]
,
serialNo
:
accountInfo
[
2
]
,
initialAmount
:
accountInfo
[
3
]
,
currentAmount
:
accountInfo
[
4
]
,
remark
:
accountInfo
[
5
]
};
oldAccount
=
rowsdata
.
name
;
oldAccount
=
accountInfo
[
1
]
;
$
(
'
#accountDlg
'
).
dialog
(
'
open
'
).
dialog
(
'
setTitle
'
,
'
<img src="/js/easyui-1.3.5/themes/icons/pencil.png"/> 编辑结算账户
'
);
$
(
"
.window-mask
"
).
css
({
width
:
webW
,
height
:
webH
});
$
(
'
#accountFM
'
).
form
(
'
load
'
,
row
);
accountID
=
accountInfo
[
0
];
//焦点在名称输入框==定焦在输入文字后面
$
(
"
#account
"
).
val
(
""
).
focus
().
val
(
rowsdata
.
name
);
url
=
'
/account/update?id=
'
+
rowsdata
.
id
;
$
(
"
#account
"
).
val
(
""
).
focus
().
val
(
accountInfo
[
1
]
);
url
=
'
/account/update?id=
'
+
accountInfo
[
0
]
;
}
//检查结算账户 名称是否存在 ++ 重名无法提示问题需要跟进
...
...
@@ -545,11 +540,10 @@
});
}
function
showAccountInOutList
(
index
)
{
//获取当前行
var
rowsdata
=
$
(
"
#tableData
"
).
datagrid
(
"
getRows
"
)[
index
];
var
accountId
=
rowsdata
.
id
;
var
initialAmount
=
rowsdata
.
serialno
;
function
showAccountInOutList
(
accountInfo
)
{
var
info
=
accountInfo
.
split
(
"
AaBb
"
);
var
accountId
=
info
[
0
];
var
initialAmount
=
info
[
3
];
$
(
'
#accountDetailListDlg
'
).
dialog
(
'
open
'
).
dialog
(
'
setTitle
'
,
'
<img src="/js/easyui-1.3.5/themes/icons/pencil.png"/> 查看账户流水
'
);
$
(
"
.window-mask
"
).
css
({
width
:
webW
,
height
:
webH
});
initAccountDetailData
(
accountId
);
...
...
erp_web/pages/manage/app.html
deleted
100644 → 0
View file @
9182e734
erp_web/pages/manage/customer.html
View file @
7cabc39a
...
...
@@ -13,7 +13,7 @@
<script
type=
"text/javascript"
src=
"/js/easyui-1.3.5/jquery.easyui.min.js"
></script>
<script
type=
"text/javascript"
src=
"/js/easyui-1.3.5/locale/easyui-lang-zh_CN.js"
></script>
<script
type=
"text/javascript"
src=
"/js/common/common.js"
></script>
<script
src=
"/js/pages/manage/
custom
er.js"
></script>
<script
src=
"/js/pages/manage/
suppli
er.js"
></script>
</head>
<body>
<!-- 数据显示table -->
...
...
erp_web/pages/manage/depot.html
View file @
7cabc39a
...
...
@@ -483,26 +483,25 @@
});
//编辑信息
function
editDepot
(
index
)
{
// var depotInfo = depotTotalInfo.split("AaBb");
var
rowsdata
=
$
(
"
#tableData
"
).
datagrid
(
"
getRows
"
)[
index
];
function
editDepot
(
depotTotalInfo
)
{
var
depotInfo
=
depotTotalInfo
.
split
(
"
AaBb
"
);
$
(
"
#name
"
).
focus
().
val
(
rowsdata
.
name
);
$
(
"
#sort
"
).
val
(
rowsdata
.
sort
);
$
(
"
#remark
"
).
val
(
rowsdata
.
remark
);
$
(
"
#address
"
).
val
(
rowsdata
.
address
);
$
(
"
#warehousing
"
).
val
(
rowsdata
.
warehousing
);
$
(
"
#truckage
"
).
val
(
rowsdata
.
truckage
);
$
(
"
#principalName
"
).
val
(
transferUndefined
(
rowsdata
.
principalName
)
);
$
(
"
#principal
"
).
val
(
transferUndefined
(
rowsdata
.
principal
)
);
$
(
"
#name
"
).
focus
().
val
(
depotInfo
[
1
]
);
$
(
"
#sort
"
).
val
(
depotInfo
[
2
]
);
$
(
"
#remark
"
).
val
(
depotInfo
[
3
]
);
$
(
"
#address
"
).
val
(
depotInfo
[
4
]
);
$
(
"
#warehousing
"
).
val
(
depotInfo
[
5
].
replace
(
"
undefined
"
,
""
)
);
$
(
"
#truckage
"
).
val
(
depotInfo
[
6
].
replace
(
"
undefined
"
,
""
)
);
$
(
"
#principalName
"
).
val
(
depotInfo
[
7
]
);
$
(
"
#principal
"
).
val
(
depotInfo
[
8
]
);
$
(
"
#selectType
"
).
val
(
"
principal
"
);
oldDepot
=
rowsdata
.
name
;
oldDepot
=
depotInfo
[
1
]
;
$
(
'
#depotDlg
'
).
dialog
(
'
open
'
).
dialog
(
'
setTitle
'
,
'
<img src="/js/easyui-1.3.5/themes/icons/pencil.png"/> 编辑仓库信息
'
);
$
(
"
.window-mask
"
).
css
({
width
:
webW
,
height
:
webH
});
depotID
=
rowsdata
.
id
;
depotID
=
depotInfo
[
0
]
;
//焦点在名称输入框==定焦在输入文字后面
$
(
"
#name
"
).
val
(
""
).
focus
().
val
(
rowsdata
.
name
);
url
=
'
/depot/update?id=
'
+
rowsdata
.
id
;
$
(
"
#name
"
).
val
(
""
).
focus
().
val
(
depotInfo
[
1
]
);
url
=
'
/depot/update?id=
'
+
depotInfo
[
0
]
;
}
//检查名称是否存在 ++ 重名无法提示问题需要跟进
...
...
erp_web/pages/manage/functions.html
View file @
7cabc39a
...
...
@@ -167,11 +167,11 @@
},
{
title
:
'
类型
'
,
field
:
'
type
'
,
width
:
50
},
{
title
:
'
操作
'
,
field
:
'
op
'
,
align
:
"
center
"
,
width
:
130
,
formatter
:
function
(
value
,
rec
,
index
)
{
title
:
'
操作
'
,
field
:
'
op
'
,
align
:
"
center
"
,
width
:
130
,
formatter
:
function
(
value
,
rec
)
{
var
str
=
''
;
//
var rowInfo = rec.id + 'AaBb' + rec.number + 'AaBb' + rec.name + 'AaBb' + rec.pnumber + 'AaBb' + rec.url
//
+ 'AaBb' + rec.state + 'AaBb' + rec.sort + 'AaBb' + rec.enabled + 'AaBb' + rec.type + 'AaBb' + rec.pushbtn;
str
+=
'
<img src="/js/easyui-1.3.5/themes/icons/pencil.png" style="cursor: pointer;" onclick="editFunctions(
\'
'
+
index
+
'
\'
);"/> <a onclick="editFunctions(
\'
'
+
index
+
'
\'
);" style="text-decoration:none;color:black;" href="javascript:void(0)">编辑</a>
'
;
var
rowInfo
=
rec
.
id
+
'
AaBb
'
+
rec
.
number
+
'
AaBb
'
+
rec
.
name
+
'
AaBb
'
+
rec
.
pnumber
+
'
AaBb
'
+
rec
.
url
+
'
AaBb
'
+
rec
.
state
+
'
AaBb
'
+
rec
.
sort
+
'
AaBb
'
+
rec
.
enabled
+
'
AaBb
'
+
rec
.
type
+
'
AaBb
'
+
rec
.
pushbtn
;
str
+=
'
<img src="/js/easyui-1.3.5/themes/icons/pencil.png" style="cursor: pointer;" onclick="editFunctions(
\'
'
+
rowInfo
+
'
\'
);"/> <a onclick="editFunctions(
\'
'
+
rowInfo
+
'
\'
);" style="text-decoration:none;color:black;" href="javascript:void(0)">编辑</a>
'
;
str
+=
'
<img src="/js/easyui-1.3.5/themes/icons/edit_remove.png" style="cursor: pointer;" onclick="deleteFunctions(
'
+
rec
.
id
+
'
);"/> <a onclick="deleteFunctions(
'
+
rec
.
id
+
'
);" style="text-decoration:none;color:black;" href="javascript:void(0)">删除</a>
'
;
return
str
;
}
...
...
@@ -381,20 +381,19 @@
});
//编辑信息
function
editFunctions
(
index
)
{
// var functionsInfo = functionsTotalInfo.split("AaBb");
var
rowsdata
=
$
(
"
#tableData
"
).
datagrid
(
"
getRows
"
)[
index
];
$
(
"
#Number
"
).
focus
().
val
(
rowsdata
.
number
);
$
(
"
#Name
"
).
focus
().
val
(
rowsdata
.
name
);
$
(
"
#PNumber
"
).
focus
().
val
(
rowsdata
.
pnumber
);
$
(
"
#URL
"
).
focus
().
val
(
rowsdata
.
url
);
$
(
"
#State
"
).
attr
(
"
checked
"
,
rowsdata
.
state
===
true
?
true
:
false
);
$
(
"
#Sort
"
).
focus
().
val
(
rowsdata
.
sort
);
$
(
"
#Enabled
"
).
attr
(
"
checked
"
,
rowsdata
.
enabled
===
true
?
true
:
false
);
$
(
"
#Type
"
).
focus
().
val
(
rowsdata
.
type
);
var
pushbtn
=
rowsdata
.
pushbtn
;
if
(
pushbtn
)
{
var
arr
=
pushbtn
.
split
(
"
,
"
);
function
editFunctions
(
functionsTotalInfo
)
{
var
functionsInfo
=
functionsTotalInfo
.
split
(
"
AaBb
"
);
$
(
"
#Number
"
).
focus
().
val
(
functionsInfo
[
1
]);
$
(
"
#Name
"
).
focus
().
val
(
functionsInfo
[
2
]);
$
(
"
#PNumber
"
).
focus
().
val
(
functionsInfo
[
3
]);
$
(
"
#URL
"
).
focus
().
val
(
functionsInfo
[
4
]);
$
(
"
#State
"
).
attr
(
"
checked
"
,
functionsInfo
[
5
]
==
'
true
'
?
true
:
false
);
$
(
"
#Sort
"
).
focus
().
val
(
functionsInfo
[
6
]);
$
(
"
#Enabled
"
).
attr
(
"
checked
"
,
functionsInfo
[
7
]
==
'
true
'
?
true
:
false
);
$
(
"
#Type
"
).
focus
().
val
(
functionsInfo
[
8
]);
if
(
functionsInfo
[
9
]
!==
"
undefined
"
&&
functionsInfo
[
9
]
!==
""
)
{
var
arr
=
functionsInfo
[
9
].
split
(
"
,
"
);
var
pushBtnArray
=
[];
for
(
var
i
=
0
;
i
<
arr
.
length
;
i
++
)
{
if
(
arr
[
i
])
{
...
...
@@ -409,13 +408,13 @@
$
(
"
#PushBtn
"
).
combobox
(
'
setValues
'
,
''
);
}
oldFunctions
=
rowsdata
.
name
;
oldFunctions
=
functionsInfo
[
2
]
;
$
(
'
#functionsDlg
'
).
dialog
(
'
open
'
).
dialog
(
'
setTitle
'
,
'
<img src="/js/easyui-1.3.5/themes/icons/pencil.png"/> 编辑功能信息
'
);
$
(
"
.window-mask
"
).
css
({
width
:
webW
,
height
:
webH
});
functionsID
=
rowsdata
.
id
;
functionsID
=
functionsInfo
[
0
]
;
//焦点在名称输入框==定焦在输入文字后面
$
(
"
#Name
"
).
val
(
""
).
focus
().
val
(
rowsdata
.
name
);
url
=
'
/functions/update?id=
'
+
rowsdata
.
id
;
$
(
"
#Name
"
).
val
(
""
).
focus
().
val
(
functionsInfo
[
2
]
);
url
=
'
/functions/update?id=
'
+
functionsInfo
[
0
]
;
}
//检查名称是否存在 ++ 重名无法提示问题需要跟进
...
...
erp_web/pages/manage/inOutItem.html
View file @
7cabc39a
...
...
@@ -136,18 +136,11 @@
{
title
:
'
类型
'
,
field
:
'
type
'
,
width
:
100
,
align
:
"
center
"
},
{
title
:
'
描述
'
,
field
:
'
remark
'
,
width
:
200
},
{
title
:
'
操作
'
,
field
:
'
op
'
,
align
:
"
center
"
,
width
:
130
,
formatter
:
function
(
value
,
rec
,
index
)
{
/**
* create by: qiankunpingtai
* create time: 2019/5/5 10:30
* website:https://qiankunpingtai.cn
* description:
* 修改效率低下的js实现
*/
title
:
'
操作
'
,
field
:
'
op
'
,
align
:
"
center
"
,
width
:
130
,
formatter
:
function
(
value
,
rec
)
{
var
str
=
''
;
//
var rowInfo = rec.id + 'AaBb' + rec.name + 'AaBb' + rec.type + 'AaBb' + rec.remark;
str
+=
'
<img src="/js/easyui-1.3.5/themes/icons/pencil.png" style="cursor: pointer;" onclick="editInOutItem(
\'
'
+
index
+
'
\'
);"/> <a onclick="editInOutItem(
\'
'
+
index
+
'
\'
);" style="text-decoration:none;color:black;" href="javascript:void(0)">编辑</a>
'
;
str
+=
'
<img src="/js/easyui-1.3.5/themes/icons/edit_remove.png" style="cursor: pointer;" onclick="deleteInOutItem(
\'
'
+
r
ec
.
id
+
'
\'
);"/> <a onclick="deleteInOutItem(
\'
'
+
r
ec
.
id
+
'
\'
);" style="text-decoration:none;color:black;" href="javascript:void(0)">删除</a>
'
;
var
rowInfo
=
rec
.
id
+
'
AaBb
'
+
rec
.
name
+
'
AaBb
'
+
rec
.
type
+
'
AaBb
'
+
rec
.
remark
;
str
+=
'
<img src="/js/easyui-1.3.5/themes/icons/pencil.png" style="cursor: pointer;" onclick="editInOutItem(
\'
'
+
rowInfo
+
'
\'
);"/> <a onclick="editInOutItem(
\'
'
+
rowInfo
+
'
\'
);" style="text-decoration:none;color:black;" href="javascript:void(0)">编辑</a>
'
;
str
+=
'
<img src="/js/easyui-1.3.5/themes/icons/edit_remove.png" style="cursor: pointer;" onclick="deleteInOutItem(
\'
'
+
r
owInfo
+
'
\'
);"/> <a onclick="deleteInOutItem(
\'
'
+
r
owInfo
+
'
\'
);" style="text-decoration:none;color:black;" href="javascript:void(0)">删除</a>
'
;
return
str
;
}
}
...
...
@@ -221,16 +214,16 @@
}
//删除收支项目
function
deleteInOutItem
(
i
d
)
{
function
deleteInOutItem
(
i
nOutItemInfo
)
{
$
.
messager
.
confirm
(
'
删除确认
'
,
'
确定要删除此收支项目吗?
'
,
function
(
r
)
{
if
(
r
)
{
//
var inOutItemTotalInfo = inOutItemInfo.split("AaBb");
var
inOutItemTotalInfo
=
inOutItemInfo
.
split
(
"
AaBb
"
);
$
.
ajax
({
type
:
"
post
"
,
url
:
"
/inOutItem/batchDeleteInOutItemByIds
"
,
dataType
:
"
json
"
,
data
:
({
ids
:
i
d
ids
:
i
nOutItemTotalInfo
[
0
]
}),
success
:
function
(
res
)
{
if
(
res
&&
res
.
code
==
200
)
{
...
...
@@ -238,7 +231,7 @@
}
else
{
if
(
res
&&
res
.
code
==
601
){
var
jsondata
=
{};
jsondata
.
ids
=
i
d
;
jsondata
.
ids
=
i
nOutItemTotalInfo
[
0
]
;
jsondata
.
deleteType
=
'
2
'
;
var
type
=
'
single
'
;
batDeleteInOutItemForceConfirm
(
res
,
"
/inOutItem/batchDeleteInOutItemByIds
"
,
jsondata
,
type
);
...
...
@@ -400,23 +393,21 @@
});
//编辑收支项目
function
editInOutItem
(
index
)
{
// var inOutItemInfo = inOutItemTotalInfo.split("AaBb");
//获取当前行
var
rowsdata
=
$
(
"
#tableData
"
).
datagrid
(
"
getRows
"
)[
index
];
function
editInOutItem
(
inOutItemTotalInfo
)
{
var
inOutItemInfo
=
inOutItemTotalInfo
.
split
(
"
AaBb
"
);
var
row
=
{
name
:
rowsdata
.
name
,
type
:
rowsdata
.
type
,
remark
:
rowsdata
.
remark
name
:
inOutItemInfo
[
1
]
,
type
:
inOutItemInfo
[
2
]
,
remark
:
inOutItemInfo
[
3
]
};
oldInOutItem
=
rowsdata
.
name
;
oldInOutItem
=
inOutItemInfo
[
1
]
;
$
(
'
#inOutItemDlg
'
).
dialog
(
'
open
'
).
dialog
(
'
setTitle
'
,
'
<img src="/js/easyui-1.3.5/themes/icons/pencil.png"/> 编辑收支项目
'
);
$
(
"
.window-mask
"
).
css
({
width
:
webW
,
height
:
webH
});
$
(
'
#inOutItemFM
'
).
form
(
'
load
'
,
row
);
inOutItemID
=
rowsdata
.
id
;
inOutItemID
=
inOutItemInfo
[
0
]
;
//焦点在名称输入框==定焦在输入文字后面
$
(
"
#inOutItem
"
).
val
(
""
).
focus
().
val
(
rowsdata
.
name
);
url
=
'
/inOutItem/update?id=
'
+
rowsdata
.
id
;
$
(
"
#inOutItem
"
).
val
(
""
).
focus
().
val
(
inOutItemInfo
[
1
]
);
url
=
'
/inOutItem/update?id=
'
+
inOutItemInfo
[
0
]
;
}
//检查收支项目 名称是否存在 ++ 重名无法提示问题需要跟进
...
...
erp_web/pages/manage/member.html
View file @
7cabc39a
...
...
@@ -13,7 +13,7 @@
<script
type=
"text/javascript"
src=
"/js/easyui-1.3.5/jquery.easyui.min.js"
></script>
<script
type=
"text/javascript"
src=
"/js/easyui-1.3.5/locale/easyui-lang-zh_CN.js"
></script>
<script
type=
"text/javascript"
src=
"/js/common/common.js"
></script>
<script
src=
"/js/pages/manage/
memb
er.js"
></script>
<script
src=
"/js/pages/manage/
suppli
er.js"
></script>
</head>
<body>
<!-- 数据显示table -->
...
...
erp_web/pages/manage/role.html
View file @
7cabc39a
...
...
@@ -117,17 +117,10 @@
{
field
:
'
id
'
,
width
:
35
,
align
:
"
center
"
,
checkbox
:
true
},
{
title
:
'
角色名称
'
,
field
:
'
name
'
,
width
:
200
},
{
title
:
'
操作
'
,
field
:
'
op
'
,
align
:
"
center
"
,
width
:
130
,
formatter
:
function
(
value
,
rec
,
index
)
{
/**
* create by: qiankunpingtai
* create time: 2019/5/5 10:30
* website:https://qiankunpingtai.cn
* description:
* 修改效率低下的js实现
*/
title
:
'
操作
'
,
field
:
'
op
'
,
align
:
"
center
"
,
width
:
130
,
formatter
:
function
(
value
,
rec
)
{
var
str
=
''
;
//
var rowInfo = rec.id + 'AaBb' + rec.name;
str
+=
'
<img src="/js/easyui-1.3.5/themes/icons/pencil.png" style="cursor: pointer;" onclick="editRole(
\'
'
+
index
+
'
\'
);"/> <a onclick="editRole(
\'
'
+
index
+
'
\'
);" style="text-decoration:none;color:black;" href="javascript:void(0)">编辑</a>
'
;
var
rowInfo
=
rec
.
id
+
'
AaBb
'
+
rec
.
name
;
str
+=
'
<img src="/js/easyui-1.3.5/themes/icons/pencil.png" style="cursor: pointer;" onclick="editRole(
\'
'
+
rowInfo
+
'
\'
);"/> <a onclick="editRole(
\'
'
+
rowInfo
+
'
\'
);" style="text-decoration:none;color:black;" href="javascript:void(0)">编辑</a>
'
;
str
+=
'
<img src="/js/easyui-1.3.5/themes/icons/edit_remove.png" style="cursor: pointer;" onclick="deleteRole(
'
+
rec
.
id
+
'
);"/> <a onclick="deleteRole(
'
+
rec
.
id
+
'
);" style="text-decoration:none;color:black;" href="javascript:void(0)">删除</a>
'
;
return
str
;
}
...
...
@@ -320,18 +313,18 @@
});
//编辑信息
function
editRole
(
index
)
{
// var roleInfo = roleTotalInfo.split("AaBb");
var
rowsdata
=
$
(
"
#tableData
"
).
datagrid
(
"
getRows
"
)[
index
];
$
(
"
#name
"
).
focus
().
val
(
rowsdata
.
name
);
function
editRole
(
roleTotalInfo
)
{
var
roleInfo
=
roleTotalInfo
.
split
(
"
AaBb
"
);
oldName
=
rowsdata
.
name
;
$
(
"
#name
"
).
focus
().
val
(
roleInfo
[
1
]);
oldName
=
roleInfo
[
1
];
$
(
'
#roleDlg
'
).
dialog
(
'
open
'
).
dialog
(
'
setTitle
'
,
'
<img src="/js/easyui-1.3.5/themes/icons/pencil.png"/> 编辑角色信息
'
);
$
(
"
.window-mask
"
).
css
({
width
:
webW
,
height
:
webH
});
roleID
=
ro
wsdata
.
id
;
roleID
=
ro
leInfo
[
0
]
;
//焦点在名称输入框==定焦在输入文字后面
$
(
"
#name
"
).
val
(
""
).
focus
().
val
(
ro
wsdata
.
name
);
url
=
'
/role/update?id=
'
+
ro
wsdata
.
id
;
$
(
"
#name
"
).
val
(
""
).
focus
().
val
(
ro
leInfo
[
1
]
);
url
=
'
/role/update?id=
'
+
ro
leInfo
[
0
]
;
}
//检查名称是否存在 ++ 重名无法提示问题需要跟进
...
...
@@ -393,7 +386,9 @@
url
:
"
/role/list
"
,
dataType
:
"
json
"
,
data
:
({
name
:
searchName
,
search
:
JSON
.
stringify
({
name
:
searchName
}),
currentPage
:
pageNo
,
pageSize
:
pageSize
}),
...
...
erp_web/pages/manage/roleFunctions.html
View file @
7cabc39a
...
...
@@ -48,17 +48,16 @@
}
}
//cnodes = cnodes.substring(0, cnodes.length - 1);
//
pnodes = pnodes.substring(0, pnodes.length - 1);
pnodes
=
pnodes
.
substring
(
0
,
pnodes
.
length
-
1
);
if
(
ctype
==
'
child
'
)
{
return
cnodes
;
}
else
if
(
"
all
"
){
return
cnodes
+
pnodes
;
}
else
{
return
pnodes
;
else
{
return
pnodes
}
}
;
};
$
(
function
()
{
...
...
@@ -85,7 +84,7 @@
info
:
JSON
.
stringify
({
type
:
type
,
keyid
:
url_id
,
value
:
GetNode
(
'
all
'
)
value
:
GetNode
(
'
child
'
)
})
},
dataType
:
"
json
"
,
...
...
erp_web/pages/manage/systemConfig.html
View file @
7cabc39a
...
...
@@ -133,18 +133,12 @@
}
},
{
title
:
'
操作
'
,
field
:
'
op
'
,
width
:
160
,
formatter
:
function
(
value
,
rec
,
index
)
{
/**
* create by: qiankunpingtai
* create time: 2019/5/6 9:33
* website:https://qiankunpingtai.cn
* description:
* 修改效率低下的js实现
*/
title
:
'
操作
'
,
field
:
'
op
'
,
width
:
160
,
formatter
:
function
(
value
,
rec
)
{
var
str
=
''
;
// var rowInfo = rec.id + 'AaBb' + rec.companyName + 'AaBb' + rec.companyContacts + 'AaBb' + rec.companyAddress
// + 'AaBb' + rec.companyTel + 'AaBb' + rec.companyFax + 'AaBb' + rec.companyPostCode;
str
+=
'
<img src="/js/easyui-1.3.5/themes/icons/pencil.png" style="cursor: pointer;" onclick="editSystemConfig(
\'
'
+
index
+
'
\'
);"/> <a onclick="editSystemConfig(
\'
'
+
index
+
'
\'
);" style="text-decoration:none;color:black;" href="javascript:void(0)">编辑</a>
'
;
var
rowInfo
=
rec
.
id
+
'
AaBb
'
+
rec
.
companyName
+
'
AaBb
'
+
rec
.
companyContacts
+
'
AaBb
'
+
rec
.
companyAddress
+
'
AaBb
'
+
rec
.
companyTel
+
'
AaBb
'
+
rec
.
companyFax
+
'
AaBb
'
+
rec
.
companyPostCode
+
'
AaBb
'
+
rec
.
depotFlag
+
'
AaBb
'
+
rec
.
customerFlag
;
str
+=
'
<img src="/js/easyui-1.3.5/themes/icons/pencil.png" style="cursor: pointer;" onclick="editSystemConfig(
\'
'
+
rowInfo
+
'
\'
);"/> <a onclick="editSystemConfig(
\'
'
+
rowInfo
+
'
\'
);" style="text-decoration:none;color:black;" href="javascript:void(0)">编辑</a>
'
;
str
+=
'
<img src="/js/easyui-1.3.5/themes/icons/edit_remove.png" style="cursor: pointer;" onclick="deleteSystemConfig(
'
+
rec
.
id
+
'
);"/> <a onclick="deleteSystemConfig(
'
+
rec
.
id
+
'
);" style="text-decoration:none;color:black;" href="javascript:void(0)">删除</a>
'
;
return
str
;
}
...
...
@@ -357,26 +351,26 @@
});
//编辑系统配置信息
function
editSystemConfig
(
index
)
{
// var systemConfigInfo = systemConfigTotalInfo.split("AaBb");
//获取当前行
var
rowsdata
=
$
(
"
#tableData
"
).
datagrid
(
"
getRows
"
)[
index
];
function
editSystemConfig
(
systemConfigTotalInfo
)
{
var
systemConfigInfo
=
systemConfigTotalInfo
.
split
(
"
AaBb
"
);
var
row
=
{
companyName
:
rowsdata
.
companyName
,
companyContacts
:
rowsdata
.
companyContacts
,
companyAddress
:
rowsdata
.
companyAddress
,
companyTel
:
rowsdata
.
companyTel
,
companyFax
:
rowsdata
.
companyFax
,
companyPostCode
:
rowsdata
.
companyPostCode
companyName
:
systemConfigInfo
[
1
]
,
companyContacts
:
systemConfigInfo
[
2
]
,
companyAddress
:
systemConfigInfo
[
3
]
,
companyTel
:
systemConfigInfo
[
4
]
,
companyFax
:
systemConfigInfo
[
5
]
,
companyPostCode
:
systemConfigInfo
[
6
]
};
oldCompanyName
=
rowsdata
.
companyName
;
oldCompanyName
=
systemConfigInfo
[
1
]
;
$
(
'
#systemConfigDlg
'
).
dialog
(
'
open
'
).
dialog
(
'
setTitle
'
,
'
<img src="/js/easyui-1.3.5/themes/icons/pencil.png"/> 编辑系统配置信息
'
);
$
(
"
.window-mask
"
).
css
({
width
:
webW
,
height
:
webH
});
$
(
'
#systemConfigFM
'
).
form
(
'
load
'
,
row
);
systemConfigId
=
rowsdata
.
id
;
systemConfigId
=
systemConfigInfo
[
0
]
;
//焦点在名称输入框==定焦在输入文字后面
$
(
"
#companyName
"
).
val
(
""
).
focus
().
val
(
rowsdata
.
companyName
);
url
=
'
/systemConfig/update?id=
'
+
rowsdata
.
id
;
$
(
"
#companyName
"
).
val
(
""
).
focus
().
val
(
systemConfigInfo
[
1
]);
$
(
"
#depotFlag
"
).
attr
(
"
checked
"
,
systemConfigInfo
[
7
]
==
'
1
'
?
true
:
false
);
$
(
"
#customerFlag
"
).
attr
(
"
checked
"
,
systemConfigInfo
[
8
]
==
'
1
'
?
true
:
false
);
url
=
'
/systemConfig/update?id=
'
+
systemConfigInfo
[
0
];
}
//检查系统配置 名称是否存在 ++ 重名无法提示问题需要跟进
...
...
erp_web/pages/manage/unit.html
View file @
7cabc39a
This diff is collapsed.
Click to expand it.
Prev
1
2
3
4
5
6
7
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