zhangsiqi
4 months ago
21 changed files with 1342 additions and 182 deletions
@ -0,0 +1,125 @@ |
|||
package com.ruoyi.system.domain.Vo; |
|||
|
|||
import com.ruoyi.system.domain.BaseExpenseAccount; |
|||
import com.ruoyi.system.domain.BaseRequisitioningOrder; |
|||
|
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* |
|||
* @Description 请购单信息Vo |
|||
*/ |
|||
|
|||
public class BaseExpenseAccountVo extends BaseExpenseAccount { |
|||
private static final long serialVersionUID = 1L; |
|||
/** 申请人姓名 */ |
|||
private String applyUserName; |
|||
/** 任务ID */ |
|||
private String taskId; |
|||
/** 任务名称 */ |
|||
private String taskName; |
|||
/** 办理时间 */ |
|||
private Date doneTime; |
|||
/** 创建人 */ |
|||
private String createUserName; |
|||
/** 流程实例状态 1 激活 2 挂起 */ |
|||
private String suspendState; |
|||
/** 待办用户id */ |
|||
private String todoUserId; |
|||
/** 流程实例类型名称 */ |
|||
private String instanceTypeName; |
|||
|
|||
/** |
|||
* 关键词 |
|||
*/ |
|||
private String keyword; |
|||
|
|||
public String getApplyUserName() { |
|||
return applyUserName; |
|||
} |
|||
|
|||
public void setApplyUserName(String applyUserName) { |
|||
this.applyUserName = applyUserName; |
|||
} |
|||
|
|||
public String getTaskId() { |
|||
return taskId; |
|||
} |
|||
|
|||
public void setTaskId(String taskId) { |
|||
this.taskId = taskId; |
|||
} |
|||
|
|||
public String getTaskName() { |
|||
return taskName; |
|||
} |
|||
|
|||
public void setTaskName(String taskName) { |
|||
this.taskName = taskName; |
|||
} |
|||
|
|||
public Date getDoneTime() { |
|||
return doneTime; |
|||
} |
|||
|
|||
public void setDoneTime(Date doneTime) { |
|||
this.doneTime = doneTime; |
|||
} |
|||
|
|||
public String getCreateUserName() { |
|||
return createUserName; |
|||
} |
|||
|
|||
public void setCreateUserName(String createUserName) { |
|||
this.createUserName = createUserName; |
|||
} |
|||
|
|||
public String getSuspendState() { |
|||
return suspendState; |
|||
} |
|||
|
|||
public void setSuspendState(String suspendState) { |
|||
this.suspendState = suspendState; |
|||
} |
|||
|
|||
public String getTodoUserId() { |
|||
return todoUserId; |
|||
} |
|||
|
|||
public void setTodoUserId(String todoUserId) { |
|||
this.todoUserId = todoUserId; |
|||
} |
|||
|
|||
public String getInstanceTypeName() { |
|||
return instanceTypeName; |
|||
} |
|||
|
|||
public void setInstanceTypeName(String instanceTypeName) { |
|||
this.instanceTypeName = instanceTypeName; |
|||
} |
|||
|
|||
public String getKeyword() { |
|||
return keyword; |
|||
} |
|||
|
|||
public void setKeyword(String keyword) { |
|||
this.keyword = keyword; |
|||
} |
|||
|
|||
@Override |
|||
public String toString() { |
|||
return "BaseExpenseAccountVo{" + |
|||
"applyUserName='" + applyUserName + '\'' + |
|||
", taskId='" + taskId + '\'' + |
|||
", taskName='" + taskName + '\'' + |
|||
", doneTime=" + doneTime + |
|||
", createUserName='" + createUserName + '\'' + |
|||
", suspendState='" + suspendState + '\'' + |
|||
", todoUserId='" + todoUserId + '\'' + |
|||
", instanceTypeName='" + instanceTypeName + '\'' + |
|||
", keyword='" + keyword + '\'' + |
|||
super.toString() + |
|||
"} " ; |
|||
} |
|||
|
|||
} |
@ -0,0 +1,40 @@ |
|||
<!DOCTYPE html> |
|||
<html lang="zh" xmlns:th="http://www.thymeleaf.org" > |
|||
<head> |
|||
<th:block th:include="include :: header('财务报销审核')" /> |
|||
<th:block th:include="include :: datetimepicker-css" /> |
|||
</head> |
|||
<body class="white-bg"> |
|||
<div class="wrapper wrapper-content animated fadeInRight ibox-content"> |
|||
<form class="form-horizontal m" id="form-expense-cw-audit" th:object="${formData}"> |
|||
|
|||
</form> |
|||
</div> |
|||
<th:block th:include="include :: footer" /> |
|||
<th:block th:include="include :: datetimepicker-js" /> |
|||
<script th:inline="javascript"> |
|||
var prefix = ctx + "system/requisitioning"; |
|||
$("#form-expense-cw-audit").validate({focusCleanup: true}); |
|||
|
|||
function submitHandler() { |
|||
if ($.validate.form()) { |
|||
$.operate.save(prefix + "/complete/"+taskId, $('#form-expense-cw-audit').serialize()); |
|||
} |
|||
} |
|||
|
|||
function getSelections(){ |
|||
$.ajax({ |
|||
url: ctx + "system/requisitioning/getEmpUserName", |
|||
type: "get", |
|||
dataType: "json", |
|||
success: function (data) { |
|||
$("select[name='deptName']").append($('<option></option>').val(data.deptName).html(data.deptName)); |
|||
$("select[name='evectionBy']").append($('<option></option>').val(data.userName).html(data.userName)); |
|||
$("select[name='postName']").append($('<option></option>').val(data.postName).html(data.postName)); |
|||
} |
|||
}); |
|||
|
|||
} |
|||
</script> |
|||
</body> |
|||
</html> |
@ -0,0 +1,40 @@ |
|||
<!DOCTYPE html> |
|||
<html lang="zh" xmlns:th="http://www.thymeleaf.org" > |
|||
<head> |
|||
<th:block th:include="include :: header('修改出差单')" /> |
|||
<th:block th:include="include :: datetimepicker-css" /> |
|||
</head> |
|||
<body class="white-bg"> |
|||
<div class="wrapper wrapper-content animated fadeInRight ibox-content"> |
|||
<form class="form-horizontal m" id="form-requisitioning-modifyApply" th:object="${formData}"> |
|||
</form> |
|||
</div> |
|||
<th:block th:include="include :: footer" /> |
|||
<th:block th:include="include :: datetimepicker-js" /> |
|||
<script th:inline="javascript"> |
|||
var prefix = ctx + "system/requisitioning"; |
|||
$("#form-requisitioning-modifyApply").validate({focusCleanup: true}); |
|||
|
|||
function submitHandler() { |
|||
if ($.validate.form()) { |
|||
$.operate.save(prefix + "/complete/"+taskId, $('#form-requisitioning-modifyApply').serialize()); |
|||
} |
|||
} |
|||
|
|||
|
|||
function getSelections(){ |
|||
$.ajax({ |
|||
url: ctx + "system/requisitioning/getEmpUserName", |
|||
type: "get", |
|||
dataType: "json", |
|||
success: function (data) { |
|||
$("select[name='deptName']").append($('<option></option>').val(data.deptName).html(data.deptName)); |
|||
$("select[name='evectionBy']").append($('<option></option>').val(data.userName).html(data.userName)); |
|||
$("select[name='postName']").append($('<option></option>').val(data.postName).html(data.postName)); |
|||
} |
|||
}); |
|||
|
|||
} |
|||
</script> |
|||
</body> |
|||
</html> |
@ -0,0 +1,40 @@ |
|||
<!DOCTYPE html> |
|||
<html lang="zh" xmlns:th="http://www.thymeleaf.org" > |
|||
<head> |
|||
<th:block th:include="include :: header('总助/总经理审核')" /> |
|||
<th:block th:include="include :: datetimepicker-css" /> |
|||
</head> |
|||
<body class="white-bg"> |
|||
<div class="wrapper wrapper-content animated fadeInRight ibox-content"> |
|||
<form class="form-horizontal m" id="form-requisitioning-zozj-audit" th:object="${formData}"> |
|||
|
|||
</form> |
|||
</div> |
|||
<th:block th:include="include :: footer" /> |
|||
<th:block th:include="include :: datetimepicker-js" /> |
|||
<script th:inline="javascript"> |
|||
var prefix = ctx + "system/requisitioning"; |
|||
$("#form-requisitioning-zozj-audit").validate({focusCleanup: true}); |
|||
|
|||
function submitHandler() { |
|||
if ($.validate.form()) { |
|||
$.operate.save(prefix + "/complete/"+taskId, $('#form-requisitioning-zozj-audit').serialize()); |
|||
} |
|||
} |
|||
|
|||
function getSelections(){ |
|||
$.ajax({ |
|||
url: ctx + "system/requisitioning/getEmpUserName", |
|||
type: "get", |
|||
dataType: "json", |
|||
success: function (data) { |
|||
$("select[name='deptName']").append($('<option></option>').val(data.deptName).html(data.deptName)); |
|||
$("select[name='evectionBy']").append($('<option></option>').val(data.userName).html(data.userName)); |
|||
$("select[name='postName']").append($('<option></option>').val(data.postName).html(data.postName)); |
|||
} |
|||
}); |
|||
|
|||
} |
|||
</script> |
|||
</body> |
|||
</html> |
@ -0,0 +1,198 @@ |
|||
<!DOCTYPE html> |
|||
<html lang="zh" xmlns:th="http://www.thymeleaf.org" > |
|||
<head> |
|||
<th:block th:include="include :: header('报销人上级经理审核出差单')" /> |
|||
<th:block th:include="include :: datetimepicker-css" /> |
|||
</head> |
|||
<body class="white-bg"> |
|||
<div class="wrapper wrapper-content animated fadeInRight ibox-content"> |
|||
<form class="form-horizontal m" id="form-baseExpense-bxjl-audit" th:object="${formData}"> |
|||
<input name="requisitioningId" th:field="*{expenseId}" type="hidden"> |
|||
<input name="taskId" th:field="*{taskId}" type="hidden"> |
|||
<input name="taskName" th:field="*{taskName}" type="hidden"> |
|||
<input name="instanceId" th:field="*{instanceId}" type="hidden"> |
|||
<input name="instanceType" th:field="*{instanceType}" type="hidden"> |
|||
<!--驳回调整允许更新内容--> |
|||
<input type="hidden" name="saveEntity" value="true" /> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">申请人:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="applyUserName" th:field="*{applyUserName}" class="form-control" type="text" readonly> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">申请时间:</label> |
|||
<div class="col-sm-8"> |
|||
<div class="input-group date"> |
|||
<span class="input-group-addon"><i class="fa fa-calendar"></i></span> |
|||
<input name="applyTime" th:value="${#dates.format(formData.applyTime, 'yyyy-MM-dd HH:mm')}" class="form-control" type="text" disabled> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">标题:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="title" th:field="*{applyTitle}" class="form-control" type="text" readonly> |
|||
</div> |
|||
</div> |
|||
<div class="form-group" hidden="hidden"> |
|||
<label class="col-sm-3 control-label">报销单号:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="expenseCode" th:field="*{expenseCode}" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">部门:</label> |
|||
<div class="col-sm-8"> |
|||
<select name="deptName" th:field="*{deptName}" class="form-control"></select> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">岗位:</label> |
|||
<div class="col-sm-8"> |
|||
<select name="postName" th:field="*{postName}" class="form-control"></select> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">姓名:</label> |
|||
<div class="col-sm-8"> |
|||
<select name="userName" th:field="*{userName}" class="form-control"></select> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-6 control-label">报销方式:</label> |
|||
<div class="col-sm-6"> |
|||
<select id="bxjl_expenseMethod" name="expenseMethod" th:field="*{expenseMethod}" onchange="handleExpenseMethod(this)" class="form-control" th:with="dictList=${@dict.getType('sys_base_expense_method')}"> |
|||
<option th:each="dict : ${dictList}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option> |
|||
</select> |
|||
</div> |
|||
</div> |
|||
<div id="bxjl_expenseMethodModal" class="container" style="display: none"> |
|||
<div class="form-group"> |
|||
<label class="col-sm-6 control-label">是否是委外/采购采销:</label> |
|||
<div class="col-sm-6"> |
|||
<select name="isPurchaseOutsource" class="form-control" th:with="dictList=${@dict.getType('sys_whether')}"> |
|||
<option th:each="dict : ${dictList}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option> |
|||
</select> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-6 control-label">供应商ID:</label> |
|||
<div class="col-sm-6"> |
|||
<select id="supplierCode" name="supplierCode" class="form-control"> |
|||
</select> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-6 control-label">对公收款方:</label> |
|||
<div class="col-sm-6"> |
|||
<input name="corporatePayee" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-6 control-label">对公收款账户:</label> |
|||
<div class="col-sm-6"> |
|||
<input name="corporateReceivingAccount" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-6 control-label">对公开户行:</label> |
|||
<div class="col-sm-6"> |
|||
<input name="publicAccountBanks" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</form> |
|||
<div class="container"> |
|||
<div class="form-row"> |
|||
<div class="btn-group-sm" id="toolbar" role="group"> |
|||
<span>选择报销分类信息</span> |
|||
<a class="btn btn-success" onclick="insertRow()"> |
|||
<i class="fa fa-plus"></i> 添加报销 |
|||
</a> |
|||
</div> |
|||
</div> |
|||
<div class="row"> |
|||
<div class="col-sm-12 select-table table-striped"> |
|||
<table id="bootstrap-sub-table-expense-bxjl"></table> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<th:block th:include="include :: footer" /> |
|||
<th:block th:include="include :: datetimepicker-js" /> |
|||
<script th:inline="javascript"> |
|||
var prefix = ctx + "system/baseExpense"; |
|||
var taskId = [[${taskId}]]; |
|||
$("#form-baseExpense-bxjl-audit").validate({focusCleanup: true}); |
|||
|
|||
$(function() { |
|||
var options = { |
|||
id:'bootstrap-sub-table-expense-bxjl', |
|||
url: ctx + "system/expenseChild/list", |
|||
queryParams: function(params) { |
|||
return { |
|||
expenseCode: $("#expenseCode").val() |
|||
}; |
|||
}, |
|||
pagination: false, |
|||
sidePagination: "client", |
|||
model: "报销单数据", |
|||
editable: true, |
|||
columns: [ |
|||
{checkbox: true}, |
|||
{title: '主键',field: 'index',visible: false, |
|||
formatter: function (value, row, index) { |
|||
return index; |
|||
} |
|||
}, |
|||
{title: '报销单分项子表',field: 'expenseChildId',visible: false}, |
|||
{title: '关联报销单号',field: 'expenseCode',visible: false}, |
|||
{title: '成本类型',field: 'costType', |
|||
formatter:function (value, row, index) { |
|||
return costTypeFormatter(value,row,index); |
|||
} |
|||
}, |
|||
{title: '成本小类',field: 'costSmallType', |
|||
formatter:function(value, row, index){ |
|||
return getCostSmallType(value,row,index) |
|||
} |
|||
}, |
|||
{title: '用途',field: 'purpose',editable:{type:'text',mode:'inline'}}, |
|||
{title: '金额',field: 'amounts',editable: {type:'text',mode:'inline'}}, |
|||
{title: '报销时间',field: 'expenseTime',editable:{type:'date',mode:'inline',}}, |
|||
{title: '出差单号',field: 'evectionCode',editable: {type:'text',mode:'inline'}}, |
|||
{title: '采购单号',field: 'purcahseCode',editable: {type:'text',mode:'inline',}}, |
|||
{title: '委外单号',field: 'outsourceCode',editable: {type:'text',mode:'inline',}}, |
|||
{title: '操作', align: 'center', |
|||
formatter: function (value, row, index) { |
|||
var actions = []; |
|||
actions.push('<a class="btn btn-danger btn-xs" href="javascript:void(0)" onclick="removeRow(\'' + row.index + '\')"><i class="fa fa-remove"></i>删除</a> '); |
|||
return actions.join(''); |
|||
} |
|||
} |
|||
], |
|||
}; |
|||
$.table.init(options); |
|||
}); |
|||
function submitHandler() { |
|||
if ($.validate.form()) { |
|||
$.operate.save(prefix + "/complete/"+taskId, $('#form-requisitioning-qgjl-audit').serialize()); |
|||
} |
|||
} |
|||
function getSelections(){ |
|||
$.ajax({ |
|||
url: ctx + "system/requisitioning/getEmpUserName", |
|||
type: "get", |
|||
dataType: "json", |
|||
success: function (data) { |
|||
$("select[name='deptName']").append($('<option></option>').val(data.deptName).html(data.deptName)); |
|||
$("select[name='evectionBy']").append($('<option></option>').val(data.userName).html(data.userName)); |
|||
$("select[name='postName']").append($('<option></option>').val(data.postName).html(data.postName)); |
|||
} |
|||
}); |
|||
|
|||
} |
|||
</script> |
|||
</body> |
|||
</html> |
@ -0,0 +1,160 @@ |
|||
<!DOCTYPE html> |
|||
<html lang="zh" xmlns:th="http://www.thymeleaf.org" > |
|||
<head> |
|||
<th:block th:include="include :: header('报销人上级经理审核出差单')" /> |
|||
<th:block th:include="include :: datetimepicker-css" /> |
|||
</head> |
|||
<body class="white-bg"> |
|||
<div class="wrapper wrapper-content animated fadeInRight ibox-content"> |
|||
<form class="form-horizontal m" id="form-requisitioning-qgjl-audit" th:object="${formData}"> |
|||
<input name="requisitioningId" th:field="*{requisitioningId}" type="hidden"> |
|||
<input name="taskId" th:field="*{taskId}" type="hidden"> |
|||
<input name="taskName" th:field="*{taskName}" type="hidden"> |
|||
<input name="instanceId" th:field="*{instanceId}" type="hidden"> |
|||
<input name="instanceType" th:field="*{instanceType}" type="hidden"> |
|||
<!--驳回调整允许更新内容--> |
|||
<input type="hidden" name="saveEntity" value="true" /> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">申请人:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="applyUserName" th:field="*{applyUserName}" class="form-control" type="text" readonly> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">申请时间:</label> |
|||
<div class="col-sm-8"> |
|||
<div class="input-group date"> |
|||
<span class="input-group-addon"><i class="fa fa-calendar"></i></span> |
|||
<input name="applyTime" th:value="${#dates.format(formData.applyTime, 'yyyy-MM-dd HH:mm')}" class="form-control" type="text" disabled> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">标题:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="title" th:field="*{applyTitle}" class="form-control" type="text" readonly> |
|||
</div> |
|||
</div> |
|||
<div class="form-group" hidden="hidden"> |
|||
<label class="col-sm-3 control-label">请购单号:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="code" th:field="*{requisitioningCode}" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">部门:</label> |
|||
<div class="col-sm-8"> |
|||
<select name="deptName" th:field="*{deptName}" class="form-control"></select> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">岗位:</label> |
|||
<div class="col-sm-8"> |
|||
<select name="postName" th:field="*{postName}" class="form-control"></select> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">姓名:</label> |
|||
<div class="col-sm-8"> |
|||
<select name="userName" th:field="*{userName}" class="form-control"></select> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">关联单号:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="correlationCode" th:field="*{correlationCode}" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
</form> |
|||
<div class="container"> |
|||
<div class="form-row"> |
|||
<div class="btn-group-sm" id="toolbar" role="group"> |
|||
<span>选择报价信息</span> |
|||
<a class="btn btn-success" onclick="insertRow()"> |
|||
<i class="fa fa-plus"></i> 添加物料 |
|||
</a> |
|||
</div> |
|||
</div> |
|||
<div class="row"> |
|||
<div class="col-sm-12 select-table table-striped"> |
|||
<table id="bootstrap-sub-table-expense_bxzg"></table> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<th:block th:include="include :: footer" /> |
|||
<th:block th:include="include :: datetimepicker-js" /> |
|||
<script th:inline="javascript"> |
|||
var prefix = ctx + "system/requisitioning"; |
|||
var taskId = [[${taskId}]]; |
|||
$("#form-requisitioning-qgjl-audit").validate({focusCleanup: true}); |
|||
$(function() { |
|||
var options = { |
|||
id:'bootstrap-sub-table-expense_bxzg', |
|||
url: ctx + "system/expenseChild/list", |
|||
queryParams: function(params) { |
|||
return { |
|||
expenseCode: $("#expenseCode").val() |
|||
}; |
|||
}, |
|||
pagination: false, |
|||
sidePagination: "client", |
|||
model: "报销单数据", |
|||
editable: true, |
|||
columns: [ |
|||
{checkbox: true}, |
|||
{title: '主键',field: 'index',visible: false, |
|||
formatter: function (value, row, index) { |
|||
return index; |
|||
} |
|||
}, |
|||
{title: '报销单分项子表',field: 'expenseChildId',visible: false}, |
|||
{title: '关联报销单号',field: 'expenseCode',visible: false}, |
|||
{title: '成本类型',field: 'costType', |
|||
formatter:function (value, row, index) { |
|||
return costTypeFormatter(value,row,index); |
|||
} |
|||
}, |
|||
{title: '成本小类',field: 'costSmallType', |
|||
formatter:function(value, row, index){ |
|||
return getCostSmallType(value,row,index) |
|||
} |
|||
}, |
|||
{title: '用途',field: 'purpose',editable:{type:'text',mode:'inline'}}, |
|||
{title: '金额',field: 'amounts',editable: {type:'text',mode:'inline'}}, |
|||
{title: '报销时间',field: 'expenseTime',editable:{type:'date',mode:'inline',}}, |
|||
{title: '出差单号',field: 'evectionCode',editable: {type:'text',mode:'inline'}}, |
|||
{title: '采购单号',field: 'purcahseCode',editable: {type:'text',mode:'inline',}}, |
|||
{title: '委外单号',field: 'outsourceCode',editable: {type:'text',mode:'inline',}}, |
|||
{title: '操作', align: 'center', |
|||
formatter: function (value, row, index) { |
|||
var actions = []; |
|||
actions.push('<a class="btn btn-danger btn-xs" href="javascript:void(0)" onclick="removeRow(\'' + row.index + '\')"><i class="fa fa-remove"></i>删除</a> '); |
|||
return actions.join(''); |
|||
} |
|||
} |
|||
], |
|||
}; |
|||
$.table.init(options); |
|||
}); |
|||
function submitHandler() { |
|||
if ($.validate.form()) { |
|||
$.operate.save(prefix + "/complete/"+taskId, $('#form-requisitioning-qgjl-audit').serialize()); |
|||
} |
|||
} |
|||
function getSelections(){ |
|||
$.ajax({ |
|||
url: ctx + "system/requisitioning/getEmpUserName", |
|||
type: "get", |
|||
dataType: "json", |
|||
success: function (data) { |
|||
$("select[name='deptName']").append($('<option></option>').val(data.deptName).html(data.deptName)); |
|||
$("select[name='evectionBy']").append($('<option></option>').val(data.userName).html(data.userName)); |
|||
$("select[name='postName']").append($('<option></option>').val(data.postName).html(data.postName)); |
|||
} |
|||
}); |
|||
|
|||
} |
|||
</script> |
|||
</body> |
|||
</html> |
Loading…
Reference in new issue