Browse Source
委外加工 委外领料 修改委外领料实体类 添加审批流程必需字段 修改前端页面 添加审批相关内容 修改mapper文件返回实体类字段,更新、插入记录的方法 修改委外领料列表查询方法 新增启动审批流程、发起人节点判断方法 修改后端接口 新增加载审批弹窗、审批任务完成的处理流程方法 [feat] 委外加工 委外领料 新增委外领料委外经理、委外主管审核页面dev
王晓迪
4 months ago
9 changed files with 783 additions and 76 deletions
@ -0,0 +1,108 @@ |
|||
<!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-outsourceQuote-wwjl" th:object="${formData}"> |
|||
<input name="outsourceRequisitionId" th:field="*{outsourceRequisitionId}" 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="outsourceRequisitionNo" th:field="*{outsourceRequisitionNo}" 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="supplierQuoteCode" th:field="*{supplierQuoteCode}" 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="supplierName" th:field="*{supplierName}" 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="processAmount" th:field="*{processAmount}" 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="taxRate" th:field="*{taxRate}" 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="pricingDate" th:field="*{pricingDate}" 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="wwjlVerifyApproved">审批意见:</label> |
|||
<div class="col-sm-6"> |
|||
<select name="p_B_wwjlVerifyApproved" id="wwjlVerifyApproved" 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> |
|||
<div class="form-group"> |
|||
|
|||
</div> |
|||
</form> |
|||
</div> |
|||
<th:block th:include="include :: footer" /> |
|||
<th:block th:include="include :: datetimepicker-js" /> |
|||
<th:block th:include="include :: summernote-js" /> |
|||
<script th:src="@{/js/activiti.js}"></script> |
|||
<script th:inline="javascript"> |
|||
var prefix = ctx + "system/outsource_requisition"; |
|||
$("#form-outsourceQuote-wwjl").validate({ |
|||
focusCleanup: true |
|||
}); |
|||
var childData = [[${formData}]]; |
|||
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-outsourceQuote-wwjl').serialize()); |
|||
} |
|||
} |
|||
|
|||
$(function() { |
|||
|
|||
console.log(childData); |
|||
}); |
|||
</script> |
|||
</body> |
|||
</html> |
@ -0,0 +1,108 @@ |
|||
<!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-outsourceQuote-wwzg" th:object="${formData}"> |
|||
<input name="outsourceRequisitionId" th:field="*{outsourceRequisitionId}" 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="outsourceRequisitionNo" th:field="*{outsourceRequisitionNo}" 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="supplierQuoteCode" th:field="*{supplierQuoteCode}" 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="supplierName" th:field="*{supplierName}" 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="processAmount" th:field="*{processAmount}" 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="taxRate" th:field="*{taxRate}" 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="pricingDate" th:field="*{pricingDate}" 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="wwzgVerifyApproved">审批意见:</label> |
|||
<div class="col-sm-6"> |
|||
<select name="p_B_wwzgVerifyApproved" id="wwzgVerifyApproved" 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> |
|||
<div class="form-group"> |
|||
|
|||
</div> |
|||
</form> |
|||
</div> |
|||
<th:block th:include="include :: footer" /> |
|||
<th:block th:include="include :: datetimepicker-js" /> |
|||
<th:block th:include="include :: summernote-js" /> |
|||
<script th:src="@{/js/activiti.js}"></script> |
|||
<script th:inline="javascript"> |
|||
var prefix = ctx + "system/outsource_requisition"; |
|||
$("#form-outsourceQuote-wwzg").validate({ |
|||
focusCleanup: true |
|||
}); |
|||
var childData = [[${formData}]]; |
|||
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-outsourceQuote-wwzg').serialize()); |
|||
} |
|||
} |
|||
|
|||
$(function() { |
|||
|
|||
console.log(childData); |
|||
}); |
|||
</script> |
|||
</body> |
|||
</html> |
Loading…
Reference in new issue