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
2ff7c900
Commit
2ff7c900
authored
Dec 22, 2018
by
季圣华
Browse files
解决经手人不能新增的问题
parent
41504265
Changes
1
Hide whitespace changes
Inline
Side-by-side
erp_web/pages/materials/person.html
View file @
2ff7c900
...
@@ -54,6 +54,13 @@
...
@@ -54,6 +54,13 @@
closed=
"true"
buttons=
"#dlg-buttons"
modal=
"true"
cache=
"false"
collapsible=
"false"
closable=
"true"
>
closed=
"true"
buttons=
"#dlg-buttons"
modal=
"true"
cache=
"false"
collapsible=
"false"
closable=
"true"
>
<form
id=
"personFM"
method=
"post"
novalidate
>
<form
id=
"personFM"
method=
"post"
novalidate
>
<table>
<table>
<tr>
<td>
姓名
</td>
<td
style=
"padding:5px"
>
<input
name=
"Name"
id=
"Name"
class=
"easyui-validatebox"
data-options=
"required:true,validType:'length[2,30]'"
style=
"width: 230px;height: 20px"
/>
</td>
</tr>
<tr>
<tr>
<td>
类型
</td>
<td>
类型
</td>
<td
style=
"padding:5px"
>
<td
style=
"padding:5px"
>
...
@@ -65,13 +72,6 @@
...
@@ -65,13 +72,6 @@
</select>
</select>
</td>
</td>
</tr>
</tr>
<tr>
<td>
姓名
</td>
<td
style=
"padding:5px"
>
<input
name=
"Name"
id=
"Name"
class=
"easyui-validatebox"
data-options=
"required:true,validType:'length[2,30]'"
style=
"width: 230px;height: 20px"
/>
</td>
</tr>
</table>
</table>
</form>
</form>
</div>
</div>
...
@@ -173,7 +173,7 @@
...
@@ -173,7 +173,7 @@
var
str
=
''
;
var
str
=
''
;
var
rowInfo
=
rec
.
id
+
'
AaBb
'
+
rec
.
name
+
'
AaBb
'
+
rec
.
type
;
var
rowInfo
=
rec
.
id
+
'
AaBb
'
+
rec
.
name
+
'
AaBb
'
+
rec
.
type
;
str
+=
'
<img src="/js/easyui-1.3.5/themes/icons/pencil.png" style="cursor: pointer;" onclick="editPerson(
\'
'
+
rowInfo
+
'
\'
);"/> <a onclick="editPerson(
\'
'
+
rowInfo
+
'
\'
);" style="text-decoration:none;color:black;" href="javascript:void(0)">编辑</a>
'
;
str
+=
'
<img src="/js/easyui-1.3.5/themes/icons/pencil.png" style="cursor: pointer;" onclick="editPerson(
\'
'
+
rowInfo
+
'
\'
);"/> <a onclick="editPerson(
\'
'
+
rowInfo
+
'
\'
);" style="text-decoration:none;color:black;" href="javascript:void(0)">编辑</a>
'
;
str
+=
'
<img src="/js/easyui-1.3.5/themes/icons/edit_remove.png" style="cursor: pointer;" onclick="deletePerson(
'
+
rec
.
id
+
'
);"/> <a onclick="deletePerson(
'
+
rec
.
I
d
+
'
);" style="text-decoration:none;color:black;" href="javascript:void(0)">删除</a>
'
;
str
+=
'
<img src="/js/easyui-1.3.5/themes/icons/edit_remove.png" style="cursor: pointer;" onclick="deletePerson(
'
+
rec
.
id
+
'
);"/> <a onclick="deletePerson(
'
+
rec
.
i
d
+
'
);" style="text-decoration:none;color:black;" href="javascript:void(0)">删除</a>
'
;
return
str
;
return
str
;
}
}
}
}
...
@@ -343,7 +343,7 @@
...
@@ -343,7 +343,7 @@
dataType
:
"
json
"
,
dataType
:
"
json
"
,
async
:
false
,
async
:
false
,
data
:
({
data
:
({
info
:
JSON
.
stringify
(
$
(
"
#
depot
FM
"
).
serializeObject
())
info
:
JSON
.
stringify
(
$
(
"
#
person
FM
"
).
serializeObject
())
}),
}),
success
:
function
(
res
)
{
success
:
function
(
res
)
{
if
(
res
&&
res
.
code
===
200
)
{
if
(
res
&&
res
.
code
===
200
)
{
...
@@ -365,15 +365,15 @@
...
@@ -365,15 +365,15 @@
function
editPerson
(
personTotalInfo
)
{
function
editPerson
(
personTotalInfo
)
{
var
personInfo
=
personTotalInfo
.
split
(
"
AaBb
"
);
var
personInfo
=
personTotalInfo
.
split
(
"
AaBb
"
);
$
(
"
#
Typ
e
"
).
val
(
personInfo
[
1
]);
$
(
"
#
Nam
e
"
).
val
(
personInfo
[
1
]);
$
(
"
#
Nam
e
"
).
val
(
personInfo
[
2
]);
$
(
"
#
Typ
e
"
).
val
(
personInfo
[
2
]);
//oldPerson = personInfo[1];
//oldPerson = personInfo[1];
$
(
'
#personDlg
'
).
dialog
(
'
open
'
).
dialog
(
'
setTitle
'
,
'
<img src="/js/easyui-1.3.5/themes/icons/pencil.png"/> 编辑经手人信息
'
);
$
(
'
#personDlg
'
).
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
});
personID
=
personInfo
[
0
];
personID
=
personInfo
[
0
];
//焦点在名称输入框==定焦在输入文字后面
//焦点在名称输入框==定焦在输入文字后面
$
(
"
#Name
"
).
val
(
""
).
focus
().
val
(
personInfo
[
2
]);
$
(
"
#Name
"
).
val
(
""
).
focus
().
val
(
personInfo
[
1
]);
url
=
'
/person/update?id=
'
+
personInfo
[
0
];
url
=
'
/person/update?id=
'
+
personInfo
[
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