|
@@ -26,30 +26,62 @@ TalentAllowanceInfo.check = function () {
|
|
|
TalentAllowanceInfo.openCheckTalentAllowanceInfo = function () {
|
|
|
if (this.check()) {
|
|
|
var index = null;
|
|
|
+ var type = $("#type").val();
|
|
|
var process = $("#process").val();
|
|
|
if (process == 1) {
|
|
|
- index = layer.open({
|
|
|
- type: 2,
|
|
|
- title: '津补贴初级审核',
|
|
|
- fix: false, //不固定
|
|
|
- maxmin: true,
|
|
|
- content: Feng.ctxPath + '/admin/talentAllowance/toCheckPage/id/' + TalentAllowanceInfo.seItem.id + "/process/" + $("#process").val() + "/companyId/" + TalentAllowanceInfo.seItem.companyId,
|
|
|
- btn: ['<i class="fa fa-eye"></i> 保存未提交', '<i class="fa fa-save layui-bg-green"></i> 提交审核', '<i class="fa fa-eraser"></i> 关闭'],
|
|
|
- btnAlign: 'c',
|
|
|
- btn1: function (index, layero) {
|
|
|
- var obj = layero.find("iframe")[0].contentWindow;
|
|
|
- obj.TalentAllowanceInfoDlg.showCheckModal();
|
|
|
- },
|
|
|
- btn2: function (index, layero) {
|
|
|
- var obj = layero.find("iframe")[0].contentWindow;
|
|
|
- obj.TalentAllowanceInfoDlg.submitCheck();
|
|
|
- return false;
|
|
|
- },
|
|
|
- end: function () {
|
|
|
- layer.closeAll('tips');
|
|
|
- TalentAllowanceInfo.table.refresh();
|
|
|
- }
|
|
|
- });
|
|
|
+ if (type == 6) {
|
|
|
+ index = layer.open({
|
|
|
+ type: 2,
|
|
|
+ title: '津补贴初级审核',
|
|
|
+ fix: false, //不固定
|
|
|
+ maxmin: true,
|
|
|
+ content: Feng.ctxPath + '/admin/talentAllowance/toCheckPage/id/' + TalentAllowanceInfo.seItem.id + "/process/" + $("#process").val() + "/companyId/" + TalentAllowanceInfo.seItem.companyId,
|
|
|
+ btn: ['<i class="fa fa-save"></i> 保存修改', '<i class="fa fa-eye"></i> 保存审核', '<i class="fa fa-save layui-bg-green"></i> 提交审核', '<i class="fa fa-eraser"></i> 关闭'],
|
|
|
+ btnAlign: 'c',
|
|
|
+ btn1: function (index, layero) {
|
|
|
+ var obj = layero.find("iframe")[0].contentWindow;
|
|
|
+ obj.TalentAllowanceInfoDlg.save();
|
|
|
+ return false;
|
|
|
+ },
|
|
|
+ btn2: function (index, layero) {
|
|
|
+ var obj = layero.find("iframe")[0].contentWindow;
|
|
|
+ obj.TalentAllowanceInfoDlg.showCheckModal();
|
|
|
+ return false;
|
|
|
+ },
|
|
|
+ btn3: function (index, layero) {
|
|
|
+ var obj = layero.find("iframe")[0].contentWindow;
|
|
|
+ obj.TalentAllowanceInfoDlg.submitCheck();
|
|
|
+ return false;
|
|
|
+ },
|
|
|
+ end: function () {
|
|
|
+ layer.closeAll('tips');
|
|
|
+ TalentAllowanceInfo.table.refresh();
|
|
|
+ }
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ index = layer.open({
|
|
|
+ type: 2,
|
|
|
+ title: '津补贴初级审核',
|
|
|
+ fix: false, //不固定
|
|
|
+ maxmin: true,
|
|
|
+ content: Feng.ctxPath + '/admin/talentAllowance/toCheckPage/id/' + TalentAllowanceInfo.seItem.id + "/process/" + $("#process").val() + "/companyId/" + TalentAllowanceInfo.seItem.companyId,
|
|
|
+ btn: ['<i class="fa fa-eye"></i> 保存未提交', '<i class="fa fa-save layui-bg-green"></i> 提交审核', '<i class="fa fa-eraser"></i> 关闭'],
|
|
|
+ btnAlign: 'c',
|
|
|
+ btn1: function (index, layero) {
|
|
|
+ var obj = layero.find("iframe")[0].contentWindow;
|
|
|
+ obj.TalentAllowanceInfoDlg.showCheckModal();
|
|
|
+ },
|
|
|
+ btn2: function (index, layero) {
|
|
|
+ var obj = layero.find("iframe")[0].contentWindow;
|
|
|
+ obj.TalentAllowanceInfoDlg.submitCheck();
|
|
|
+ return false;
|
|
|
+ },
|
|
|
+ end: function () {
|
|
|
+ layer.closeAll('tips');
|
|
|
+ TalentAllowanceInfo.table.refresh();
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
} else if (process == 2) {
|
|
|
index = layer.open({
|
|
|
type: 2,
|