uncomplateDetails.vue 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <template>
  2. <!-- 船运计费详单页面 -->
  3. <div class="purchaseOrder">
  4. <div class="top">
  5. <el-input
  6. placeholder="请输入内容"
  7. v-model="input"
  8. clearable>
  9. </el-input>
  10. <el-button type="primary" class="btn" @click="onclick">
  11. <i class="el-icon-search"></i>查询
  12. </el-button>
  13. <el-button type="primary" @click="btnclick">
  14. 生成水运费账单
  15. </el-button>
  16. </div>
  17. <dilTable v-bind.sync="option" @selection-change="selectionChange">
  18. <!-- <el-table-column fixed="right" label="操作" width="100"> -->
  19. <!-- <template slot-scope="scope">
  20. <el-button @click="click(scope.row.pathId)" type="text" size="small"
  21. >编辑</el-button
  22. >
  23. <el-button
  24. type="text"
  25. size="small"
  26. @click="deleteclick(scope.row.pathId)"
  27. >删除</el-button
  28. >
  29. </template> -->
  30. <!-- </el-table-column> -->
  31. </dilTable>
  32. </div>
  33. </template>
  34. <script>
  35. export default {
  36. name: "purchaseOrder",
  37. data() {
  38. return {
  39. input:"",
  40. option: {
  41. // 表格请求数据的地址
  42. requestUrl: "/api/v1/bms/getUncomplateDetailsOrderList?apiId=93",
  43. // 控制显示多选列
  44. selectionType: "select",
  45. mapList:[],
  46. },
  47. };
  48. },
  49. methods: {
  50. selectionChange(selection) {
  51. this.mapList=selection
  52. },
  53. onclick() {
  54. console.log(1);
  55. },
  56. btnclick() {
  57. this.$confirm("是否生成", "提示", {
  58. confirmButtonText: "确定",
  59. cancelButtonText: "取消",
  60. type: "warning",
  61. center: true,
  62. })
  63. .then(() => {
  64. this.$message({
  65. type: "success",
  66. message: "生成账单成功!",
  67. });
  68. this.$axios.post("/api/v1/bms/addStatement",this.mapList)
  69. .then(() => {
  70. this.$router.go(0);
  71. });
  72. })
  73. .catch(() => {
  74. this.$message({
  75. type: "info",
  76. message: "取消生成!",
  77. });
  78. });
  79. // this.$router.push("/path/addHomeworkPath/");
  80. },
  81. },
  82. };
  83. </script>
  84. <style lang='scss' scoped>
  85. .purchaseOrder {
  86. .top {
  87. padding: 1.25rem 1.875rem;
  88. }
  89. }
  90. </style>