Browse Source

[fix]

基础资料 员工领料
修改添加、编辑、详情页面表格,去除价格相关字段显示;
修改员工领料单列表页面,去除价格显示,修改列居中,去除申请人显示效果;
修改部门经理、主管审批页面,去除价格显示;
修改分角色设置节点变量service方法;
修改列表查询mapper,截取日期查询;
新增副总经理、研发总监审批页面;
dev
王晓迪 1 month ago
parent
commit
c0458cd3f4
  1. 89
      ruoyi-admin/src/main/java/com/ruoyi/system/service/impl/BaseEmpRequisiteOrderServiceImpl.java
  2. 2
      ruoyi-admin/src/main/resources/mapper/system/BaseEmpRequisiteOrderMapper.xml
  3. 8
      ruoyi-admin/src/main/resources/templates/system/empRequisiteOrder/add.html
  4. 8
      ruoyi-admin/src/main/resources/templates/system/empRequisiteOrder/detail.html
  5. 8
      ruoyi-admin/src/main/resources/templates/system/empRequisiteOrder/edit.html
  6. 29
      ruoyi-admin/src/main/resources/templates/system/empRequisiteOrder/empRequisiteOrder.html
  7. 18
      ruoyi-admin/src/main/resources/templates/system/empRequisiteOrder/taskBmjlVerify.html
  8. 16
      ruoyi-admin/src/main/resources/templates/system/empRequisiteOrder/taskBmzgVerify.html
  9. 171
      ruoyi-admin/src/main/resources/templates/system/empRequisiteOrder/taskFzjlVerify.html
  10. 171
      ruoyi-admin/src/main/resources/templates/system/empRequisiteOrder/taskYfzjVerify.html

89
ruoyi-admin/src/main/java/com/ruoyi/system/service/impl/BaseEmpRequisiteOrderServiceImpl.java

@ -391,50 +391,67 @@ public class BaseEmpRequisiteOrderServiceImpl implements IBaseEmpRequisiteOrderS
Set<String> roleKeys = roleService.selectRoleKeys(user.getUserId());
variables.put("authority",1);
variables.put("zgExist",false);
variables.put("jlExist",true);
variables.put("yfzjExist",false);
variables.put("fzjlExist",false);
//判断领料人的角色,进入相应的逻辑,设置节点审批人变量
if(roleKeys.contains("ywyRole") || roleKeys.contains("ywjlRole") || roleKeys.contains("ywzgRole")){
// 业务经理
if(roleKeys.contains("ywyRole")){
// 业务员/业务助理--->业务部经理
variables.put("bmjlRole","ywjlRole");
// 业务主管
variables.put("bmzgRole","ywzgRole");
}else if(roleKeys.contains("cgyRole") || roleKeys.contains("cgjlRole") || roleKeys.contains("cgzgRole")){
// 采购经理
variables.put("bmjlRole","cgjlRole");
// 采购主管
variables.put("bmzgRole","cgzgRole");
}else if(roleKeys.contains("wwyRole") || roleKeys.contains("wwjlRole") || roleKeys.contains("wwzgRole")){
// 委外经理
variables.put("bmjlRole","wwjlRole");
// 委外主管
variables.put("bmzgRole","wwzgRole");
}else if (roleKeys.contains("gcwyRole") || roleKeys.contains("gcjlRole") || roleKeys.contains("gczgRole")){
// 工程经理
}else if(roleKeys.contains("jggcsRole")){
//结构工程师--->工程经理--->研发总监
variables.put("bmjlRole","gcjlRole");
// 工程主管
variables.put("bmzgRole","gczgRole");
} else if (roleKeys.contains("scyRole") || roleKeys.contains("scjlRole") || roleKeys.contains("sczgRole")){
// 生产经理
variables.put("yfzjExist",true);
}else if(roleKeys.contains("dqgcsRole")){
//电气工程师--->电气主管--->研发总监
variables.put("bmzgRole","dqzgRole");
variables.put("jlExist",false);
variables.put("yfzjExist",true);
}else if(roleKeys.contains("rjgcsRole")||roleKeys.contains("csgcsRole")||roleKeys.contains("gcwyRole")
||roleKeys.contains("dqzgRole")||roleKeys.contains("gcjlRole")){
//软件工程师/测试工程师/工程文员--->研发总监
//电气主管 ---> 研发总监
//工程经理 ---> 研发总监
variables.put("jlExist",false);
variables.put("yfzjExist",true);
} else if(roleKeys.contains("cgyRole")){
// 采购员--->副总经理
variables.put("jlExist",false);
variables.put("fzjlExist",true);
}else if (roleKeys.contains("scyRole")){
// 生产员--->生产经理
variables.put("bmjlRole","scjlRole");
// 生产主管
variables.put("bmzgRole","sczgRole");
}else if (roleKeys.contains("shgcsRole") || roleKeys.contains("shjlRole") || roleKeys.contains("shzgRole")){
// 售后经理
}else if(roleKeys.contains("pzwyRole")||roleKeys.contains("iqczyRole")||roleKeys.contains("ipqczyRole")||roleKeys.contains("fqczyRole")){
// IQC/IPQC/FQC/品质文员--->品质经理
variables.put("bmjlRole","pzjlRole");
}else if (roleKeys.contains("shgcsRole")){
// 售后工程师--->售后主管--->售后经理
variables.put("bmjlRole","shjlRole");
// 售后主管
variables.put("bmzgRole","shzgRole");
}else if(roleKeys.contains("cgyyRole") || roleKeys.contains("ckjlRole") || roleKeys.contains("ckzgRole")){
variables.put("bmjlRole","ckjlRole");
// 仓库主管
variables.put("zgExist",true);
}else if (roleKeys.contains("shzgRole")){
// 售后主管--->售后经理
variables.put("bmjlRole","shjlRole");
} else if(roleKeys.contains("cgyyRole")){
// 仓库文员--->仓库主管
variables.put("bmzgRole","ckzgRole");
}else if (roleKeys.contains("cwRole") || roleKeys.contains("cwjlRole")|| roleKeys.contains("cwzgRole")){
variables.put("bmjlRole","cwjlRole");
// 财务主管
variables.put("zgExist",true);
variables.put("jlExist",false);
}else if(roleKeys.contains("hrzyRole")){
// 人事助理/专员--->人事经理
variables.put("bmjlRole","hrjlRole");
}else if (roleKeys.contains("cwzyRole")){
// 会计--->财务主管
variables.put("bmzgRole","cwzgRole");
}else{
variables.put("authority",2);
}
if(roleKeys.contains("admin")){
// 角色包含业务经理、采购经理、工程经理、生产经理
variables.put("zgExist",true);
variables.put("jlExist",false);
}
if(roleKeys.contains("admin")||roleKeys.contains("ywjlRole")||roleKeys.contains("yfzjRole")
||roleKeys.contains("fzjlRole")||roleKeys.contains("scjlRole")||roleKeys.contains("pzjlRole")
||roleKeys.contains("shjlRole")||roleKeys.contains("ckzgRole")||roleKeys.contains("hrjlRole")
||roleKeys.contains("cwzgRole")||roleKeys.contains("zjlRole")||roleKeys.contains("zozjRole")){
// 角色包含业务经理、研发总监、生产经理、品质经理、售后经理、仓库主管、人事经理、财务主管、副总经理、总经理、总经总助、admin
variables.put("authority",2);
}
}

2
ruoyi-admin/src/main/resources/mapper/system/BaseEmpRequisiteOrderMapper.xml

@ -46,7 +46,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="applyUser != null and applyUser != ''"> and apply_user = #{applyUser}</if>
<if test="createBy != null and createBy != ''"> and create_by = #{createBy}</if>
<if test="params.beginCreateTime != null and params.beginCreateTime != '' and params.endCreateTime != null and params.endCreateTime != ''">
and create_time between #{params.beginCreateTime} and #{params.endCreateTime}
and Date(create_time) between #{params.beginCreateTime} and #{params.endCreateTime}
</if>
</where>
order by audit_status asc, create_time desc

8
ruoyi-admin/src/main/resources/templates/system/empRequisiteOrder/add.html

@ -117,8 +117,8 @@
return $.table.selectDictLabel(processMethodDatas, value);
}
},
{title: '不含税单价(RMB)',field: 'materialNoRmb',align: 'center',},
{title: '含税单价(RMB)',field: 'materialRmb',align: 'center',},
{title: '不含税单价(RMB)',field: 'materialNoRmb',align: 'center',visible: false},
{title: '含税单价(RMB)',field: 'materialRmb',align: 'center',visible: false},
{title: '物料的数量', field: 'materialNum',align: 'center',
editable:{
type : 'text',
@ -135,8 +135,8 @@
},
},
{title: '不含税总价(RMB)',field: 'materialRmbSum',align: 'center',},
{title: '含税总价(RMB)',field: 'materialNoRmbSum',align: 'center',},
{title: '不含税总价(RMB)',field: 'materialRmbSum',align: 'center',visible: false},
{title: '含税总价(RMB)',field: 'materialNoRmbSum',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},

8
ruoyi-admin/src/main/resources/templates/system/empRequisiteOrder/detail.html

@ -114,10 +114,10 @@
}
},
{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: '物料的不含税单价(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},

8
ruoyi-admin/src/main/resources/templates/system/empRequisiteOrder/edit.html

@ -116,8 +116,8 @@
return $.table.selectDictLabel(processMethodDatas, value);
}
},
{title: '不含税单价(RMB)',field: 'materialNoRmb',align: 'center',},
{title: '含税单价(RMB)',field: 'materialRmb',align: 'center',},
{title: '不含税单价(RMB)',field: 'materialNoRmb',align: 'center',visible: false},
{title: '含税单价(RMB)',field: 'materialRmb',align: 'center',visible: false},
{title: '物料的数量', field: 'materialNum',align: 'center',
editable:{
type : 'text',
@ -134,8 +134,8 @@
},
},
{title: '不含税总价(RMB)',field: 'materialRmbSum',align: 'center',},
{title: '含税总价(RMB)',field: 'materialNoRmbSum',align: 'center',},
{title: '不含税总价(RMB)',field: 'materialRmbSum',align: 'center',visible: false},
{title: '含税总价(RMB)',field: 'materialNoRmbSum',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},

29
ruoyi-admin/src/main/resources/templates/system/empRequisiteOrder/empRequisiteOrder.html

@ -134,9 +134,9 @@
return '<span class="badge badge-primary">' + value + '</span>';
}
},
{title: '领料单号',field: 'requisitieCode',},
{title: '关联订单号',field: 'correlationCode',},
{title: '物料合计',field: 'materialAmount',
{title: '领料单号',field: 'requisitieCode',align: 'center',},
{title: '关联订单号',field: 'correlationCode',align: 'center',},
{title: '物料合计',field: 'materialAmount',align: 'center',
footerFormatter: function (value) {
var sum = 0;
for (var i in value) {
@ -145,7 +145,7 @@
return "物料合计: " + sum.toFixed(2);
}
},
{title: '数量总计',field: 'materialSum',
{title: '数量总计',field: 'materialSum',align: 'center',
footerFormatter: function (value) {
var sum = 0;
for (var i in value) {
@ -154,19 +154,18 @@
return "数量总计: " + sum.toFixed(2);
}
},
{title: '领料状态',field: 'requisitieStatus',
{title: '领料状态',field: 'requisitieStatus',align: 'center',
formatter: function(value, row, index) {return $.table.selectDictLabel(requisitieStatusDatas, value);}
},
{
field: 'applyUserName',
title: '<span style="color: red;">申请人</span>',
formatter: function(value, row, index) {
return '<span style="color: red;">' + (value ? value : "-") + '</span>';
}
title: '申请人',
align: 'center',
},
{
field: 'applyTime',
title: '申请时间'
title: '申请时间',
align: 'center',
},
{
field: 'taskId',
@ -181,14 +180,14 @@
{title: '审核状态',field: 'auditStatus',visible: false,
formatter: function(value, row, index) {return $.table.selectDictLabel(auditStatusDatas, value);}
},
{title: '领料员',field: 'createBy',},
{title: '领料员',field: 'createBy',align: 'center',},
{title: '不含税总价(RMB)',field: 'noRmbSum',visible: false},
{title: '含税总价(RMB)',field: 'rmbSum',visible: false},
{title: '申请人',field: 'applyUser',visible: false},
{title: '录入时间',field: 'createTime',},
{title: '更新人',field: 'updateBy',},
{title: '上次更新时间',field: 'updateTime',},
{title: '备注',field: 'remark'},
{title: '录入时间',field: 'createTime',align: 'center',},
{title: '更新人',field: 'updateBy',align: 'center',},
{title: '上次更新时间',field: 'updateTime',align: 'center',},
{title: '备注',field: 'remark',align: 'center',},
{title: '使用状态',field: 'useStatus',visible: false,
formatter: function(value, row, index) {return $.table.selectDictLabel(useStatusDatas, value);}
},

18
ruoyi-admin/src/main/resources/templates/system/empRequisiteOrder/taskBmjlVerify.html

@ -7,7 +7,7 @@
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-empRequisition-scjl" th:object="${formData}">
<form class="form-horizontal m" id="form-empRequisition-bmjl" 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">
@ -51,9 +51,9 @@
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required" for="scjlVerifyApproved">审批意见:</label>
<label class="col-sm-3 control-label is-required" for="bmjlVerifyApproved">审批意见:</label>
<div class="col-sm-6">
<select name="p_B_scjlVerifyApproved" id="scjlVerifyApproved" class="form-control" required>
<select name="p_B_bmjlVerifyApproved" id="bmjlVerifyApproved" class="form-control" required>
<option value=""></option>
<option value="true">同意</option>
<option value="false">拒绝</option>
@ -91,7 +91,7 @@
var auditStatusDatas = [[${@dict.getType('auditStatus')}]];
var sysUnitClassDatas = [[${@dict.getType('sys_unit_class')}]];
var processMethodDatas = [[${@dict.getType('processMethod')}]];
$("#form-empRequisition-scjl").validate({
$("#form-empRequisition-bmjl").validate({
focusCleanup: true
});
//获取子表信息
@ -138,10 +138,10 @@
}
},
{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: '物料的不含税单价(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},
@ -162,7 +162,7 @@
$('input[name="p_COM_comment"]').val($('textarea[name="comment"]').val());
}
var taskId = [[${taskId}]];
$.operate.save(prefix + "/complete/" + taskId, $('#form-empRequisition-scjl').serialize());
$.operate.save(prefix + "/complete/" + taskId, $('#form-empRequisition-bmjl').serialize());
}
}

16
ruoyi-admin/src/main/resources/templates/system/empRequisiteOrder/taskBmzgVerify.html

@ -7,7 +7,7 @@
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-empRequisition-sczg" th:object="${formData}">
<form class="form-horizontal m" id="form-empRequisition-bmzg" 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">
@ -51,9 +51,9 @@
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required" for="sczgVerifyApproved">审批意见:</label>
<label class="col-sm-3 control-label is-required" for="bmzgVerifyApproved">审批意见:</label>
<div class="col-sm-6">
<select name="p_B_sczgVerifyApproved" id="sczgVerifyApproved" class="form-control" required>
<select name="p_B_bmzgVerifyApproved" id="bmzgVerifyApproved" class="form-control" required>
<option value=""></option>
<option value="true">同意</option>
<option value="false">拒绝</option>
@ -139,10 +139,10 @@
}
},
{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: '物料的不含税单价(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},
@ -160,7 +160,7 @@
$('input[name="p_COM_comment"]').val($('textarea[name="comment"]').val());
}
var taskId = [[${taskId}]];
$.operate.save(prefix + "/complete/" + taskId, $('#form-empRequisition-sczg').serialize());
$.operate.save(prefix + "/complete/" + taskId, $('#form-empRequisition-bmzg').serialize());
}
}

171
ruoyi-admin/src/main/resources/templates/system/empRequisiteOrder/taskFzjlVerify.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-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>

171
ruoyi-admin/src/main/resources/templates/system/empRequisiteOrder/taskYfzjVerify.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…
Cancel
Save