<template>
  <el-dialog
    :title="dataId?$t1('编辑表单流程单据'):$t1('新增表单流程单据')"
    :append-to-body="true"
    :modal-append-to-body="true"
    :close-on-click-modal="false"
    :visible.sync="showDialog"
    :modal="false"
    custom-class="dialog-style list-dialog dialog-checkbox pd_8"
    width="400px"
    v-el-drag-dialog
    v-el-dialog-center
    @close="close"
    :show-close="false"
  >
    <div class="cont">
      <el-form ref="editForm" :model="wfObjConfig" label-width="110px" class="adSearchForm"
               style="width: 362px;height: auto;">
        <el-form-item :label="$t1('单据类型编码')">
          <span>{{ wfObjConfig.objTypeCode }}</span>
        </el-form-item>
        <el-form-item :label="$t1('单据类型名称')" :rules="[{ required: true, trigger: 'blur' }]">
          <el-input v-model="wfObjConfig.objTypeName" clearable class="all-width"/>
        </el-form-item>
      </el-form>
    </div>
    <span slot="footer" class="dialog-footer">
      <el-button type="primary" @click="saveData" class="button-sty">
        <i class="el-icon-check el-icon"></i>
        {{ $t1('确 定') }}
      </el-button>
    </span>
  </el-dialog>
</template>

<script>
import mixin from "./mixins/editWfObjConfigDialog";

export default {
  mixins: [mixin]
}
</script>

<style scoped>

</style>
