Forráskód Böngészése

当选择省共享部门,审批流程节点变为开始-政数局审批-完成

wangzhe 2 éve
szülő
commit
c0713deba6

+ 7 - 1
mybusiness/src/main/resources/templates/apply/approval/approvalDetail.html

@@ -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);
             });
         });

+ 1 - 1
mybusiness/src/main/resources/templates/apply/record/add.html

@@ -282,7 +282,7 @@
         }
         if ($.validate.form()) {
             let accordion = $("#accordion").html();
-            if(accordion.length == 21){
+            if(accordion.length < 255){//1334
                 $.modal.alertWarning("请先选择接口!");
                return false;
             }else {