<template>
<div class="app-container">
  <el-form
    :model="queryParams"
    ref="queryForm"
    :inline="true"
    label-width="88px"
  >
    <el-row>
      <el-form-item label="日期" prop="fBsdate">
        <el-input
          v-model="queryParams.fBsdate"
          placeholder="请输入日期"
          clearable
          size="small"
        />
      </el-form-item>
      <el-form-item label="提单号" prop="fMblno">
        <el-input
          v-model="queryParams.fMblno"
          placeholder="请输入提单号"
          clearable
          size="small"
        />
      </el-form-item>
      <el-form-item label="制单人" prop="createBy">
        <el-input
          v-model="queryParams.createBy"
          placeholder="请输入制单人"
          clearable
          size="small"
        />
      </el-form-item>
      <el-form-item>
        <el-button
          type="cyan"
          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-row>
  </el-form>
  <el-row :gutter="10" class="mb8">
    <el-col :span="1.5">
      <el-button
        type="primary"
        icon="el-icon-plus"
        size="mini"
        @click="handleAdd()"
        v-hasPermi="['agreement:agreementTask:add']"
      >新增
      </el-button>
    </el-col>
    <!--      <el-col :span="1.5">-->
    <!--        <el-button-->
    <!--          type="success"-->
    <!--          icon="el-icon-edit"-->
    <!--          size="mini"-->
    <!--          :disabled="single"-->
    <!--          @click="handleUpdate"-->
    <!--          v-hasPermi="['agreement:agreementTask:edit']"-->
    <!--        >修改-->
    <!--        </el-button>-->
    <!--      </el-col>-->
    <!--      <el-col :span="1.5">-->
    <!--        <el-button-->
    <!--          type="danger"-->
    <!--          icon="el-icon-delete"-->
    <!--          size="mini"-->
    <!--          :disabled="multiple"-->
    <!--          @click="handleDelete"-->
    <!--          v-hasPermi="['agreement:agreementTask:remove']"-->
    <!--        >删除-->
    <!--        </el-button>-->
    <!--      </el-col>-->
    <el-col :span="1.5">
      <el-button
        type="warning"
        icon="el-icon-download"
        size="mini"
        @click="handleExport"
        v-hasPermi="['agreement:agreementTask:export']"
      >导出
      </el-button>
    </el-col>
    <el-col :span="1.5">
      <el-button
        type="info"
        icon="el-icon-download"
        size="mini"
        :disabled="single"
        @click="handleUpdate(null, 2)"
        v-hasPermi="['agreement:agreementStorage:export']"
      >复制新增
      </el-button>
    </el-col>
    <right-toolbar
      :showSearch.sync="showSearch"
      @queryTable="getList"
    ></right-toolbar>
  </el-row>
  <el-table
    v-loading="loading"
    :data="agreementList"
    @selection-change="handleSelectionChange"
  >
    <el-table-column type="selection" width="55" align="center" />
    <el-table-column type="index" label="行号" align="center" fixed />
    <el-table-column
      label="日期"
      sortable
      align="center"
      prop="fBsdate"
      fixed
      show-overflow-tooltip
    />
    <el-table-column
      label="提单号"
      sortable
      align="center"
      prop="fMblno"
      fixed
      show-overflow-tooltip
    />
    <el-table-column
      label="制单人"
      sortable
      align="center"
      prop="createBy"
      fixed
      show-overflow-tooltip
    />
    <el-table-column
      label="操作"
      align="center"
      class-name="small-padding fixed-width"
    >
      <template slot-scope="scope">
        <el-button
          size="mini"
          type="text"
          icon="el-icon-view"
          @click="speed_s(scope.row, 0)"
          v-hasPermi="['agreement:agreementTask:remove']"
        >查看
        </el-button>
        <el-button
          size="mini"
          type="text"
          icon="el-icon-edit"
          @click="handleUpdate(scope.row)"
          v-if="scope.row.fBillstatus <= 3"
          v-hasPermi="['agreement:agreementTask:edit']"
        >修改
        </el-button>
        <el-button
          size="mini"
          type="text"
          icon="el-icon-delete"
          @click="handleDelete(scope.row)"
          v-if="scope.row.fBillstatus <= 3"
          v-hasPermi="['agreement:agreementTask:remove']"
        >删除
        </el-button>
      </template>
    </el-table-column>
  </el-table>
</div>
</template>

<script>
export default {
  name: 'jiGang',
  data(){
    return {
      queryParams:[]
    }
  }
}
</script>

<style scoped>

</style>
