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
66d4b2fc
Commit
66d4b2fc
authored
Jan 08, 2017
by
季圣华
Browse files
优化7张进销存录入单据
parent
e360811e
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
WebRoot/js/pages/materials/in_out.js
View file @
66d4b2fc
...
...
@@ -311,7 +311,8 @@
var
rowInfo
=
rec
.
Id
+
'
AaBb
'
+
rec
.
ProjectId
+
'
AaBb
'
+
rec
.
Number
+
'
AaBb
'
+
rec
.
OperPersonName
+
'
AaBb
'
+
rec
.
OperTime
+
'
AaBb
'
+
rec
.
OrganId
+
'
AaBb
'
+
rec
.
HandsPersonId
+
'
AaBb
'
+
rec
.
AccountId
+
'
AaBb
'
+
rec
.
ChangeAmount
+
'
AaBb
'
+
rec
.
Remark
+
'
AaBb
'
+
rec
.
ProjectName
+
'
AaBb
'
+
rec
.
OrganName
+
'
AaBb
'
+
rec
.
HandsPersonName
+
'
AaBb
'
+
rec
.
AccountName
+
'
AaBb
'
+
rec
.
TotalPrice
;
+
'
AaBb
'
+
rec
.
ProjectName
+
'
AaBb
'
+
rec
.
OrganName
+
'
AaBb
'
+
rec
.
HandsPersonName
+
'
AaBb
'
+
rec
.
AccountName
+
'
AaBb
'
+
rec
.
TotalPrice
+
'
AaBb
'
+
rec
.
AllocationProjectId
+
'
AaBb
'
+
rec
.
AllocationProjectName
;
if
(
1
==
value
)
{
str
+=
'
<img src="
'
+
path
+
'
/js/easyui-1.3.5/themes/icons/list.png" style="cursor: pointer;" onclick="showDepotHead(
\'
'
+
rowInfo
+
'
\'
);"/> <a onclick="showDepotHead(
\'
'
+
rowInfo
+
'
\'
);" style="text-decoration:none;color:black;" href="javascript:void(0)">查看</a>
'
;
...
...
@@ -662,7 +663,7 @@
$
(
"
#ChangeAmount
"
).
attr
(
"
data-changeamount
"
,
depotHeadInfo
[
8
]);
$
(
"
#Remark
"
).
val
(
depotHeadInfo
[
9
]);
var
TotalPrice
=
depotHeadInfo
[
14
];
$
(
"
#AllocationProjectId
"
).
val
(
depotHeadInfo
[
15
]);
//orgDepotHead = depotHeadInfo[1];
var
editTitle
=
listTitle
.
replace
(
"
列表
"
,
"
信息
"
);
$
(
'
#depotHeadDlg
'
).
dialog
(
'
open
'
).
dialog
(
'
setTitle
'
,
'
<img src="
'
+
path
+
'
/js/easyui-1.3.5/themes/icons/pencil.png"/> 编辑
'
+
editTitle
);
...
...
@@ -686,6 +687,7 @@
$
(
"
#ChangeAmountShow
"
).
text
(
depotHeadInfo
[
8
]);
$
(
"
#RemarkShow
"
).
text
(
depotHeadInfo
[
9
]);
var
TotalPrice
=
depotHeadInfo
[
14
];
$
(
"
#AllocationProjectIdShow
"
).
text
(
depotHeadInfo
[
16
]);
var
showTitle
=
listTitle
.
replace
(
"
列表
"
,
"
信息
"
);
$
(
'
#depotHeadDlgShow
'
).
dialog
(
'
open
'
).
dialog
(
'
setTitle
'
,
'
<img src="
'
+
path
+
'
/js/easyui-1.3.5/themes/icons/list.png"/> 查看
'
+
showTitle
);
$
(
"
.window-mask
"
).
css
({
width
:
webW
,
height
:
webH
});
...
...
@@ -737,6 +739,13 @@
return
;
else
{
var
OrganId
=
null
,
AllocationProjectId
=
null
;
if
(
listSubType
!==
"
调拨
"
){
OrganId
=
$
(
'
#OrganId
'
).
combobox
(
'
getValue
'
);
}
else
{
AllocationProjectId
=
$
.
trim
(
$
(
"
#AllocationProjectId
"
).
val
());
//收货仓库-对方
}
$
.
ajax
({
type
:
"
post
"
,
url
:
url
,
...
...
@@ -745,10 +754,11 @@
data
:
({
Type
:
listType
,
SubType
:
listSubType
,
ProjectId
:
$
.
trim
(
$
(
"
#ProjectId
"
).
val
()),
Number
:
$
.
trim
(
$
(
"
#Number
"
).
val
()),
ProjectId
:
$
.
trim
(
$
(
"
#ProjectId
"
).
val
()),
AllocationProjectId
:
AllocationProjectId
,
Number
:
$
.
trim
(
$
(
"
#Number
"
).
val
()),
OperTime
:
$
(
"
#OperTime
"
).
val
(),
OrganId
:
$
(
'
#
OrganId
'
).
combobox
(
'
getValue
'
)
,
OrganId
:
OrganId
,
HandsPersonId
:
$
.
trim
(
$
(
"
#HandsPersonId
"
).
val
()),
AccountId
:
$
.
trim
(
$
(
"
#AccountId
"
).
val
()),
ChangeAmount
:
$
.
trim
(
$
(
"
#ChangeAmount
"
).
val
()),
...
...
@@ -760,18 +770,25 @@
{
if
(
tipInfo
)
{
function
closeDialog
(){
$
(
'
#depotHeadDlg
'
).
dialog
(
'
close
'
);
var
opts
=
$
(
"
#tableData
"
).
datagrid
(
'
options
'
);
showDepotHeadDetails
(
opts
.
pageNumber
,
opts
.
pageSize
);
}
//保存明细记录
if
(
depotHeadID
==
0
)
{
getMaxId
();
//查找最大的Id
accept
(
depotHeadMaxId
);
//新增
changeAmountFn
();
//改变账户金额
//changeAmountFn(); //改变账户金额
closeDialog
();
}
else
{
accept
(
depotHeadID
);
//修改
changeAmountFn
();
//改变账户金额
}
//changeAmountFn(); //改变账户金额
closeDialog
();
}
}
else
{
...
...
@@ -1047,9 +1064,7 @@
currentAmount
:
currentAmount
+
ChangeAmount
-
oldChangeAmount
},
success
:
function
(
res
){
$
(
'
#depotHeadDlg
'
).
dialog
(
'
close
'
);
var
opts
=
$
(
"
#tableData
"
).
datagrid
(
'
options
'
);
showDepotHeadDetails
(
opts
.
pageNumber
,
opts
.
pageSize
);
},
error
:
function
(){
$
.
messager
.
alert
(
'
提示
'
,
'
请检查网络连接!
'
,
'
error
'
);
...
...
WebRoot/pages/materials/allocation_out_list.jsp
View file @
66d4b2fc
This diff is collapsed.
Click to expand it.
WebRoot/pages/materials/other_in_list.jsp
View file @
66d4b2fc
This diff is collapsed.
Click to expand it.
WebRoot/pages/materials/other_out_list.jsp
View file @
66d4b2fc
This diff is collapsed.
Click to expand it.
WebRoot/pages/materials/purchase_back_list.jsp
View file @
66d4b2fc
This diff is collapsed.
Click to expand it.
WebRoot/pages/materials/sale_out_list.jsp
View file @
66d4b2fc
This diff is collapsed.
Click to expand it.
WebRoot/pages/user/password.jsp
View file @
66d4b2fc
...
...
@@ -30,13 +30,13 @@
<span
id=
"orgTipMsg"
></span>
</div>
<div
class=
"fitem"
style=
"padding:5px"
>
<label
id=
"newPassword"
>
密
码
</label>
<label
id=
"newPassword"
>
重设密
码
</label>
<input
type=
"password"
name=
"password"
id=
"password"
class=
"easyui-validatebox"
data-options=
"required:true,validType:'length[5,20]'"
style=
"width: 230px;height: 20px"
missingMessage=
"请填写新密码"
/>
<span
id=
"orgTipMsg"
></span>
</div>
<div
class=
"fitem"
style=
"padding:5px"
>
<label
id=
"repasswordLabel"
>
确认密码
</label>
<input
type=
"password"
name=
"repassword"
id=
"repassword"
class=
"easyui-validatebox"
style=
"width: 230px;height: 20px"
required=
"true"
class=
"easyui-validatebox"
validType=
"equals['#password']"
missingMessage=
"请再次填写新密码"
invalidMessage=
"
确认
密码
与
输入
密码
不一致"
/>
<label
id=
"repasswordLabel"
>
再输一遍
</label>
<input
type=
"password"
name=
"repassword"
id=
"repassword"
class=
"easyui-validatebox"
style=
"width: 230px;height: 20px"
required=
"true"
class=
"easyui-validatebox"
validType=
"equals['#password']"
missingMessage=
"请再次填写新密码"
invalidMessage=
"
两次
密码输入不一致"
/>
<span
id=
"tipMsg"
></span>
</div>
<input
type=
"hidden"
name=
"clientIp"
id=
"clientIp"
value=
"
<%=
clientIp
%>
"
/>
...
...
@@ -58,27 +58,9 @@
return
false
;
}
});
browserFit
();
$
(
"
#userDlg
"
).
panel
({
height
:
webH
-
35
});
});
//浏览器适配
function
browserFit
()
{
if
(
getOs
()
==
'
MSIE
'
)
{
$
(
"
#passwordLabel
"
).
empty
().
append
(
"
原始密码
"
);
$
(
"
#newPassword
"
).
empty
().
append
(
"
密 码
"
);
$
(
"
#repasswordLabel
"
).
empty
().
append
(
"
确认密码
"
);
}
else
{
$
(
"
#passwordLabel
"
).
empty
().
append
(
"
原始密码
"
);
$
(
"
#newPassword
"
).
empty
().
append
(
"
密 码
"
);
$
(
"
#repasswordLabel
"
).
empty
().
append
(
"
确认密码
"
);
}
}
$
(
"
#cancelpassword
"
).
unbind
().
bind
({
click
:
function
()
{
...
...
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