|
@@ -27,6 +27,7 @@
|
|
|
<div class="ibox-content">
|
|
|
<form method="get" class="form-horizontal" id="form-record-edit">
|
|
|
<input type="hidden" name="id" th:value="${intRecord.id}">
|
|
|
+ <input type="hidden" name="shareType" th:value="${intRecord.shareType}">
|
|
|
<div class="form-group">
|
|
|
<label class="col-sm-2 control-label is-required">申请部门名称</label>
|
|
|
<div class="col-sm-4">
|
|
@@ -183,9 +184,14 @@
|
|
|
|
|
|
function ok() {
|
|
|
let id = $("input[name='id']").val();
|
|
|
+ let shareType = $("input[name='shareType']").val();
|
|
|
+ let status = shareType == 'share_type_4' ? '2' : '4';//省共享部门提供部门通过2 其他情况提供部门待审批4
|
|
|
$.modal.confirm("确认审批通过吗?", function() {
|
|
|
let url = ctx + "apply/record/updateStatus";
|
|
|
- $.operate.post(url,{ "id": id, "status": "4" },function(res){
|
|
|
+ //当选择省共享部门,审批流程节点变为开始-政数局审批-完成。
|
|
|
+ //状态:0新建,政数局通过1,提供部门通过2,政数局待审批3,提供部门待审批4,政数局驳回5,提供部门驳回6
|
|
|
+ // $.operate.post(url,{ "id": id, "status": "4" },function(res){
|
|
|
+ $.operate.post(url, { "id": id, "status": status },function(res){
|
|
|
$.operate.successTabCallback(res);
|
|
|
});
|
|
|
});
|