zhangsiqi
4 months ago
26 changed files with 1457 additions and 348 deletions
@ -1,40 +0,0 @@ |
|||
<!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-fzjl-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-fzjl-audit").validate({focusCleanup: true}); |
|||
|
|||
function submitHandler() { |
|||
if ($.validate.form()) { |
|||
$.operate.save(prefix + "/complete/"+taskId, $('#form-requisitioning-fzjl-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,180 @@ |
|||
<!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"> |
|||
<div class="wrapper wrapper-content animated fadeInRight ibox-content"> |
|||
<form class="form-horizontal m" id="form-requisitioning-fzjl-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="p_COM_comment" /> |
|||
<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> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label" for="fzjlVerifyApproved"><span style="color: red; ">*</span>审批意见:</label> |
|||
<div class="col-sm-8"> |
|||
<select name="p_B_fzjlVerifyApproved" id="fzjlVerifyApproved" class="form-control m-b" required> |
|||
<option value=""></option> |
|||
<option value="true">同意</option> |
|||
<option value="false">拒绝</option> |
|||
</select> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">批注:</label> |
|||
<div class="col-sm-8"> |
|||
<textarea name="comment" class="form-control"></textarea> |
|||
</div> |
|||
</div> |
|||
</form> |
|||
<div class="container"> |
|||
<div class="form-row"> |
|||
<div class="btn-group-sm" id="toolbar" role="group"> |
|||
<span>选择报价信息</span> |
|||
</div> |
|||
</div> |
|||
<div class="row"> |
|||
<div class="col-sm-12 select-table table-striped"> |
|||
<table id="bootstrap-sub-table-requisitionChild"></table> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<th:block th:include="include :: footer" /> |
|||
<th:block th:include="include :: datetimepicker-js" /> |
|||
<script th:src="@{/js/activiti.js}"></script> |
|||
<script th:inline="javascript"> |
|||
var prefix = ctx + "system/requisitioning"; |
|||
var taskId = [[${taskId}]]; |
|||
var requisitioningCode = [[${formData.requisitioningCode}]]; |
|||
$("#form-requisitioning-fzjl-audit").validate({focusCleanup: true}); |
|||
|
|||
function submitHandler() { |
|||
if ($.validate.form()) { |
|||
if ($('textarea[name="comment"]').val()) { |
|||
$('input[name="p_COM_comment"]').val($('textarea[name="comment"]').val()); |
|||
} |
|||
$.operate.save(prefix + "/complete/"+taskId, $('#form-requisitioning-fzjl-audit').serialize()); |
|||
} |
|||
} |
|||
$(function() { |
|||
var options = { |
|||
id:'bootstrap-sub-table-requisitionChild', |
|||
url: ctx + "system/requisitioningChild/list", |
|||
pagination: false, |
|||
sidePagination: "client", |
|||
queryParams: queryParams, |
|||
model: "物料报价信息", |
|||
columns: [ |
|||
{checkbox: true}, |
|||
{field: 'index',align: 'center', title: "序号", |
|||
formatter: function (value, row, index,column) { |
|||
return $.table.serialNumber(index) - 1; |
|||
} |
|||
}, |
|||
{title: '物料索引id',field: 'materialId',align: 'center',visible: false}, |
|||
{title: '料号',field: 'materialCode',align: 'center'}, |
|||
{title: '物料名称',field: 'materialName',align: 'center'}, |
|||
{title: '图片',field: 'photoUrl', |
|||
formatter: function(value, row, index) { |
|||
return $.table.imageView(value); |
|||
} |
|||
}, |
|||
{title: '物料类型',field: 'materialType',align: 'center', |
|||
formatter: function(value, row, index) { |
|||
return $.table.selectCategoryLabel(materialTypeDatas, value); |
|||
} |
|||
}, |
|||
{ title: '描述',field: 'describe',align: 'center'}, |
|||
{title: '品牌',field: 'brand',align: 'center'}, |
|||
{ title: '单位',field: 'unit',align: 'center',}, |
|||
{title: '加工方式',field: 'processMethod',align: 'center', |
|||
formatter: function(value, row, index) { |
|||
return $.table.selectDictLabel(processMethodDatas, value); |
|||
} |
|||
}, |
|||
{title: '入库部门',field: 'warehouseDept',align: 'center',}, |
|||
{title: '物料的数量', field: 'materialNum',align: 'center',}, |
|||
{title: '物料的不含税单价(RMB)',field: 'materialNoRmb',align: 'center',}, |
|||
{title: '物料的含税单价(RMB)',field: 'materialRmb',align: 'center',}, |
|||
{title: '物料的含税总价(RMB)',field: 'materialNoRmbSum',align: 'center',}, |
|||
{title: '物料的不含税总价(RMB)',field: 'materialRmbSum',align: 'center',}, |
|||
{title: '录入人',field: 'createBy',align: 'center',visible: false}, |
|||
{title: '录入时间',field: 'createTime',align: 'center',visible: false }, |
|||
{title: '更新人',field: 'updateBy',align: 'center',visible: false}, |
|||
{title: '上次更新时间',field: 'updateTime',align: 'center',visible: false}, |
|||
{title: '备注',field: 'remark',align: 'center'}, |
|||
] |
|||
}; |
|||
$.table.init(options); |
|||
}); |
|||
function queryParams(params) { |
|||
var curParams = { |
|||
// 传递参数查询参数 |
|||
pageSize: params.limit, |
|||
pageNum: params.offset / params.limit + 1, |
|||
requisitioningCode: requisitioningCode |
|||
}; |
|||
return curParams; |
|||
} |
|||
|
|||
|
|||
</script> |
|||
</body> |
|||
</html> |
@ -1,42 +1,177 @@ |
|||
<!DOCTYPE html> |
|||
<html lang="zh" xmlns:th="http://www.thymeleaf.org" > |
|||
<head> |
|||
<th:block th:include="include :: header('修改出差单')" /> |
|||
<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"> |
|||
<div class="wrapper wrapper-content animated fadeInRight ibox-content"> |
|||
<form class="form-horizontal m" id="form-requisitioning-qgzg-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="p_COM_comment" /> |
|||
<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> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label" for="qgzgVerifyApproved"><span style="color: red; ">*</span>审批意见:</label> |
|||
<div class="col-sm-8"> |
|||
<select name="p_B_qgzgVerifyApproved" id="qgzgVerifyApproved" class="form-control m-b" required> |
|||
<option value=""></option> |
|||
<option value="true">同意</option> |
|||
<option value="false">拒绝</option> |
|||
</select> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">批注:</label> |
|||
<div class="col-sm-8"> |
|||
<textarea name="comment" class="form-control"></textarea> |
|||
</div> |
|||
</div> |
|||
</form> |
|||
<div class="container"> |
|||
<div class="form-row"> |
|||
<div class="btn-group-sm" id="toolbar" role="group"> |
|||
<span>选择报价信息</span> |
|||
</div> |
|||
</div> |
|||
<div class="row"> |
|||
<div class="col-sm-12 select-table table-striped"> |
|||
<table id="bootstrap-sub-table-requisitionChild"></table> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<th:block th:include="include :: footer" /> |
|||
<th:block th:include="include :: datetimepicker-js" /> |
|||
<script th:src="@{/js/activiti.js}"></script> |
|||
<script th:inline="javascript"> |
|||
var prefix = ctx + "system/baseEvectionForm"; |
|||
var prefix = ctx + "system/requisitioning"; |
|||
var taskId = [[${taskId}]]; |
|||
var requisitioningCode = [[${formData.requisitioningCode}]]; |
|||
$("#form-requisitioning-qgzg-audit").validate({focusCleanup: true}); |
|||
|
|||
$(function() { |
|||
var options = { |
|||
id:'bootstrap-sub-table-requisitionChild', |
|||
url: ctx + "system/requisitioningChild/list", |
|||
pagination: false, |
|||
sidePagination: "client", |
|||
queryParams: queryParams, |
|||
model: "物料报价信息", |
|||
columns: [ |
|||
{checkbox: true}, |
|||
{field: 'index',align: 'center', title: "序号", |
|||
formatter: function (value, row, index,column) { |
|||
return $.table.serialNumber(index) - 1; |
|||
} |
|||
}, |
|||
{title: '物料索引id',field: 'materialId',align: 'center',visible: false}, |
|||
{title: '料号',field: 'materialCode',align: 'center'}, |
|||
{title: '物料名称',field: 'materialName',align: 'center'}, |
|||
{title: '图片',field: 'photoUrl', |
|||
formatter: function(value, row, index) { |
|||
return $.table.imageView(value); |
|||
} |
|||
}, |
|||
{title: '物料类型',field: 'materialType',align: 'center', |
|||
formatter: function(value, row, index) { |
|||
return $.table.selectCategoryLabel(materialTypeDatas, value); |
|||
} |
|||
}, |
|||
{ title: '描述',field: 'describe',align: 'center'}, |
|||
{title: '品牌',field: 'brand',align: 'center'}, |
|||
{ title: '单位',field: 'unit',align: 'center',}, |
|||
{title: '加工方式',field: 'processMethod',align: 'center', |
|||
formatter: function(value, row, index) { |
|||
return $.table.selectDictLabel(processMethodDatas, value); |
|||
} |
|||
}, |
|||
{title: '入库部门',field: 'warehouseDept',align: 'center',}, |
|||
{title: '物料的数量', field: 'materialNum',align: 'center',}, |
|||
{title: '物料的不含税单价(RMB)',field: 'materialNoRmb',align: 'center',}, |
|||
{title: '物料的含税单价(RMB)',field: 'materialRmb',align: 'center',}, |
|||
{title: '物料的含税总价(RMB)',field: 'materialNoRmbSum',align: 'center',}, |
|||
{title: '物料的不含税总价(RMB)',field: 'materialRmbSum',align: 'center',}, |
|||
{title: '录入人',field: 'createBy',align: 'center',visible: false}, |
|||
{title: '录入时间',field: 'createTime',align: 'center',visible: false }, |
|||
{title: '更新人',field: 'updateBy',align: 'center',visible: false}, |
|||
{title: '上次更新时间',field: 'updateTime',align: 'center',visible: false}, |
|||
{title: '备注',field: 'remark',align: 'center'}, |
|||
] |
|||
}; |
|||
$.table.init(options); |
|||
}); |
|||
function queryParams(params) { |
|||
var curParams = { |
|||
// 传递参数查询参数 |
|||
pageSize: params.limit, |
|||
pageNum: params.offset / params.limit + 1, |
|||
requisitioningCode: requisitioningCode |
|||
}; |
|||
return curParams; |
|||
} |
|||
function submitHandler() { |
|||
if ($.validate.form()) { |
|||
if ($('textarea[name="comment"]').val()) { |
|||
$('input[name="p_COM_comment"]').val($('textarea[name="comment"]').val()); |
|||
} |
|||
$.operate.save(prefix + "/complete/"+taskId, $('#form-requisitioning-qgzg-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