<template>
  <layout-form>
    <el-form
      :model="form"
      :loading="loading"
      :rules="rules"
      size="small"
      style="width: 100%"
      label-width="120px"
      ref="form"
    >
      <el-row>
        <Field
         :span="18"
          label="业务名称"
          prop="name"
          v-model="form.name"
          placeholder="请输入业务名称"
        />
        <!-- <el-col span="18">
          <el-form-item label="空白样表" class="my-form-field">
            <FileUpload v-model="form.samplePath" prePath="/fileupload" />
          </el-form-item>
        </el-col> -->

        <Field label="空白样表" :span="18" prop="filePath"><fileUpload v-model="form.samplePath"  prePath="/file/uploadfile"/></Field>
                            

        <Field label="模板样表" :span="18" prop="filePath"><fileUpload v-model="form.docTemplateEntity.templatePath"  prePath="/template"/></Field>
           

        <!-- <el-col span="18">
          <el-form-item label="模板样表" class="my-form-field">
            <FileUpload v-model="form.docTemplateEntity.templatePath" :fileType="fileType" prePath="/template" />
          </el-form-item>
        </el-col> -->
        <Field
         :span="18"
          label="备注"
          prop="remark"
          v-model="form.remark"
          type="textarea"
          placeholder="请输入备注"
        />

      <Field
      :span="18"
          label="所属平台"
          prop="platformSn"
          v-model="form.platformSn"
          type="select"
          :enumData="dict.platformSn"
          placeholder="请选择平台"
        />

      </el-row>
      <form-buttons @submit="submitForm" />
    </el-form>
  </layout-form>
</template>

<script>
import form from "@/assets/mixins/form";
export default {
  mixins: [form],
  components: {},
  toString: [],
  methods: {
  },
  data() {
    return {
      fileType:["xml"],
      // doc模板表格数据
      rules: {
      },
    };
  },
};
</script>