diff --git a/js/accessory/child/accessory_out_bound_detail.js b/js/accessory/child/accessory_out_bound_detail.js index ab9acf9..5fe5487 100644 --- a/js/accessory/child/accessory_out_bound_detail.js +++ b/js/accessory/child/accessory_out_bound_detail.js @@ -464,6 +464,6 @@ function check() { function closePage() { let index = parent.layer.getFrameIndex(window.name); // 先得到当前 iframe层的索引 - parent.layer.close(index); // 再执行关闭 window.parent.queryTable(1); + parent.layer.close(index); // 再执行关闭 } \ No newline at end of file diff --git a/js/accessory/child/accessory_return_form.js b/js/accessory/child/accessory_return_form.js index 8645a3f..8912f3e 100644 --- a/js/accessory/child/accessory_return_form.js +++ b/js/accessory/child/accessory_return_form.js @@ -433,9 +433,9 @@ function checkValue(that, type) { // 关闭页面 function closePage(type) { let index = parent.layer.getFrameIndex(window.name); // 先得到当前 iframe层的索引 - parent.layer.close(index); // 再执行关闭 if (type == 1) { window.parent.reloadData(); } + parent.layer.close(index); // 再执行关闭 } \ No newline at end of file diff --git a/js/accessory/child/accessory_scrap_form.js b/js/accessory/child/accessory_scrap_form.js index 43d6a96..59603c9 100644 --- a/js/accessory/child/accessory_scrap_form.js +++ b/js/accessory/child/accessory_scrap_form.js @@ -391,9 +391,8 @@ function checkValue(that, type) { // 关闭页面 function closePage(type) { let index = parent.layer.getFrameIndex(window.name); // 先得到当前 iframe层的索引 - parent.layer.close(index); // 再执行关闭 if (type == 1) { window.parent.reloadData(); } - + parent.layer.close(index); // 再执行关闭 } \ No newline at end of file diff --git a/js/accessory/child/accessory_store_edit_form.js b/js/accessory/child/accessory_store_edit_form.js index 529175f..29052ec 100644 --- a/js/accessory/child/accessory_store_edit_form.js +++ b/js/accessory/child/accessory_store_edit_form.js @@ -394,9 +394,9 @@ function checkValue(that, type) { // 关闭页面 function closePage(type) { let index = parent.layer.getFrameIndex(window.name); // 先得到当前 iframe层的索引 - parent.layer.close(index); // 再执行关闭 if (type == 1) { window.parent.reloadData(); } + parent.layer.close(index); // 再执行关闭 } \ No newline at end of file diff --git a/js/accessory/child/accessory_store_form.js b/js/accessory/child/accessory_store_form.js index 5b0c874..b32d349 100644 --- a/js/accessory/child/accessory_store_form.js +++ b/js/accessory/child/accessory_store_form.js @@ -435,9 +435,8 @@ function checkValue(that, type) { // 关闭页面 function closePage(type) { let index = parent.layer.getFrameIndex(window.name); // 先得到当前 iframe层的索引 - parent.layer.close(index); // 再执行关闭 if (type == 1) { window.parent.reloadData(); } - + parent.layer.close(index); // 再执行关闭 } \ No newline at end of file diff --git a/js/accessory/child/audit_form.js b/js/accessory/child/audit_form.js index 1de3ee5..df2d08c 100644 --- a/js/accessory/child/audit_form.js +++ b/js/accessory/child/audit_form.js @@ -75,8 +75,8 @@ function submitApply(data) { // 关闭页面 function closePage(type) { let index = parent.layer.getFrameIndex(window.name); // 先得到当前 iframe层的索引 - parent.layer.close(index); // 再执行关闭 if (type == 1) { window.parent.closePage(); } + parent.layer.close(index); // 再执行关闭 } \ No newline at end of file diff --git a/js/accessory/child/choose_fit_type_list.js b/js/accessory/child/choose_fit_type_list.js index 5ca16f8..23f21f7 100644 --- a/js/accessory/child/choose_fit_type_list.js +++ b/js/accessory/child/choose_fit_type_list.js @@ -371,9 +371,8 @@ function addFitTypeData() { function closePage(type,params) { let index = parent.layer.getFrameIndex(window.name); // 先得到当前 iframe层的索引 - parent.layer.close(index); // 再执行关闭 if (type == 1) { window.parent.addFitDatas(params); } - + parent.layer.close(index); // 再执行关闭 } \ No newline at end of file diff --git a/js/accessory/child/choose_inventory_count_fit_type_list.js b/js/accessory/child/choose_inventory_count_fit_type_list.js index ecbdb19..1570f2f 100644 --- a/js/accessory/child/choose_inventory_count_fit_type_list.js +++ b/js/accessory/child/choose_inventory_count_fit_type_list.js @@ -379,9 +379,8 @@ function addFitTypeData() { function closePage(type, params) { let index = parent.layer.getFrameIndex(window.name); // 先得到当前 iframe层的索引 - parent.layer.close(index); // 再执行关闭 if (type == 1) { window.parent.addFitDatas(params); } - + parent.layer.close(index); // 再执行关闭 } \ No newline at end of file diff --git a/js/accessory/child/choose_return_fit_type_list.js b/js/accessory/child/choose_return_fit_type_list.js index f153ebd..8423540 100644 --- a/js/accessory/child/choose_return_fit_type_list.js +++ b/js/accessory/child/choose_return_fit_type_list.js @@ -322,9 +322,8 @@ function saveData2(params) { function closePage(type, params) { let index = parent.layer.getFrameIndex(window.name); // 先得到当前 iframe层的索引 - parent.layer.close(index); // 再执行关闭 if (type == 1) { window.parent.addFitDatas(params, userId); } - + parent.layer.close(index); // 再执行关闭 } \ No newline at end of file diff --git a/js/accessory/child/choose_scrap_fit_type_list.js b/js/accessory/child/choose_scrap_fit_type_list.js index 943bf10..9ef31ec 100644 --- a/js/accessory/child/choose_scrap_fit_type_list.js +++ b/js/accessory/child/choose_scrap_fit_type_list.js @@ -321,9 +321,8 @@ function saveData2(params) { function closePage(type,params) { let index = parent.layer.getFrameIndex(window.name); // 先得到当前 iframe层的索引 - parent.layer.close(index); // 再执行关闭 if (type == 1) { window.parent.addFitDatas(params); } - + parent.layer.close(index); // 再执行关闭 } \ No newline at end of file diff --git a/js/accessory/child/inventory_count_form.js b/js/accessory/child/inventory_count_form.js index 9208f06..f309dc8 100644 --- a/js/accessory/child/inventory_count_form.js +++ b/js/accessory/child/inventory_count_form.js @@ -429,9 +429,8 @@ function checkValue(that, type) { // 关闭页面 function closePage(type) { let index = parent.layer.getFrameIndex(window.name); // 先得到当前 iframe层的索引 - parent.layer.close(index); // 再执行关闭 if (type == 1) { window.parent.reloadData(); } - + parent.layer.close(index); // 再执行关闭 } \ No newline at end of file diff --git a/js/basic/child/fit_type_form.js b/js/basic/child/fit_type_form.js index 9a679b1..784838d 100644 --- a/js/basic/child/fit_type_form.js +++ b/js/basic/child/fit_type_form.js @@ -94,10 +94,9 @@ function submitApply(data) { // 关闭页面 function closePage(type, obj) { let index = parent.layer.getFrameIndex(window.name); - parent.layer.close(index); if (type == 1) { let json = { "id": obj.id, "title": obj.name, "parentId": obj.parentId, "level": obj.level }; window.parent.reloadData(json) } - + parent.layer.close(index); } \ No newline at end of file diff --git a/js/demandPlan/apply_plan_list.js b/js/demandPlan/apply_plan_list.js index c38eb7a..e2b25e3 100644 --- a/js/demandPlan/apply_plan_list.js +++ b/js/demandPlan/apply_plan_list.js @@ -28,7 +28,7 @@ function queryTable(type) { // 刷新页面数据 function reloadData() { - reloadData(pageNum); + reloadTable(1); } // 重载表格 diff --git a/js/demandPlan/child/add_jj_data.js b/js/demandPlan/child/add_jj_data.js index d458a33..63963c6 100644 --- a/js/demandPlan/child/add_jj_data.js +++ b/js/demandPlan/child/add_jj_data.js @@ -219,9 +219,8 @@ function handleNum(that, value) { function closePage(type, params) { let index = parent.layer.getFrameIndex(window.name); // 先得到当前 iframe层的索引 - parent.layer.close(index); // 再执行关闭 if (type == 1) { window.parent.addJjDatas(params); } - + parent.layer.close(index); // 再执行关闭 } \ No newline at end of file diff --git a/js/demandPlan/child/apply_plan_detail.js b/js/demandPlan/child/apply_plan_detail.js index 3843e6f..5f1c890 100644 --- a/js/demandPlan/child/apply_plan_detail.js +++ b/js/demandPlan/child/apply_plan_detail.js @@ -235,6 +235,6 @@ function check() { function closePage() { let index = parent.layer.getFrameIndex(window.name); // 先得到当前 iframe层的索引 - parent.layer.close(index); // 再执行关闭 window.parent.queryTable(1); + parent.layer.close(index); // 再执行关闭 } \ No newline at end of file diff --git a/js/demandPlan/child/apply_plan_form.js b/js/demandPlan/child/apply_plan_form.js index ea0f206..10f50d0 100644 --- a/js/demandPlan/child/apply_plan_form.js +++ b/js/demandPlan/child/apply_plan_form.js @@ -317,9 +317,8 @@ function checkValue(that, type, name) { // 关闭页面 function closePage(type) { let index = parent.layer.getFrameIndex(window.name); // 先得到当前 iframe层的索引 - parent.layer.close(index); // 再执行关闭 if (type == 1) { window.parent.reloadData(); } - + parent.layer.close(index); // 再执行关闭 } \ No newline at end of file diff --git a/js/demandPlan/child/choose_tool_type_list.js b/js/demandPlan/child/choose_tool_type_list.js index 62c4dad..a578273 100644 --- a/js/demandPlan/child/choose_tool_type_list.js +++ b/js/demandPlan/child/choose_tool_type_list.js @@ -315,9 +315,8 @@ function saveData2(params) { function closePage(type, params) { let index = parent.layer.getFrameIndex(window.name); // 先得到当前 iframe层的索引 - parent.layer.close(index); // 再执行关闭 if (type == 1) { window.parent.addFitDatas(params); } - + parent.layer.close(index); // 再执行关闭 } \ No newline at end of file diff --git a/js/demandPlan/child/send_goods_form.js b/js/demandPlan/child/send_goods_form.js index 49974b3..4ebfaae 100644 --- a/js/demandPlan/child/send_goods_form.js +++ b/js/demandPlan/child/send_goods_form.js @@ -443,9 +443,8 @@ function addJjDatas(data) { // 关闭页面 function closePage(type) { let index = parent.layer.getFrameIndex(window.name); // 先得到当前 iframe层的索引 - parent.layer.close(index); // 再执行关闭 if (type == 1) { window.parent.reloadData(); } - + parent.layer.close(index); // 再执行关闭 } \ No newline at end of file