From 7b56d05ad8605b99581fd2cf0f97fb8ed4f4b8e2 Mon Sep 17 00:00:00 2001 From: zhichao lei <442149704@qq.com> Date: Mon, 14 Dec 2020 14:30:11 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A5=BF=E6=98=8C=E8=B5=84=E4=BA=A7=E6=A8=A1?= =?UTF-8?q?=E5=9D=97=20bug=20=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/Ass_AssetsInfoController.cs | 14 +++++ .../FormPurchase.cshtml | 2 +- .../Ass_AssetsInfoItemApply/FormPurchase.js | 2 - .../Views/Ass_Receive/Form.js | 6 ++- .../XmlConfig/database.config | 8 +-- .../Ass_AssetsInfo/Ass_AssetsInfoBLL.cs | 18 +++++++ .../Ass_AssetsInfo/Ass_AssetsInfoIBLL.cs | 1 + .../Ass_AssetsInfo/Ass_AssetsInfoService.cs | 52 +++++++++++++++++++ .../Ass_AssetsInfoApplyService.cs | 36 +++++++------ 9 files changed, 115 insertions(+), 24 deletions(-) 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 @@ --> - + - +