cuilei
5 天以前 ba77fdc6a30c9ad0941e40319f8c4f6fe6fdf9f1
src/views/mes/modules/MesProductionOrderModal.vue
@@ -8,13 +8,15 @@
    :okButtonProps="{ class:{'jee-hidden': disableSubmit} }"
    @cancel="handleCancel"
    cancelText="关闭">
    <mes-production-order-form ref="realForm" @ok="submitCallback" :disabled="disableSubmit"></mes-production-order-form>
    <mes-production-order-form ref="realForm" @ok="submitCallback"
                               :disabled="disableSubmit"></mes-production-order-form>
  </j-modal>
</template>
<script>
  import MesProductionOrderForm from './MesProductionOrderForm'
  export default {
    name: 'MesProductionOrderModal',
    components: {
@@ -23,7 +25,7 @@
    data () {
      return {
        title:'',
        width:896,
      width: 1200,
        visible: false,
        disableSubmit: false
      }
@@ -32,25 +34,25 @@
      add () {
        this.visible=true
        this.$nextTick(()=>{
          this.$refs.realForm.add();
        this.$refs.realForm.add()
        })
      },
      edit (record) {
        this.visible=true
        this.$nextTick(()=>{
          this.$refs.realForm.edit(record);
        this.$refs.realForm.edit(record)
        })
      },
      close () {
        this.$emit('close');
        this.visible = false;
      this.$emit('close')
      this.visible = false
      },
      handleOk () {
        this.$refs.realForm.submitForm();
      this.$refs.realForm.submitForm()
      },
      submitCallback(){
        this.$emit('ok');
        this.visible = false;
      this.$emit('ok')
      this.visible = false
      },
      handleCancel () {
        this.close()