|
|
@ -113,18 +113,13 @@ |
|
|
|
var auditStatusData = [[${@dict.getType('auditStatus')}]]; |
|
|
|
var expenseMethodData = [[${@dict.getType('sys_base_expense_method')}]]; |
|
|
|
var finacialExpenseStatusDatas = [[${@dict.getType('financial_expense_status')}]]; |
|
|
|
var prefix = ctx + "system/baseExpense"; |
|
|
|
var prefix = ctx + "financial/expense"; |
|
|
|
var prefix1 = ctx +"system/baseExpense"; |
|
|
|
|
|
|
|
$(function() { |
|
|
|
var options = { |
|
|
|
url: prefix + "/list", |
|
|
|
createUrl: prefix + "/add", |
|
|
|
updateUrl: prefix + "/edit/{id}", |
|
|
|
removeUrl: prefix + "/remove", |
|
|
|
cancelUrl: prefix + "/cancel/{id}", |
|
|
|
restoreUrl: prefix + "/restore/{id}", |
|
|
|
exportUrl: prefix + "/export", |
|
|
|
detailUrl: prefix + "/detail/{id}", |
|
|
|
detailUrl: prefix1 + "/detail/{id}", |
|
|
|
modalName: "报销单", |
|
|
|
pageSize: 10, |
|
|
|
sortable: true, // 是否启用排序 |
|
|
@ -185,14 +180,14 @@ |
|
|
|
{title: '使用状态',field: 'useStatus',visible: false,align: 'center',}, |
|
|
|
{title: '操作',align: 'center', formatter: function (value, row, index) { |
|
|
|
var actions = []; |
|
|
|
if(row.auditStatus=="1" && row.useStatus=="1") { |
|
|
|
actions.push('<a class="btn btn-danger btn-xs" href="javascript:void(0)" onclick="$.operate.cancel(\'' + row.expenseId + '\')"><i class="fa fa-remove"></i> 作废</a>'); |
|
|
|
actions.push('<a class="btn btn-success btn-xs" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.expenseId + '\')"><i class="fa fa-edit"></i> 编辑</a> '); |
|
|
|
} |
|
|
|
// 有流程实例id |
|
|
|
if(row.useStatus=="2" ){ |
|
|
|
actions.push('<a class="btn btn-success btn-xs" href="javascript:void(0)" onclick="$.operate.restore(\'' + row.expenseId + '\')"><i class="fa fa-window-restore"></i> 恢复</a> '); |
|
|
|
} |
|
|
|
// if(row.auditStatus=="1" && row.useStatus=="1") { |
|
|
|
// actions.push('<a class="btn btn-danger btn-xs" href="javascript:void(0)" onclick="$.operate.cancel(\'' + row.expenseId + '\')"><i class="fa fa-remove"></i> 作废</a>'); |
|
|
|
// actions.push('<a class="btn btn-success btn-xs" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.expenseId + '\')"><i class="fa fa-edit"></i> 编辑</a> '); |
|
|
|
// } |
|
|
|
// // 有流程实例id |
|
|
|
// if(row.useStatus=="2" ){ |
|
|
|
// actions.push('<a class="btn btn-success btn-xs" href="javascript:void(0)" onclick="$.operate.restore(\'' + row.expenseId + '\')"><i class="fa fa-window-restore"></i> 恢复</a> '); |
|
|
|
// } |
|
|
|
// 有流程实例id |
|
|
|
if (row.instanceId) { |
|
|
|
// 有待办人展示审批按钮, |
|
|
@ -200,7 +195,7 @@ |
|
|
|
var todoUserIdList = row.todoUserId.split(","); |
|
|
|
if(todoUserIdList.includes(loginName)){ |
|
|
|
var nodeName = row.taskName=='驳回调整'?' 调整申请':' 审批'; |
|
|
|
actions.push('<a class="btn btn-success btn-xs" href="javascript:void(0)" onclick="showVerifyDialog(\'' + prefix + '\',\'' + row.taskId + '\', \'' + row.taskName+"-"+ row.instanceTypeName +"申请" + '\')"><i class="fa fa-edit"></i> '+nodeName+'</a> '); |
|
|
|
actions.push('<a class="btn btn-success btn-xs" href="javascript:void(0)" onclick="showVerifyDialog(\'' + prefix1 + '\',\'' + row.taskId + '\', \'' + row.taskName+"-"+ row.instanceTypeName +"申请" + '\')"><i class="fa fa-edit"></i> '+nodeName+'</a> '); |
|
|
|
} |
|
|
|
} |
|
|
|
actions.push('<a class="btn btn-warning btn-xs" href="javascript:void(0)" onclick="showHistoryDialog(\'' + row.instanceId + '\')"><i class="fa fa-list"></i> 审批历史</a> '); |
|
|
@ -244,7 +239,7 @@ |
|
|
|
} |
|
|
|
function selectUserAll(){ |
|
|
|
$.ajax({ |
|
|
|
url: prefix + '/getExpenseUser', |
|
|
|
url: prefix1 + '/getExpenseUser', |
|
|
|
type: 'post', |
|
|
|
async: false, |
|
|
|
success: function (result) { |
|
|
|