From 2f0be08231b7bf45fc90b1ddb2aecde434648a55 Mon Sep 17 00:00:00 2001
From: zhichao lei <442149704@qq.com>
Date: Tue, 24 Nov 2020 10:03:07 +0800
Subject: [PATCH] =?UTF-8?q?=E8=B5=84=E4=BA=A7=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Views/Ass_AssetsInfo/Form.cshtml | 2 +-
.../Views/Ass_AssetsInfo/Form.js | 31 +++--
.../Views/Ass_AssetsInfoItem/Index.js | 3 +-
.../Views/Ass_AssetsInfoItem/QRPrint.cshtml | 3 +-
.../Views/Ass_PurchaseApply/Index.js | 1 +
.../Views/Ass_PurchaseItemApply/Form.cshtml | 2 +-
.../Ass_AssetsInfo/Ass_AssetsInfoService.cs | 110 +++++++++---------
.../Ass_Purchase/Ass_PurchaseService.cs | 1 +
.../Ass_PurchaseApply/Ass_PurchaseApplyBLL.cs | 4 +-
.../Ass_PurchaseApplyEntity.cs | 5 +
.../Ass_PurchaseApplyIBLL.cs | 2 +-
.../Ass_PurchaseApplyService.cs | 5 +-
.../NodeMethod/Ass_PurchaseApplyMethod.cs | 10 +-
13 files changed, 105 insertions(+), 74 deletions(-)
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfo/Form.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfo/Form.cshtml
index d68b95c30..439bd249c 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfo/Form.cshtml
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfo/Form.cshtml
@@ -44,7 +44,7 @@
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfo/Form.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfo/Form.js
index 754a2453e..933121b7e 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfo/Form.js
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfo/Form.js
@@ -52,15 +52,32 @@ var bootstrap = function ($, learun) {
if (!$('body').lrValidform()) {
return false;
}
+ var formInfo = $('body').lrGetFormData();
var postData = {
- strEntity: JSON.stringify($('body').lrGetFormData())
+ strEntity: JSON.stringify(formInfo)
};
- $.lrSaveForm(top.$.rootUrl + '/AssetManagementSystem/Ass_AssetsInfo/SaveForm?keyValue=' + keyValue, postData, function (res) {
- // 保存成功后才回调
- if (!!callBack) {
- callBack();
- }
- });
+ if (formInfo.HasDetail == "true") {
+ learun.layerConfirm('此操作会重新生成明细,请确认!!',
+ function (res) {
+ if (res) {
+
+ $.lrSaveForm(top.$.rootUrl + '/AssetManagementSystem/Ass_AssetsInfo/SaveForm?keyValue=' + keyValue, postData, function (res) {
+ // 保存成功后才回调
+ if (!!callBack) {
+ callBack();
+ }
+ });
+ }
+ })
+ } else {
+
+ $.lrSaveForm(top.$.rootUrl + '/AssetManagementSystem/Ass_AssetsInfo/SaveForm?keyValue=' + keyValue, postData, function (res) {
+ // 保存成功后才回调
+ if (!!callBack) {
+ callBack();
+ }
+ });
+ }
};
page.init();
}
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfoItem/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfoItem/Index.js
index e9233bdeb..0d24bb350 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfoItem/Index.js
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfoItem/Index.js
@@ -60,6 +60,7 @@ var bootstrap = function ($, learun) {
});
$("#lr_printBar").on('click', function () {
var keyValue = $('#gridtable').jfGridValue('AICode');
+ var AName = $('#gridtable').jfGridValue('AIASSName');
if (learun.checkrow(keyValue)) {
//todo 打印标签
//$('.qrcodeTxt').html(keyValue);
@@ -79,7 +80,7 @@ var bootstrap = function ($, learun) {
learun.layerForm({
id: 'formcardprint',
title: '打印二维码',
- url: top.$.rootUrl + '/AssetManagementSystem/Ass_AssetsInfoItem/QRPrint?keyValue=' + keyValue,
+ url: top.$.rootUrl + '/AssetManagementSystem/Ass_AssetsInfoItem/QRPrint?keyValue=' + keyValue+'&aName='+escape(AName),
width: 700,
height: 300,
btn: null,
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfoItem/QRPrint.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfoItem/QRPrint.cshtml
index 7c0b80dc7..5a39f0077 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfoItem/QRPrint.cshtml
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_AssetsInfoItem/QRPrint.cshtml
@@ -37,7 +37,8 @@
height: 80
});
var keyValue = request('keyValue');//二维码
- $('.qrcodeTxt').html(keyValue)
+ var aName = request('aName');
+ $('.qrcodeTxt').html(unescape( aName));
$(function () {
qrcode.makeCode(keyValue);
$("#btnprint").on("click", function () {
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_PurchaseApply/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_PurchaseApply/Index.js
index e8b8b5a38..de7782be3 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_PurchaseApply/Index.js
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_PurchaseApply/Index.js
@@ -237,6 +237,7 @@ var bootstrap = function ($, learun) {
}
}
},
+ { label: "审核意见", name: "POpinion", width: 130, align: "left" },
{
label: "采购状态", name: "PStatus", width: 100, align: "left",
formatter: function (cellvalue, row) {
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_PurchaseItemApply/Form.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_PurchaseItemApply/Form.cshtml
index 7607629e3..1a0961496 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_PurchaseItemApply/Form.cshtml
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/Ass_PurchaseItemApply/Form.cshtml
@@ -20,7 +20,7 @@