|
@@ -23,14 +23,42 @@
|
|
|
<div class="adminContent">
|
|
|
<div class="adminMain">
|
|
|
<legend><a href="{{rootUrl}}manage/item/{{pid}}/section">返回标段列表</a></legend>
|
|
|
+ <!-- if {{isnopm}} == 1 -->
|
|
|
+ <table class="table table-striped table-hover">
|
|
|
+ <legend><a mpid="{{nopmArray.mpid}}" id="adelete" href="#" class="fR btn btn-link colGray" times="{{nopmArray.times}}" nums = "{{nopmArray.numpname}}" data-toggle="modal">删除本期#{{nopmArray.times}}</a>
|
|
|
+ 第{{nopmArray.numpname}}期 #{{nopmArray.times}} (未上报)
|
|
|
+ </legend>
|
|
|
+ <thead>
|
|
|
+ <tr>
|
|
|
+ <th>审批流程</th>
|
|
|
+ <th>审批人</th>
|
|
|
+ <th>审批状态</th>
|
|
|
+ <th>审批意见</th>
|
|
|
+ <th>操作</th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody>
|
|
|
+ <!-- loop nopmArray.audits -->
|
|
|
+ <tr>
|
|
|
+ <td>{{nopmArray.audits' value.numaudit}}审</td>
|
|
|
+ <td>{{nopmArray.audits' value.name}}{{nopmArray.audits' value.company}}</td>
|
|
|
+ <td><span class="{{nopmArray.audits' value.colors}}">{{nopmArray.audits' value.status}}</span></td>
|
|
|
+ <td>{{nopmArray.audits' value.auditcontent}}</td>
|
|
|
+ <td></td>
|
|
|
+ </tr>
|
|
|
+ <!-- endloop -->
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ <!-- endif -->
|
|
|
+
|
|
|
<!-- loop pmArray -->
|
|
|
<table class="table table-striped table-hover">
|
|
|
- <legend><!-- if {{keymax}} == {{pmArray' value.numpname}} --><a mpid="{{pmArray' value.mpid}}"
|
|
|
- id="adelete" href="#delperiod"
|
|
|
+ <legend><!-- if {{isnopm}} == 0 --><!-- if {{keymax}} == {{pmArray' value.numpname}} --><a mpid="{{pmArray' value.mpid}}"
|
|
|
+ id="adelete" href="#"
|
|
|
class="fR btn btn-link colGray"
|
|
|
times="{{pmArray' value.times}}"
|
|
|
nums = "{{pmArray' value.numpname}}"
|
|
|
- data-toggle="modal">删除本期#{{pmArray' value.times}}</a>
|
|
|
+ data-toggle="modal">删除本期#{{pmArray' value.times}}</a><!-- endif -->
|
|
|
<!-- endif -->第{{pmArray' value.numpname}}期 #{{pmArray' value.times}}
|
|
|
</legend>
|
|
|
<thead>
|
|
@@ -50,6 +78,7 @@
|
|
|
<td><span class="{{pmArray' value' value.colors}}">{{pmArray' value' value.status}}</span></td>
|
|
|
<td>{{pmArray' value' value.auditcontent}}</td>
|
|
|
<td>
|
|
|
+ <!-- if {{isnopm}} == 0 -->
|
|
|
<!-- if {{keymax}} == {{pmArray' value.numpname}} -->
|
|
|
<!-- if {{pmArray' value' value.enable}} == '2' -->
|
|
|
<a href="#checking" id="achecking" maid="{{pmArray' value' value.maid}}" data-toggle="modal"
|
|
@@ -61,6 +90,7 @@
|
|
|
<a href="#pass" id="apass" maid="{{pmArray' value' value.maid}}" data-toggle="modal" class="colGreen">通过</a>
|
|
|
<!-- endif -->
|
|
|
<!-- endif -->
|
|
|
+ <!-- endif -->
|
|
|
</td>
|
|
|
</tr>
|
|
|
<!-- endloop -->
|
|
@@ -74,6 +104,8 @@
|
|
|
<div class="modal hide fade" id="unpass">
|
|
|
<input id="maid" name="maid" value="0" type="hidden"/>
|
|
|
<input id="mpid" name="mpid" value="0" type="hidden"/>
|
|
|
+ <input id="numpname" name="numpname" value="0" type="hidden"/>
|
|
|
+ <input id="times" name="times" value="0" type="hidden"/>
|
|
|
<div class="modal-header">
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
|
|
<h3>设置审批不通过</h3>
|
|
@@ -130,6 +162,19 @@
|
|
|
<button class="btn" data-dismiss="modal">取消</button>
|
|
|
</div>
|
|
|
</div>
|
|
|
+<!--删除本标段第一期第一次时不可删除-->
|
|
|
+<div class="modal hide fade" id="delperiod2">
|
|
|
+ <div class="modal-header">
|
|
|
+ <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
|
|
+ <h3>删除本期#<span class="times"></span>确认</h3>
|
|
|
+ </div>
|
|
|
+ <div class="modal-body">
|
|
|
+ <p>当前标段下为第1期#1审批,不能删除本期,但可返回上一层删除这个标段。</p>
|
|
|
+ </div>
|
|
|
+ <div class="modal-footer">
|
|
|
+ <button class="btn" data-dismiss="modal">关闭</button>
|
|
|
+ </div>
|
|
|
+</div>
|
|
|
|
|
|
<script type="text/javascript">autoFlashHeight();</script>
|
|
|
<script type="text/javascript">
|
|
@@ -151,8 +196,15 @@
|
|
|
var times = $(this).attr('times');
|
|
|
var nums = $(this).attr('nums');
|
|
|
$("#mpid").val(mpid);
|
|
|
+ $("#numpname").val(nums);
|
|
|
+ $("#times").val(times-1);
|
|
|
$(".times").html(times);
|
|
|
$("#nums").html(nums);
|
|
|
+ if(nums == 1 && times == 1){
|
|
|
+ $('#delperiod2').modal('show');
|
|
|
+ }else{
|
|
|
+ $('#delperiod').modal('show');
|
|
|
+ }
|
|
|
});
|
|
|
$("#btnpass").click(function () {
|
|
|
var maid = $("#maid").val();
|
|
@@ -164,7 +216,7 @@
|
|
|
url: "{{rootUrl}}manage/item/{{pmid}}/period",
|
|
|
success: function (data) {
|
|
|
if (data['status'] == "ok") {
|
|
|
- $("#delsection2").modal('hide');
|
|
|
+ $("#pass").modal('hide');
|
|
|
window.location.href = "{{rootUrl}}manage/item/{{pmid}}/period";
|
|
|
}
|
|
|
}
|
|
@@ -180,7 +232,7 @@
|
|
|
url: "{{rootUrl}}manage/item/{{pmid}}/period",
|
|
|
success: function (data) {
|
|
|
if (data['status'] == "ok") {
|
|
|
- $("#delsection2").modal('hide');
|
|
|
+ $("#unpass").modal('hide');
|
|
|
window.location.href = "{{rootUrl}}manage/item/{{pmid}}/period";
|
|
|
}
|
|
|
}
|
|
@@ -188,15 +240,17 @@
|
|
|
});
|
|
|
$("#btndelete").click(function () {
|
|
|
var mpid = $("#mpid").val();
|
|
|
+ var nums = $("#numpname").val();
|
|
|
+ var times = $("#times").val();
|
|
|
$.ajax({
|
|
|
type: "POST",
|
|
|
dataType: "json",
|
|
|
cache: false,
|
|
|
- data: {"op": 'delete', "mpid": mpid},
|
|
|
+ data: {"op": 'delete', "numpname": nums, "times": times},
|
|
|
url: "{{rootUrl}}manage/item/{{pmid}}/period",
|
|
|
success: function (data) {
|
|
|
if (data['status'] == "ok") {
|
|
|
- $("#delsection2").modal('hide');
|
|
|
+ $("#delperiod").modal('hide');
|
|
|
window.location.href = "{{rootUrl}}manage/item/{{pmid}}/period";
|
|
|
}
|
|
|
}
|
|
@@ -212,7 +266,7 @@
|
|
|
url: "{{rootUrl}}manage/item/{{pmid}}/period",
|
|
|
success: function (data) {
|
|
|
if (data['status'] == "ok") {
|
|
|
- $("#delsection2").modal('hide');
|
|
|
+ $("#checking").modal('hide');
|
|
|
window.location.href = "{{rootUrl}}manage/item/{{pmid}}/period";
|
|
|
}
|
|
|
}
|