delDetail.vue 730 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <template>
  2. <div>
  3. <el-popconfirm :title="'确定删除当前打款明细吗?'" @confirm="deleteRow()">
  4. <el-button slot="reference" size="mini" type="text">删 除</el-button>
  5. </el-popconfirm>
  6. </div>
  7. </template>
  8. <script>
  9. export default {
  10. name: '',
  11. data() {
  12. return {
  13. };
  14. },
  15. props:['id'],
  16. computed:{
  17. },
  18. watch:{
  19. },
  20. methods: {
  21. async deleteRow() {
  22. let res = await this.$api.requested({
  23. "id": 20221227093004,
  24. "content": {
  25. "sa_paybillid":this.$route.query.id,
  26. "sa_paybilldetailids":[this.id]
  27. }
  28. })
  29. this.tool.showMessage(res,() => {
  30. this.$emit('onSuccess')
  31. })
  32. },
  33. },
  34. };
  35. </script>
  36. <style scoped>
  37. </style>