解决经手人不能新增的问题
This commit is contained in:
@@ -54,6 +54,13 @@
|
||||
closed="true" buttons="#dlg-buttons" modal="true" cache="false" collapsible="false" closable="true">
|
||||
<form id="personFM" method="post" novalidate>
|
||||
<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>
|
||||
<td>类型</td>
|
||||
<td style="padding:5px">
|
||||
@@ -65,13 +72,6 @@
|
||||
</select>
|
||||
</td>
|
||||
</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>
|
||||
</form>
|
||||
</div>
|
||||
@@ -173,7 +173,7 @@
|
||||
var str = '';
|
||||
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/edit_remove.png" style="cursor: pointer;" onclick="deletePerson(' + rec.id + ');"/> <a onclick="deletePerson(' + rec.Id + ');" 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.id + ');" style="text-decoration:none;color:black;" href="javascript:void(0)">删除</a> ';
|
||||
return str;
|
||||
}
|
||||
}
|
||||
@@ -343,7 +343,7 @@
|
||||
dataType: "json",
|
||||
async: false,
|
||||
data: ({
|
||||
info: JSON.stringify($("#depotFM").serializeObject())
|
||||
info: JSON.stringify($("#personFM").serializeObject())
|
||||
}),
|
||||
success: function(res) {
|
||||
if(res && res.code === 200) {
|
||||
@@ -365,15 +365,15 @@
|
||||
function editPerson(personTotalInfo) {
|
||||
var personInfo = personTotalInfo.split("AaBb");
|
||||
|
||||
$("#Type").val(personInfo[1]);
|
||||
$("#Name").val(personInfo[2]);
|
||||
$("#Name").val(personInfo[1]);
|
||||
$("#Type").val(personInfo[2]);
|
||||
|
||||
//oldPerson = personInfo[1];
|
||||
$('#personDlg').dialog('open').dialog('setTitle', '<img src="/js/easyui-1.3.5/themes/icons/pencil.png"/> 编辑经手人信息');
|
||||
$(".window-mask").css({width: webW, height: webH});
|
||||
personID = personInfo[0];
|
||||
//焦点在名称输入框==定焦在输入文字后面
|
||||
$("#Name").val("").focus().val(personInfo[2]);
|
||||
$("#Name").val("").focus().val(personInfo[1]);
|
||||
url = '/person/update?id=' + personInfo[0];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user