detailsStatement.vue 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <template>
  2. <!-- 船运计费详单页面 -->
  3. <div class="purchaseOrder">
  4. <div class="top">
  5. <el-input placeholder="请输入内容" v-model="input" clearable> </el-input>
  6.       <el-button type="primary" class="btn" @click="onclick">
  7.         <i class="el-icon-search"></i>查询
  8.       </el-button>
  9. <el-button type="primary" @click="shipclick">
  10. 生成水运费账单
  11. </el-button>
  12. <el-button type="primary" @click="waterclick">
  13. 生成水分检测费账单
  14. </el-button>
  15. <el-button type="primary" @click="click()">
  16. 生成途损费账单
  17. </el-button>
  18. </div>
  19. <dilTable v-bind.sync="option" >
  20. <el-table-column fixed="right" label="操作" width="100">
  21. <template slot-scope="scope">
  22. <el-button @click="btnclick(scope.row)" type="text" size="small"
  23. >详情</el-button
  24. >
  25. </template>
  26. </el-table-column>
  27. </dilTable>
  28. </div>
  29. </template>
  30. <script>
  31. export default {
  32. name: "purchaseOrder",
  33. data() {
  34. return {
  35. input:"",
  36. option: {
  37. // 表格请求数据的地址
  38. requestUrl: "/api/v1/bms/getStatementList?apiId=113",
  39. },
  40. };
  41. },
  42. methods: {
  43. onclick() {
  44. this.option.requestUrl = "/api/v1/bms/getStatementList?apiId=113&con="+this.input;
  45. },
  46. btnclick(row) {
  47. this.$router.push("/bmsship/statementDetailsOrder/" + row.batchId + "?statementId=" + row.statementId);
  48. },
  49. shipclick() {
  50. this.$router.push("/bmsship/uncomplateDetails");
  51. },
  52. waterclick() {
  53. this.$router.push("/bmsship/uncomplateWater");
  54. },
  55. click() {
  56. this.$router.push("/bmsship/toBeStatement");
  57. }
  58. },
  59. };
  60. </script>
  61. <style lang='scss' scoped>
  62. .purchaseOrder {
  63. .top {
  64. padding: 1.25rem 1.875rem;
  65. }
  66. }
  67. </style>