| | |
| | | "hideMethod": "fadeOut" |
| | | }; |
| | | |
| | | var id = '@Model.Id'; |
| | | |
| | | $(function () { |
| | | |
| | | if (id.length > 0) { |
| | | |
| | | var id = '@Model.Id'; |
| | | } |
| | | else { |
| | | $("#GoodsStatus").val("A"); |
| | | } |
| | | |
| | | }); |
| | | |
| | | var delPosition = function () { |
| | | if (id == null || id == '') { |
| | |
| | | // 保存岗位信息 |
| | | var savePosition = function () { |
| | | |
| | | |
| | | |
| | | |
| | | if ($("#ClassifyId").val() == '') { |
| | | toastr.warning("物品类别不能为空"); |
| | |
| | | toastr.warning("物品数量不能为空"); |
| | | return; |
| | | } |
| | | |
| | | |
| | | if ($("#GoodsStatus").val() == '') { |
| | | toastr.warning("物品状态不能为空"); |
| | | return; |
| | |
| | | toastr.warning("物品名称不能为空"); |
| | | return; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | |
| | | global: false, |
| | | data: $('form').serializeArray(), |
| | | success: function (data) { |
| | | |
| | | |
| | | |
| | | |
| | | if (data.Result) { |
| | | // parent._afterSave(true); |
| | | parent.layer.msg('成功保存', { icon: 6 }); |
| | | //window.location = "/Project/add?id=" + data.ReturnID; |
| | | window.location = "/AdmGoodsManage/Edit"; |
| | | |
| | | |
| | | try { |
| | | _pageAutoClose();//自动关闭页面方法 |
| | | } |
| | | catch (err) { |
| | | parent._CloseTab1("/AdmGoodsManage/Edit/"); |
| | | } |
| | | //try { |
| | | // _pageAutoClose();//自动关闭页面方法 |
| | | //} |
| | | //catch (err) { |
| | | // parent._CloseTab1("/AdmGoodsManage/Edit/"); |
| | | //} |
| | | |
| | | } |
| | | else { |