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
7e4cb15e
Commit
7e4cb15e
authored
Jun 29, 2017
by
季圣华
Browse files
单据增加非空提示
parent
b48f3546
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/main/webapp/js/pages/financial/financial_base.js
View file @
7e4cb15e
...
@@ -701,6 +701,74 @@
...
@@ -701,6 +701,74 @@
return
;
return
;
else
else
{
{
if
(
listTitle
===
"
收入单列表
"
){
if
(
!
$
(
'
#AccountId
'
).
val
()){
$
.
messager
.
alert
(
'
提示
'
,
'
请选择收款账户!
'
,
'
warning
'
);
return
;
}
if
(
!
$
(
'
#OrganId
'
).
combobox
(
'
getValue
'
)){
$
.
messager
.
alert
(
'
提示
'
,
'
请选择往来单位!
'
,
'
warning
'
);
return
;
}
if
(
!
$
(
'
#HandsPersonId
'
).
val
()){
$
.
messager
.
alert
(
'
提示
'
,
'
请选择经手人!
'
,
'
warning
'
);
return
;
}
}
else
if
(
listTitle
===
"
支出单列表
"
){
if
(
!
$
(
'
#AccountId
'
).
val
()){
$
.
messager
.
alert
(
'
提示
'
,
'
请选择付款账户!
'
,
'
warning
'
);
return
;
}
if
(
!
$
(
'
#OrganId
'
).
combobox
(
'
getValue
'
)){
$
.
messager
.
alert
(
'
提示
'
,
'
请选择往来单位!
'
,
'
warning
'
);
return
;
}
if
(
!
$
(
'
#HandsPersonId
'
).
val
()){
$
.
messager
.
alert
(
'
提示
'
,
'
请选择经手人!
'
,
'
warning
'
);
return
;
}
}
else
if
(
listTitle
===
"
收款单列表
"
){
if
(
!
$
(
'
#OrganId
'
).
combobox
(
'
getValue
'
)){
$
.
messager
.
alert
(
'
提示
'
,
'
请选择付款单位!
'
,
'
warning
'
);
return
;
}
if
(
!
$
(
'
#HandsPersonId
'
).
val
()){
$
.
messager
.
alert
(
'
提示
'
,
'
请选择经手人!
'
,
'
warning
'
);
return
;
}
}
else
if
(
listTitle
===
"
付款单列表
"
){
if
(
!
$
(
'
#OrganId
'
).
combobox
(
'
getValue
'
)){
$
.
messager
.
alert
(
'
提示
'
,
'
请选择收款单位!
'
,
'
warning
'
);
return
;
}
if
(
!
$
(
'
#HandsPersonId
'
).
val
()){
$
.
messager
.
alert
(
'
提示
'
,
'
请选择经手人!
'
,
'
warning
'
);
return
;
}
}
else
if
(
listTitle
===
"
转账单列表
"
){
if
(
!
$
(
'
#HandsPersonId
'
).
val
()){
$
.
messager
.
alert
(
'
提示
'
,
'
请选择经手人!
'
,
'
warning
'
);
return
;
}
if
(
!
$
(
'
#AccountId
'
).
val
()){
$
.
messager
.
alert
(
'
提示
'
,
'
请选择付款账户!
'
,
'
warning
'
);
return
;
}
}
else
if
(
listTitle
===
"
收预付款列表
"
){
if
(
!
$
(
'
#HandsPersonId
'
).
val
()){
$
.
messager
.
alert
(
'
提示
'
,
'
请选择经手人!
'
,
'
warning
'
);
return
;
}
if
(
!
$
(
'
#OrganId
'
).
combobox
(
'
getValue
'
)){
$
.
messager
.
alert
(
'
提示
'
,
'
请选择付款会员!
'
,
'
warning
'
);
return
;
}
}
var
OrganId
=
null
;
var
OrganId
=
null
;
var
ChangeAmount
=
$
.
trim
(
$
(
"
#ChangeAmount
"
).
val
());
var
ChangeAmount
=
$
.
trim
(
$
(
"
#ChangeAmount
"
).
val
());
var
TotalPrice
=
$
(
"
#accountHeadFM .datagrid-footer [field='EachAmount'] div
"
).
text
();
var
TotalPrice
=
$
(
"
#accountHeadFM .datagrid-footer [field='EachAmount'] div
"
).
text
();
...
...
src/main/webapp/js/pages/materials/in_out.js
View file @
7e4cb15e
...
@@ -918,8 +918,146 @@
...
@@ -918,8 +918,146 @@
{
{
if
(
!
$
(
'
#depotHeadFM
'
).
form
(
'
validate
'
))
if
(
!
$
(
'
#depotHeadFM
'
).
form
(
'
validate
'
))
return
;
return
;
else
else
{
{
//输入框提示
if
(
listTitle
===
"
采购入库列表
"
){
if
(
!
$
(
"
#ProjectId
"
).
val
()){
$
.
messager
.
alert
(
'
提示
'
,
'
请选择收货仓库!
'
,
'
warning
'
);
return
;
}
if
(
!
$
(
'
#OrganId
'
).
combobox
(
'
getValue
'
)){
$
.
messager
.
alert
(
'
提示
'
,
'
请选择供货单位!
'
,
'
warning
'
);
return
;
}
if
(
!
$
(
'
#HandsPersonId
'
).
val
()){
$
.
messager
.
alert
(
'
提示
'
,
'
请选择经手人!
'
,
'
warning
'
);
return
;
}
if
(
!
$
(
'
#AccountId
'
).
val
()){
$
.
messager
.
alert
(
'
提示
'
,
'
请选择付款账户!
'
,
'
warning
'
);
return
;
}
}
else
if
(
listTitle
===
"
零售退货列表
"
){
if
(
!
$
(
"
#ProjectId
"
).
val
()){
$
.
messager
.
alert
(
'
提示
'
,
'
请选择收货仓库!
'
,
'
warning
'
);
return
;
}
if
(
!
$
(
'
#AccountId
'
).
val
()){
$
.
messager
.
alert
(
'
提示
'
,
'
请选择付款账户!
'
,
'
warning
'
);
return
;
}
if
(
!
$
(
'
#HandsPersonId
'
).
val
()){
$
.
messager
.
alert
(
'
提示
'
,
'
请选择经手人!
'
,
'
warning
'
);
return
;
}
}
else
if
(
listTitle
===
"
销售退货列表
"
){
if
(
!
$
(
"
#ProjectId
"
).
val
()){
$
.
messager
.
alert
(
'
提示
'
,
'
请选择收货仓库!
'
,
'
warning
'
);
return
;
}
if
(
!
$
(
'
#OrganId
'
).
combobox
(
'
getValue
'
)){
$
.
messager
.
alert
(
'
提示
'
,
'
请选择退货单位!
'
,
'
warning
'
);
return
;
}
if
(
!
$
(
'
#HandsPersonId
'
).
val
()){
$
.
messager
.
alert
(
'
提示
'
,
'
请选择经手人!
'
,
'
warning
'
);
return
;
}
if
(
!
$
(
'
#AccountId
'
).
val
()){
$
.
messager
.
alert
(
'
提示
'
,
'
请选择付款账户!
'
,
'
warning
'
);
return
;
}
}
else
if
(
listTitle
===
"
其它入库列表
"
){
if
(
!
$
(
"
#ProjectId
"
).
val
()){
$
.
messager
.
alert
(
'
提示
'
,
'
请选择收货仓库!
'
,
'
warning
'
);
return
;
}
if
(
!
$
(
'
#OrganId
'
).
combobox
(
'
getValue
'
)){
$
.
messager
.
alert
(
'
提示
'
,
'
请选择往来单位!
'
,
'
warning
'
);
return
;
}
if
(
!
$
(
'
#HandsPersonId
'
).
val
()){
$
.
messager
.
alert
(
'
提示
'
,
'
请选择经手人!
'
,
'
warning
'
);
return
;
}
}
else
if
(
listTitle
===
"
零售出库列表
"
){
if
(
!
$
(
"
#ProjectId
"
).
val
()){
$
.
messager
.
alert
(
'
提示
'
,
'
请选择发货仓库!
'
,
'
warning
'
);
return
;
}
if
(
!
$
(
'
#AccountId
'
).
val
()){
$
.
messager
.
alert
(
'
提示
'
,
'
请选择收款账户!
'
,
'
warning
'
);
return
;
}
if
(
!
$
(
'
#HandsPersonId
'
).
val
()){
$
.
messager
.
alert
(
'
提示
'
,
'
请选择经手人!
'
,
'
warning
'
);
return
;
}
}
else
if
(
listTitle
===
"
销售出库列表
"
){
if
(
!
$
(
"
#ProjectId
"
).
val
()){
$
.
messager
.
alert
(
'
提示
'
,
'
请选择发货仓库!
'
,
'
warning
'
);
return
;
}
if
(
!
$
(
'
#OrganId
'
).
combobox
(
'
getValue
'
)){
$
.
messager
.
alert
(
'
提示
'
,
'
请选择购买单位!
'
,
'
warning
'
);
return
;
}
if
(
!
$
(
'
#AccountId
'
).
val
()){
$
.
messager
.
alert
(
'
提示
'
,
'
请选择收款账户!
'
,
'
warning
'
);
return
;
}
}
else
if
(
listTitle
===
"
采购退货列表
"
){
if
(
!
$
(
"
#ProjectId
"
).
val
()){
$
.
messager
.
alert
(
'
提示
'
,
'
请选择发货仓库!
'
,
'
warning
'
);
return
;
}
if
(
!
$
(
'
#OrganId
'
).
combobox
(
'
getValue
'
)){
$
.
messager
.
alert
(
'
提示
'
,
'
请选择收货单位!
'
,
'
warning
'
);
return
;
}
if
(
!
$
(
'
#HandsPersonId
'
).
val
()){
$
.
messager
.
alert
(
'
提示
'
,
'
请选择经手人!
'
,
'
warning
'
);
return
;
}
if
(
!
$
(
'
#AccountId
'
).
val
()){
$
.
messager
.
alert
(
'
提示
'
,
'
请选择收款账户!
'
,
'
warning
'
);
return
;
}
}
else
if
(
listTitle
===
"
其它出库列表
"
){
if
(
!
$
(
"
#ProjectId
"
).
val
()){
$
.
messager
.
alert
(
'
提示
'
,
'
请选择发货仓库!
'
,
'
warning
'
);
return
;
}
if
(
!
$
(
'
#OrganId
'
).
combobox
(
'
getValue
'
)){
$
.
messager
.
alert
(
'
提示
'
,
'
请选择往来单位!
'
,
'
warning
'
);
return
;
}
if
(
!
$
(
'
#HandsPersonId
'
).
val
()){
$
.
messager
.
alert
(
'
提示
'
,
'
请选择经手人!
'
,
'
warning
'
);
return
;
}
}
else
if
(
listTitle
===
"
调拨出库列表
"
){
if
(
!
$
(
"
#ProjectId
"
).
val
()){
$
.
messager
.
alert
(
'
提示
'
,
'
请选择发货仓库!
'
,
'
warning
'
);
return
;
}
if
(
!
$
(
'
#HandsPersonId
'
).
val
()){
$
.
messager
.
alert
(
'
提示
'
,
'
请选择经手人!
'
,
'
warning
'
);
return
;
}
if
(
!
$
(
"
#AllocationProjectId
"
).
val
()){
$
.
messager
.
alert
(
'
提示
'
,
'
请选择收货仓库!
'
,
'
warning
'
);
return
;
}
}
var
OrganId
=
null
,
AllocationProjectId
=
null
;
var
OrganId
=
null
,
AllocationProjectId
=
null
;
var
ChangeAmount
=
$
.
trim
(
$
(
"
#ChangeAmount
"
).
val
());
var
ChangeAmount
=
$
.
trim
(
$
(
"
#ChangeAmount
"
).
val
());
var
TotalPrice
=
$
(
"
#depotHeadFM .datagrid-footer [field='AllPrice'] div
"
).
text
();
var
TotalPrice
=
$
(
"
#depotHeadFM .datagrid-footer [field='AllPrice'] div
"
).
text
();
...
...
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