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
b49ce215
Commit
b49ce215
authored
May 03, 2019
by
季圣华
Browse files
优化供应商和商品的单据填写框
parent
f69369dc
Changes
5
Hide whitespace changes
Inline
Side-by-side
erp_web/js/common/common.js
View file @
b49ce215
...
@@ -275,4 +275,16 @@
...
@@ -275,4 +275,16 @@
}
}
}
}
return
newArr
;
return
newArr
;
}
/**
* 验证单据
* @param id
*/
function
validateForm
(
id
)
{
if
(
!
$
(
'
#
'
+
id
).
form
(
'
validate
'
))
{
return
true
;
}
else
{
return
false
;
}
}
}
\ No newline at end of file
erp_web/js/pages/manage/supplier.js
View file @
b49ce215
...
@@ -457,6 +457,9 @@
...
@@ -457,6 +457,9 @@
});
});
//保存信息
//保存信息
$
(
"
#saveSupplier
"
).
off
(
"
click
"
).
on
(
"
click
"
,
function
()
{
$
(
"
#saveSupplier
"
).
off
(
"
click
"
).
on
(
"
click
"
,
function
()
{
if
(
validateForm
(
"
supplierFM
"
))
{
return
;
}
if
(
checkSupplierName
())
{
if
(
checkSupplierName
())
{
return
;
return
;
}
}
...
...
erp_web/pages/manage/customer.html
View file @
b49ce215
...
@@ -120,9 +120,9 @@
...
@@ -120,9 +120,9 @@
<td
style=
"padding:1px"
>
<td
style=
"padding:1px"
>
<input
name=
"taxNum"
id=
"taxNum"
class=
"easyui-validatebox"
style=
"width: 160px;height: 20px"
/>
<input
name=
"taxNum"
id=
"taxNum"
class=
"easyui-validatebox"
style=
"width: 160px;height: 20px"
/>
</td>
</td>
<td>
税率
</td>
<td>
税率
(%)
</td>
<td
style=
"padding:1px"
>
<td
style=
"padding:1px"
>
<input
name=
"taxRate"
id=
"taxRate"
class=
"easyui-
validatebox
"
style=
"width: 160px;height: 20px"
/>
<input
name=
"taxRate"
id=
"taxRate"
class=
"easyui-
numberbox"
data-options=
"validType:'length[1,2]'
"
style=
"width: 160px;height: 20px"
/>
</td>
</td>
</tr>
</tr>
<tr>
<tr>
...
...
erp_web/pages/manage/vendor.html
View file @
b49ce215
...
@@ -120,9 +120,9 @@
...
@@ -120,9 +120,9 @@
<td
style=
"padding:1px"
>
<td
style=
"padding:1px"
>
<input
name=
"taxNum"
id=
"taxNum"
class=
"easyui-validatebox"
style=
"width: 160px;height: 20px"
/>
<input
name=
"taxNum"
id=
"taxNum"
class=
"easyui-validatebox"
style=
"width: 160px;height: 20px"
/>
</td>
</td>
<td>
税率
</td>
<td>
税率
(%)
</td>
<td
style=
"padding:1px"
>
<td
style=
"padding:1px"
>
<input
name=
"taxRate"
id=
"taxRate"
class=
"easyui-
validatebox
"
style=
"width: 160px;height: 20px"
/>
<input
name=
"taxRate"
id=
"taxRate"
class=
"easyui-
numberbox"
data-options=
"validType:'length[1,2]'
"
style=
"width: 160px;height: 20px"
/>
</td>
</td>
</tr>
</tr>
<tr>
<tr>
...
...
erp_web/pages/materials/material.html
View file @
b49ce215
...
@@ -1109,6 +1109,7 @@
...
@@ -1109,6 +1109,7 @@
$
(
"
.window-mask
"
).
css
({
width
:
webW
,
height
:
webH
});
$
(
"
.window-mask
"
).
css
({
width
:
webW
,
height
:
webH
});
$
(
"
#Name
"
).
val
(
""
).
focus
();
$
(
"
#Name
"
).
val
(
""
).
focus
();
$
(
"
#manyUnitCheck
"
).
prop
(
"
checked
"
,
false
);
$
(
"
#manyUnitCheck
"
).
prop
(
"
checked
"
,
false
);
$
(
"
#manyUnit
"
).
val
(
""
);
//置空
//当前为不选中状态
//当前为不选中状态
$
(
"
#Unit
"
).
show
();
$
(
"
#Unit
"
).
show
();
$
(
"
#manyUnit
"
).
hide
();
$
(
"
#manyUnit
"
).
hide
();
...
@@ -1200,6 +1201,10 @@
...
@@ -1200,6 +1201,10 @@
$
.
messager
.
alert
(
'
提示
'
,
'
型号不能为空!
'
,
'
warning
'
);
$
.
messager
.
alert
(
'
提示
'
,
'
型号不能为空!
'
,
'
warning
'
);
return
;
return
;
}
}
if
(
!
$
(
"
#Unit
"
).
val
()
&&
!
$
(
"
#manyUnit
"
).
val
())
{
$
.
messager
.
alert
(
'
提示
'
,
'
单位为必填项!
'
,
'
warning
'
);
return
;
}
if
(
checkIsExist
())
{
if
(
checkIsExist
())
{
return
;
return
;
}
}
...
@@ -1283,9 +1288,9 @@
...
@@ -1283,9 +1288,9 @@
$
(
"
#Color
"
).
focus
().
val
(
materialInfo
[
11
]);
$
(
"
#Color
"
).
focus
().
val
(
materialInfo
[
11
]);
$
(
"
#EnableSerialNumber
"
).
val
(
materialInfo
[
24
]
==
'
1
'
?
'
1
'
:
'
0
'
);
$
(
"
#EnableSerialNumber
"
).
val
(
materialInfo
[
24
]
==
'
1
'
?
'
1
'
:
'
0
'
);
//商品类别id
//商品类别id
$
(
"
#parentid
"
).
val
(
materialInfo
[
14
]);
$
(
"
#parentid
"
).
val
(
materialInfo
[
14
]
==
"
undefined
"
?
""
:
materialInfo
[
14
]
);
//商品类别名称
//商品类别名称
$
(
"
#parentName
"
).
val
(
materialInfo
[
15
]);
$
(
"
#parentName
"
).
val
(
materialInfo
[
15
]
==
"
undefined
"
?
""
:
materialInfo
[
15
]
);
mId
=
materialInfo
[
14
];
mId
=
materialInfo
[
14
];
mName
=
materialInfo
[
15
];
mName
=
materialInfo
[
15
];
$
(
"
#Packing
"
).
focus
().
val
(
materialInfo
[
12
]);
$
(
"
#Packing
"
).
focus
().
val
(
materialInfo
[
12
]);
...
...
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