Browse Source

已报账费用申请页面查看限制

梁世豪 5 months ago
parent
commit
b4643ac140
1 changed files with 19 additions and 15 deletions
  1. 19 15
      src/main/resources/templates/stabudgetapproval/list_reported.html

+ 19 - 15
src/main/resources/templates/stabudgetapproval/list_reported.html

@@ -518,22 +518,26 @@
518 518
                         "rws": data[0].xmid,
519 519
                         "rwsmc": data[0].xmmc
520 520
                     };
521
+                    if(data[0].spzt != '审批结束'){
522
+                        Message.warning("你的费用申请还未审批结束!", 1500);
523
+                    }else {
524
+                        var index = layer.open({
525
+                            title: '新建付款申请',
526
+                            type: 2,
527
+                            shade: 0.3,
528
+                            maxmin: true,
529
+                            shadeClose: true,
530
+                            area: ['1000px', '750px'],
531
+                            content: AjaxUtil.ctx + "staPayapproval/forAdd/" + data[0].id,
532
+                            end: function () {
533
+                                if (updateflag == 1)
534
+                                    currTable.reload();
535
+                                updateflag = 0;
536
+                                layer.close(index);
537
+                            }
538
+                        });
539
+                    }
521 540
 
522
-                    var index = layer.open({
523
-                        title: '新建付款申请',
524
-                        type: 2,
525
-                        shade: 0.3,
526
-                        maxmin: true,
527
-                        shadeClose: true,
528
-                        area: ['1000px', '750px'],
529
-                        content: AjaxUtil.ctx + "staPayapproval/forAdd/" + data[0].id,
530
-                        end: function () {
531
-                            if (updateflag == 1)
532
-                                currTable.reload();
533
-                            updateflag = 0;
534
-                            layer.close(index);
535
-                        }
536
-                    });
537 541
                 }
538 542
             } else if (obj.event === 'nullify') {  // 监听删除操作
539 543
                 var dataBudget = table.cache["currentTableId"];