<template>
  <div>
    <div class="sty">
      <el-page-header @back="goBack" content="开单"> </el-page-header>
    </div>
    <el-divider></el-divider>
    <!-- 表头 -->
    <div>
      <el-form
        ref="searchForm"
        :model="searchForm"
        label-width="100px"
        size="small"
        label-position="left"
      >
        <el-row :gutter="20">
          <el-col :xs="24" :sm="12" :lg="6">
            <el-form-item label="单据编号" prop="">
              <el-input placeholder="请输入"></el-input>
            </el-form-item>
          </el-col>
          <el-col :xs="24" :sm="12" :lg="6">
            <el-form-item label="单据日期" prop="">
              <el-input placeholder="请输入"></el-input>
            </el-form-item>
          </el-col>
          <el-col :xs="24" :sm="12" :lg="6">
            <el-form-item label="经销商" prop="">
              <el-select class="selectStyle" placeholder="请选择">
                <el-option> </el-option>
              </el-select>
            </el-form-item>
          </el-col>
          <el-col :xs="24" :sm="12" :lg="6">
            <el-form-item label="单据内容" prop="">
              <el-input placeholder="请输入"></el-input>
            </el-form-item>
          </el-col>
          <el-col :xs="24" :sm="12" :lg="6">
            <el-form-item label="币种" prop="">
              <el-input placeholder="请输入"></el-input>
            </el-form-item>
          </el-col>
          <el-col :xs="24" :sm="12" :lg="6">
            <el-form-item label="税率" prop="">
              <el-select class="selectStyle" placeholder="请选择">
                <el-option> </el-option>
              </el-select>
            </el-form-item>
          </el-col>
          <el-col :xs="24" :sm="12" :lg="6">
            <el-form-item label="金额" prop="">
              <el-input placeholder="请输入"></el-input>
            </el-form-item>
          </el-col>
          <el-col :xs="24" :sm="12" :lg="6">
            <el-form-item label="本币金额" prop="">
              <el-input placeholder="请输入"></el-input>
            </el-form-item>
          </el-col>
          <el-col :xs="24" :sm="12" :lg="6">
            <el-form-item label="数量" prop="">
              <el-input placeholder="请输入"></el-input>
            </el-form-item>
          </el-col>
          <el-col :xs="24" :sm="12" :lg="6">
            <el-form-item label="部门" prop="">
              <el-input placeholder="请输入"></el-input>
            </el-form-item>
          </el-col>
          <el-col :xs="24" :sm="12" :lg="6">
            <el-form-item label="业务员" prop="">
              <el-input placeholder="请输入"></el-input>
            </el-form-item>
          </el-col>
          <el-col :xs="24" :sm="12" :lg="6">
            <el-form-item label="项目" prop="">
              <el-input placeholder="请输入"></el-input>
            </el-form-item>
          </el-col>
          <el-col :xs="24" :sm="12" :lg="6">
            <el-form-item label="付款条件" prop="">
              <el-input placeholder="请输入"></el-input>
            </el-form-item>
          </el-col>
          <el-col :xs="24" :sm="12" :lg="6">
            <el-form-item label="摘要" prop="">
              <el-input placeholder="请输入"></el-input>
            </el-form-item>
          </el-col>
          <el-col :xs="24" :sm="12" :lg="6">
            <el-form-item label="厂工程编码" prop="">
              <el-input placeholder="请输入"></el-input>
            </el-form-item>
          </el-col>
          <el-col :xs="24" :sm="12" :lg="6">
            <el-form-item label="订单类型" prop="">
              <el-input placeholder="请输入"></el-input>
            </el-form-item>
          </el-col>
          <el-col :xs="24" :sm="12" :lg="6">
            <el-form-item label="单据来源" prop="">
              <el-input placeholder="请输入"></el-input>
            </el-form-item>
          </el-col>
        </el-row>
      </el-form>
    </div>
    <!-- 列表 -->
    <div class="mymain-container">
      <div class="table">
        <el-table
          v-loading="listLoading"
          :data="dataList"
          element-loading-text="Loading"
          border
          fit
          highlight-current-row
          stripe
          show-summary
        >
          <el-table-column
            label="序号"
            align="center"
            min-width="100"
            show-overflow-tooltip
          ></el-table-column>
          <el-table-column
            align="center"
            label="方向"
            prop="aaa"
            min-width="160"
            show-overflow-tooltip
          >
            <template slot-scope="scope">
              <el-input v-model="scope.row.aaa"></el-input>
            </template>
          </el-table-column>
          <el-table-column
            align="center"
            label="科目"
            prop=""
            min-width="160"
            show-overflow-tooltip
          >
            <template slot-scope="">
              <el-input></el-input>
            </template>
          </el-table-column>
          <el-table-column
            align="center"
            label="币种"
            prop=""
            min-width="160"
            show-overflow-tooltip
          >
            <template slot-scope="">
              <el-input></el-input>
            </template>
          </el-table-column>
          <el-table-column
            align="center"
            label="汇率"
            prop=""
            min-width="160"
            show-overflow-tooltip
          >
            <template slot-scope="">
              <el-input></el-input>
            </template>
          </el-table-column>
          <el-table-column
            align="center"
            label="金额"
            prop=""
            min-width="160"
            show-overflow-tooltip
          >
            <template slot-scope="">
              <el-input></el-input>
            </template>
          </el-table-column>
          <el-table-column
            align="center"
            label="本币金额"
            prop=""
            min-width="160"
            show-overflow-tooltip
          >
            <template slot-scope="">
              <el-input></el-input>
            </template>
          </el-table-column>
          <el-table-column
            align="center"
            label="部门"
            prop=""
            min-width="160"
            show-overflow-tooltip
          >
            <template slot-scope="">
              <el-input></el-input>
            </template>
          </el-table-column>
          <el-table-column
            align="center"
            label="业务员"
            prop=""
            min-width="160"
            show-overflow-tooltip
          >
            <template slot-scope="">
              <el-input></el-input>
            </template>
          </el-table-column>
          <el-table-column
            align="center"
            label="摘要"
            prop=""
            min-width="160"
            show-overflow-tooltip
          >
            <template slot-scope="">
              <el-input></el-input>
            </template>
          </el-table-column>
          <el-table-column
            align="center"
            label="操作"
            min-width="160"
            show-overflow-tooltip
          >
            <el-button type="text" class="textColor">删除</el-button>
          </el-table-column>
        </el-table>
      </div>
    </div>
    <!-- 按钮 -->
    <div class="btn-group clearfix">
      <div class="fl">
        <el-button type="primary" size="small">保存</el-button>
        <el-button type="primary" size="small">提交审核</el-button>
        <el-button type="primary" size="small">重置</el-button>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      dataList: [{ aaa: "" }], // 列表数据
      searchForm: {}, //搜索表单
      listLoading: false, // 列表加载loading
    };
  },
  methods: {
    goBack() {
      this.$parent.isShowType = 1;
    },
  },
};
</script>

<style lang="scss" scoped>
.selectStyle {
  width: 100%;
}
</style>