mesWorkOrder.vue 924 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <template>
  2. <ele-modal
  3. custom-class="ele-dialog-form long-dialog-form"
  4. :visible.sync="visible"
  5. title="生产工单"
  6. :close-on-click-modal="false"
  7. width="60%"
  8. :maxable="true"
  9. append-to-body
  10. >
  11. <el-form ref="certificateForm" :model="form" class="certificate_form">
  12. </el-form>
  13. <div slot="footer" class="footer">
  14. <el-button @click="visible = fasle">返回</el-button>
  15. </div>
  16. </ele-modal>
  17. </template>
  18. <script>
  19. import { getWorkorderById } from '@/api/aps/index.js';
  20. export default {
  21. data() {
  22. return {
  23. form: {},
  24. visible: false
  25. };
  26. },
  27. mounted() {},
  28. methods: {
  29. open(id) {
  30. getWorkorderById(id).then(res=>{
  31. console.log(res);
  32. });
  33. }
  34. }
  35. };
  36. </script>
  37. <style lang="scss" scoped>
  38. .certificate_form {
  39. min-height: 500px;
  40. :deep(.el-form-item) {
  41. margin: 16px 0;
  42. }
  43. }
  44. </style>