PR_form.html 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>{{ title }}</title>
  6. <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  7. <link rel="stylesheet" href="../static/css/bootstrap.min.css">
  8. <script src="../static/js/jquery.min.js"></script>
  9. <script src="../static/js/popper.min.js"></script>
  10. <script src="../static/js/bootstrap.min.js"></script>
  11. <link rel="stylesheet" href="../static/css/font-awesome.min.css">
  12. <script>
  13. var PR_Form_number = '{{PR_Form_number}}';
  14. console.log("PR_Form_number: " + PR_Form_number);
  15. var PR_datas_sn = 0;
  16. console.log("PR_datas_sn: " + PR_datas_sn);
  17. </script>
  18. <style>
  19. .input-cond-delete {
  20. background: #E43030;
  21. border: 1px solid #CFCFCF;
  22. box-sizing: border-box;
  23. border-radius: 5px;
  24. margin-left: 5px;
  25. width: 65px;
  26. height: 33px;
  27. font-size: 16px;
  28. text-align: center;
  29. line-height: 16px;
  30. color: #FFFFFF;
  31. }
  32. .input-cond-add {
  33. background: #008CBA;
  34. border: 1px solid #CFCFCF;
  35. box-sizing: border-box;
  36. border-radius: 5px;
  37. margin-left: 5px;
  38. width: 65px;
  39. height: 33px;
  40. font-size: 16px;
  41. text-align: center;
  42. line-height: 16px;
  43. color: #FFFFFF;
  44. }
  45. .table_dark_bg {
  46. background-color: rgb(102, 102, 102);
  47. color: #FFF;
  48. font-weight: bold;
  49. }
  50. .table_RFQ_title {
  51. font-weight: bold;
  52. }
  53. .table-css {
  54. border: 1px solid #dee2e6;
  55. width: 100%;
  56. }
  57. .table-css td,th {
  58. padding: 0.5rem;
  59. }
  60. </style>
  61. <body>
  62. <table class="table-css table-bordered" style="font-size: 14px; padding: 0.5rem;">
  63. <tr>
  64. <td colspan="8" style="text-align: center; font-size: 12px;">
  65. {% if PR_Form_number[PR_Form_number.find('T'):] == 'T02' %}
  66. <img src="../static/img/ALMIGHTY_RAY.jpg" width="90px"><br>
  67. 瑞智精技股份有限公司<br>
  68. 台北市南港區南港路一段 287 巷 2 弄 8 號<br>
  69. service.gitc@gmail.com<br>
  70. (02) 2788 - 8158<br>
  71. {% else %}
  72. <img src="../static/img/SKYAI.jpg" width="120px"><br>
  73. 金子進科技股份有限公司<br>
  74. 台北市南港區南港路一段 287 巷 2 弄 8 號 1 樓<br>
  75. fu@aisky.com.tw<br>
  76. (02) 2788 - 8598<br>
  77. 傳真 02 - 2788 - 8158<br>
  78. {% endif %}
  79. </td>
  80. </tr>
  81. <tr>
  82. <td colspan="8" class="table_dark_bg" style="text-align: center;">請購單</td>
  83. </tr>
  84. <tr>
  85. <td colspan="8">
  86. 日期 :
  87. <span></span>
  88. </td>
  89. </tr>
  90. <tr>
  91. <td colspan="8">
  92. 請購單號 : {{PR_Form_number}}
  93. <span></span>
  94. </td>
  95. </tr>
  96. <tr>
  97. <td colspan="8">
  98. 用途 : {{form_purpose}}
  99. <span></span>
  100. </td>
  101. </tr>
  102. <tr class="table_dark_bg" style="text-align: center;">
  103. <th>編號</th>
  104. <th>內部料號</th>
  105. <th>零件名稱</th>
  106. <th>原廠料號</th>
  107. <th>圖號</th>
  108. <th>數量</th>
  109. <th>連結</th>
  110. <th>供應商</th>
  111. </tr>
  112. {% for PR in PR_datas %}
  113. <tr style="text-align: center;">
  114. <td id="{{PR[0]}}_PR_sn">no.</td>
  115. <td>{{PR[0]}}</td>
  116. <td>{{PR[1]}}</td>
  117. <td>{{PR[2]}}</td>
  118. <td>{{PR[3]}}</td>
  119. <td>{{PR[4]}}</td>
  120. <td>{{PR[5]}}</td>
  121. <td>{{PR[6]}}</td>
  122. </tr>
  123. <script>
  124. PR_datas_sn = PR_datas_sn+1;
  125. // console.log("[++]PR_datas_sn: " + PR_datas_sn);
  126. $("#{{PR[0]}}_PR_sn").text(PR_datas_sn);
  127. </script>
  128. {% endfor %}
  129. <tr style="text-align: center;">
  130. <td colspan="8">
  131. 採購主管 :
  132. <span id="PR_PO_manager" style="margin: 0px 120px 0px 0px">{{form_RFQ_manager}}</span>
  133. 採購 :
  134. <span id="PR_PO_staff" style="margin: 0px 120px 0px 0px">{{form_RFQ_user}}</span>
  135. 請購主管 :
  136. <span id="PR_PR_manager" style="margin: 0px 120px 0px 0px">{{form_PR_manager}}</span>
  137. 請購 :
  138. <span id="PR_PR_staff" style="margin: 0px 0px 0px 0px">{{form_PR_user}}</span>
  139. </td>
  140. </tr>
  141. </table>
  142. </body>
  143. </html>