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
97190eed
Commit
97190eed
authored
Nov 12, 2017
by
季圣华
Browse files
修复'单位'为空的bug
parent
bb03e84f
Changes
1
Show whitespace changes
Inline
Side-by-side
src/main/webapp/js/pages/materials/in_out.js
View file @
97190eed
...
@@ -915,6 +915,7 @@
...
@@ -915,6 +915,7 @@
body
.
find
(
"
[field='Unit']
"
).
find
(
input
).
val
(
unitSetInput
).
attr
(
"
data-ratio
"
,
loadRatio
);
//设置-首选单位
body
.
find
(
"
[field='Unit']
"
).
find
(
input
).
val
(
unitSetInput
).
attr
(
"
data-ratio
"
,
loadRatio
);
//设置-首选单位
body
.
find
(
"
[field='Unit']
"
).
find
(
input
).
off
(
"
click
"
).
on
(
"
click
"
,
function
(){
body
.
find
(
"
[field='Unit']
"
).
find
(
input
).
off
(
"
click
"
).
on
(
"
click
"
,
function
(){
if
(
basicUnit
&&
otherUnit
)
{
var
self
=
this
;
var
self
=
this
;
//定义模版
//定义模版
var
temp
=
"
<div class='unit-list'>
"
;
var
temp
=
"
<div class='unit-list'>
"
;
...
@@ -976,6 +977,7 @@
...
@@ -976,6 +977,7 @@
$
(
"
.datagrid-body
"
).
off
(
"
click
"
).
on
(
"
click
"
,
function
(){
$
(
"
.datagrid-body
"
).
off
(
"
click
"
).
on
(
"
click
"
,
function
(){
$
(
'
.unit-list
'
).
remove
();
//移除计量单位列表
$
(
'
.unit-list
'
).
remove
();
//移除计量单位列表
});
});
}
});
});
}
}
var
detailPrice
=
0
;
//明细列表-单价
var
detailPrice
=
0
;
//明细列表-单价
...
...
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