Browse Source

修改rib01-check權限

gary
Ellin 1 year ago
parent
commit
7780a7e46c
  1. 38
      wms/rib-test.php
  2. 6
      wms/rib01-check.php

38
wms/rib-test.php

@ -3,6 +3,7 @@ include "T8_Authorization.php";
echo "ii"; echo "ii";
?> ?>
<script> <script>
console.log(<?=$now ?>);
get_Auth(); get_Auth();
window.addEventListener('message', function(event) { window.addEventListener('message', function(event) {
if (event.origin === "http://localhost:3000" && (typeof event.data === "string")) { if (event.origin === "http://localhost:3000" && (typeof event.data === "string")) {
@ -18,8 +19,8 @@ echo "ii";
var body = [{ var body = [{
"name": "MasterTable", "name": "MasterTable",
"rows": [{ "rows": [{
"BillNo": "Z003", "BillNo": "Z004",
"BillDate": 20230930, "BillDate": 20231030,
"OrgId": "1000", "OrgId": "1000",
"TypeId": "OPV", "TypeId": "OPV",
"IsPriceWithTax":1, "IsPriceWithTax":1,
@ -28,7 +29,7 @@ echo "ii";
"CurrId": "RMB", "CurrId": "RMB",
"CurrOAmount":1, "CurrOAmount":1,
"CurrLAmount":4, "CurrLAmount":4,
"TaxId": "ST005", "TaxId": "ST101",
"PersonId": "M0012", "PersonId": "M0012",
"DeptId": "220", "DeptId": "220",
"CompId": "1001", "CompId": "1001",
@ -39,16 +40,16 @@ echo "ii";
{ {
"name": "DetailTable", "name": "DetailTable",
"rows": [{ "rows": [{
"BillNo": "Z003", "BillNo": "Z004",
"RowCode": 1, "RowCode": 1,
"RowNo": 1, "RowNo": 1,
"ItemType": 0, "ItemType": 0,
"TaxId": "ST005", "TaxId": "ST101",
"MaterialId": "MX00000001", "MaterialId": "MX00000001",
"UnitId": "PCS", "UnitId": "PCS",
"MaterialSpec": "", "MaterialSpec": "",
"SQuantity":10, "SQuantity":10,
"SPrice":105, "SPrice":100,
}, },
// { // {
// "BillNo": "Z002", // "BillNo": "Z002",
@ -66,19 +67,20 @@ echo "ii";
// "TaxId": "ST005" // "TaxId": "ST005"
// } // }
] ]
},
{
"name":"apCheckBillInvInfo",
"rows":[{
"BillNo":"Z003",
"RowCode":1,
"RowNo":1,
"InvoiceNo":"ap12345678",
"InvoiceId":25,
"TaxId":"ST005",
"LAmountWithTax":105
}]
} }
// ,
// {
// "name":"apCheckBillInvInfo",
// "rows":[{
// "BillNo":"Z003",
// "RowCode":1,
// "RowNo":1,
// "InvoiceNo":"ap12345678",
// "InvoiceId":25,
// "TaxId":"ST005",
// "LAmountWithTax":105
// }]
// }
]; ];
var json = JSON.stringify(body); var json = JSON.stringify(body);
obj = { obj = {

6
wms/rib01-check.php

@ -298,7 +298,7 @@ endif
</a> </a>
</div> </div>
<?php <?php
elseif ($state == 1 && $user_id == 'M0056') : elseif ($state == 1 && ($user_id == "M0056" || $user_id == "M0209")) :
?> ?>
<div class="form-group"> <div class="form-group">
<div class="col-md-7"> <div class="col-md-7">
@ -349,7 +349,7 @@ $feetype = mysqli_fetch_all($feetype_query, MYSQLI_ASSOC);
<th>發票日期</th> <th>發票日期</th>
<th>數量</th> <th>數量</th>
<th>單價</th> <th>單價</th>
<th>費用項目</th> <th>費用/產品</th>
<th>原幣報銷金額</th> <th>原幣報銷金額</th>
<th>說明</th> <th>說明</th>
<th>發票號碼</th> <th>發票號碼</th>
@ -379,7 +379,7 @@ $feetype = mysqli_fetch_all($feetype_query, MYSQLI_ASSOC);
<span class=" glyphicon glyphicon-trash"></span> <span class=" glyphicon glyphicon-trash"></span>
</a> </a>
</td> </td>
<?php } elseif ($state == 1 && $user_id == "M0056") { ?> <?php } elseif ($state == 1 && ($user_id == "M0056" || $user_id == "M0209")) { ?>
<td><a href="rib02-edit.php?id=<?php echo $pay['ribsub_id'] ?>&state=1&<?= $token_link ?>" class="btn btn-warning btn-sm"> <td><a href="rib02-edit.php?id=<?php echo $pay['ribsub_id'] ?>&state=1&<?= $token_link ?>" class="btn btn-warning btn-sm">
<span class=" glyphicon glyphicon-pencil"></span> <span class=" glyphicon glyphicon-pencil"></span>
</a> </a>

Loading…
Cancel
Save