myorder.vue 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262
  1. <template>
  2. <div style="width: 85%;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="条数" v-model="filterAll.pageSize"></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. <el-date-picker
  77. v-model="filterAll.startTime"
  78. style="width: 45%;"
  79. type="date"
  80. value-format="yyyy-MM-dd"
  81. placeholder="创建开始时间">
  82. </el-date-picker>
  83. <span style="margin-top: 20px">至</span>
  84. <!-- <el-input placeholder="创建结束时间" style="width: 45%;" v-model="filterAll.endTime"></el-input>-->
  85. <el-date-picker
  86. v-model="filterAll.endTime"
  87. style="width: 45%;"
  88. type="date"
  89. value-format="yyyy-MM-dd"
  90. placeholder="创建结束时间">
  91. </el-date-picker>
  92. </div>
  93. <div style="display:flex;justify-content: space-between;">
  94. <el-input placeholder="单据有效期结束" style="width: 45%;"></el-input>
  95. <span style="margin-top: 20px">&nbsp;&nbsp;&nbsp;</span>
  96. <el-input placeholder="货名" style="width: 45%;"></el-input>
  97. </div>
  98. </div>
  99. </div>
  100. <div style="width: 100%;display:flex;justify-content: space-between;">
  101. <div style="display: flex;align-items: center;padding-left: 20px">
  102. <!-- <el-checkbox v-model="checked">全选</el-checkbox>-->
  103. </div>
  104. <div style="margin-right: 20px">
  105. <el-button type="success" plain>装箱单下载</el-button>
  106. <el-dropdown>
  107. <el-button type="success" plain>
  108. 委托书下载
  109. </el-button>
  110. <el-dropdown-menu slot="dropdown">
  111. <el-dropdown-item>合并PDF</el-dropdown-item>
  112. <el-dropdown-item>批量PDF</el-dropdown-item>
  113. </el-dropdown-menu>
  114. </el-dropdown>
  115. <el-dropdown>
  116. <el-button type="success" plain>
  117. 运单下载
  118. </el-button>
  119. <el-dropdown-menu slot="dropdown">
  120. <el-dropdown-item>合并PDF</el-dropdown-item>
  121. <el-dropdown-item>批量PDF</el-dropdown-item>
  122. </el-dropdown-menu>
  123. </el-dropdown>
  124. <el-dropdown>
  125. <el-button type="success" plain>
  126. 放箱单下载
  127. </el-button>
  128. <el-dropdown-menu slot="dropdown">
  129. <el-dropdown-item>华南片区</el-dropdown-item>
  130. <el-dropdown-item>虎门提重</el-dropdown-item>
  131. </el-dropdown-menu>
  132. </el-dropdown>
  133. <el-button type="primary" icon="el-icon-search" @click="getList">查询</el-button>
  134. </div>
  135. </div>
  136. <div
  137. style="margin-top: 20px;background: #FFFFFF;box-shadow: 0px 4px 13px 0px rgba(200, 200, 200, 0.44);padding-top: 20px;"
  138. v-for="(item,index) in dataList" :key="index">
  139. <div style="left: 10px;display: flex;justify-content: space-between;border-bottom: 2px solid #EEEFEE;">
  140. <div style="display: flex;padding-left:10px;">
  141. <!-- `checked` 为 true 或 false -->
  142. <!-- <el-checkbox v-model="checked" style="margin-top: -8px">-->
  143. <!-- </el-checkbox>-->
  144. <span style="margin-top: -14px">单箱合计:<span>0元</span></span>
  145. </div>
  146. <div style="display: flex;flex-direction: column;align-items: flex-end;margin-right: -10px">
  147. <div
  148. 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;">
  149. {{item.fBillstatus}}
  150. </div>
  151. <div
  152. style="width: 0px;height: 0px;border-color: #000000 white white #000000;border-width: 4px 4px 4px 4px;border-style: solid;margin-top:-2px"></div>
  153. </div>
  154. </div>
  155. <div style="display:flex;">
  156. <div
  157. style="width:85%;padding-left:20px;display: flex;justify-content: space-around;flex-wrap: wrap;text-align: left;border-right:2px solid #EEEFEE ">
  158. <p style="width:25%"><span>订舱号:</span><span>{{ item.fBillno }}</span></p>
  159. <p style="width:25%"><span>提单号:</span><span>{{ item.fMblno }}</span></p>
  160. <p style="width:25%"><span>运输条款:</span><span>{{ item.fServiceitems }}</span></p>
  161. <p style="width:25%"><span>收货人:</span><span>{{ item.fConsigneername }}</span></p>
  162. <p style="width:25%"><span>航线:</span><span>{{ item.fName }}</span></p>
  163. <p style="width:25%"><span>箱型:</span><span>{{ item.fNo }}</span></p>
  164. <p style="width:25%"><span>箱量:</span><span>{{ item.fCntrcount }}</span></p>
  165. <p style="width:25%"><span>装货时间:</span><span>{{ item.fBsdate }}</span></p>
  166. </div>
  167. <div style="width:15%;display:flex;flex-direction: column;align-items: center;margin-top: 40px">
  168. <el-button type="primary" size="small" style="width:80%; margin-left: 4px" @click="details(item.fId)">详情
  169. </el-button>
  170. <!-- <el-button type="primary" size="small" style="width:80%;margin: 10px 0 0 4px">再来一单</el-button>-->
  171. </div>
  172. </div>
  173. </div>
  174. <div style="float: right;height: 40px;padding-top: 30px;margin-right: 20px">
  175. <el-pagination
  176. @size-change="handleSizeChange"
  177. @current-change="handleCurrentChange"
  178. :page-sizes="[10, 20, 50, 100]"
  179. :page-size="10"
  180. layout="sizes, prev, pager, next"
  181. :total="total">
  182. </el-pagination>
  183. </div>
  184. </div>
  185. </div>
  186. </template>
  187. <script>
  188. import { request } from '../../request/request';
  189. export default {
  190. name: 'myorder',
  191. data() {
  192. return {
  193. activeIndex: '1',
  194. checked: true,
  195. total:0,
  196. filterAll: {
  197. pageNum:1,
  198. pageSize:10
  199. },
  200. dataList: []
  201. };
  202. },
  203. created() {
  204. let myDate = new Date();
  205. this.filterAll.startTime = myDate.getFullYear() + '-' + myDate.getMonth() + '-' +myDate.getDate()
  206. console.log(this.filterAll.startTime);
  207. this.getList()
  208. },
  209. methods: {
  210. handleSizeChange(val) {
  211. console.log(`每页 ${val} 条`);
  212. this.filterAll.pageSize = val
  213. this.getList()
  214. },
  215. handleCurrentChange(val) {
  216. console.log(`当前页: ${val}`);
  217. this.filterAll.pageNum = val
  218. this.getList()
  219. },
  220. getList() {
  221. request({
  222. url: '/khwarehouse/warehousebills/webVersionOrderMessage',
  223. method: 'post',
  224. data: this.filterAll
  225. })
  226. .then(res => {
  227. console.log(res);
  228. this.dataList = res.data.rows;
  229. this.total = res.data.total
  230. })
  231. .catch(err => {
  232. console.log(err);
  233. });
  234. },
  235. details(fId) {
  236. // console.log(fId);
  237. // this.$router.push({ path: '/contractPlacing/index', query: { userId: fId } });
  238. this.$router.push({
  239. path: '/eontractPlaCing',
  240. query: { data:JSON.stringify(fId) },
  241. });
  242. },
  243. handleSelect(key, keyPath) {
  244. console.log(key, keyPath);
  245. },
  246. handleOpen(key, keyPath) {
  247. console.log(key, keyPath);
  248. },
  249. handleClose(key, keyPath) {
  250. console.log(key, keyPath);
  251. }
  252. }
  253. };
  254. </script>
  255. <style scoped>
  256. .el-input {
  257. margin: 10px auto;
  258. }
  259. </style>