Guest User

Untitled

a guest
Jan 12th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.08 KB | None | 0 0
  1. <table class="slds-table slds-table_bordered" id="tableId">
  2. <thead>
  3. <tr class="slds-text-title_caps">
  4. <th scope="col">
  5.  
  6. </th>
  7. <th scope="col">
  8. <div class="slds-truncate" title="Line">Line</div>
  9. </th>
  10. <th scope="col">
  11. <div class="slds-truncate" title="Part Num">Part Num</div>
  12. </th>
  13. <th scope="col">
  14. <div class="slds-truncate" title="Keyword">Keyword</div>
  15. </th>
  16. <th scope="col">
  17. <div class="slds-truncate" title="EDD">EDD</div>
  18. </th>
  19. <th scope="col">
  20. <div class="slds-truncate" title="COND">COND</div>
  21. </th>
  22. <th scope="col">
  23. <div class="slds-truncate" title="OWNER">OWNER</div>
  24. </th>
  25. <th scope="col">
  26. <div class="slds-truncate" title="WHSE">WHSE</div>
  27. </th>
  28. <th scope="col">
  29. <div class="slds-truncate" title="UOM">UOM</div>
  30. </th>
  31. <th scope="col">
  32. <div class="slds-truncate" title="Qty Req">Qty Req</div>
  33. </th>
  34. <th scope="col">
  35. <div class="slds-truncate" title="Qty Rec">Qty Rec</div>
  36. </th>
  37. <th scope="col">
  38. <div class="slds-truncate" title="Qty Alloc">Qty Alloc</div>
  39. </th>
  40. <th scope="col">
  41. <div class="slds-truncate" title="Qty Accepted">Qty Accepted</div>
  42. </th>
  43. <th scope="col">
  44. <div class="slds-truncate" title="Qty Rejected">Qty Rejected</div>
  45. </th>
  46. <th scope="col">
  47. <div class="slds-truncate" title="Serial Number">Serial Number</div>
  48. </th>
  49. <th scope="col">
  50. <div class="slds-truncate" title="Loc">Loc</div>
  51. </th>
  52. <th scope="col">
  53. </th>
  54. </tr>
  55. </thead>
  56. <tbody>
  57. <aura:iteration items="{!v.poLineWrapper}" var="wrap">
  58. <tr>
  59. <td scope="row" data-label="Select">
  60. <div class="slds-truncate" title="Select">
  61. </div>
  62. </td>
  63. <td scope="row" data-label="Line">
  64. <div class="slds-truncate" title="Line">
  65. <ui:outputText value="{!wrap.line.inscor__Line_Number__c}" />
  66. </div>
  67. </td>
  68. <td scope="row" data-label="Part Num">
  69. <div class="slds-truncate" title="Part Num">
  70. <ui:outputText value="{!wrap.line.inscor__Product__r.Name}" />
  71. </div>
  72. </td>
  73. <td scope="row" data-label="Keyword">
  74. <div class="slds-truncate" title="Keyword">
  75. <ui:outputText value="{!wrap.line.inscor__Product__r.inscor__Keyword__c}" />
  76. </div>
  77. </td>
  78. <td scope="row" data-label="EDD">
  79. <div class="slds-truncate" title="EDD">
  80. <ui:outputDate value="{!wrap.line.inscor__Expected_Delivery__c}" />
  81. </div>
  82. </td>
  83. <td scope="row" class="condSelect" data-label="Cond">
  84. <div class="slds-truncate" title="Cond">
  85. <ui:inputSelect multiple="false">
  86. <ui:inputSelectOption text="BER" label="BER" value="true"/>
  87. <ui:inputSelectOption text="AR" label="AR"/>
  88. <ui:inputSelectOption text="NE" label="NE"/>
  89. </ui:inputSelect>
  90. </div>
  91. </td>
  92. <td scope="row" data-label="Owner">
  93. <div class="slds-truncate" title="Owner">
  94. <ui:outputText value="{!wrap.line.inscor__Owner_Code__r.Name}" />
  95. </div>
  96. </td>
  97. <td scope="row" data-label="WHSE">
  98. <div class="slds-truncate" title="WHSE">
  99. <ui:outputText value="{!wrap.line.inscor__Warehouse__r.Name}" />
  100. </div>
  101. </td>
  102. <td scope="row" data-label="UOM">
  103. <div class="slds-truncate" title="UOM">
  104. <ui:outputText value="{!wrap.line.inscor__Product__r.inscor__UOM__c}" />
  105. </div>
  106. </td>
  107. <td scope="row" data-label="Qty Requested">
  108. <div class="slds-truncate" title="Qty Requested">
  109. <ui:outputNumber value="{!wrap.line.inscor__Quantity__c}" />
  110. </div>
  111. </td>
  112. <td scope="row" data-label="Qty Received">
  113. <div class="slds-truncate" title="Qty Received">
  114. <ui:outputNumber value="{!wrap.line.inscor__Quantity_Received__c}" />
  115. </div>
  116. </td>
  117. <td scope="row" data-label="Qty Allocated">
  118. <div class="slds-truncate" title="Qty Allocated">
  119. <ui:outputNumber value="{!wrap.line.inscor__Quantity_Allocated__c}" />
  120. <lightning:button class="qtAllocbutton" variant="brand" label="+" onclick="{! c.handleClick }" />
  121. </div>
  122. </td>
  123. <td scope="row" class="numInput" data-label="Qty Accepted">
  124. <div class="slds-truncate" title="Qty Allocated">
  125. <ui:inputNumber value="{!wrap.quantityAccepted}" />
  126. </div>
  127. </td>
  128. <td scope="row" class="numInput" data-label="Qty Rejected">
  129. <div class="slds-truncate" title="Qty Rejected">
  130. <ui:inputNumber value="{!wrap.quantityRejected}" />
  131. </div>
  132. </td>
  133. <td scope="row" class="serialInput" data-label="Serial Number">
  134. <div class="slds-truncate" title="Serial Number">
  135. <ui:inputNumber value="{!wrap.serialNumber}" />
  136. </div>
  137. </td>
  138. <td scope="row" data-label="Loc">
  139. <div class="locLookup" title="Loc" style="margin-top: -20px;">
  140. <c:strike_lookup value="{!wrap.location}" label=""
  141. object="inscor__Inventory_Location__c" searchField="Name"
  142. placeholder="Location"
  143. iconName="custom:custom21"
  144. subtitleField="inscor__Warehouse__c" order="Name"
  145. loadingMessage="Loading..." errorMessage="Invalid input"
  146. allowNewRecords="true"/>
  147. </div>
  148. </td>
  149. <td scope="row" data-label="Tech Data">
  150. <div class="slds-truncate" title="Tech Data" >
  151. <lightning:button label="Tech Data" variant="brand" onclick=""/>
  152. <aura:if isTrue="{!or(wrap.line.inscor__Internal_Comments__c,wrap.line.inscor__External_Comments__c)}">
  153. <lightning:button name="{!wrap}" label="Comments" variant="brand" onclick="{!c.openCommentsPanel}"/>
  154.  
  155. </aura:if>
  156. </div>
  157. </td>
  158. </tr>
  159. <aura:If isTrue="{!wrap.showComments}">
  160. <tr aura:If="123" class="hidden">
  161. THIS NEEDS TO HIDE AND SHOW
  162. </tr>
  163. </aura:If>
  164. </aura:iteration>
  165.  
  166. </tbody>
  167. </table>
  168.  
  169. openCommentsPanel : function(component, event, helper) {
  170. var compTarget = component.find('123');
  171. $A.util.removeClass(compTarget, 'hidden');
  172. }
  173.  
  174. .THIS .hidden {
  175. display: none;
  176. }
Add Comment
Please, Sign In to add comment