|
@@ -67,7 +67,7 @@ var bootstrap = function ($, learun) { |
|
|
if (learun.checkrow(keyValue)) { |
|
|
if (learun.checkrow(keyValue)) { |
|
|
var State = $('#gridtable').jfGridValue('State'); |
|
|
var State = $('#gridtable').jfGridValue('State'); |
|
|
if (State !== 0) { |
|
|
if (State !== 0) { |
|
|
learun.alert.warning("当前项目已提交不能修改!"); |
|
|
|
|
|
|
|
|
learun.alert.warning("当前项不能修改!"); |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
learun.layerConfirm('是否确认修改该项,修改成后会影响数据!', function (res) { |
|
|
learun.layerConfirm('是否确认修改该项,修改成后会影响数据!', function (res) { |
|
@@ -195,15 +195,34 @@ var bootstrap = function ($, learun) { |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: "填报时间", name: "FillingTime", width: 80, align: "center", |
|
|
|
|
|
|
|
|
label: "填报时间", name: "FillingTime", width: 100, align: "left", |
|
|
formatterAsync: function (callback, value, row, op, $cell) { |
|
|
formatterAsync: function (callback, value, row, op, $cell) { |
|
|
learun.clientdata.getAsync('dataItem', { |
|
|
|
|
|
key: value, |
|
|
|
|
|
code: 'CycleTime', |
|
|
|
|
|
callback: function (_data) { |
|
|
|
|
|
callback(_data.text); |
|
|
|
|
|
|
|
|
if (value.indexOf(',') != -1) { |
|
|
|
|
|
var content = ''; |
|
|
|
|
|
var timearr = value.split(','); |
|
|
|
|
|
for (var i = 0; i < timearr.length; i++) { |
|
|
|
|
|
learun.clientdata.getAsync('dataItem', |
|
|
|
|
|
{ |
|
|
|
|
|
key: timearr[i], |
|
|
|
|
|
code: 'CycleTime', |
|
|
|
|
|
callback: function (_data) { |
|
|
|
|
|
content += _data.text + ','; |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
} |
|
|
} |
|
|
}); |
|
|
|
|
|
|
|
|
content = content.substring(0, content.length - 1); |
|
|
|
|
|
callback(content); |
|
|
|
|
|
} else { |
|
|
|
|
|
learun.clientdata.getAsync('dataItem', |
|
|
|
|
|
{ |
|
|
|
|
|
key: value, |
|
|
|
|
|
code: 'CycleTime', |
|
|
|
|
|
callback: function (_data) { |
|
|
|
|
|
callback(_data.text); |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|