Browse Source

Merge branch 'gary' of http://10.10.1.6:3080/masada-admin/httpdocs into gary

# Conflicts:
#	wms/wipwhole-index-function.php
#	wms/wipwhole-renovate-index-function.php
#	wms/wipwhole-renovate-rec-invoice-edit.php
gary
gary_chen\gary_chen 1 year ago
parent
commit
065209f768
  1. 6
      wms/wipwhole-index-function.php
  2. 2
      wms/wipwhole-renovate-index-function.php
  3. 12
      wms/wipwholeinstall-renovate-index.php

6
wms/wipwhole-index-function.php

@ -1040,10 +1040,6 @@ function getSaveEstimateInstallData($user_department_id, $role_id)
return true; return true;
if ($user_department_id == '545' && $role_id == '6') if ($user_department_id == '545' && $role_id == '6')
return true; return true;
if ($user_department_id == '312' && $role_id == '3')
return true;
if ($user_department_id == '541' && $role_id == '1')
return true;
return false; return false;
} }
@ -1053,7 +1049,7 @@ function saveInstallData($user_department_id, $role_id)
return true; return true;
if ($user_department_id == '521' && $role_id == '9') if ($user_department_id == '521' && $role_id == '9')
return true; return true;
if ($user_department_id == '541' && $role_id == '1') if ($user_department_id == '542' && in_array($role_id, ['1', '5', '6']))
return true; return true;
if ($user_department_id == '543' && $role_id == '2') if ($user_department_id == '543' && $role_id == '2')
return true; return true;

2
wms/wipwhole-renovate-index-function.php

@ -1002,7 +1002,7 @@ function getWipwholeChangeButtonStatus($user_department_id)
function getSaveEstimateInstallData($user_department_id, $role_id) function getSaveEstimateInstallData($user_department_id, $role_id)
{ {
if ($user_department_id == '541' && $role_id == '1') if (in_array($user_department_id, ['50', '501']) && $role_id == '2')
return true; return true;
if ($user_department_id == '311' && $role_id == '4') if ($user_department_id == '311' && $role_id == '4')
return true; return true;

12
wms/wipwholeinstall-renovate-index.php

@ -306,8 +306,16 @@ mysqli_close($link);
var showNum = <?php echo empty($_GET['showNum']) ? '10' : $_GET['showNum']; ?>; var showNum = <?php echo empty($_GET['showNum']) ? '10' : $_GET['showNum']; ?>;
var nowPage = <?php echo empty($_GET['nowPage']) ? '1' : $_GET['nowPage']; ?>; var nowPage = <?php echo empty($_GET['nowPage']) ? '1' : $_GET['nowPage']; ?>;
var searchContent = "<?php echo empty($_GET['searchContent']) ? '' : $_GET['searchContent']; ?>"; var searchContent = "<?php echo empty($_GET['searchContent']) ? '' : $_GET['searchContent']; ?>";
var orderColumn = "<?php echo empty($_GET['orderColumn']) ? '' : $_GET['orderColumn']; ?>";
var orderDirection = "<?php echo empty($_GET['orderDirection']) ? '' : $_GET['orderDirection']; ?>";
var table = $('#table_index2').DataTable(); var table = $('#table_index2').DataTable();
// 设置排序信息
if (orderColumn !== '' && orderDirection !== '') {
table.order([orderColumn, orderDirection]).draw();
}
table.search(searchContent).draw(); table.search(searchContent).draw();
table.page.len(showNum).draw(); table.page.len(showNum).draw();
table.page((nowPage) - 1).draw('page'); table.page((nowPage) - 1).draw('page');
@ -331,8 +339,12 @@ mysqli_close($link);
showNum = table.page.len(); showNum = table.page.len();
nowPage = table.page.info().page + 1; nowPage = table.page.info().page + 1;
searchContent = table.search(); searchContent = table.search();
var order = table.order();
orderColumn = order[0][0]; // 获取排序的列索引
orderDirection = order[0][1]; // 获取排序的方向
window.location.href = "<?php echo "wipwholeinstall-renovate-index.php?function_name=wipinstall&$token_link"; ?>" + window.location.href = "<?php echo "wipwholeinstall-renovate-index.php?function_name=wipinstall&$token_link"; ?>" +
"&showNum=" + showNum + "&nowPage=" + nowPage + "&searchContent=" + searchContent + "&showNum=" + showNum + "&nowPage=" + nowPage + "&searchContent=" + searchContent +
"&orderColumn=" + orderColumn + "&orderDirection=" + orderDirection +
"&contractno=" + contractno + "&facilityno=" + facilityno + "&custom=" + custom + "&contractno=" + contractno + "&facilityno=" + facilityno + "&custom=" + custom +
"&site_survey_contact_verify=" + site_survey_contact_verify + "&real_arrival_date_start=" + real_arrival_date_start + "&site_survey_contact_verify=" + site_survey_contact_verify + "&real_arrival_date_start=" + real_arrival_date_start +
"&real_arrival_date_end=" + real_arrival_date_end + "&area_no=" + area_no; "&real_arrival_date_end=" + real_arrival_date_end + "&area_no=" + area_no;

Loading…
Cancel
Save