detailsTrainStatement.vue 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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="trainclick">
  10. 生成火运费账单
  11. </el-button>
  12. </div>
  13. <dilTable v-bind.sync="option">
  14. <el-table-column fixed="right" label="操作" width="100">
  15. <template slot-scope="scope">
  16. <el-button @click="btnclick(scope.row)" type="text" size="small"
  17. >详情</el-button
  18. >
  19. </template>
  20. </el-table-column>
  21. </dilTable>
  22. </div>
  23. </template>
  24. <script>
  25. export default {
  26. name: "purchaseOrder",
  27. data() {
  28. return {
  29. input:"",
  30. option: {
  31. // 表格请求数据的地址
  32. requestUrl: "/api/v1/bms/getTrainStatementList?apiId=121",
  33. },
  34. };
  35. },
  36. methods: {
  37. onclick() {
  38. this.option.requestUrl = "/api/v1/bms/getTrainStatementList?apiId=121&con="+this.input;
  39. },
  40. btnclick(row) {
  41. this.$router.push("/statementDetailsOrder/" + row.batchId + "?statementId=" + row.statementId);
  42. },
  43. trainclick() {
  44. this.$router.push("/uncomplateTrainDetails");
  45. },
  46. // waterclick() {
  47. // this.$router.push("/bmsship/uncomplateWater");
  48. // },
  49. // click() {
  50. // this.$confirm("是否生成", "提示", {
  51. // confirmButtonText: "确定",
  52. // cancelButtonText: "取消",
  53. // type: "warning",
  54. // center: true,
  55. // })
  56. // .then(() => {
  57. // this.$message({
  58. // type: "success",
  59. // message: "生成途损账单成功!",
  60. // });
  61. // this.axios.post("/api/v1/bmsship/bmsshipstatement/addLossStatement",this.mapList)
  62. // .then(() => {
  63. // this.$router.go(-1);
  64. // });
  65. // })
  66. // .catch(() => {
  67. // this.$message({
  68. // type: "info",
  69. // message: "取消生成!",
  70. // });
  71. // });
  72. // // this.$router.push("/path/addHomeworkPath/");
  73. // },
  74. // click() {
  75. // this.$router.push("/bmsship/toBeStatement");
  76. // }
  77. },
  78. };
  79. </script>
  80. <style lang='scss' scoped>
  81. .purchaseOrder {
  82. .top {
  83. padding: 1.25rem 1.875rem;
  84. }
  85. }
  86. </style>