detailStorage.vue 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. <template>
  2. <div class="storage">
  3. <div class="storage-info">
  4. <div class="linetext">入库单: <span>21324</span></div>
  5. <div class="linetext">买家名称: <span>21324</span></div>
  6. <div class="linetext">所属订单: <span>21324</span></div>
  7. <div class="linetext">物流公司: <span>323425</span></div>
  8. <div class="linetext">物流单号:<span>34254</span></div>
  9. <div class="linetext">录入人: <span>21324</span></div>
  10. <div class="linetext">录入时间: <span>21324</span></div>
  11. </div>
  12. <ul class="list-unstyled">
  13. <li class="info-list clearfix">
  14. <span class="super"><em>1</em></span>
  15. <div class="linetext width50 fl">型号: <span>21324</span></div>
  16. <div class="linetext width50 fl">品牌: <span>21324</span></div>
  17. <div class="linetext width50 fl">物料名称: <span>21324</span></div>
  18. <div class="linetext width50 fl">规格: <span>21324</span></div>
  19. <div class="linetext width50 fl">应出库(PCS): <span>21324</span></div>
  20. <div class="linetext width50 fl">已出库(PCS): <span>21324</span></div>
  21. <div class="linetext width50 fl"><em>*</em>本次出库(PCS): <span>21324</span></div>
  22. <div class="linetext width50 fl">单价($): <span class="base-color">21324</span></div>
  23. </li>
  24. </ul>
  25. </div>
  26. </template>
  27. <script>
  28. export default {
  29. data () {
  30. return {
  31. remindText: '',
  32. timeoutCount: 0,
  33. switchType: 'inBound',
  34. handleItem:0,
  35. filterOptions: [
  36. {
  37. title: '交易时间',
  38. selectOption: 'date',
  39. selectItems: [{
  40. key: '30天',
  41. val: 1
  42. }, {
  43. key: '90天',
  44. val: 2
  45. }, {
  46. key: '180天',
  47. val: 3
  48. }, {
  49. key: '自定义',
  50. val: 4
  51. }],
  52. defaultVal: 1
  53. }
  54. ]
  55. }
  56. },
  57. methods: {
  58. onRemind: function (str) {
  59. this.remindText = str
  60. this.timeoutCount++
  61. },
  62. setSwitchType (type) {
  63. this.switchType = type
  64. },
  65. setSelect (type, val) {
  66. if (type === 'date') {
  67. if (val) {
  68. this.filterParams.fromDate = val.fromDate
  69. this.filterParams.toDate = val.toDate
  70. } else {
  71. this.filterParams.fromDate = null
  72. this.filterParams.toDate = null
  73. }
  74. } else {
  75. this.filterParams[type] = val
  76. }
  77. this.filterRecord()
  78. },
  79. initFilterParams () {
  80. this.filterParams = {
  81. keyword: '',
  82. fromDate: '',
  83. toDate: '',
  84. currencyName: '',
  85. method: ''
  86. }
  87. },
  88. onSelectAction (selectObj) {
  89. this.setSelect(selectObj.key, selectObj.value)
  90. },
  91. filterRecord () {
  92. this.page = 1
  93. this.isChange = true
  94. this.reloadList()
  95. },
  96. reloadList () {
  97. if (this.switchType === 'account') {
  98. this.$store.dispatch('payCenter/loadBuyerAccount', {
  99. count: this.count,
  100. page: this.page,
  101. sorting: {num: 'ASC'},
  102. type: 'buyer'
  103. })
  104. } else {
  105. this.$store.dispatch('payCenter/loadBuyerRecord', {
  106. count: this.count,
  107. page: this.page,
  108. sorting: {'paytime': 'DESC'},
  109. currencyName: this.filterParams.currencyName || null,
  110. fromDate: this.filterParams.fromDate || null,
  111. toDate: this.filterParams.toDate || null,
  112. remitteeType: this.filterParams.remitteeType || null,
  113. keyword: this.filterParams.keyword || null
  114. })
  115. }
  116. },
  117. }
  118. }
  119. </script>
  120. <style lang="scss" scoped>
  121. $base-color: #3f84f6;
  122. $title-color: #ffa200;
  123. .storage{
  124. .storage-info{
  125. padding: 0.24rem 0.24rem;
  126. background: #fff;
  127. margin-bottom:.2rem;
  128. }
  129. .linetext{
  130. color:#666;
  131. line-height: .6rem;
  132. overflow: hidden;
  133. -o-text-overflow: ellipsis;
  134. text-overflow: ellipsis;
  135. white-space: nowrap;
  136. span{
  137. color:#333;
  138. &.base-color{
  139. color:$base-color;
  140. }
  141. }
  142. }
  143. .info-list{
  144. position:relative;
  145. padding: 0.3rem 0.24rem;
  146. background: #fff;
  147. margin-bottom:.2rem;
  148. .width50{
  149. display:inline-block;
  150. width: 48%;
  151. margin-left: .1rem;
  152. }
  153. >span{
  154. display:inline-block;
  155. position:absolute;
  156. left:0;
  157. top:0;
  158. padding: 0 .1rem;
  159. background: $title-color;
  160. border-radius: 0 .5rem .5rem 0;
  161. line-height: .3rem;
  162. height:.3rem;
  163. color:#fff;
  164. font-size: .24rem;
  165. }
  166. }
  167. }
  168. </style>