edit.vue 892 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <template>
  2. <div>
  3. <el-button size="mini" type="text" @click="goDetail">编 辑</el-button>
  4. <el-drawer
  5. :visible.sync="drawer"
  6. :with-header="false"
  7. direction="rtl"
  8. size="90%"
  9. append-to-body
  10. >
  11. <div class="detail__panel">
  12. <detailInfo :id="id" ref="subordinate" :isDisabled="false"></detailInfo>
  13. </div>
  14. </el-drawer>
  15. </div>
  16. </template>
  17. <script>
  18. import detailInfo from '@/HDrpManagement/invoicePredictionManage/details/modules/subordinate'
  19. export default {
  20. name: "edit",
  21. props:['data'],
  22. components:{detailInfo},
  23. data(){
  24. return {
  25. drawer:false,
  26. id:''
  27. }
  28. },
  29. methods:{
  30. goDetail(){
  31. this.id = this.data.sa_salesforecastbillid
  32. this.drawer = true
  33. this.$nextTick(()=>{
  34. this.$refs.subordinate.queryMainData()
  35. })
  36. },
  37. }
  38. }
  39. </script>
  40. <style scoped>
  41. </style>