<!-- @desc:出库流水表  @auth:常皓宁  @time:2024-04-07 9:28 -->
<template>
  <div class="main-div" ref="mainDiv">
    <!--加载中-->
    <loading :loading="loading" v-if="!modalVisible"></loading>
    <BaseIndexButtonGroup id="BaseIndexButtonGroup">
      <template #left>
        <!--    查询    -->
        <BaseIndexButton right-button="user-select" ref="search" name="search"></BaseIndexButton>
        <!--    清空条件    -->
        <BaseIndexButton ref="clear" name="clear"></BaseIndexButton>
      </template>

    </BaseIndexButtonGroup>

    <!--  查询条件区域  -->
    <div id="search-cond-div" ref="search-cond-div" class="search-cond-class">
      <SearchCond ref="searchCond" v-model="searchCond"
                  @collapse-change="collapseChange" :setFlag="false"
                  :searchContent="searchContent"
      ></SearchCond>
    </div>
    <!--  表格部分  -->
    <div>
      <DkTable :id="'table-'+$options.name" ref="table-select" :data="tableData"
               :page-total="pageInfo.total"
               :current-page="pageInfo.currentPage"
               :height="tableHeight" :primaryKey="primaryKey"
               :multiple="false"
               :choose-flag="false"
               @pageChange="pageSizeChange">
        <DkTableColumn field="商品编码" type="link"></DkTableColumn>
        <DkTableColumn field="唯一编码" type="link"></DkTableColumn>
        <DkTableColumn field="商品名称" type="link"></DkTableColumn>
        <DkTableColumn field="商品等级" type="link"></DkTableColumn>
        <DkTableColumn field="商品规格" type="link"></DkTableColumn>
        <DkTableColumn field="商品色号" type="link"></DkTableColumn>
        <DkTableColumn field="库区名称" type="link"></DkTableColumn>
        <DkTableColumn field="仓位号" type="link"></DkTableColumn>
        <DkTableColumn field="商品种类" type="link"></DkTableColumn>
        <DkTableColumn field="商品品牌" type="link"></DkTableColumn>
        <DkTableColumn field="商品重量" type="link"></DkTableColumn>
        <DkTableColumn field="商品面积" type="link"></DkTableColumn>
        <DkTableColumn field="商品体积" type="link"></DkTableColumn>
        <DkTableColumn field="库存结存量" type="link"></DkTableColumn>
        <DkTableColumn field="库存占库量" type="link"></DkTableColumn>
        <DkTableColumn field="库存冻结量" type="link"></DkTableColumn>
        <DkTableColumn field="库存可售量" type="link"></DkTableColumn>
        <DkTableColumn field="remarks" width="auto"></DkTableColumn>
      </DkTable>
    </div>
  </div>
</template>

<script>
import {indexMixin} from '@/mixins'
export default {
  name: "index",
  mixins: [indexMixin],
  data() {
    let self = this
    return {
      searchContent:
        [
          {
            itemCode: 'goodsCode',
          },
          {
            itemCode: 'goodsName',
          },
          {
            itemCode: 'gradeId',
            valueFormat: {code: 'roleIds', data: [], valueKey: 'roleId', labelKey: 'roleName',popType:'role'},
            valueKind: self.$config.docUserInput.mChoice
          },
          {
            itemCode: 'warehouseIds',
            itemName:self.$t('warehouseLevel'),
            valueFormat: {code: 'warehouseIds'},
            valueKind: self.$config.docUserInput.mSearch,
            magnifierType: self.$config.MagnifierType.organization
          }
        ],
      // 查询条件
      searchCond: {}
    }
  },
}
</script>

<style scoped>

</style>
