Browse Source
基础资料 员工领料 修改添加、编辑、详情页面表格,去除价格相关字段显示; 修改员工领料单列表页面,去除价格显示,修改列居中,去除申请人显示效果; 修改部门经理、主管审批页面,去除价格显示; 修改分角色设置节点变量service方法; 修改列表查询mapper,截取日期查询; 新增副总经理、研发总监审批页面;dev
王晓迪
1 month ago
10 changed files with 438 additions and 80 deletions
@ -0,0 +1,171 @@ |
|||
<!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" /> |
|||
<th:block th:include="include :: summernote-css" /> |
|||
</head> |
|||
<body class="white-bg"> |
|||
<div class="wrapper wrapper-content animated fadeInRight ibox-content"> |
|||
<form class="form-horizontal m" id="form-empRequisition-fzjl" th:object="${formData}"> |
|||
<input name="requisiteId" th:field="*{requisiteId}" 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="requisitieCode" th:field="*{requisitieCode}" class="form-control" type="text" readonly> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label is-required">部门:</label> |
|||
<div class="col-sm-8"> |
|||
<input id="deptName" name="deptName" th:field="*{deptName}" class="form-control" readonly required> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label" >岗位:</label> |
|||
<div class="col-sm-8"> |
|||
<input id="postName" name="postName" th:field="*{postName}" class="form-control" readonly> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label is-required">姓名:</label> |
|||
<div class="col-sm-8"> |
|||
<input id="applyUser" name="applyUser" th:field="*{applyUser}" class="form-control" readonly required> |
|||
</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" readonly> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">用途:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="remark" th:field="*{remark}" class="form-control" type="text" readonly> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label is-required" for="fzjlVerifyApproved">审批意见:</label> |
|||
<div class="col-sm-6"> |
|||
<select name="p_B_fzjlVerifyApproved" id="fzjlVerifyApproved" class="form-control" required> |
|||
<option value=""></option> |
|||
<option value="true">同意</option> |
|||
<option value="false">拒绝</option> |
|||
</select> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-6 control-label">批注:</label> |
|||
<div class="col-sm-6"> |
|||
<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-empRequisitionChild"></table> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<th:block th:include="include :: footer" /> |
|||
<th:block th:include="include :: datetimepicker-js" /> |
|||
<th:block th:include="include :: bootstrap-table-editable-js" /> |
|||
<th:block th:include="include :: summernote-js" /> |
|||
<script th:src="@{/js/activiti.js}"></script> |
|||
<script th:inline="javascript"> |
|||
var prefix = ctx + "system/empRequisiteOrder"; |
|||
var materialTypeDatas = [[${@category.getChildByCode('materialType')}]]; |
|||
var auditStatusDatas = [[${@dict.getType('auditStatus')}]]; |
|||
var sysUnitClassDatas = [[${@dict.getType('sys_unit_class')}]]; |
|||
var processMethodDatas = [[${@dict.getType('processMethod')}]]; |
|||
$("#form-empRequisition-fzjl").validate({ |
|||
focusCleanup: true |
|||
}); |
|||
//获取子表信息 |
|||
$(function() { |
|||
var options = { |
|||
id:'bootstrap-sub-table-empRequisitionChild', |
|||
pagination: false, |
|||
sidePagination: "client", |
|||
model: "物料报价信息", |
|||
data: [[${formData.baseEmpRequisiteOrderChildList}]], |
|||
columns: [ |
|||
{checkbox: true}, |
|||
{field: 'index',align: 'center', title: "序号",visible: false, |
|||
formatter: function (value, row, index) { |
|||
var columnIndex = $.common.sprintf("<input type='hidden' name='index' value='%s'>", $.table.serialNumber(index)); |
|||
return columnIndex + $.table.serialNumber(index); |
|||
} |
|||
}, |
|||
{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: 'materialModel',align: 'center',visible: false}, |
|||
{title: '规格',field: 'specification',align: 'center',visible: false}, |
|||
{ title: '描述',field: 'describe',align: 'center'}, |
|||
{title: '品牌',field: 'brand',align: 'center'}, |
|||
{ title: '单位',field: 'unit',align: 'center', |
|||
formatter: function(value, row, index) { |
|||
return $.table.selectDictLabel(sysUnitClassDatas, value); |
|||
} |
|||
}, |
|||
{title: '半成品类型',field: 'processMethod',align: 'center', |
|||
formatter: function(value, row, index) { |
|||
return $.table.selectDictLabel(processMethodDatas, value); |
|||
} |
|||
}, |
|||
{title: '物料的数量', field: 'materialNum',align: 'center',}, |
|||
{title: '物料的不含税单价(RMB)',field: 'materialNoRmb',align: 'center',visible: false}, |
|||
{title: '物料的含税单价(RMB)',field: 'materialRmb',align: 'center',visible: false}, |
|||
{title: '物料的含税总价(RMB)',field: 'materialNoRmbSum',align: 'center',visible: false}, |
|||
{title: '物料的不含税总价(RMB)',field: 'materialRmbSum',align: 'center',visible: false}, |
|||
{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',}, |
|||
], |
|||
onEditableSave:function(field, row, oldValue, $el){ |
|||
row.materialNoRmbSum = Number(row.materialNum * Number(row.materialNoRmb)).toFixed(2); |
|||
row.materialRmbSum = Number(row.materialRmb * row.materialNum).toFixed(2); |
|||
}, |
|||
}; |
|||
$.table.init(options); |
|||
}); |
|||
function submitHandler() { |
|||
|
|||
if ($.validate.form()) { |
|||
if ($('textarea[name="comment"]').val()) { |
|||
$('input[name="p_COM_comment"]').val($('textarea[name="comment"]').val()); |
|||
} |
|||
var taskId = [[${taskId}]]; |
|||
$.operate.save(prefix + "/complete/" + taskId, $('#form-empRequisition-fzjl').serialize()); |
|||
} |
|||
} |
|||
|
|||
</script> |
|||
</body> |
|||
</html> |
@ -0,0 +1,171 @@ |
|||
<!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" /> |
|||
<th:block th:include="include :: summernote-css" /> |
|||
</head> |
|||
<body class="white-bg"> |
|||
<div class="wrapper wrapper-content animated fadeInRight ibox-content"> |
|||
<form class="form-horizontal m" id="form-empRequisition-yfzj" th:object="${formData}"> |
|||
<input name="requisiteId" th:field="*{requisiteId}" 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="requisitieCode" th:field="*{requisitieCode}" class="form-control" type="text" readonly> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label is-required">部门:</label> |
|||
<div class="col-sm-8"> |
|||
<input id="deptName" name="deptName" th:field="*{deptName}" class="form-control" readonly required> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label" >岗位:</label> |
|||
<div class="col-sm-8"> |
|||
<input id="postName" name="postName" th:field="*{postName}" class="form-control" readonly> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label is-required">姓名:</label> |
|||
<div class="col-sm-8"> |
|||
<input id="applyUser" name="applyUser" th:field="*{applyUser}" class="form-control" readonly required> |
|||
</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" readonly> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">用途:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="remark" th:field="*{remark}" class="form-control" type="text" readonly> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label is-required" for="yfzjVerifyApproved">审批意见:</label> |
|||
<div class="col-sm-6"> |
|||
<select name="p_B_yfzjVerifyApproved" id="yfzjVerifyApproved" class="form-control" required> |
|||
<option value=""></option> |
|||
<option value="true">同意</option> |
|||
<option value="false">拒绝</option> |
|||
</select> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-6 control-label">批注:</label> |
|||
<div class="col-sm-6"> |
|||
<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-empRequisitionChild"></table> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<th:block th:include="include :: footer" /> |
|||
<th:block th:include="include :: datetimepicker-js" /> |
|||
<th:block th:include="include :: bootstrap-table-editable-js" /> |
|||
<th:block th:include="include :: summernote-js" /> |
|||
<script th:src="@{/js/activiti.js}"></script> |
|||
<script th:inline="javascript"> |
|||
var prefix = ctx + "system/empRequisiteOrder"; |
|||
var materialTypeDatas = [[${@category.getChildByCode('materialType')}]]; |
|||
var auditStatusDatas = [[${@dict.getType('auditStatus')}]]; |
|||
var sysUnitClassDatas = [[${@dict.getType('sys_unit_class')}]]; |
|||
var processMethodDatas = [[${@dict.getType('processMethod')}]]; |
|||
$("#form-empRequisition-yfzj").validate({ |
|||
focusCleanup: true |
|||
}); |
|||
//获取子表信息 |
|||
$(function() { |
|||
var options = { |
|||
id:'bootstrap-sub-table-empRequisitionChild', |
|||
pagination: false, |
|||
sidePagination: "client", |
|||
model: "物料报价信息", |
|||
data: [[${formData.baseEmpRequisiteOrderChildList}]], |
|||
columns: [ |
|||
{checkbox: true}, |
|||
{field: 'index',align: 'center', title: "序号",visible: false, |
|||
formatter: function (value, row, index) { |
|||
var columnIndex = $.common.sprintf("<input type='hidden' name='index' value='%s'>", $.table.serialNumber(index)); |
|||
return columnIndex + $.table.serialNumber(index); |
|||
} |
|||
}, |
|||
{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: 'materialModel',align: 'center',visible: false}, |
|||
{title: '规格',field: 'specification',align: 'center',visible: false}, |
|||
{ title: '描述',field: 'describe',align: 'center'}, |
|||
{title: '品牌',field: 'brand',align: 'center'}, |
|||
{ title: '单位',field: 'unit',align: 'center', |
|||
formatter: function(value, row, index) { |
|||
return $.table.selectDictLabel(sysUnitClassDatas, value); |
|||
} |
|||
}, |
|||
{title: '半成品类型',field: 'processMethod',align: 'center', |
|||
formatter: function(value, row, index) { |
|||
return $.table.selectDictLabel(processMethodDatas, value); |
|||
} |
|||
}, |
|||
{title: '物料的数量', field: 'materialNum',align: 'center',}, |
|||
{title: '物料的不含税单价(RMB)',field: 'materialNoRmb',align: 'center',visible: false}, |
|||
{title: '物料的含税单价(RMB)',field: 'materialRmb',align: 'center',visible: false}, |
|||
{title: '物料的含税总价(RMB)',field: 'materialNoRmbSum',align: 'center',visible: false}, |
|||
{title: '物料的不含税总价(RMB)',field: 'materialRmbSum',align: 'center',visible: false}, |
|||
{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',}, |
|||
], |
|||
onEditableSave:function(field, row, oldValue, $el){ |
|||
row.materialNoRmbSum = Number(row.materialNum * Number(row.materialNoRmb)).toFixed(2); |
|||
row.materialRmbSum = Number(row.materialRmb * row.materialNum).toFixed(2); |
|||
}, |
|||
}; |
|||
$.table.init(options); |
|||
}); |
|||
function submitHandler() { |
|||
|
|||
if ($.validate.form()) { |
|||
if ($('textarea[name="comment"]').val()) { |
|||
$('input[name="p_COM_comment"]').val($('textarea[name="comment"]').val()); |
|||
} |
|||
var taskId = [[${taskId}]]; |
|||
$.operate.save(prefix + "/complete/" + taskId, $('#form-empRequisition-yfzj').serialize()); |
|||
} |
|||
} |
|||
|
|||
</script> |
|||
</body> |
|||
</html> |
Loading…
Reference in new issue