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
0cf5a5e4
Commit
0cf5a5e4
authored
Mar 21, 2019
by
qiankunpingtai
Browse files
修改不必要的focus()使用
parent
a003ce03
Changes
1
Hide whitespace changes
Inline
Side-by-side
erp_web/pages/manage/serialNumber.html
View file @
0cf5a5e4
...
@@ -206,7 +206,7 @@
...
@@ -206,7 +206,7 @@
* website:http://39.105.146.63/symphony/
* website:http://39.105.146.63/symphony/
* description:
* description:
* 对于每次拼接字符串作为参数传递
* 对于每次拼接字符串作为参数传递
* 再对字符串分解获取数据的方式,个人感觉效率是很高,实现也不优雅
* 再对字符串分解获取数据的方式,个人感觉效率
不
是很高,实现也不优雅
* 在此使用传递index,然后根据index获取数据的方式替代
* 在此使用传递index,然后根据index获取数据的方式替代
*
*
*/
*/
...
@@ -468,11 +468,11 @@
...
@@ -468,11 +468,11 @@
function
editSerialNumber
(
index
)
{
function
editSerialNumber
(
index
)
{
//获取当前行
//获取当前行
var
rowsdata
=
$
(
"
#tableData
"
).
datagrid
(
"
getRows
"
)[
index
];
var
rowsdata
=
$
(
"
#tableData
"
).
datagrid
(
"
getRows
"
)[
index
];
$
(
"
#serialNumberId
"
).
focus
().
val
(
rowsdata
.
serialNumberId
);
$
(
"
#serialNumberId
"
).
val
(
rowsdata
.
serialNumberId
);
$
(
"
#materialId
"
).
focus
().
val
(
rowsdata
.
materialId
);
$
(
"
#materialId
"
).
val
(
rowsdata
.
materialId
);
$
(
"
#materialName
"
).
focus
().
val
(
rowsdata
.
materialName
);
$
(
"
#materialName
"
).
focus
().
val
(
rowsdata
.
materialName
);
$
(
"
#serialNumber
"
).
focus
().
val
(
rowsdata
.
serialNumber
);
$
(
"
#serialNumber
"
).
val
(
rowsdata
.
serialNumber
);
$
(
"
#remark
"
).
focus
().
val
(
rowsdata
.
remark
);
$
(
"
#remark
"
).
val
(
rowsdata
.
remark
);
$
(
'
#serialNumberDlg
'
).
dialog
(
'
open
'
).
dialog
(
'
setTitle
'
,
'
<img src="/js/easyui-1.3.5/themes/icons/pencil.png"/> 编辑序列号信息
'
);
$
(
'
#serialNumberDlg
'
).
dialog
(
'
open
'
).
dialog
(
'
setTitle
'
,
'
<img src="/js/easyui-1.3.5/themes/icons/pencil.png"/> 编辑序列号信息
'
);
$
(
"
.window-mask
"
).
css
({
width
:
webW
,
height
:
webH
});
$
(
"
.window-mask
"
).
css
({
width
:
webW
,
height
:
webH
});
//选中基本资料tab
//选中基本资料tab
...
...
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