Browse Source

Merge branch '娄底高职分支' of http://123.57.209.16:3000/bjquanjiang/DigitalScholl into 娄底高职分支

娄底高职分支
yxq 1 year ago
parent
commit
146970ecdb
18 changed files with 185 additions and 15 deletions
  1. +21
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Edu/Form.js
  2. +4
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Edu_Apply/Form.js
  3. +20
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Info/Form.js
  4. +4
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Info_Apply/Form.js
  5. +20
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Logistic/Form.js
  6. +4
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Logistic_Apply/Form.js
  7. +20
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Other/Form.js
  8. +4
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Other_Apply/Form.js
  9. +21
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Print/Form.js
  10. +4
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Print_Apply/Form.js
  11. +4
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Service/Form.js
  12. +4
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Service_Apply/Form.js
  13. +21
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Student/Form.js
  14. +4
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Student_Apply/Form.js
  15. +4
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Travel_Apply/Form.js
  16. +21
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Work/Form.js
  17. +4
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Work_Apply/Form.js
  18. +1
    -1
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/config.js

+ 21
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Edu/Form.js View File

@@ -52,7 +52,14 @@ var bootstrap = function ($, learun) {
},
change: function (data, num) {// 行数据和行号
if (!isNaN(data.Price)) {
data.Price = Math.abs(data.Price)
if (data.Price < 0) {
data.Price = Math.abs(data.Price)
}
if (data.Price.split('.').length > 1) {
if (data.Price.split('.')[1].length > 2) {
data.Price = parseFloat(data.Price).toFixed(2)
}
}
computeamount();
} else {
learun.alert.warning("只能是数字");
@@ -70,7 +77,14 @@ var bootstrap = function ($, learun) {
},
change: function (data, num) {// 行数据和行号
if (!isNaN(data.Quantity)) {
data.Quantity = Math.abs(data.Quantity)
if (data.Quantity < 0) {
data.Quantity = Math.abs(data.Quantity)
}
if (data.Quantity.split('.').length > 1) {
if (data.Quantity.split('.')[1].length > 2) {
data.Quantity = parseFloat(data.Quantity).toFixed(2)
}
}
computeamount();
} else {
learun.alert.warning("只能是数字");
@@ -125,9 +139,14 @@ var bootstrap = function ($, learun) {
};
// 保存数据
acceptClick = function (callBack) {
console.log(12)
if (!$('body').lrValidform()) {
return false;
}
if (parseFloat($('[data-table="Purchase_Edu"]').lrGetFormData().TotalAmount) <= 0) {
learun.alert.warning("总金额不能为零");
return false;
}
var postData = {};
postData.strEntity = JSON.stringify($('[data-table="Purchase_Edu"]').lrGetFormData());
postData.strpurchase_Edu_DetailsList = JSON.stringify($('#Purchase_Edu_Details').jfGridGet('rowdatas'));


+ 4
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Edu_Apply/Form.js View File

@@ -149,6 +149,10 @@ var bootstrap = function ($, learun) {
if (!$('body').lrValidform()) {
return false;
}
if (parseFloat($('[data-table="Purchase_Edu_apply"]').lrGetFormData().Totalamount) <= 0) {
learun.alert.warning("报账总金额不能为零");
return false;
}
var postData = {};
postData.strEntity = JSON.stringify($('[data-table="Purchase_Edu_apply"]').lrGetFormData());
postData.strpurchase_Edu_applydetailsList = JSON.stringify($('#Purchase_Edu_applydetails').jfGridGet('rowdatas'));


+ 20
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Info/Form.js View File

@@ -52,7 +52,14 @@ var bootstrap = function ($, learun) {
},
change: function (data, num) {// 行数据和行号
if (!isNaN(data.Price)) {
data.Price = Math.abs(data.Price)
if (data.Price < 0) {
data.Price = Math.abs(data.Price)
}
if (data.Price.split('.').length > 1) {
if (data.Price.split('.')[1].length > 2) {
data.Price = parseFloat(data.Price).toFixed(2)
}
}
computeamount();
} else {
learun.alert.warning("只能是数字");
@@ -70,7 +77,14 @@ var bootstrap = function ($, learun) {
},
change: function (data, num) {// 行数据和行号
if (!isNaN(data.Quantity)) {
data.Quantity = Math.abs(data.Quantity)
if (data.Quantity < 0) {
data.Quantity = Math.abs(data.Quantity)
}
if (data.Quantity.split('.').length > 1) {
if (data.Quantity.split('.')[1].length > 2) {
data.Quantity = parseFloat(data.Quantity).toFixed(2)
}
}
computeamount();
} else {
learun.alert.warning("只能是数字");
@@ -128,6 +142,10 @@ var bootstrap = function ($, learun) {
if (!$('body').lrValidform()) {
return false;
}
if (parseFloat($('[data-table="Purchase_Info"]').lrGetFormData().TotalAmount) <= 0) {
learun.alert.warning("总金额不能为零");
return false;
}
var postData = {};
postData.strEntity = JSON.stringify($('[data-table="Purchase_Info"]').lrGetFormData());
postData.strPurchase_Info_DetailsList = JSON.stringify($('#Purchase_Info_Details').jfGridGet('rowdatas'));


+ 4
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Info_Apply/Form.js View File

@@ -149,6 +149,10 @@ var bootstrap = function ($, learun) {
if (!$('body').lrValidform()) {
return false;
}
if (parseFloat($('[data-table="Purchase_Info_apply"]').lrGetFormData().Totalamount) <= 0) {
learun.alert.warning("报账总金额不能为零");
return false;
}
var postData = {};
postData.strEntity = JSON.stringify($('[data-table="Purchase_Info_apply"]').lrGetFormData());
postData.strpurchase_Info_applydetailsList = JSON.stringify($('#Purchase_Info_applydetails').jfGridGet('rowdatas'));


+ 20
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Logistic/Form.js View File

@@ -52,7 +52,14 @@ var bootstrap = function ($, learun) {
},
change: function (data, num) {// 行数据和行号
if (!isNaN(data.Price)) {
data.Price = Math.abs(data.Price)
if (data.Price < 0) {
data.Price = Math.abs(data.Price)
}
if (data.Price.split('.').length > 1) {
if (data.Price.split('.')[1].length > 2) {
data.Price = parseFloat(data.Price).toFixed(2)
}
}
computeamount();
} else {
learun.alert.warning("只能是数字");
@@ -70,7 +77,14 @@ var bootstrap = function ($, learun) {
},
change: function (data, num) {// 行数据和行号
if (!isNaN(data.Quantity)) {
data.Quantity = Math.abs(data.Quantity)
if (data.Quantity < 0) {
data.Quantity = Math.abs(data.Quantity)
}
if (data.Quantity.split('.').length > 1) {
if (data.Quantity.split('.')[1].length > 2) {
data.Quantity = parseFloat(data.Quantity).toFixed(2)
}
}
computeamount();
} else {
learun.alert.warning("只能是数字");
@@ -128,6 +142,10 @@ var bootstrap = function ($, learun) {
if (!$('body').lrValidform()) {
return false;
}
if (parseFloat($('[data-table="Purchase_Logistic"]').lrGetFormData().TotalAmount) <= 0) {
learun.alert.warning("总金额不能为零");
return false;
}
var postData = {};
postData.strEntity = JSON.stringify($('[data-table="Purchase_Logistic"]').lrGetFormData());
postData.strPurchase_Logistic_DetailsList = JSON.stringify($('#Purchase_Logistic_Details').jfGridGet('rowdatas'));


+ 4
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Logistic_Apply/Form.js View File

@@ -149,6 +149,10 @@ var bootstrap = function ($, learun) {
if (!$('body').lrValidform()) {
return false;
}
if (parseFloat($('[data-table="Purchase_Logistic_apply"]').lrGetFormData().Totalamount) <= 0) {
learun.alert.warning("报账总金额不能为零");
return false;
}
var postData = {};
postData.strEntity = JSON.stringify($('[data-table="Purchase_Logistic_apply"]').lrGetFormData());
postData.strpurchase_Logistic_applydetailsList = JSON.stringify($('#Purchase_Logistic_applydetails').jfGridGet('rowdatas'));


+ 20
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Other/Form.js View File

@@ -52,7 +52,14 @@ var bootstrap = function ($, learun) {
},
change: function (data, num) {// 行数据和行号
if (!isNaN(data.Price)) {
data.Price = Math.abs(data.Price)
if (data.Price < 0) {
data.Price = Math.abs(data.Price)
}
if (data.Price.split('.').length > 1) {
if (data.Price.split('.')[1].length > 2) {
data.Price = parseFloat(data.Price).toFixed(2)
}
}
computeamount();
} else {
learun.alert.warning("只能是数字");
@@ -70,7 +77,14 @@ var bootstrap = function ($, learun) {
},
change: function (data, num) {// 行数据和行号
if (!isNaN(data.Quantity)) {
data.Quantity = Math.abs(data.Quantity)
if (data.Quantity < 0) {
data.Quantity = Math.abs(data.Quantity)
}
if (data.Quantity.split('.').length > 1) {
if (data.Quantity.split('.')[1].length > 2) {
data.Quantity = parseFloat(data.Quantity).toFixed(2)
}
}
computeamount();
} else {
learun.alert.warning("只能是数字");
@@ -128,6 +142,10 @@ var bootstrap = function ($, learun) {
if (!$('body').lrValidform()) {
return false;
}
if (parseFloat($('[data-table="Purchase_Other"]').lrGetFormData().TotalAmount) <= 0) {
learun.alert.warning("总金额不能为零");
return false;
}
var postData = {};
postData.strEntity = JSON.stringify($('[data-table="Purchase_Other"]').lrGetFormData());
postData.strPurchase_Other_DetailsList = JSON.stringify($('#Purchase_Other_Details').jfGridGet('rowdatas'));


+ 4
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Other_Apply/Form.js View File

@@ -149,6 +149,10 @@ var bootstrap = function ($, learun) {
if (!$('body').lrValidform()) {
return false;
}
if (parseFloat($('[data-table="Purchase_Other_apply"]').lrGetFormData().Totalamount) <= 0) {
learun.alert.warning("报账总金额不能为零");
return false;
}
var postData = {};
postData.strEntity = JSON.stringify($('[data-table="Purchase_Other_apply"]').lrGetFormData());
postData.strpurchase_Other_applydetailsList = JSON.stringify($('#Purchase_Other_applydetails').jfGridGet('rowdatas'));


+ 21
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Print/Form.js View File

@@ -52,7 +52,15 @@ var bootstrap = function ($, learun) {
},
change: function (data, num) {// 行数据和行号
if (!isNaN(data.Price)) {
data.Price = Math.abs(data.Price)
//console.log(123)
if (data.Price < 0) {
data.Price = Math.abs(data.Price)
}
if (data.Price.split('.').length > 1) {
if (data.Price.split('.')[1].length > 2) {
data.Price = parseFloat(data.Price).toFixed(2)
}
}
computeamount();
} else {
learun.alert.warning("只能是数字");
@@ -70,7 +78,14 @@ var bootstrap = function ($, learun) {
},
change: function (data, num) {// 行数据和行号
if (!isNaN(data.Quantity)) {
data.Quantity = Math.abs(data.Quantity)
if (data.Quantity < 0) {
data.Quantity = Math.abs(data.Quantity)
}
if (data.Quantity.split('.').length > 1) {
if (data.Quantity.split('.')[1].length > 2) {
data.Quantity = parseFloat(data.Quantity).toFixed(2)
}
}
computeamount();
} else {
learun.alert.warning("只能是数字");
@@ -128,6 +143,10 @@ var bootstrap = function ($, learun) {
if (!$('body').lrValidform()) {
return false;
}
if (parseFloat($('[data-table="Purchase_Print"]').lrGetFormData().TotalAmount) <= 0) {
learun.alert.warning("总金额不能为零");
return false;
}
var postData = {};
postData.strEntity = JSON.stringify($('[data-table="Purchase_Print"]').lrGetFormData());
postData.strPurchase_Print_DetailsList = JSON.stringify($('#Purchase_Print_Details').jfGridGet('rowdatas'));


+ 4
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Print_Apply/Form.js View File

@@ -149,6 +149,10 @@ var bootstrap = function ($, learun) {
if (!$('body').lrValidform()) {
return false;
}
if (parseFloat($('[data-table="Purchase_Print_apply"]').lrGetFormData().Totalamount) <= 0) {
learun.alert.warning("报账总金额不能为零");
return false;
}
var postData = {};
postData.strEntity = JSON.stringify($('[data-table="Purchase_Print_apply"]').lrGetFormData());
postData.strpurchase_Print_applydetailsList = JSON.stringify($('#Purchase_Print_applydetails').jfGridGet('rowdatas'));


+ 4
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Service/Form.js View File

@@ -110,6 +110,10 @@ var bootstrap = function ($, learun) {
if (!$('body').lrValidform()) {
return false;
}
if (parseFloat($('[data-table="Purchase_Service"]').lrGetFormData().TotalAmount) <= 0) {
learun.alert.warning("总金额不能为零");
return false;
}
var postData = {};
postData.strEntity = JSON.stringify($('[data-table="Purchase_Service"]').lrGetFormData());
postData.strPurchase_Service_DetailsList = JSON.stringify($('#Purchase_Service_Details').jfGridGet('rowdatas'));


+ 4
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Service_Apply/Form.js View File

@@ -144,6 +144,10 @@ var bootstrap = function ($, learun) {
if (!$('body').lrValidform()) {
return false;
}
if (parseFloat($('[data-table="Purchase_Service_apply"]').lrGetFormData().Totalamount) <= 0) {
learun.alert.warning("报账总金额不能为零");
return false;
}
var postData = {};
postData.strEntity = JSON.stringify($('[data-table="Purchase_Service_apply"]').lrGetFormData());
postData.strPurchase_Service_applydetailsList = JSON.stringify($('#Purchase_Service_applydetails').jfGridGet('rowdatas'));


+ 21
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Student/Form.js View File

@@ -52,7 +52,15 @@ var bootstrap = function ($, learun) {
},
change: function (data, num) {// 行数据和行号
if (!isNaN(data.Price)) {
data.Price = Math.abs(data.Price)
//console.log(123)
if (data.Price < 0) {
data.Price = Math.abs(data.Price)
}
if (data.Price.split('.').length > 1) {
if (data.Price.split('.')[1].length > 2) {
data.Price = parseFloat(data.Price).toFixed(2)
}
}
computeamount();
} else {
learun.alert.warning("只能是数字");
@@ -70,7 +78,14 @@ var bootstrap = function ($, learun) {
},
change: function (data, num) {// 行数据和行号
if (!isNaN(data.Quantity)) {
data.Quantity = Math.abs(data.Quantity)
if (data.Quantity < 0) {
data.Quantity = Math.abs(data.Quantity)
}
if (data.Quantity.split('.').length > 1) {
if (data.Quantity.split('.')[1].length > 2) {
data.Quantity = parseFloat(data.Quantity).toFixed(2)
}
}
computeamount();
} else {
learun.alert.warning("只能是数字");
@@ -128,6 +143,10 @@ var bootstrap = function ($, learun) {
if (!$('body').lrValidform()) {
return false;
}
if (parseFloat($('[data-table="Purchase_Student"]').lrGetFormData().TotalAmount) <= 0) {
learun.alert.warning("总金额不能为零");
return false;
}
var postData = {};
postData.strEntity = JSON.stringify($('[data-table="Purchase_Student"]').lrGetFormData());
postData.strPurchase_Student_DetailsList = JSON.stringify($('#Purchase_Student_Details').jfGridGet('rowdatas'));


+ 4
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Student_Apply/Form.js View File

@@ -146,6 +146,10 @@ var bootstrap = function ($, learun) {
if (!$('body').lrValidform()) {
return false;
}
if (parseFloat($('[data-table="Purchase_Student_apply"]').lrGetFormData().Totalamount) <= 0) {
learun.alert.warning("报账总金额不能为零");
return false;
}
var postData = {};
postData.strEntity = JSON.stringify($('[data-table="Purchase_Student_apply"]').lrGetFormData());
postData.strpurchase_Student_applydetailsList = JSON.stringify($('#Purchase_Student_applydetails').jfGridGet('rowdatas'));


+ 4
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Travel_Apply/Form.js View File

@@ -129,6 +129,10 @@ var bootstrap = function ($, learun) {
if (!$('body').lrValidform()) {
return false;
}
if (parseFloat($('[data-table="Purchase_Travel_apply"]').lrGetFormData().Totalamount) <= 0) {
learun.alert.warning("报账总金额不能为零");
return false;
}
var postData = {};
postData.strEntity = JSON.stringify($('[data-table="Purchase_Travel_apply"]').lrGetFormData());
postData.strPurchase_Travel_applydetailsList = JSON.stringify($('#Purchase_Travel_applydetails').jfGridGet('rowdatas'));


+ 21
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Work/Form.js View File

@@ -53,7 +53,14 @@ var bootstrap = function ($, learun) {
change: function (data, num) {// 行数据和行号
if (!isNaN(data.Price)) {
//console.log(123)
data.Price = Math.abs(data.Price)
if (data.Price < 0) {
data.Price = Math.abs(data.Price)
}
if (data.Price.split('.').length > 1) {
if (data.Price.split('.')[1].length > 2) {
data.Price = parseFloat(data.Price).toFixed(2)
}
}
computeamount();
} else {
learun.alert.warning("只能是数字");
@@ -71,7 +78,15 @@ var bootstrap = function ($, learun) {
},
change: function (data, num) {// 行数据和行号
if (!isNaN(data.Quantity)) {
data.Quantity = Math.abs(data.Quantity)
//console.log(123)
if (data.Quantity < 0) {
data.Quantity = Math.abs(data.Quantity)
}
if (data.Quantity.split('.').length > 1) {
if (data.Quantity.split('.')[1].length > 2) {
data.Quantity = parseFloat(data.Quantity).toFixed(2)
}
}
computeamount();
} else {
learun.alert.warning("只能是数字");
@@ -129,6 +144,10 @@ var bootstrap = function ($, learun) {
if (!$('#form').lrValidform()) {
return false;
}
if (parseFloat($('[data-table="Purchase_Work"]').lrGetFormData().TotalAmount) <= 0) {
learun.alert.warning("总金额不能为零");
return false;
}
var postData = {};
postData.strEntity = JSON.stringify($('[data-table="Purchase_Work"]').lrGetFormData());
postData.strpurchase_Work_DetailsList = JSON.stringify($('#Purchase_Work_Details').jfGridGet('rowdatas'));


+ 4
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Work_Apply/Form.js View File

@@ -149,6 +149,10 @@ var bootstrap = function ($, learun) {
if (!$('body').lrValidform()) {
return false;
}
if (parseFloat($('[data-table="Purchase_Work_apply"]').lrGetFormData().Totalamount) <= 0) {
learun.alert.warning("报账总金额不能为零");
return false;
}
var postData = {};
postData.strEntity = JSON.stringify($('[data-table="Purchase_Work_apply"]').lrGetFormData());
postData.strpurchase_Work_applydetailsList = JSON.stringify($('#Purchase_Work_applydetails').jfGridGet('rowdatas'));


+ 1
- 1
Learun.Framework.Ultimate V7/LearunApp-2.2.0/config.js View File

@@ -12,7 +12,7 @@ export default {
"http://localhost:31173/",
],
// "webHost": "http://fwh.ldyesz.edu.cn:8000/",
"webHost": "http://localhost:20472/",
"webHost": "http://192.168.10.245:8009/",
// 开发环境下自动填充登录账号密码,与接口地址一一对应,只在开发环境下显示
"devAccount": [{
username: "system",


Loading…
Cancel
Save