settlementCenter.vue 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. <template>
  2. <div>
  3. <div class="head">
  4. <div>
  5. <el-menu
  6. :default-active="activeIndex"
  7. class="el-menu-vertical-demo"
  8. @select="handleSelect"
  9. background-color="#FFFFFF">
  10. <el-menu-item index="1">
  11. <i class="el-icon-menu"></i>
  12. <span slot="title">结算说明</span>
  13. </el-menu-item>
  14. <el-menu-item index="/settlementCenter">
  15. <i class="el-icon-menu"></i>
  16. <span slot="title">生成账单</span>
  17. </el-menu-item>
  18. <el-menu-item index="/confirmTheBill">
  19. <i class="el-icon-menu"></i>
  20. <span slot="title">确认账单</span>
  21. </el-menu-item>
  22. <el-menu-item index="/applyForInvoice">
  23. <i class="el-icon-menu"></i>
  24. <span slot="title">申请发票</span>
  25. </el-menu-item>
  26. </el-menu>
  27. </div>
  28. <div style="background-color: #FFFFFF;border: 1px solid #eeeeee;">
  29. <div style="width:75%;display:flex;justify-content: space-around;float: left">
  30. <div style="width: 20%;">
  31. <el-input placeholder="订舱单" style="width: 100%;"></el-input>
  32. <el-input placeholder="船名"></el-input>
  33. <el-input placeholder="箱号"></el-input>
  34. </div>
  35. <div style="width: 20%;">
  36. <el-input placeholder="收货人" style="width: 100%;"></el-input>
  37. <el-input placeholder="航次"></el-input>
  38. <el-input placeholder="条数"></el-input>
  39. </div>
  40. <div style="width: 50%;">
  41. <div style="display:flex;justify-content: space-between;width: 100%;">
  42. <el-input placeholder="始发港" style="width: 45%;"></el-input>
  43. <span style="margin-top: 20px">至</span>
  44. <el-input placeholder="目的港" style="width: 45%;"></el-input>
  45. </div>
  46. <div style="display:flex;justify-content: space-between;">
  47. <el-date-picker
  48. style="width: 45%;"
  49. type="date"
  50. value-format="yyyy-MM-dd"
  51. placeholder="创建开始时间">
  52. </el-date-picker>
  53. <span style="margin-top: 20px">至</span>
  54. <el-date-picker
  55. style="width: 45%;"
  56. type="date"
  57. value-format="yyyy-MM-dd"
  58. placeholder="创建结束时间">
  59. </el-date-picker>
  60. </div>
  61. <div style="display:flex;justify-content: space-between;">
  62. <el-input placeholder="单据有效期结束" style="width: 45%;"></el-input>
  63. <span style="margin-top: 20px">&nbsp;&nbsp;&nbsp;</span>
  64. <el-input placeholder="提单号" style="width: 45%;"></el-input>
  65. </div>
  66. </div>
  67. </div>
  68. <div class="query">
  69. <div>
  70. <div>
  71. <el-button type="primary">查询</el-button>
  72. </div>
  73. <div>
  74. <el-button type="success" size="mini">对账单下载</el-button>
  75. <el-button type="success" size="mini">对账申请</el-button>
  76. </div>
  77. <div>合计金额:¥87127319</div>
  78. </div>
  79. </div>
  80. <div style="width: 98%;height: 200px;float: left;padding-right: 1%;padding-left: 1%;border-top: 1px solid #eeeeee;border-left: 1px solid #eeeeee">
  81. <el-table
  82. :data="tableData"
  83. style="width: 100%">
  84. <el-table-column type="selection" width="55" align="center"/>
  85. <el-table-column type="index" label="行号" align="center"/>
  86. <el-table-column
  87. prop="date"
  88. label="运单号">
  89. </el-table-column>
  90. <el-table-column
  91. prop="date"
  92. label="收费单位">
  93. </el-table-column>
  94. <el-table-column
  95. prop="date"
  96. label="售票单位">
  97. </el-table-column>
  98. <el-table-column
  99. prop="date"
  100. label="付款方式">
  101. </el-table-column>
  102. <el-table-column
  103. prop="date"
  104. label="费目名称">
  105. </el-table-column>
  106. <el-table-column
  107. prop="date"
  108. label="应收(元)">
  109. </el-table-column>
  110. </el-table>
  111. <div style="float: right;margin-top: 30px">
  112. <el-pagination
  113. @size-change="handleSizeChange"
  114. @current-change="handleCurrentChange"
  115. :page-sizes="[10, 20, 30, 50]"
  116. :page-size="10"
  117. background
  118. layout="sizes, prev, pager, next"
  119. :total="23">
  120. </el-pagination>
  121. </div>
  122. </div>
  123. </div>
  124. </div>
  125. </div>
  126. </template>
  127. <script>
  128. export default {
  129. name: 'settlementCenter',
  130. data() {
  131. return {
  132. activeIndex: '/settlementCenter',
  133. tableData:[]
  134. };
  135. },
  136. methods: {
  137. handleSizeChange(val) {
  138. console.log(`每页 ${val} 条`);
  139. },
  140. handleCurrentChange(val) {
  141. console.log(`当前页: ${val}`);
  142. },
  143. handleSelect(key, keyPath) {
  144. this.$router.push(key);
  145. console.log(this.activeIndex);
  146. console.log(key, keyPath);
  147. },
  148. }
  149. };
  150. </script>
  151. <style scoped lang="scss">
  152. .head {
  153. width: 80%;
  154. border: 1px solid #eeeeee;
  155. margin: 10px auto;
  156. display: flex;
  157. div:nth-child(1) {
  158. width: 20%;
  159. }
  160. }
  161. .head > div:nth-child(2) {
  162. width: 80%;
  163. }
  164. .el-input {
  165. margin: 10px auto;
  166. }
  167. .query div:nth-child(1){
  168. width: 200px;
  169. }
  170. .query div:nth-child(1) div:nth-child(1){
  171. margin-bottom: 10px;
  172. }
  173. .query div:nth-child(1) div:nth-child(2){
  174. margin-bottom: 10px;
  175. }
  176. .query div:nth-child(1) div:nth-child(3){
  177. font-weight:bold;
  178. color: red;
  179. }
  180. .query {
  181. width: 25%;
  182. float: right;
  183. display: flex;
  184. justify-content: center;
  185. margin-top: 35px;
  186. }
  187. </style>