|
@@ -243,35 +243,35 @@ function saveSure(){
|
|
|
idPower += date[i].id + "," + $("#"+id).val() + ";";
|
|
|
}
|
|
|
idPower = idPower.substring(0,idPower.length-1);
|
|
|
- $("#idPower").val(idPower);
|
|
|
- jp.loading();
|
|
|
- jp.post("${ctx}/sg/managementCenter/projectPlanArrage/sureInspection",$('#inputForm').serialize(),function(data){
|
|
|
- if(data.success){
|
|
|
- jp.confirm('带电项目在停电开关集合,是否通过?', function () {
|
|
|
- var dialogIndex = parent.layer.getFrameIndex(window.name); // 获取窗口索引
|
|
|
- parent.layer.close(dialogIndex);
|
|
|
- addDatePlan();
|
|
|
- jp.success("项目计划流程发起");
|
|
|
- // jp.go("${ctx}/act/task/todo");
|
|
|
- })
|
|
|
- }else{
|
|
|
- var dialogIndex = parent.layer.getFrameIndex(window.name); // 获取窗口索引
|
|
|
- parent.layer.close(dialogIndex);
|
|
|
- addDatePlan();
|
|
|
- }
|
|
|
- })
|
|
|
- return false;
|
|
|
+ return idPower;
|
|
|
+ // $("#idPower").val(idPower);
|
|
|
+ // jp.loading();
|
|
|
+ // jp.post("${ctx}/sg/managementCenter/projectPlanArrage/sureInspection",$('#inputForm').serialize(),function(data){
|
|
|
+ // if(data.success){
|
|
|
+ // jp.confirm('带电项目在停电开关集合,是否通过?', function () {
|
|
|
+ // var dialogIndex = parent.layer.getFrameIndex(window.name); // 获取窗口索引
|
|
|
+ // // parent.layer.close(dialogIndex);
|
|
|
+ // addDatePlan();
|
|
|
+ // jp.success("项目计划流程发起");
|
|
|
+ // jp.go("${ctx}/act/task/todo");
|
|
|
+ // })
|
|
|
+ // }else{
|
|
|
+ // var dialogIndex = parent.layer.getFrameIndex(window.name); // 获取窗口索引
|
|
|
+ // parent.layer.close(dialogIndex);
|
|
|
+ // addDatePlan();
|
|
|
+ // }
|
|
|
+ // })
|
|
|
}
|
|
|
|
|
|
|
|
|
-function addDatePlan() {
|
|
|
- jp.post("${ctx}/sg/managementCenter/projectPlanArrage/save",function(data){
|
|
|
- if(data.success){
|
|
|
- jp.success("项目计划流程发起");
|
|
|
- jp.go("${ctx}/act/task/todo")
|
|
|
- }else {
|
|
|
- jp.error("流程发起失败,请重新发起!");
|
|
|
- }
|
|
|
- })
|
|
|
-}
|
|
|
+// function addDatePlan() {
|
|
|
+// jp.post("${ctx}/sg/managementCenter/projectPlanArrage/save",function(data){
|
|
|
+// if(data.success){
|
|
|
+// jp.success("项目计划流程发起");
|
|
|
+// jp.go("${ctx}/act/task/todo")
|
|
|
+// }else {
|
|
|
+// jp.error("流程发起失败,请重新发起!");
|
|
|
+// }
|
|
|
+// })
|
|
|
+// }
|
|
|
</script>
|