diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Controllers/Ass_AssetsInfoItemApplyController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Controllers/Ass_AssetsInfoItemApplyController.cs index 78d71de36..a6bb47557 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Controllers/Ass_AssetsInfoItemApplyController.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Controllers/Ass_AssetsInfoItemApplyController.cs @@ -55,6 +55,7 @@ namespace Learun.Application.Web.Areas.AssetManagementSystem.Controllers [HttpGet] public ActionResult FormJY() { + ViewBag.AAICode = CommonHelper.CreateNo(); return View(); } diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_Acceptance/FormItem.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_Acceptance/FormItem.cshtml index cc2c0e1d3..a2387ae81 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_Acceptance/FormItem.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_Acceptance/FormItem.cshtml @@ -4,8 +4,8 @@ }
-
资产编号*
- +
资产编号
+
资产名称*
@@ -36,8 +36,8 @@
-
库房
-
+
库房*
+
库位
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_Acceptance/FormItem.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_Acceptance/FormItem.js index 5d719d717..5bd5cfc67 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_Acceptance/FormItem.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_Acceptance/FormItem.js @@ -29,6 +29,7 @@ var bootstrap = function ($, learun) { $('#AAISupplierId').lrDataSourceSelect({ code: 'Ass_SupplierData', value: 'sid', text: 'sname' }); $('#AAISource').lrDataItemSelect({ code: 'zcly' }); $('#AAIHasDetail').lrDataItemSelect({ code: 'YesOrNoBit' }); + $('#AAIHasDetail').lrselectSet('true'); $('#AAIUnit').lrDataItemSelect({ code: 'sldw' }); $('#AAIStorageId').lrselect({ diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfoApply/FormJY.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfoApply/FormJY.js index 2792c1203..441acc8d5 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfoApply/FormJY.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfoApply/FormJY.js @@ -91,11 +91,12 @@ var bootstrap = function ($, learun) { // 访问数据接口地址 url: top.$.rootUrl + '/LR_OrganizationModule/Department/GetTree' }); + $('#AACreateDeptId').lrselectSet(learun.clientdata.get(['userinfo']).departmentId); $('#Ass_AssetsInfoItemApply').jfGrid({ headData: [ - { - label: '采购临时编号', name: 'AAICode', width: 150, align: 'left' - }, + //{ + // label: '采购临时编号', name: 'AAICode', width: 150, align: 'left' + //}, { label: '资产名称', name: 'AAIName', width: 150, align: 'left' }, diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfoApply/FormViewJY.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfoApply/FormViewJY.cshtml index 147fd5945..55bd89d5a 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfoApply/FormViewJY.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfoApply/FormViewJY.cshtml @@ -26,6 +26,10 @@
申请人
+
+
申请部门
+
+
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfoApply/FormViewJY.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfoApply/FormViewJY.js index d4eff5243..906f51e8a 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfoApply/FormViewJY.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfoApply/FormViewJY.js @@ -82,11 +82,20 @@ var bootstrap = function ($, learun) { $('#AACreateUserId')[0].lrvalue = learun.clientdata.get(['userinfo']).userId; $('#AAAssType').lrDataItemSelect({ code: 'AssType' }); $('#AACreateUserId').val(learun.clientdata.get(['userinfo']).realName); + $('#AACreateDeptId').lrselect({ + type: 'tree', + // 展开最大高度 + maxHeight: 200, + // 是否允许搜索 + allowSearch: true, + // 访问数据接口地址 + url: top.$.rootUrl + '/LR_OrganizationModule/Department/GetTree' + }); $('#Ass_AssetsInfoItemApply').jfGrid({ headData: [ - { - label: '资产编号', name: 'AAICode', width: 150, align: 'left' - }, + //{ + // label: '资产编号', name: 'AAICode', width: 150, align: 'left' + //}, { label: '资产名称', name: 'AAIName', width: 150, align: 'left' }, diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfoItemApply/FormJY.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfoItemApply/FormJY.cshtml index 15eaf9421..1269d71d3 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfoItemApply/FormJY.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfoItemApply/FormJY.cshtml @@ -6,16 +6,16 @@ @Html.AppendJsFile("/Views/LR_Content/plugin/layerselect/lr-layerselect.js")
-
选择已登记资产*
+
选择已登记资产
资产类别*
-
+
资产名称*
@@ -29,7 +29,7 @@
资产型号
-
+
生产厂家
@@ -59,7 +59,7 @@
数量单位
-
+
排序*
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfoItemApply/FormJY.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfoItemApply/FormJY.js index 7c8c32285..d5f6f22df 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfoItemApply/FormJY.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfoItemApply/FormJY.js @@ -131,6 +131,7 @@ var bootstrap = function ($, learun) { } } }); + $('#AAIHasDetail').lrselectSet('true'); $('#AAIPhoto').lrUploader(); }, initData: function () { diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AssetManagementSystem/Ass_AcceptanceMain/Ass_AcceptanceMainService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AssetManagementSystem/Ass_AcceptanceMain/Ass_AcceptanceMainService.cs index a52536be8..f403508d0 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AssetManagementSystem/Ass_AcceptanceMain/Ass_AcceptanceMainService.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AssetManagementSystem/Ass_AcceptanceMain/Ass_AcceptanceMainService.cs @@ -247,7 +247,7 @@ namespace Learun.Application.TwoDevelopment.AssetManagementSystem insertassinfoitem.AId = assinfoitem.AId; insertassinfoitem.AICodeNum = Ass_AssetsInfoItemMaxNum + 1 + i; insertassinfoitem.AICode = assinfoitem.ACode + "_" + insertassinfoitem.AICodeNum.ToString(); - insertassinfoitem.AICodeNumJY = assinfoitem.ACode + "_" + insertassinfoitem.AICodeNum.ToString();//金隅编号 + insertassinfoitem.AICodeNumJY = "";//assinfoitem.ACode + "_" + insertassinfoitem.AICodeNum.ToString();//金隅编号 insertassinfoitem.AIAssValue = assinfoitem.APrice;//价值 insertassinfoitem.AIUnits = assinfoitem.AUnit;//单位 insertassinfoitem.AISpecificationtype = assinfoitem.AModel;//型号 @@ -353,7 +353,7 @@ namespace Learun.Application.TwoDevelopment.AssetManagementSystem insertassinfoitem.AId = insertAss_AssetsInfo.AId; insertassinfoitem.AICodeNum = i + 1; insertassinfoitem.AICode = insertAss_AssetsInfo.ACode + "_" + insertassinfoitem.AICodeNum.ToString(); - insertassinfoitem.AICodeNumJY = insertAss_AssetsInfo.ACode + "_" + insertassinfoitem.AICodeNum.ToString(); + insertassinfoitem.AICodeNumJY = "";//insertAss_AssetsInfo.ACode + "_" + insertassinfoitem.AICodeNum.ToString(); insertassinfoitem.AIAssValue = assitemapp.AAIPrice;//价值 insertassinfoitem.AIUnits = assitemapp.AAIUnit;//单位 insertassinfoitem.AISpecificationtype = assitemapp.AAIModel;//型号 @@ -416,7 +416,7 @@ namespace Learun.Application.TwoDevelopment.AssetManagementSystem insertassinfoitem.AId = insertAss_AssetsInfo.AId; insertassinfoitem.AICodeNum = 1; insertassinfoitem.AICode = insertAss_AssetsInfo.ACode + "_" + insertassinfoitem.AICodeNum.ToString(); - insertassinfoitem.AICodeNumJY = insertAss_AssetsInfo.ACode + "_" + insertassinfoitem.AICodeNum.ToString(); + insertassinfoitem.AICodeNumJY = "";// insertAss_AssetsInfo.ACode + "_" + insertassinfoitem.AICodeNum.ToString(); insertassinfoitem.AIAssValue = assitemapp.AAIPrice;//价值 insertassinfoitem.AIUnits = assitemapp.AAIUnit;//单位 insertassinfoitem.AISpecificationtype = assitemapp.AAIModel;//型号