<template>
  <div>
    <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="90px">
      <el-form-item label="作废时间" prop="searchTimeArray">
        <el-date-picker
          v-model="queryParams.searchTimeArray"
          type="daterange"
          range-separator="至"
          start-placeholder="开始日期"
          end-placeholder="结束日期">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="单据号" prop="soNo">
        <el-input v-model="queryParams.soNo" style="width: 18rem" placeholder="请输入单号、备注"/>
      </el-form-item>
      <el-form-item label="调出门店" prop="corpId">
        <CorpChoose />
      </el-form-item>
      <el-form-item label="调入门店" prop="corpId">
        <CorpChoose />
      </el-form-item>
      <el-form-item>
        <el-button type="primary" icon="el-icon-search">搜索</el-button>
        <el-button icon="el-icon-refresh">重置</el-button>
      </el-form-item>
    </el-form>
    <el-row :gutter="10" class="mb8">
      <right-toolbar :showSearch.sync="showSearch"></right-toolbar>
    </el-row>
    <el-table v-loading="loading" :data="list" :stripe="true" :show-overflow-tooltip="true">
      <el-table-column label="序号" align="center">
        <template scope="scope">
          <span>{{ scope.$index + 1 }}</span>
        </template>
      </el-table-column>
      <el-table-column label="单号" align="center" prop="soNo" width="180" />
      <el-table-column label="调出门店" align="center" prop="soNo" width="180" />
      <el-table-column label="调入门店" align="center" prop="soNo" width="180" />
      <el-table-column label="总数量" align="center" prop="soNo" width="180" />
      <el-table-column label="总金额" align="center" prop="soNo" width="180" />
      <el-table-column label="调拨日期" align="center" prop="soNo" width="180" />
      <el-table-column label="调拨人" align="center" prop="soNo" width="180" />
      <el-table-column label="状态" align="center" prop="soNo" width="180" />
      <el-table-column label="作废备注" align="center" prop="soNo" width="180" />
    </el-table>
    <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNo" :limit.sync="queryParams.pageSize"
    />
  </div>
</template>

<script>
import CorpChoose from "@/views/repair/Components/CorpChoose.vue";

export default {
  name: "StVoid",
  components: {CorpChoose},
  data() {
    return {
      queryParams:{
        searchTimeArray: [],
      },
      showSearch:true,
      loading: false,
      list: [],
      total: 0
    }
  },
  methods: {}
}
</script>

<style scoped lang="scss">

</style>
