解决采购信息中,供应商不能新增的问题
This commit is contained in:
@@ -1556,7 +1556,7 @@
|
||||
initTableData_material("add"); //商品列表
|
||||
reject(); //撤销下、刷新商品列表
|
||||
$("#addOrgan").off("click").on("click",function(){
|
||||
$('#supplierDlg').dialog('open').dialog('setTitle','<img src="/js/easyui-1.3.5/themes/icons/edit_add.png"/> 增加供应商');
|
||||
$('#supplierDlg').dialog('open').dialog('setTitle','<img src="/js/easyui-1.3.5/themes/icons/edit_add.png"/> 增加供应商信息');
|
||||
});
|
||||
url = '/depotHead/add';
|
||||
|
||||
@@ -2553,28 +2553,15 @@
|
||||
return;
|
||||
}
|
||||
var url = '/supplier/add';
|
||||
var supObj = $("#supplierFM").serializeObject();
|
||||
supObj.type = "供应商";
|
||||
supObj.enabled = 1;
|
||||
$.ajax({
|
||||
url: url,
|
||||
type:"post",
|
||||
dataType: "json",
|
||||
data:{
|
||||
supplier:$("#supplier").val(),
|
||||
type: "供应商",
|
||||
contacts:$("#contacts").val(),
|
||||
phonenum:$("#phonenum").val(),
|
||||
telephone:$("#telephone").val(),
|
||||
email:$("#email").val(),
|
||||
address:$("#address").val(),
|
||||
fax:$("#fax").val(),
|
||||
BeginNeedGet:$("#BeginNeedGet").val(),
|
||||
BeginNeedPay:$("#BeginNeedPay").val(),
|
||||
taxNum:$("#taxNum").val(),
|
||||
taxRate:$("#taxRate").val(),
|
||||
bankName:$("#bankName").val(),
|
||||
accountNumber:$("#accountNumber").val(),
|
||||
description:$("#description").val(),
|
||||
enabled:1,
|
||||
clientIp: clientIp
|
||||
info: JSON.stringify(supObj)
|
||||
},
|
||||
success: function(res) {
|
||||
if (res) {
|
||||
|
||||
@@ -292,22 +292,22 @@
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>联系电话</td>
|
||||
<td style="padding:1px;">
|
||||
<input name="phonenum" id="phonenum" class="easyui-validatebox" style="width: 160px;height: 20px"/>
|
||||
</td>
|
||||
<td>手机</td>
|
||||
<td>手机号码</td>
|
||||
<td style="padding:1px;">
|
||||
<input name="telephone" id="telephone" class="easyui-validatebox"
|
||||
style="width: 160px;height: 20px"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>电子邮箱</td>
|
||||
<td style="padding:1px">
|
||||
<input name="email" id="email" class="easyui-validatebox" validType="email"
|
||||
style="width: 160px;height: 20px"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>联系电话</td>
|
||||
<td style="padding:1px;">
|
||||
<input name="phonenum" id="phonenum" class="easyui-validatebox" style="width: 160px;height: 20px"/>
|
||||
</td>
|
||||
<td>传真</td>
|
||||
<td style="padding:1px">
|
||||
<input name="fax" id="fax" class="easyui-validatebox" style="width: 160px;height: 20px"/>
|
||||
|
||||
Reference in New Issue
Block a user