diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Controllers/Ass_AssetsInfoController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Controllers/Ass_AssetsInfoController.cs index 06fa3626d..5ed19e297 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Controllers/Ass_AssetsInfoController.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Controllers/Ass_AssetsInfoController.cs @@ -89,6 +89,20 @@ namespace Learun.Application.Web.Areas.AssetManagementSystem.Controllers return Success(data); } + + /// + /// 获取列表不带分页 + /// + /// + /// + [HttpGet] + [AjaxOnly] + public ActionResult GetListHaoCai(string queryJson) + { + var data = ass_AssetsInfoIBLL.GetListHaoCai(queryJson); + return Success(data); + } + /// /// 获取左侧树形数据 /// diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfoItemApply/FormPurchase.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfoItemApply/FormPurchase.cshtml index 05ed98aab..5c665c3c6 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfoItemApply/FormPurchase.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfoItemApply/FormPurchase.cshtml @@ -60,7 +60,7 @@
数量单位
-
+
排序*
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfoItemApply/FormPurchase.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfoItemApply/FormPurchase.js index 8e7674e05..98be02805 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfoItemApply/FormPurchase.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfoItemApply/FormPurchase.js @@ -60,7 +60,6 @@ var bootstrap = function ($, learun) { if (values && values.length > 0) { //绑定 $("#AAICode").attr("readonly", "readonly"); - $("#AAIUnit").attr("readonly", "readonly"); $.lrSetForm(top.$.rootUrl + '/AssetManagementSystem/Ass_AssetsInfo/GetFormData?keyValue=' + values[0], function (data) { data = data.Ass_AssetsInfo; for (var id in data) { @@ -80,7 +79,6 @@ var bootstrap = function ($, learun) { unknowselect: function () { $("#AAOldCode").find('span').text(""); $("#AAICode").removeAttr("readonly"); - $("#AAIUnit").removeAttr("readonly"); $('#AAITId').lrselectSet(selectedRow.AAITId); $('#AAICode').val(""); $('#AAIName').val(selectedRow.AAIName); diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_Receive/Form.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_Receive/Form.js index 73e5764cc..0e68a8c04 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_Receive/Form.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_Receive/Form.js @@ -71,7 +71,7 @@ var bootstrap = function ($, learun) { treeParentId: 'atptid', treeValueId: 'atid', treeTextId: 'aname', - dataUrl: top.$.rootUrl + '/AssetManagementSystem/Ass_AssetsInfo/GetList', + dataUrl: top.$.rootUrl + '/AssetManagementSystem/Ass_AssetsInfo/GetListHaoCai', dataTreeId: 'ATId', dataValueId: 'AId', dataTextId: 'AName', @@ -101,6 +101,10 @@ var bootstrap = function ($, learun) { $.lrSetForm(top.$.rootUrl + '/AssetManagementSystem/Ass_AssetsInfo/GetFormData?keyValue=' + values[0], function (data) { data = data.Ass_AssetsInfo; var rowIndex = $et.attr('rowindex'); + if (data.AAssType != 1) { + learun.alert.warning('请选择耗材属性的资产'); + return; + } $input.val(data.AName); //$('#Ass_ReceiveItem')[0].dfop.running.rowdata[rowIndex]['jfgridRowData']['AName'] = data.AName; //$('.jfgrid-data-cell[colname="AName"][rowIndex="' + rowIndex + '"]').attr('title', data.AName).html(data.AName); diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/XmlConfig/database.config b/Learun.Framework.Ultimate V7/Learun.Application.Web/XmlConfig/database.config index 489b3b61f..98052c85f 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/XmlConfig/database.config +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/XmlConfig/database.config @@ -9,16 +9,16 @@ --> - + - +