<template>
  <ele-modal
    custom-class="ele-dialog-form long-dialog-form"
    :visible.sync="visible"
    title="生产工单"
    :close-on-click-modal="false"
    width="60%"
    :maxable="true"
    append-to-body
  >
    <el-form ref="certificateForm" :model="form" class="certificate_form">
    </el-form>
    <div slot="footer" class="footer">
      <el-button @click="visible = fasle">返回</el-button>
    </div>
  </ele-modal>
</template>

<script>
  import { getWorkorderById } from '@/api/aps/index.js';
  export default {
    data() {
      return {
        form: {},
        visible: false
      };
    },

    mounted() {},
    methods: {
      open(id) {
        getWorkorderById(id).then(res=>{
          console.log(res);
        });
      }
    }
  };
</script>

<style lang="scss" scoped>
  .certificate_form {
    min-height: 500px;

    :deep(.el-form-item) {
      margin: 16px 0;
    }
  }
</style>
