myorder.vue 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  1. <template>
  2. <div style="width: 70%;margin: 0 auto;display:flex;justify-content: space-around">
  3. <div style="width: 20%;height: 392px; margin-top: 60px;border: 1px solid #e7e7e7">
  4. <el-menu
  5. default-active="3"
  6. class="el-menu-vertical-demo"
  7. @open="handleOpen"
  8. @close="handleClose">
  9. <el-menu-item index="1">
  10. <i class="el-icon-menu"></i>
  11. <span slot="title">订舱须知</span>
  12. </el-menu-item>
  13. <el-menu-item index="2">
  14. <i class="el-icon-setting"></i>
  15. <span slot="title">我的模板</span>
  16. </el-menu-item>
  17. <el-menu-item index="3">
  18. <i class="el-icon-setting"></i>
  19. <span slot="title">我的订单</span>
  20. </el-menu-item>
  21. <el-menu-item index="4">
  22. <i class="el-icon-setting"></i>
  23. <span slot="title">申请放货</span>
  24. </el-menu-item>
  25. <el-menu-item index="5">
  26. <i class="el-icon-setting"></i>
  27. <span slot="title">我的拆改单</span>
  28. </el-menu-item>
  29. <el-menu-item index="6">
  30. <i class="el-icon-setting"></i>
  31. <span slot="title">在线换单</span>
  32. </el-menu-item>
  33. <el-menu-item index="7">
  34. <i class="el-icon-setting"></i>
  35. <span slot="title">快捷支付</span>
  36. </el-menu-item>
  37. </el-menu>
  38. </div>
  39. <div
  40. style="width: 80%;border: 1px solid #f7f7f7;background: #FFFFFF;box-shadow: 0px 4px 13px 0px rgba(200, 200, 200, 0.44);margin-bottom: 20px">
  41. <el-menu
  42. :default-active="activeIndex"
  43. class="el-menu-demo"
  44. mode="horizontal"
  45. @select="handleSelect"
  46. background-color="#545c64"
  47. text-color="#fff"
  48. active-text-color="#ffd04b">
  49. <el-menu-item index="1">全部</el-menu-item>
  50. <el-menu-item index="2">订单待付</el-menu-item>
  51. <el-menu-item index="3">已配船</el-menu-item>
  52. <el-menu-item index="4">待受理</el-menu-item>
  53. <el-menu-item index="5">已撤销</el-menu-item>
  54. <el-menu-item index="6">已驳回</el-menu-item>
  55. <el-menu-item index="7">运单变更</el-menu-item>
  56. </el-menu>
  57. <div style="width: 100%;display:flex;justify-content: space-around;">
  58. <div style="width: 20%;">
  59. <el-input placeholder="订舱单" v-model="filterAll.fBillno"></el-input>
  60. <el-input placeholder="船名" v-model="filterAll.vslidName"></el-input>
  61. <el-input placeholder="箱号" v-model="filterAll.boxNumber"></el-input>
  62. </div>
  63. <div style="width: 20%;">
  64. <el-input placeholder="收货人" v-model="filterAll.fConsigneername"></el-input>
  65. <el-input placeholder="航次" v-model="filterAll.voyidName"></el-input>
  66. <el-input placeholder="条数"></el-input>
  67. </div>
  68. <div style="width: 50%;">
  69. <div style="display:flex;justify-content: space-between">
  70. <el-input placeholder="始发港" style="width: 45%;"></el-input>
  71. <span style="margin-top: 20px">至</span>
  72. <el-input placeholder="目的港" style="width: 45%;"></el-input>
  73. </div>
  74. <div style="display:flex;justify-content: space-between;">
  75. <el-input placeholder="创建开始时间" style="width: 45%;" v-model="filterAll.startTime"></el-input>
  76. <span style="margin-top: 20px">至</span>
  77. <el-input placeholder="创建结束时间" style="width: 45%;" v-model="filterAll.endTime"></el-input>
  78. </div>
  79. <div style="display:flex;justify-content: space-between;">
  80. <el-input placeholder="单据有效期结束" style="width: 45%;"></el-input>
  81. <span style="margin-top: 20px">&nbsp;&nbsp;&nbsp;</span>
  82. <el-input placeholder="货名" style="width: 45%;"></el-input>
  83. </div>
  84. </div>
  85. </div>
  86. <div style="width: 100%;display:flex;justify-content: space-between;">
  87. <div style="display: flex;align-items: center;padding-left: 20px">
  88. <!-- <el-checkbox v-model="checked">全选</el-checkbox>-->
  89. </div>
  90. <div style="margin-right: 20px">
  91. <el-button type="success" plain>装箱单下载</el-button>
  92. <el-dropdown>
  93. <el-button type="success" plain>
  94. 委托书下载
  95. </el-button>
  96. <el-dropdown-menu slot="dropdown">
  97. <el-dropdown-item>合并PDF</el-dropdown-item>
  98. <el-dropdown-item>批量PDF</el-dropdown-item>
  99. </el-dropdown-menu>
  100. </el-dropdown>
  101. <el-dropdown>
  102. <el-button type="success" plain>
  103. 运单下载
  104. </el-button>
  105. <el-dropdown-menu slot="dropdown">
  106. <el-dropdown-item>合并PDF</el-dropdown-item>
  107. <el-dropdown-item>批量PDF</el-dropdown-item>
  108. </el-dropdown-menu>
  109. </el-dropdown>
  110. <el-dropdown>
  111. <el-button type="success" plain>
  112. 放箱单下载
  113. </el-button>
  114. <el-dropdown-menu slot="dropdown">
  115. <el-dropdown-item>华南片区</el-dropdown-item>
  116. <el-dropdown-item>虎门提重</el-dropdown-item>
  117. </el-dropdown-menu>
  118. </el-dropdown>
  119. <el-button type="primary" icon="el-icon-search" @click="getList">查询</el-button>
  120. </div>
  121. </div>
  122. <div
  123. style="margin-top: 20px;background: #FFFFFF;box-shadow: 0px 4px 13px 0px rgba(200, 200, 200, 0.44);padding-top: 20px;"
  124. v-for="(item,index) in dataList" :key="index">
  125. <div style="left: 10px;display: flex;justify-content: space-between;border-bottom: 2px solid #EEEFEE;">
  126. <div style="display: flex;padding-left:10px;">
  127. <!-- `checked` 为 true 或 false -->
  128. <!-- <el-checkbox v-model="checked" style="margin-top: -8px">-->
  129. <!-- </el-checkbox>-->
  130. <span style="margin-top: -14px">单箱合计:<span>0元</span></span>
  131. </div>
  132. <div style="display: flex;flex-direction: column;align-items: flex-end;margin-right: -10px">
  133. <div
  134. style="width:100px;height:30px;background-color: #545c64;line-height: 30px;color: #fff;border-radius: 50px 0 0 50px;margin-top: -20px;font-size: 14px;">
  135. {{item.fBillstatus}}
  136. </div>
  137. <div
  138. style="width: 0px;height: 0px;border-color: #000000 white white #000000;border-width: 4px 4px 4px 4px;border-style: solid;margin-top:-2px"></div>
  139. </div>
  140. </div>
  141. <div style="display:flex;">
  142. <div
  143. style="width:85%;padding-left:20px;display: flex;justify-content: space-around;flex-wrap: wrap;text-align: left;border-right:2px solid #EEEFEE ">
  144. <p style="width:25%"><span>订舱号:</span><span>{{ item.fBillno }}</span></p>
  145. <p style="width:25%"><span>提单号:</span><span>{{ item.fMblno }}</span></p>
  146. <p style="width:25%"><span>运输条款:</span><span>{{ item.fServiceitems }}</span></p>
  147. <p style="width:25%"><span>收货人:</span><span>{{ item.fConsigneername }}</span></p>
  148. <p style="width:25%"><span>航线:</span><span>{{ item.fName }}</span></p>
  149. <p style="width:25%"><span>箱型:</span><span>{{ item.fNo }}</span></p>
  150. <p style="width:25%"><span>箱量:</span><span>{{ item.fCntrcount }}</span></p>
  151. <p style="width:25%"><span>装货时间:</span><span>{{ item.fBsdate }}</span></p>
  152. </div>
  153. <div style="width:15%;display:flex;flex-direction: column;align-items: center;margin-top: 40px">
  154. <el-button type="primary" size="small" style="width:80%; margin-left: 4px" @click="details(item.fId)">详情
  155. </el-button>
  156. <!-- <el-button type="primary" size="small" style="width:80%;margin: 10px 0 0 4px">再来一单</el-button>-->
  157. </div>
  158. </div>
  159. </div>
  160. <!-- <div style="float: right;height: 40px;padding-top: 30px;margin-right: 20px">-->
  161. <!-- <el-pagination-->
  162. <!-- @size-change="handleSizeChange"-->
  163. <!-- @current-change="handleCurrentChange"-->
  164. <!-- :current-page="currentPage4"-->
  165. <!-- :page-sizes="[100, 200, 300, 400]"-->
  166. <!-- :page-size="100"-->
  167. <!-- layout="total, sizes, prev, pager, next, jumper"-->
  168. <!-- :total="400">-->
  169. <!-- </el-pagination>-->
  170. <!-- <pagination-->
  171. <!-- v-show="total>0"-->
  172. <!-- :total="total"-->
  173. <!-- :page.sync="queryParams.pageNum"-->
  174. <!-- :limit.sync="queryParams.pageSize"-->
  175. <!-- @pagination="getList"-->
  176. <!-- />-->
  177. <!-- </div>-->
  178. </div>
  179. </div>
  180. </template>
  181. <script>
  182. import { request } from '../../request/request';
  183. export default {
  184. name: 'myorder',
  185. data() {
  186. return {
  187. activeIndex: '1',
  188. checked: true,
  189. filterAll: {},
  190. dataList: []
  191. };
  192. },
  193. created() {
  194. this.getList()
  195. },
  196. methods: {
  197. getList() {
  198. request({
  199. url: '/khwarehouse/warehousebills/webVersionOrderMessage',
  200. method: 'post',
  201. data: this.filterAll
  202. })
  203. .then(res => {
  204. console.log(res);
  205. this.dataList = res.data.rows;
  206. })
  207. .catch(err => {
  208. console.log(err);
  209. });
  210. },
  211. details(fId) {
  212. // console.log(fId);
  213. // this.$router.push({ path: '/contractPlacing/index', query: { userId: fId } });
  214. this.$router.push({
  215. path: '/contractPlacing/index',
  216. query: { data:JSON.stringify(fId) },
  217. });
  218. },
  219. handleSelect(key, keyPath) {
  220. console.log(key, keyPath);
  221. },
  222. handleOpen(key, keyPath) {
  223. console.log(key, keyPath);
  224. },
  225. handleClose(key, keyPath) {
  226. console.log(key, keyPath);
  227. }
  228. }
  229. };
  230. </script>
  231. <style scoped>
  232. .el-input {
  233. margin: 10px auto;
  234. }
  235. </style>