<template>
  <div class="app-container">
    <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
      <el-form-item label="投标项目名称" prop="projectName" label-width="100px">
        <el-input v-model="queryParams.projectName" placeholder="请输入投标项目名称" clearable
          @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="投标时间" prop="tenderTime">
        <el-date-picker clearable v-model="queryParams.tenderTime" type="date" value-format="yyyy-MM-dd"
          placeholder="请选择投标时间">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="中标状态" prop="isWin">
        <el-select v-model="queryParams.isWin" placeholder="请选择中标状态" clearable @change="handleQuery">
          <el-option label="中标" value="1" />
          <el-option label="未中标" value="0" />
        </el-select>
      </el-form-item>
      <el-form-item>
        <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
        <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
      </el-form-item>
    </el-form>

    <el-row :gutter="10" class="mb8">
      <el-col :span="1.5">
        <el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd"
          v-hasPermi="['oa:tender:add']">新增</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button type="success" plain icon="el-icon-edit" size="mini" :disabled="single" @click="handleUpdate"
          v-hasPermi="['oa:tender:edit']">修改</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button type="danger" plain icon="el-icon-delete" size="mini" :disabled="multiple" @click="handleDelete"
          v-hasPermi="['oa:tender:remove']">删除</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport"
          v-hasPermi="['oa:tender:export']">导出</el-button>
      </el-col>
      <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
    </el-row>

    <el-table v-loading="loading" :data="tenderList" @selection-change="handleSelectionChange">
      <el-table-column type="selection" width="55" align="center" min-width="100px" />
      <el-table-column type="index" label="序号" width="55" align="center" />
      <el-table-column label="状态" align="center" prop="isWin" width="80">
        <template slot-scope="scope">
          <el-tag v-if="scope.row.isWin == 1" type="success">中标</el-tag>
          <el-tag v-else type="danger">未中标</el-tag>
        </template>
      </el-table-column>
      <el-table-column label="投标项目名称" align="center" prop="projectName" min-width="200px" />
      <el-table-column label="招标业主" align="center" prop="partyAName" min-width="100px" />
      <el-table-column label="招标代理" align="center" prop="agent" min-width="100px" />
      <el-table-column label="招标地点" align="center" prop="place" min-width="100px" />
      <el-table-column label="投标委托人" align="center" prop="trustee" width="100px">
        <template slot-scope="scope">
          {{ scope.row.trusteeUser ? scope.row.trusteeUser.nickName : '' }}
        </template>
      </el-table-column>
      <el-table-column label="业主预算" align="center" prop="budget" width="120px" />
      <el-table-column label="拟报价金额" align="center" prop="quote" width="120px" />
      <el-table-column label="保证金" align="center" prop="deposit" width="120px" />
      <el-table-column label="投标时间" align="center" prop="tenderTime" width="120">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.tenderTime, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="标书购买截止时间" align="center" prop="bidBuyDeadline" width="130">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.bidBuyDeadline, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="操作" align="center" class-name="small-padding fixed-width" fixed="right" width="120px">
        <template slot-scope="scope">
          <el-button size="mini" type="text" icon="el-icon-view" @click="handleView(scope.row)"
            v-hasPermi="['oa:tender:query']">查看</el-button>
          <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
            v-hasPermi="['oa:tender:edit']">修改</el-button>
          <el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)"
            v-hasPermi="['oa:tender:remove']">删除</el-button>
        </template>
      </el-table-column>
    </el-table>

    <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize"
      @pagination="getList" />

    <!-- 添加或修改投标管理对话框 -->
    <el-dialog :title="title" :visible.sync="open" :width="dialogProperty.dialogWidth" append-to-body>
      <el-form ref="form" :rules="rules" :model="form" :disabled="formDisabled">
        <el-descriptions class="margin-top" :column="dialogProperty.column" border>
          <el-descriptions-item :span="3">
            <template slot="label">
              <span class="require_input">* </span>投标项目名称
            </template>
            <el-form-item prop="projectName">
              <el-input v-model="form.projectName"></el-input>
            </el-form-item>
          </el-descriptions-item>
          <el-descriptions-item>
            <template slot="label">
              <span class="require_input">* </span>招标业主
            </template>
            <el-form-item prop="partyAName">
              <el-input v-model="form.partyAName"></el-input>
            </el-form-item>
          </el-descriptions-item>
          <el-descriptions-item>
            <template slot="label">
              业主联系人
            </template>
            <el-form-item prop="aPerson">
              <el-input v-model="form.aPerson"></el-input>
            </el-form-item>
          </el-descriptions-item>
          <el-descriptions-item>
            <template slot="label">
              业主联系电话
            </template>
            <el-form-item prop="aPhone">
              <el-input v-model="form.aPhone"></el-input>
            </el-form-item>
          </el-descriptions-item>
          <el-descriptions-item>
            <template slot="label">
              <span class="require_input">* </span>招标代理
            </template>
            <el-form-item prop="agent">
              <el-input v-model="form.agent"></el-input>
            </el-form-item>
          </el-descriptions-item>
          <el-descriptions-item>
            <template slot="label">
              代理联系人
            </template>
            <el-form-item prop="agentPerson">
              <el-input v-model="form.agentPerson"></el-input>
            </el-form-item>
          </el-descriptions-item>
          <el-descriptions-item>
            <template slot="label">
              代理联系电话
            </template>
            <el-form-item prop="agentPhone">
              <el-input v-model="form.agentPhone"></el-input>
            </el-form-item>
          </el-descriptions-item>
          <el-descriptions-item>
            <template slot="label">
              <span class="require_input">* </span>投标地点
            </template>
            <el-form-item prop="place">
              <el-input v-model="form.place"></el-input>
            </el-form-item>
          </el-descriptions-item>
          <el-descriptions-item>
            <template slot="label">
              投标部门
            </template>
            <el-form-item prop="dept">
              <el-select v-model="form.dept" placeholder="请选择" style="width:100%;" @change="getUserList()">
                <el-option v-for="item in deptList" :key="item.id" :label="item.label" :value="item.id">
                </el-option>
              </el-select>
            </el-form-item>
          </el-descriptions-item>
          <el-descriptions-item>
            <template slot="label">
              <span class="require_input">* </span>投标委托人
            </template>
            <el-form-item prop="trustee">
              <el-select v-model="form.trustee" placeholder="请选择" style="width:100%;">
                <el-option v-for="item in userList" :key="item.userId" :label="item.nickName" :value="item.userId">
                </el-option>
              </el-select>
            </el-form-item>
          </el-descriptions-item>
          <el-descriptions-item>
            <template slot="label">
              <span class="require_input">* </span>业主预算
            </template>
            <el-form-item prop="budget">
              <el-input-number :controls="false" v-model="form.budget"></el-input-number><span> 元</span>
            </el-form-item>
          </el-descriptions-item>
          <el-descriptions-item>
            <template slot="label">
              <span class="require_input">* </span>拟报价金额
            </template>
            <el-form-item prop="quote">
              <el-input-number :controls="false" v-model="form.quote"></el-input-number><span> 元</span>
            </el-form-item>
          </el-descriptions-item>
          <el-descriptions-item>
            <template slot="label">
              <span class="require_input">* </span>保证金
            </template>
            <el-form-item prop="deposit">
              <el-input-number :controls="false" v-model="form.deposit"></el-input-number><span> 元</span>
            </el-form-item>
          </el-descriptions-item>
          <el-descriptions-item>
            <template slot="label">
              <span class="require_input">* </span>投标时间
            </template>
            <el-form-item prop="tenderTime">
              <el-date-picker clearable v-model="form.tenderTime" type="date" value-format="yyyy-MM-dd"
                placeholder="请选择投标时间">
              </el-date-picker>
            </el-form-item>
          </el-descriptions-item>
          <el-descriptions-item>
            <template slot="label">
              标书购买截止时间
            </template>
            <el-form-item prop="bidBuyDeadline">
              <el-date-picker clearable v-model="form.bidBuyDeadline" type="date" value-format="yyyy-MM-dd"
                placeholder="标书购买截止时间">
              </el-date-picker>
            </el-form-item>
          </el-descriptions-item>
          <el-descriptions-item>
            <template slot="label">
              招标信息网址
            </template>
            <el-form-item prop="bidWebsite">
              <el-input v-model="form.bidWebsite"></el-input>
            </el-form-item>
          </el-descriptions-item>
          <el-descriptions-item :span="3">
            <template slot="label">
              招标文件
            </template>
            <FileUpload v-if="form.tenderId == null" ref="zbFile" :limit="1" :filePathName="'投标文件'"
              :fileType="['doc', 'docx', 'xls', 'xlsx', 'pdf', 'rar', 'zip']" @input="getUploadPathBidDocument">
            </FileUpload>
            <div v-if="form.tenderId != null">
              <FileUpload v-if="!isView" ref="zb" :limit="1"
                :fileType="['doc', 'docx', 'xls', 'xlsx', 'pdf', 'rar', 'zip']" :isShowTip="false"
                :filePathName="'投标文件'" :isModify="true" @input="getUploadPathBidDocument">
              </FileUpload>
              <div v-if="form.bidDocument">
                <el-link type="primary" @click="toPath(`${baseUrl}${'/profile/upload' + form.bidDocument}`)">
                  {{ getFileName(form.bidDocument) }}
                </el-link>
                <el-link class="ml20" type="warning" :href="`${baseUrl}${'/profile/upload' + form.bidDocument}`"
                  :underline="false" target="_blank">
                  <span class="el-icon-download">下载文件</span>
                </el-link>
              </div>
            </div>
          </el-descriptions-item>
          <el-descriptions-item :span="3">
            <template slot="label">
              项目内容简述
            </template>
            <el-form-item prop="projectBriefly">
              <el-input type="textarea" :autosize="{ minRows: 2, maxRows: 4 }" v-model="form.projectBriefly"></el-input>
            </el-form-item>
          </el-descriptions-item>
          <el-descriptions-item>
            <template slot="label">
              <span class="require_input">* </span>商务标书编写人
            </template>
            <el-form-item prop="businessWriter">
              <el-select v-model="form.businessWriter" placeholder="请选择" style="width:100%;">
                <el-option v-for="item in userList" :key="item.userId" :label="item.nickName" :value="item.userId">
                </el-option>
              </el-select>
            </el-form-item>
          </el-descriptions-item>
          <el-descriptions-item :span="2">
            <template slot="label">
              <span class="require_input">* </span>商务标书要求提交时间
            </template>
            <el-form-item prop="businessDeadline">
              <el-date-picker clearable v-model="form.businessDeadline" type="date" value-format="yyyy-MM-dd"
                placeholder="请选择商务标书要求提交时间">
              </el-date-picker>
            </el-form-item>
          </el-descriptions-item>
          <el-descriptions-item>
            <template slot="label">
              <span class="require_input">* </span>技术标书编写人
            </template>
            <el-form-item prop="techWriter">
              <el-select v-model="form.techWriter" placeholder="请选择" style="width:100%;">
                <el-option v-for="item in userList" :key="item.userId" :label="item.nickName" :value="item.userId">
                </el-option>
              </el-select>
            </el-form-item>
          </el-descriptions-item>
          <el-descriptions-item :span="2">
            <template slot="label">
              <span class="require_input">* </span>技术标书要求提交时间
            </template>
            <el-form-item prop="techDeadline">
              <el-date-picker clearable v-model="form.techDeadline" type="date" value-format="yyyy-MM-dd"
                placeholder="请选择技术标书要求提交时间">
              </el-date-picker>
            </el-form-item>
          </el-descriptions-item>
          <el-descriptions-item>
            <template slot="label">
              <span class="require_input">* </span>标书合稿人
            </template>
            <el-form-item prop="tenderCombiner">
              <el-select v-model="form.tenderCombiner" placeholder="请选择" style="width:100%;">
                <el-option v-for="item in userList" :key="item.userId" :label="item.nickName" :value="item.userId">
                </el-option>
              </el-select>
            </el-form-item>
          </el-descriptions-item>
          <el-descriptions-item>
            <template slot="label">
              <span class="require_input">* </span>标书检查人
            </template>
            <el-form-item prop="tenderChecker">
              <el-select v-model="form.tenderChecker" placeholder="请选择" style="width:100%;">
                <el-option v-for="item in userList" :key="item.userId" :label="item.nickName" :value="item.userId">
                </el-option>
              </el-select>
            </el-form-item>
          </el-descriptions-item>
          <el-descriptions-item>
            <template slot="label">
              <span class="require_input">* </span>标书打印装订人
            </template>
            <el-form-item prop="tenderPrinter">
              <el-select v-model="form.tenderPrinter" placeholder="请选择" style="width:100%;">
                <el-option v-for="item in userList" :key="item.userId" :label="item.nickName" :value="item.userId">
                </el-option>
              </el-select>
            </el-form-item>
          </el-descriptions-item>
          <el-descriptions-item :span="3">
            <template slot="label">
              标书文件
            </template>
            <FileUpload v-if="form.tenderId == null" ref="bsFile" :limit="1" :filePathName="'投标文件'"
              :fileType="['doc', 'docx', 'xls', 'xlsx', 'pdf', 'rar', 'zip']" @input="getUploadPathTenderDocument">
            </FileUpload>
            <div v-if="form.tenderId != null">
              <FileUpload v-if="!isView" ref="bs" :limit="1"
                :fileType="['doc', 'docx', 'xls', 'xlsx', 'pdf', 'rar', 'zip']" :isShowTip="false"
                :filePathName="'投标文件'" :isModify="true" @input="getUploadPathTenderDocument">
              </FileUpload>
              <div v-if="form.tenderDocument">
                <el-link type="primary" @click="toPath(`${baseUrl}${'/profile/upload' + form.tenderDocument}`)">
                  {{ getFileName(form.tenderDocument) }}
                </el-link>
                <el-link class="ml20" type="warning" :href="`${baseUrl}${'/profile/upload' + form.tenderDocument}`"
                  :underline="false" target="_blank">
                  <span class="el-icon-download">下载文件</span>
                </el-link>
              </div>
            </div>
          </el-descriptions-item>
          <el-descriptions-item :span="3">
            <template slot="label">
              中标状态
            </template>
            <div>
              <el-switch style="display: block" v-model="form.isWin" active-color="#13ce66" inactive-color="#ff4949"
                active-text="中标" inactive-text="未中标" active-value="1" inactive-value="0">
              </el-switch>

            </div>
          </el-descriptions-item>
        </el-descriptions>
      </el-form>
      <div slot="footer" class="dialog-footer" style="text-align: center;">
        <el-button :disabled="formDisabled" type="primary" @click="submitForm">确 定</el-button>
        <el-button @click="cancel">取 消</el-button>
      </div>
    </el-dialog>
  </div>
</template>

<script>
import { listTender, getTender, delTender, addTender, updateTender } from "@/api/oa/tender/tender";
import { listDept } from '@/api/system/dept'
import { listUser, deptTreeSelect } from "@/api/system/user";
export default {
  name: "Tender",
  components: {
  },
  data() {
    return {
      baseUrl: process.env.VUE_APP_BASE_API,
      // 遮罩层
      loading: true,
      // 选中数组
      ids: [],
      // 非单个禁用
      single: true,
      // 非多个禁用
      multiple: true,
      // 显示搜索条件
      showSearch: true,
      // 总条数
      total: 0,
      // 投标管理表格数据
      tenderList: [],
      // 弹出层标题
      title: "",
      // 是否显示弹出层
      open: false,
      isView: true,
      // 对话框属性
      dialogProperty: {
        dialogWidth: '1200px',
        column: 3,
      },
      formDisabled: false,
      // 查询参数
      queryParams: {
        pageNum: 1,
        pageSize: 10,
        projectName: null,
        partyAName: null,
        aPerson: null,
        aPhone: null,
        agent: null,
        agentPerson: null,
        agentPhone: null,
        place: null,
        dept: null,
        trustee: null,
        budget: null,
        quote: null,
        deposit: null,
        tenderTime: null,
        bidBuyDeadline: null,
        bidWebsite: null,
        bidDocument: null,
        projectBriefly: null,
        businessWriter: null,
        businessDeadline: null,
        techWriter: null,
        techDeadline: null,
        tenderCombiner: null,
        tenderChecker: null,
        tenderPrinter: null,
        tenderDocument: null
      },
      // 表单参数
      form: {
        dept: 105
      },
      // 表单校验
      rules: {
        projectName: [
          { required: true, message: '投标项目名称不能为空', trigger: 'blur' }
        ],
        partyAName: [
          { required: true, message: '招标业主不能为空', trigger: 'blur' }
        ],
        budget: [
          { required: true, message: '业主预算不能为空', trigger: 'blur' }
        ],
        agent: [
          { required: true, message: '招标代理不能为空', trigger: 'blur' }
        ],
        quote: [
          { required: true, message: '拟保价金额不能为空', trigger: 'blur' }
        ],
        deposit: [
          { required: true, message: '保证金不能为空', trigger: 'blur' }
        ],
        place: [
          { required: true, message: '投标地点不能为空', trigger: 'blur' }
        ],
        tenderTime: [
          { required: true, message: '投标时间不能为空', trigger: 'change' }
        ],
        trustee: [
          { required: true, message: '投标委托人不能为空', trigger: 'blur' }
        ],
        businessWriter: [
          { required: true, message: '商务标书编写人不能为空', trigger: 'blur' }
        ],
        businessDeadline: [
          { required: true, message: '要求时间不能为空', trigger: 'change' }
        ],
        techWriter: [
          { required: true, message: '技术标书编写人不能为空', trigger: 'blur' }
        ],
        techDeadline: [
          { required: true, message: '要求时间不能为空', trigger: 'change' }
        ],
        tenderCombiner: [
          { required: true, message: '标书合稿人不能为空', trigger: 'blur' }
        ],
        tenderChecker: [
          { required: true, message: '标书检查人不能为空', trigger: 'blur' }
        ],
        tenderPrinter: [
          { required: true, message: '打印装订人不能为空', trigger: 'blur' }
        ],

      },
      deptList: [],
      deptOptions: undefined,
      userList: [],

    };
  },
  created() {
    this.getList();
    this.getDeptTree();
    if (this.$store.state.app.device == 'mobile') {
      this.dialogProperty.column = 1
      this.dialogProperty.dialogWidth = '90%'
    }
  },
  methods: {
    /** 查询投标管理列表 */
    getList() {
      this.loading = true;
      listTender(this.queryParams).then(response => {
        this.tenderList = response.rows;
        this.total = response.total;
        this.loading = false;
      });
    },/** 查询用户列表 */
    getUserList() {
      listUser({ pageNum: 1, pageSize: 99999 }).then(response => {
        this.userList = response.rows;
      }
      );
    },
    /** 查询部门 */
    getDeptTree() {
      deptTreeSelect().then(response => {
        this.deptOptions = response.data;
        this.deptList = response.data[0].children;
        this.getUserList();
      });
    },
    getNameByUserId(userId) {
      let curUser;
      if (this.userList.length != 0) {
        curUser = this.userList.filter(user => user.userId == userId);
        return curUser[0].nickName
      }
    },
    getNameByDeptId(deptId) {
      let curDept;
      if (this.deptList.length != 0) {
        curDept = this.deptList.filter(dept => dept.id == deptId);
        return curDept[0].label
      }
    },
    // 取消按钮
    cancel() {
      this.open = false;
      this.reset();
    },
    // 表单重置
    reset() {
      this.form = {
        tenderId: null,
        projectName: null,
        partyAName: null,
        aPerson: null,
        aPhone: null,
        agent: null,
        agentPerson: null,
        agentPhone: null,
        place: null,
        dept: null,
        trustee: null,
        budget: null,
        quote: null,
        deposit: null,
        tenderTime: null,
        bidBuyDeadline: null,
        bidWebsite: null,
        bidDocument: null,
        projectBriefly: null,
        businessWriter: null,
        businessDeadline: null,
        techWriter: null,
        techDeadline: null,
        tenderCombiner: null,
        tenderChecker: null,
        tenderPrinter: null,
        tenderDocument: null
      };
      this.resetForm("form");
    },
    /** 搜索按钮操作 */
    handleQuery() {
      this.queryParams.pageNum = 1;
      this.getList();
    },
    /** 重置按钮操作 */
    resetQuery() {
      this.resetForm("queryForm");
      this.handleQuery();
    },
    // 多选框选中数据
    handleSelectionChange(selection) {
      this.ids = selection.map(item => item.tenderId)
      this.single = selection.length !== 1
      this.multiple = !selection.length
    },
    /** 新增按钮操作 */
    handleAdd() {
      this.reset();
      this.form.dept = 105
      this.open = true;
      this.title = "添加投标信息";
      this.formDisabled = false;
    },
    handleView(row) {
      this.isView = true;
      const tenderId = row.tenderId || this.ids
      getTender(tenderId).then(response => {
        this.form = response.data;
        this.open = true;
        this.formDisabled = true;
        this.title = "查看投标信息";
      });
    },
    /** 修改按钮操作 */
    handleUpdate(row) {
      this.reset();
      this.isView = false;
      const tenderId = row.tenderId || this.ids
      getTender(tenderId).then(response => {
        this.form = response.data;
        this.open = true;
        this.formDisabled = false;
        this.title = "修改投标信息";
      });
    },
    /** 提交按钮 */
    submitForm() {
      this.$refs["form"].validate(valid => {
        if (valid) {
          if (this.form.tenderId != null) {
            updateTender(this.form).then(response => {
              this.$modal.msgSuccess("修改成功");
              this.open = false;
              this.getList();
            });
          } else {
            addTender(this.form).then(response => {
              this.$modal.msgSuccess("新增成功");
              this.open = false;
              this.getList();
            });
          }
        }
      });
    },
    getUploadPathBidDocument(val) {
      let arr = val.split('/upload')
      this.form.bidDocument = arr[1]
      if (val == "") {
        this.form.bidDocument = ""
      }
    },
    getUploadPathTenderDocument(val) {
      let arr = val.split('/upload')
      this.form.tenderDocument = arr[1]
      if (val == "") {
        this.form.tenderDocument = ""
      }
    },
    getFileName(name) {
      if (name) {
        let arr = name.split('/')
        return arr[arr.length - 1];
      }
    },
    handleFileDelete(name) {
      if (name == 'zb')
        this.$refs.zb.handleDelete(0);
      else
        this.$refs.bs.handleDelete(0);
    },
    /** 删除按钮操作 */
    handleDelete(row) {
      const tenderIds = row.tenderId || this.ids;
      this.$modal.confirm('删除后不可恢复，是否确认删除？').then(function () {
        return delTender(tenderIds);
      }).then(() => {
        this.getList();
        this.$modal.msgSuccess("删除成功");
      }).catch(() => { });
    },
    /** 导出按钮操作 */
    handleExport() {
      this.download('oa/tender/export', {
        ...this.queryParams
      }, `tender_${new Date().getTime()}.xlsx`)
    },
    // 修改投标部门
    changeDept() {
      this.getUserList();
    },
    toPath(url) {
      this.open = false
      this.reviewWord(url)
    },
  }
};
</script>
<style lang="scss" scoped>
@import "@/assets/styles/element-reset.scss";

::v-deep .el-descriptions-item__label.is-bordered-label {
  color: #121212;
  // background: rgba($color: #46a6ff, $alpha: 0.1);
  width: 120px;
  text-align: center;
}

::v-deep .el-descriptions .is-bordered .el-descriptions-item__cell {
  border: 1px solid #2d3f62;
}

::v-deep .el-form-item--medium .el-form-item__label {
  font-weight: 500;
}

::v-deep .el-form-item {
  margin-bottom: 10px;
}

.require_input {
  color: #f00;
  font-size: 20px;
  font-weight: bold;
  display: inline-block;
}


.upload-file-uploader {
  margin-bottom: 5px;
}

.upload-file-list .el-upload-list__item {
  border: 1px solid #e4e7ed;
  line-height: 2;
  margin-bottom: 10px;
  position: relative;
}

.upload-file-list .ele-upload-list__item-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: inherit;
}

.ele-upload-list__item-content-action .el-link {
  margin-right: 10px;
}
</style>