Преглед на файлове

Merge branch '金隅分支' of http://123.57.209.16:3000/bjquanjiang/DigitalScholl into 金隅分支

金隅分支
edy преди 3 години
родител
ревизия
a6e2ffafd7
променени са 5 файла, в които са добавени 148 реда и са изтрити 121 реда
  1. +11
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Views/NWFProcess/NWFContainerForm.js
  2. +4
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Views/NWFScheme/ButtonForm.cshtml
  3. +5
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Views/NWFScheme/ButtonForm.js
  4. +2
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Views/NWFScheme/Form.js
  5. +126
    -117
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Views/NWFScheme/NodeForm.js

+ 11
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Views/NWFProcess/NWFContainerForm.js Целия файл

@@ -699,6 +699,10 @@ var bootstrap = function ($, learun) {
return top[id].acceptClick(function (auditers) {
// 保存表单数据
custmerForm.save(nwflow.processId, nwflow.currentNode.wfForms, function () {
var des = $('#des').val();
if (btnData.isOpinion == '1' && !des) {
return learun.alert.warning('请填写审批意见!');
}
// 审批流程
learun.loading(true, '审批流程...');
var postData = {
@@ -706,7 +710,7 @@ var bootstrap = function ($, learun) {
operationName: btnData.name,
processId: nwflow.processId,
taskId: nwflow.taskId,
des: $('#des').val(),
des: des,
auditors: JSON.stringify(auditers),
signUrl: signUrl,
stamp: stamp
@@ -727,13 +731,18 @@ var bootstrap = function ($, learun) {
// 保存表单数据
custmerForm.save(nwflow.processId, nwflow.currentNode.wfForms, function () {
// 审批流程
var des = $('#des').val();
if (btnData.isOpinion == '1' && !des) {
return learun.alert.warning('请填写审批意见!');
}
learun.loading(true, '审批流程...');
var postData = {
operationCode: btnData.code,
operationName: btnData.name,
processId: nwflow.processId,
taskId: nwflow.taskId,
des: $('#des').val(),
des: des,
signUrl: signUrl,
stamp: stamp
};


+ 4
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Views/NWFScheme/ButtonForm.cshtml Целия файл

@@ -19,6 +19,10 @@
<div class="lr-form-item-title">需要签名或盖章<font face="宋体">*</font></div>
<div id="isSign" isvalid="yes" checkexpession="NotNull"></div>
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">需要填写意见<font face="宋体">*</font></div>
<div id="isOpinion" isvalid="yes" checkexpession="NotNull"></div>
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">下一节点审核人<font face="宋体">*</font></div>
<div id="next" isvalid="yes" checkexpession="NotNull"></div>


+ 5
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Views/NWFScheme/ButtonForm.js Целия файл

@@ -23,11 +23,14 @@ var bootstrap = function ($, learun) {
placeholder: false,
data: [{ 'id': '1', 'text': '是' }, { 'id': '2', 'text': '否' }]
}).lrselectSet('2');
$('#isSign').lrselect({// 是否可编辑1.是2.否
$('#isSign').lrselect({
placeholder: false,
data: [{ 'id': '1', 'text': '需要' }, { 'id': '2', 'text': '不需要' }]
}).lrselectSet('2');
$('#isOpinion').lrselect({
placeholder: false,
data: [{ 'id': '1', 'text': '需要' }, { 'id': '2', 'text': '不需要' }]
}).lrselectSet('2');


},
initData: function () {


+ 2
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Views/NWFScheme/Form.js Целия файл

@@ -322,6 +322,8 @@ var bootstrap = function ($, learun) {
var formdata = $('#step-1').lrGetFormData(keyValue);
var shcemeData = $('#step-3').lrworkflowGet();

//console.log(JSON.stringify(shcemeData));

if (authorizeType == 1) {
schemeAuthorizes = [];
schemeAuthorizes.push({


+ 126
- 117
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Views/NWFScheme/NodeForm.js Целия файл

@@ -16,7 +16,7 @@ var auditors = [];
var workforms = [];
var workformMap = {};
// 按钮
var btnList = [{ id: '1', name: '同意', code: 'agree', file: '1', next: '1' }, { id: '2', name: '不同意', code: 'disagree', file: '1', next: '1' }];
var btnList = [{ id: '1', name: '同意', code: 'agree', file: '1', option: '1', next: '1' }, { id: '2', name: '不同意', code: 'disagree', file: '1', option: '1', next: '1' }];
// 条件节点
var conditions = [];

@@ -69,7 +69,7 @@ var bootstrap = function ($, learun) {
$('.div_batchAudit').show();
$('.div_agreeGz').show();
$('.div_noPeopleGz').show();
$('#name').removeAttr('readonly');
break;
case 'auditornode': // 传阅节点
@@ -344,7 +344,7 @@ var bootstrap = function ($, learun) {
$('#lr_form_schoolmaster').on('click', function () {
learun.layerConfirm('是否确认增加分管校长?', function (res) {
if (res) {
var data = { auditorId:'fgxzid', type: '7', auditorName:'分管校长'};
var data = { auditorId: 'fgxzid', type: '7', auditorName: '分管校长' };
if (!isRepeat(data.auditorId)) {
data.id = learun.newGuid();
auditors.push(data);
@@ -387,120 +387,120 @@ var bootstrap = function ($, learun) {
subGridExpanded: function (subid, rowdata) {
$('#' + subid).jfGrid({
headData: [
{
label: "字段名称", name: "fieldName", width: 240, align: "left",
edit: {
type: rowdata.type == '0' ? 'input' : 'label',
change: function (data, num) {// 行数据和行号
workformMap[rowdata.id].authorize[data.id] = data;
}
}
},
{
label: "字段ID", name: "fieldId", width: 240, align: "left",
edit: {
type: rowdata.type == '0' ? 'input' : 'label',
change: function (data, num) {// 行数据和行号
workformMap[rowdata.id].authorize[data.id] = data;
}
}
},
{
label: "查看", name: "isLook", width: 70, align: "center",
formatter: function (cellvalue, row, dfop, $dcell) {
$dcell.on('click', function () {
{
label: "字段名称", name: "fieldName", width: 240, align: "left",
edit: {
type: rowdata.type == '0' ? 'input' : 'label',
change: function (data, num) {// 行数据和行号
workformMap[rowdata.id].authorize[data.id] = data;
}
}
},
{
label: "字段ID", name: "fieldId", width: 240, align: "left",
edit: {
type: rowdata.type == '0' ? 'input' : 'label',
change: function (data, num) {// 行数据和行号
workformMap[rowdata.id].authorize[data.id] = data;
}
}
},
{
label: "查看", name: "isLook", width: 70, align: "center",
formatter: function (cellvalue, row, dfop, $dcell) {
$dcell.on('click', function () {

if (row.isLook == 1) {
if (dfop.isEdit) {// 系统表单
workformMap[rowdata.id].authorize[row.id].isLook = 0;
}
else {// 自定义表单
var _formAuthorize = workformMap[row.formId].authorize;
_formAuthorize[row.fieldId] = _formAuthorize[row.fieldId] || { isLook: 1, isEdit: 1 };
_formAuthorize[row.fieldId].isLook = 0;
}
row.isLook = 0;
$(this).html('<span class=\"label label-default \" style=\"cursor: pointer;\">否</span>');
}
else {
if (dfop.isEdit) {// 系统表单
workformMap[rowdata.id].authorize[row.id].isLook = 1;
}
else {// 自定义表单
var _formAuthorize = workformMap[row.formId].authorize;
_formAuthorize[row.fieldId] = _formAuthorize[row.fieldId] || { isLook: 1, isEdit: 1 };
_formAuthorize[row.fieldId].isLook = 1;
}
if (row.isLook == 1) {
if (dfop.isEdit) {// 系统表单
workformMap[rowdata.id].authorize[row.id].isLook = 0;
}
else {// 自定义表单
var _formAuthorize = workformMap[row.formId].authorize;
_formAuthorize[row.fieldId] = _formAuthorize[row.fieldId] || { isLook: 1, isEdit: 1 };
_formAuthorize[row.fieldId].isLook = 0;
}
row.isLook = 0;
$(this).html('<span class=\"label label-default \" style=\"cursor: pointer;\">否</span>');
}
else {
if (dfop.isEdit) {// 系统表单
workformMap[rowdata.id].authorize[row.id].isLook = 1;
}
else {// 自定义表单
var _formAuthorize = workformMap[row.formId].authorize;
_formAuthorize[row.fieldId] = _formAuthorize[row.fieldId] || { isLook: 1, isEdit: 1 };
_formAuthorize[row.fieldId].isLook = 1;
}

row.isLook = 1;
$(this).html('<span class=\"label label-success \" style=\"cursor: pointer;\">是</span>');
}
});
row.isLook = 1;
$(this).html('<span class=\"label label-success \" style=\"cursor: pointer;\">是</span>');
}
});

//默认绑定授权值
if (dfop.isEdit) {// 系统表单
workformMap[rowdata.id].authorize[row.id].isLook = cellvalue;
}
else {// 自定义表单
var _formAuthorize = workformMap[row.formId].authorize;
_formAuthorize[row.fieldId] = _formAuthorize[row.fieldId] || { isLook: 1, isEdit: 1 };
}
//默认绑定授权值
if (dfop.isEdit) {// 系统表单
workformMap[rowdata.id].authorize[row.id].isLook = cellvalue;
}
else {// 自定义表单
var _formAuthorize = workformMap[row.formId].authorize;
_formAuthorize[row.fieldId] = _formAuthorize[row.fieldId] || { isLook: 1, isEdit: 1 };
}

if (cellvalue == 1) {
return '<span class=\"label label-success \" style=\"cursor: pointer;\">是</span>';
} else if (cellvalue == 0) {
return '<span class=\"label label-default \" style=\"cursor: pointer;\">否</span>';
}
}
},
{
label: "编辑", name: "isEdit", width: 70, align: "center",
formatter: function (cellvalue, row, dfop, $dcell) {
$dcell.on('click', function () {
if (row.isEdit == 1) {
if (dfop.isEdit) {// 系统表单
workformMap[rowdata.id].authorize[row.id].isEdit = 0;
}
else {// 自定义表单
var _formAuthorize = workformMap[row.formId].authorize;
_formAuthorize[row.fieldId] = _formAuthorize[row.fieldId] || { isLook: 1, isEdit: 1 };
_formAuthorize[row.fieldId].isEdit = 0;
}
if (cellvalue == 1) {
return '<span class=\"label label-success \" style=\"cursor: pointer;\">是</span>';
} else if (cellvalue == 0) {
return '<span class=\"label label-default \" style=\"cursor: pointer;\">否</span>';
}
}
},
{
label: "编辑", name: "isEdit", width: 70, align: "center",
formatter: function (cellvalue, row, dfop, $dcell) {
$dcell.on('click', function () {
if (row.isEdit == 1) {
if (dfop.isEdit) {// 系统表单
workformMap[rowdata.id].authorize[row.id].isEdit = 0;
}
else {// 自定义表单
var _formAuthorize = workformMap[row.formId].authorize;
_formAuthorize[row.fieldId] = _formAuthorize[row.fieldId] || { isLook: 1, isEdit: 1 };
_formAuthorize[row.fieldId].isEdit = 0;
}

row.isEdit = 0;
$(this).html('<span class=\"label label-default \" style=\"cursor: pointer;\">否</span>');
}
else {
if (dfop.isEdit) {// 系统表单
workformMap[rowdata.id].authorize[row.id].isEdit = 1;
}
else {// 自定义表单
var _formAuthorize = workformMap[row.formId].authorize;
_formAuthorize[row.fieldId] = _formAuthorize[row.fieldId] || { isLook: 1, isEdit: 1 };
_formAuthorize[row.fieldId].isEdit = 1;
}
row.isEdit = 0;
$(this).html('<span class=\"label label-default \" style=\"cursor: pointer;\">否</span>');
}
else {
if (dfop.isEdit) {// 系统表单
workformMap[rowdata.id].authorize[row.id].isEdit = 1;
}
else {// 自定义表单
var _formAuthorize = workformMap[row.formId].authorize;
_formAuthorize[row.fieldId] = _formAuthorize[row.fieldId] || { isLook: 1, isEdit: 1 };
_formAuthorize[row.fieldId].isEdit = 1;
}

row.isEdit = 1;
$(this).html('<span class=\"label label-success \" style=\"cursor: pointer;\">是</span>');
}
});
row.isEdit = 1;
$(this).html('<span class=\"label label-success \" style=\"cursor: pointer;\">是</span>');
}
});

//默认绑定授权值
if (dfop.isEdit) {// 系统表单
workformMap[rowdata.id].authorize[row.id].isEdit = cellvalue;
}
else {// 自定义表单
var _formAuthorize = workformMap[row.formId].authorize;
_formAuthorize[row.fieldId] = _formAuthorize[row.fieldId] || { isLook: 1, isEdit: 1 };
}
//默认绑定授权值
if (dfop.isEdit) {// 系统表单
workformMap[rowdata.id].authorize[row.id].isEdit = cellvalue;
}
else {// 自定义表单
var _formAuthorize = workformMap[row.formId].authorize;
_formAuthorize[row.fieldId] = _formAuthorize[row.fieldId] || { isLook: 1, isEdit: 1 };
}

if (cellvalue == 1) {
return '<span class=\"label label-success \" style=\"cursor: pointer;\">是</span>';
} else if (cellvalue == 0) {
return '<span class=\"label label-default \" style=\"cursor: pointer;\">否</span>';
}
}
}
if (cellvalue == 1) {
return '<span class=\"label label-success \" style=\"cursor: pointer;\">是</span>';
} else if (cellvalue == 0) {
return '<span class=\"label label-default \" style=\"cursor: pointer;\">否</span>';
}
}
}
],
onAddRow: function (row, rows) {//行数据和所有行数据
row.isLook = 0;
@@ -679,7 +679,7 @@ var bootstrap = function ($, learun) {
value: 'F_StrategyCode',
url: top.$.rootUrl + '/LR_Message/LR_StrategyInfo/GetList'
});
/*按钮设置*/
$('#btn_girdtable').jfGrid({
headData: [
@@ -709,6 +709,16 @@ var bootstrap = function ($, learun) {
}
}
},
{
label: "需要填写意见", name: "isOpinion", width: 100, align: "left",
formatter: function (cellvalue, row) {
if (cellvalue == '1') {
return '需要';
} else {
return '不需要';
}
}
},
{
label: "下一节点审核人", name: "next", width: 100, align: "left",
formatter: function (cellvalue, row) {
@@ -728,11 +738,11 @@ var bootstrap = function ($, learun) {
title: '添加按钮',
url: top.$.rootUrl + '/LR_NewWorkFlow/NWFScheme/ButtonForm',
width: 400,
height: 320,
height: 350,
callBack: function (id) {
return top[id].acceptClick(function (data) {
var _flag = true;
$.each(btnList, function (_index,_item) {
$.each(btnList, function (_index, _item) {
if (_item.code == data.code) {
learun.alert.error('按钮编码重复!');
_flag = false;
@@ -761,7 +771,7 @@ var bootstrap = function ($, learun) {
title: '编辑按钮',
url: top.$.rootUrl + '/LR_NewWorkFlow/NWFScheme/ButtonForm?id=' + _id,
width: 400,
height: 320,
height: 350,
callBack: function (id) {
return top[id].acceptClick(function (data) {
for (var i = 0, l = btnList.length; i < l; i++) {
@@ -974,7 +984,7 @@ var bootstrap = function ($, learun) {
if (currentNode.auditors) {
auditors = currentNode.auditors;
}
if (currentNode.btnList && currentNode.btnList.length >0) {
if (currentNode.btnList && currentNode.btnList.length > 0) {
btnList = currentNode.btnList;
}
if (currentNode.conditions) {
@@ -1000,7 +1010,7 @@ var bootstrap = function ($, learun) {
$('#iocName').val(currentNode.iocName);
break;
}
}
};
// 保存数据
@@ -1024,7 +1034,7 @@ var bootstrap = function ($, learun) {
currentNode.auditorAgainType = baseInfo.auditorAgainType;
currentNode.auditorType = baseInfo.auditorType;
currentNode.auditExecutType = baseInfo.auditExecutType;

currentNode.isSign = baseInfo.isSign;
currentNode.isBatchAudit = baseInfo.isBatchAudit;
@@ -1086,7 +1096,6 @@ var bootstrap = function ($, learun) {
}
break;
};

callBack();
return true;
};


Зареждане…
Отказ
Запис