rfqlist.html 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  1. <div class="panel panel-default panel-intro procuremen-rfqlist-wrap" data-super-admin="{if condition='$isSuperAdmin'}1{else /}0{/if}">
  2. {:build_heading()}
  3. <style>
  4. .procuremen-rfqlist-wrap .procuremen-supplier-lines-cell {
  5. position: relative;
  6. }
  7. .procuremen-rfqlist-wrap .procuremen-supplier-lines-cell .procuremen-supplier-caret {
  8. position: absolute;
  9. right: 0;
  10. top: 0;
  11. height: 100%;
  12. line-height: 1;
  13. background: #eee;
  14. color: #ddd;
  15. padding: 0 5px;
  16. display: flex;
  17. justify-content: center;
  18. align-items: center;
  19. cursor: pointer;
  20. }
  21. .procuremen-rfqlist-wrap .procuremen-supplier-lines-cell .procuremen-supplier-caret:hover {
  22. color: #999;
  23. }
  24. .procuremen-rfqlist-wrap .bootstrap-table .fixed-table-container thead th,
  25. .procuremen-rfqlist-wrap .bootstrap-table .fixed-table-container tbody td {
  26. vertical-align: middle !important;
  27. overflow: hidden;
  28. text-overflow: ellipsis;
  29. }
  30. /* 仅主表固定布局 */
  31. .procuremen-rfqlist-wrap .bootstrap-table > .fixed-table-container > .fixed-table-header > table,
  32. .procuremen-rfqlist-wrap .bootstrap-table > .fixed-table-container > .fixed-table-body > table {
  33. table-layout: fixed;
  34. }
  35. /* 操作列吸顶右侧,横向滚动时始终可见 */
  36. .procuremen-rfqlist-wrap .bootstrap-table .fixed-table-header th.procuremen-rfq-operate-col,
  37. .procuremen-rfqlist-wrap .bootstrap-table .fixed-table-body td.procuremen-rfq-operate-col,
  38. .procuremen-rfqlist-wrap .bootstrap-table th[data-field="operate"],
  39. .procuremen-rfqlist-wrap .bootstrap-table td[data-field="operate"] {
  40. position: sticky;
  41. right: 0;
  42. background: #fff;
  43. z-index: 5;
  44. overflow: visible !important;
  45. box-shadow: none;
  46. border-left: 1px solid #e8e8e8 !important;
  47. padding-left: 10px !important;
  48. padding-right: 10px !important;
  49. }
  50. .procuremen-rfqlist-wrap .bootstrap-table .fixed-table-header th.procuremen-rfq-operate-col,
  51. .procuremen-rfqlist-wrap .bootstrap-table th[data-field="operate"] {
  52. z-index: 6;
  53. background: #f5f5f5;
  54. }
  55. .procuremen-rfqlist-wrap .procuremen-rfq-op-btns {
  56. display: inline-flex;
  57. flex-wrap: nowrap;
  58. align-items: center;
  59. justify-content: center;
  60. gap: 6px;
  61. white-space: nowrap;
  62. max-width: 100%;
  63. }
  64. .procuremen-rfqlist-wrap .procuremen-rfq-op-btns .btn {
  65. margin: 0 !important;
  66. flex: 0 0 auto;
  67. }
  68. .procuremen-rfqlist-wrap .bootstrap-table .fixed-table-container thead th.procuremen-rfq-num-col,
  69. .procuremen-rfqlist-wrap .bootstrap-table .fixed-table-container tbody td.procuremen-rfq-num-col,
  70. .procuremen-rfqlist-wrap .bootstrap-table th[data-field="CDW"],
  71. .procuremen-rfqlist-wrap .bootstrap-table td[data-field="CDW"],
  72. .procuremen-rfqlist-wrap .bootstrap-table th[data-field="This_quantity"],
  73. .procuremen-rfqlist-wrap .bootstrap-table td[data-field="This_quantity"],
  74. .procuremen-rfqlist-wrap .bootstrap-table th[data-field="ceilingPrice"],
  75. .procuremen-rfqlist-wrap .bootstrap-table td[data-field="ceilingPrice"],
  76. .procuremen-rfqlist-wrap .bootstrap-table th[data-field="has_quoted"],
  77. .procuremen-rfqlist-wrap .bootstrap-table td[data-field="has_quoted"],
  78. .procuremen-rfqlist-wrap .bootstrap-table th[data-field="CDF"],
  79. .procuremen-rfqlist-wrap .bootstrap-table td[data-field="CDF"] {
  80. text-align: center !important;
  81. vertical-align: middle !important;
  82. }
  83. .procuremen-rfqlist-wrap .bootstrap-table .fixed-table-container thead th.procuremen-rfq-num-col .th-inner,
  84. .procuremen-rfqlist-wrap .bootstrap-table th[data-field="This_quantity"] .th-inner,
  85. .procuremen-rfqlist-wrap .bootstrap-table th[data-field="ceilingPrice"] .th-inner,
  86. .procuremen-rfqlist-wrap .bootstrap-table th[data-field="has_quoted"] .th-inner,
  87. .procuremen-rfqlist-wrap .bootstrap-table th[data-field="CDW"] .th-inner,
  88. .procuremen-rfqlist-wrap .bootstrap-table th[data-field="CDF"] .th-inner {
  89. text-align: center !important;
  90. }
  91. .procuremen-rfq-notify-wrap {
  92. padding: 12px 16px 8px;
  93. box-sizing: border-box;
  94. }
  95. .procuremen-rfq-notify-wrap table {
  96. width: 100%;
  97. margin: 0;
  98. }
  99. .procuremen-rfq-notify-wrap th,
  100. .procuremen-rfq-notify-wrap td {
  101. padding: 8px 10px;
  102. vertical-align: middle !important;
  103. border-bottom: 1px solid #eee;
  104. }
  105. .procuremen-rfq-notify-wrap th {
  106. background: #f7f7f7;
  107. font-weight: 600;
  108. }
  109. .procuremen-rfq-notify-empty {
  110. padding: 80px 12px;
  111. text-align: center;
  112. color: #999;
  113. }
  114. /* 左侧月份栏 */
  115. .procuremen-rfqlist-wrap > .panel-body {
  116. padding: 4px 0 0 0 !important;
  117. }
  118. .procuremen-rfqlist-wrap .procuremen-rfq-layout {
  119. display: flex !important;
  120. flex-direction: row !important;
  121. flex-wrap: nowrap !important;
  122. align-items: stretch;
  123. margin: 0 !important;
  124. min-height: calc(100vh - 140px);
  125. }
  126. .procuremen-rfqlist-wrap .procuremen-sidebar {
  127. flex: 0 0 96px;
  128. width: 96px;
  129. min-width: 96px;
  130. max-width: 96px;
  131. overflow-x: hidden;
  132. overflow-y: auto;
  133. border-right: 1px solid #d9d9d9;
  134. background: #fff;
  135. padding: 4px 0 12px;
  136. }
  137. .procuremen-rfqlist-wrap .procuremen-sidebar .year-title {
  138. font-weight: 600;
  139. padding: 8px 4px 4px;
  140. margin: 4px 0 2px;
  141. font-size: 12px;
  142. color: #8c8c8c;
  143. }
  144. .procuremen-rfqlist-wrap .procuremen-sidebar .procuremen-ym-item {
  145. display: block;
  146. padding: 7px 4px;
  147. margin: 2px 6px;
  148. color: #595959;
  149. border-radius: 6px;
  150. text-decoration: none;
  151. font-size: 13px;
  152. text-align: center;
  153. }
  154. .procuremen-rfqlist-wrap .procuremen-sidebar .procuremen-ym-item:hover {
  155. background: #f0f0f0;
  156. color: #1f1f1f;
  157. }
  158. .procuremen-rfqlist-wrap .procuremen-sidebar .procuremen-ym-item.active {
  159. background: #e6f4ff;
  160. color: #1677ff;
  161. font-weight: 500;
  162. }
  163. .procuremen-rfqlist-wrap .procuremen-rfq-main {
  164. flex: 1 1 0%;
  165. min-width: 0;
  166. width: 0;
  167. overflow: hidden;
  168. padding-left: 8px;
  169. box-sizing: border-box;
  170. }
  171. </style>
  172. <div class="panel-body" data-default-ym="{$defaultYm|default=''|htmlentities}">
  173. <div class="row procuremen-rfq-layout">
  174. <div class="procuremen-sidebar">
  175. {foreach name="sidebarYearMonths" item="block"}
  176. <div class="procuremen-year-block">
  177. <div class="year-title">{$block.year}年</div>
  178. {foreach name="block.months" item="item"}
  179. <a href="javascript:;" class="procuremen-ym-item{if $item.ym == $defaultYm} active{/if}" data-ym="{$item.ym|htmlentities}">{$item.label|htmlentities}</a>
  180. {/foreach}
  181. </div>
  182. {/foreach}
  183. </div>
  184. <div class="procuremen-rfq-main">
  185. <div class="widget-body no-padding">
  186. <div id="toolbar" class="toolbar">
  187. <a href="javascript:;" class="btn btn-primary btn-refresh" title="{:__('Refresh')}"><i class="fa fa-refresh"></i> 刷新</a>
  188. </div>
  189. <table id="table" class="table table-striped table-bordered table-hover table-nowrap" width="100%"></table>
  190. </div>
  191. </div>
  192. </div>
  193. </div>
  194. </div>