diff --git a/erp_web/js/pages/materials/in_out.js b/erp_web/js/pages/materials/in_out.js index bffab1fb..f4c3fa09 100644 --- a/erp_web/js/pages/materials/in_out.js +++ b/erp_web/js/pages/materials/in_out.js @@ -1556,7 +1556,7 @@ initTableData_material("add"); //商品列表 reject(); //撤销下、刷新商品列表 $("#addOrgan").off("click").on("click",function(){ - $('#supplierDlg').dialog('open').dialog('setTitle',' 增加供应商'); + $('#supplierDlg').dialog('open').dialog('setTitle',' 增加供应商信息'); }); 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) { diff --git a/erp_web/pages/materials/purchase_in_list.html b/erp_web/pages/materials/purchase_in_list.html index 231f2122..3ac46f83 100644 --- a/erp_web/pages/materials/purchase_in_list.html +++ b/erp_web/pages/materials/purchase_in_list.html @@ -292,22 +292,22 @@ - 联系电话 - - - - 手机 + 手机号码 - - 电子邮箱 + + + 联系电话 + + + 传真