<template>
  <a-card :bordered="false">

    <!-- 查询区域 -->
    <div class="table-page-search-wrapper">
      <a-form layout="inline">
        <a-row :gutter="24">

          <a-col :md="6" :sm="8">
            <a-form-item label="cinvcode">
              <a-input placeholder="请输入cinvcode" v-model="queryParam.cinvcode"></a-input>
            </a-form-item>
          </a-col>
          <a-col :md="6" :sm="8">
            <a-form-item label="cinvaddcode">
              <a-input placeholder="请输入cinvaddcode" v-model="queryParam.cinvaddcode"></a-input>
            </a-form-item>
          </a-col>
        <template v-if="toggleSearchStatus">
        <a-col :md="6" :sm="8">
            <a-form-item label="cinvname">
              <a-input placeholder="请输入cinvname" v-model="queryParam.cinvname"></a-input>
            </a-form-item>
          </a-col>
          <a-col :md="6" :sm="8">
            <a-form-item label="cinvstd">
              <a-input placeholder="请输入cinvstd" v-model="queryParam.cinvstd"></a-input>
            </a-form-item>
          </a-col>
          <a-col :md="6" :sm="8">
            <a-form-item label="cinvccode">
              <a-input placeholder="请输入cinvccode" v-model="queryParam.cinvccode"></a-input>
            </a-form-item>
          </a-col>
        </template>
          <a-col :md="6" :sm="8" >
            <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
              <a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
              <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
              <a @click="handleToggleSearch" style="margin-left: 8px">
                {{ toggleSearchStatus ? '收起' : '展开' }}
                <a-icon :type="toggleSearchStatus ? 'up' : 'down'"/>
              </a>
            </span>
          </a-col>

        </a-row>
      </a-form>
    </div>

    <!-- 操作按钮区域 -->
    <div class="table-operator">
      <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button>
      <a-button type="primary" icon="download" @click="handleExportXls">导出</a-button>
      <a-upload name="file" :showUploadList="false" :multiple="false" :action="importExcelUrl" @change="handleImportExcel">
        <a-button type="primary" icon="import">导入</a-button>
      </a-upload>
      <a-dropdown v-if="selectedRowKeys.length > 0">
        <a-menu slot="overlay">
          <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
        </a-menu>
        <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button>
      </a-dropdown>
    </div>

    <!-- table区域-begin -->
    <div>
      <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">
        <i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a style="font-weight: 600">{{ selectedRowKeys.length }}</a>项
        <a style="margin-left: 24px" @click="onClearSelected">清空</a>
      </div>

      <a-table
        ref="table"
        size="middle"
        bordered
        rowKey="id"
        :columns="columns"
        :dataSource="dataSource"
        :pagination="ipagination"
        :loading="loading"
        :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
        @change="handleTableChange">

        <span slot="action" slot-scope="text, record">
          <a @click="handleEdit(record)">编辑</a>

          <a-divider type="vertical" />
          <a-dropdown>
            <a class="ant-dropdown-link">更多 <a-icon type="down" /></a>
            <a-menu slot="overlay">
              <a-menu-item>
                <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
                  <a>删除</a>
                </a-popconfirm>
              </a-menu-item>
            </a-menu>
          </a-dropdown>
        </span>

      </a-table>
    </div>
    <!-- table区域-end -->

    <!-- 表单区域 -->
    <fbsInventory-modal ref="modalForm" @ok="modalFormOk"></fbsInventory-modal>
  </a-card>
</template>

<script>
  import FbsInventoryModal from './modules/FbsInventoryModal'
  import { JeecgListMixin } from '@/mixins/JeecgListMixin'

  export default {
    name: "FbsInventoryList",
    mixins:[JeecgListMixin],
    components: {
      FbsInventoryModal
    },
    data () {
      return {
        description: '存库档案管理页面',
        // 表头
        columns: [
          {
            title: '#',
            dataIndex: '',
            key:'rowIndex',
            width:60,
            align:"center",
            customRender:function (t,r,index) {
              return parseInt(index)+1;
            }
           },
		   {
            title: 'cinvcode',
            align:"center",
            dataIndex: 'cinvcode'
           },
		   {
            title: 'cinvaddcode',
            align:"center",
            dataIndex: 'cinvaddcode'
           },
		   {
            title: 'cinvname',
            align:"center",
            dataIndex: 'cinvname'
           },
		   {
            title: 'cinvstd',
            align:"center",
            dataIndex: 'cinvstd'
           },
		   {
            title: 'cinvccode',
            align:"center",
            dataIndex: 'cinvccode'
           },
		   {
            title: 'cvencode',
            align:"center",
            dataIndex: 'cvencode'
           },
		   {
            title: 'creplaceitem',
            align:"center",
            dataIndex: 'creplaceitem'
           },
		   {
            title: 'cposition',
            align:"center",
            dataIndex: 'cposition'
           },
		   {
            title: 'bsale',
            align:"center",
            dataIndex: 'bsale'
           },
		   {
            title: 'bpurchase',
            align:"center",
            dataIndex: 'bpurchase'
           },
		   {
            title: 'bself',
            align:"center",
            dataIndex: 'bself'
           },
		   {
            title: 'bcomsume',
            align:"center",
            dataIndex: 'bcomsume'
           },
		   {
            title: 'bproducing',
            align:"center",
            dataIndex: 'bproducing'
           },
		   {
            title: 'bservice',
            align:"center",
            dataIndex: 'bservice'
           },
		   {
            title: 'baccessary',
            align:"center",
            dataIndex: 'baccessary'
           },
		   {
            title: 'itaxrate',
            align:"center",
            dataIndex: 'itaxrate'
           },
		   {
            title: 'iinvweight',
            align:"center",
            dataIndex: 'iinvweight'
           },
		   {
            title: 'ivolume',
            align:"center",
            dataIndex: 'ivolume'
           },
		   {
            title: 'iinvrcost',
            align:"center",
            dataIndex: 'iinvrcost'
           },
		   {
            title: 'iinvsprice',
            align:"center",
            dataIndex: 'iinvsprice'
           },
		   {
            title: 'iinvscost',
            align:"center",
            dataIndex: 'iinvscost'
           },
		   {
            title: 'iinvlscost',
            align:"center",
            dataIndex: 'iinvlscost'
           },
		   {
            title: 'iinvncost',
            align:"center",
            dataIndex: 'iinvncost'
           },
		   {
            title: 'iinvadvance',
            align:"center",
            dataIndex: 'iinvadvance'
           },
		   {
            title: 'iinvbatch',
            align:"center",
            dataIndex: 'iinvbatch'
           },
		   {
            title: 'isafenum',
            align:"center",
            dataIndex: 'isafenum'
           },
		   {
            title: 'itopsum',
            align:"center",
            dataIndex: 'itopsum'
           },
		   {
            title: 'ilowsum',
            align:"center",
            dataIndex: 'ilowsum'
           },
		   {
            title: 'ioverstock',
            align:"center",
            dataIndex: 'ioverstock'
           },
		   {
            title: 'cinvabc',
            align:"center",
            dataIndex: 'cinvabc'
           },
		   {
            title: 'binvquality',
            align:"center",
            dataIndex: 'binvquality'
           },
		   {
            title: 'binvbatch',
            align:"center",
            dataIndex: 'binvbatch'
           },
		   {
            title: 'binventrust',
            align:"center",
            dataIndex: 'binventrust'
           },
		   {
            title: 'binvoverstock',
            align:"center",
            dataIndex: 'binvoverstock'
           },
		   {
            title: 'dsdate',
            align:"center",
            dataIndex: 'dsdate'
           },
		   {
            title: 'dedate',
            align:"center",
            dataIndex: 'dedate'
           },
		   {
            title: 'bfree1',
            align:"center",
            dataIndex: 'bfree1'
           },
		   {
            title: 'bfree2',
            align:"center",
            dataIndex: 'bfree2'
           },
		   {
            title: 'cinvdefine1',
            align:"center",
            dataIndex: 'cinvdefine1'
           },
		   {
            title: 'cinvdefine2',
            align:"center",
            dataIndex: 'cinvdefine2'
           },
		   {
            title: 'cinvdefine3',
            align:"center",
            dataIndex: 'cinvdefine3'
           },
		   {
            title: 'iId',
            align:"center",
            dataIndex: 'iId'
           },
		   {
            title: 'binvtype',
            align:"center",
            dataIndex: 'binvtype'
           },
		   {
            title: 'iinvmpcost',
            align:"center",
            dataIndex: 'iinvmpcost'
           },
		   {
            title: 'cquality',
            align:"center",
            dataIndex: 'cquality'
           },
		   {
            title: 'iinvsalecost',
            align:"center",
            dataIndex: 'iinvsalecost'
           },
		   {
            title: 'iinvscost1',
            align:"center",
            dataIndex: 'iinvscost1'
           },
		   {
            title: 'iinvscost2',
            align:"center",
            dataIndex: 'iinvscost2'
           },
		   {
            title: 'iinvscost3',
            align:"center",
            dataIndex: 'iinvscost3'
           },
		   {
            title: 'bfree3',
            align:"center",
            dataIndex: 'bfree3'
           },
		   {
            title: 'bfree4',
            align:"center",
            dataIndex: 'bfree4'
           },
		   {
            title: 'bfree5',
            align:"center",
            dataIndex: 'bfree5'
           },
		   {
            title: 'bfree6',
            align:"center",
            dataIndex: 'bfree6'
           },
		   {
            title: 'bfree7',
            align:"center",
            dataIndex: 'bfree7'
           },
		   {
            title: 'bfree8',
            align:"center",
            dataIndex: 'bfree8'
           },
		   {
            title: 'bfree9',
            align:"center",
            dataIndex: 'bfree9'
           },
		   {
            title: 'bfree10',
            align:"center",
            dataIndex: 'bfree10'
           },
		   {
            title: 'ccreateperson',
            align:"center",
            dataIndex: 'ccreateperson'
           },
		   {
            title: 'cmodifyperson',
            align:"center",
            dataIndex: 'cmodifyperson'
           },
		   {
            title: 'dmodifydate',
            align:"center",
            dataIndex: 'dmodifydate'
           },
		   {
            title: 'fsubscribepoint',
            align:"center",
            dataIndex: 'fsubscribepoint'
           },
		   {
            title: 'fvagquantity',
            align:"center",
            dataIndex: 'fvagquantity'
           },
		   {
            title: 'cvaluetype',
            align:"center",
            dataIndex: 'cvaluetype'
           },
		   {
            title: 'bfixexch',
            align:"center",
            dataIndex: 'bfixexch'
           },
		   {
            title: 'foutexcess',
            align:"center",
            dataIndex: 'foutexcess'
           },
		   {
            title: 'finexcess',
            align:"center",
            dataIndex: 'finexcess'
           },
		   {
            title: 'imassdate',
            align:"center",
            dataIndex: 'imassdate'
           },
		   {
            title: 'iwarndays',
            align:"center",
            dataIndex: 'iwarndays'
           },
		   {
            title: 'fexpensesexch',
            align:"center",
            dataIndex: 'fexpensesexch'
           },
		   {
            title: 'btrack',
            align:"center",
            dataIndex: 'btrack'
           },
		   {
            title: 'bserial',
            align:"center",
            dataIndex: 'bserial'
           },
		   {
            title: 'bbarcode',
            align:"center",
            dataIndex: 'bbarcode'
           },
		   {
            title: 'iid',
            align:"center",
            dataIndex: 'iid'
           },
		   {
            title: 'cbarcode',
            align:"center",
            dataIndex: 'cbarcode'
           },
		   {
            title: 'cinvdefine4',
            align:"center",
            dataIndex: 'cinvdefine4'
           },
		   {
            title: 'cinvdefine5',
            align:"center",
            dataIndex: 'cinvdefine5'
           },
		   {
            title: 'cinvdefine6',
            align:"center",
            dataIndex: 'cinvdefine6'
           },
		   {
            title: 'cinvdefine7',
            align:"center",
            dataIndex: 'cinvdefine7'
           },
		   {
            title: 'cinvdefine8',
            align:"center",
            dataIndex: 'cinvdefine8'
           },
		   {
            title: 'cinvdefine9',
            align:"center",
            dataIndex: 'cinvdefine9'
           },
		   {
            title: 'cinvdefine10',
            align:"center",
            dataIndex: 'cinvdefine10'
           },
		   {
            title: 'cinvdefine11',
            align:"center",
            dataIndex: 'cinvdefine11'
           },
		   {
            title: 'cinvdefine12',
            align:"center",
            dataIndex: 'cinvdefine12'
           },
		   {
            title: 'cinvdefine13',
            align:"center",
            dataIndex: 'cinvdefine13'
           },
		   {
            title: 'cinvdefine14',
            align:"center",
            dataIndex: 'cinvdefine14'
           },
		   {
            title: 'cinvdefine15',
            align:"center",
            dataIndex: 'cinvdefine15'
           },
		   {
            title: 'cinvdefine16',
            align:"center",
            dataIndex: 'cinvdefine16'
           },
		   {
            title: 'igrouptype',
            align:"center",
            dataIndex: 'igrouptype'
           },
		   {
            title: 'cgroupcode',
            align:"center",
            dataIndex: 'cgroupcode'
           },
		   {
            title: 'ccomunitcode',
            align:"center",
            dataIndex: 'ccomunitcode'
           },
		   {
            title: 'casscomunitcode',
            align:"center",
            dataIndex: 'casscomunitcode'
           },
		   {
            title: 'csacomunitcode',
            align:"center",
            dataIndex: 'csacomunitcode'
           },
		   {
            title: 'cpucomunitcode',
            align:"center",
            dataIndex: 'cpucomunitcode'
           },
		   {
            title: 'cstcomunitcode',
            align:"center",
            dataIndex: 'cstcomunitcode'
           },
		   {
            title: 'ccacomunitcode',
            align:"center",
            dataIndex: 'ccacomunitcode'
           },
		   {
            title: 'cfrequency',
            align:"center",
            dataIndex: 'cfrequency'
           },
		   {
            title: 'ifrequency',
            align:"center",
            dataIndex: 'ifrequency'
           },
		   {
            title: 'idays',
            align:"center",
            dataIndex: 'idays'
           },
		   {
            title: 'dlastdate',
            align:"center",
            dataIndex: 'dlastdate'
           },
		   {
            title: 'iwastage',
            align:"center",
            dataIndex: 'iwastage'
           },
		   {
            title: 'bsolitude',
            align:"center",
            dataIndex: 'bsolitude'
           },
		   {
            title: 'centerprise',
            align:"center",
            dataIndex: 'centerprise'
           },
		   {
            title: 'caddress',
            align:"center",
            dataIndex: 'caddress'
           },
		   {
            title: 'cfile',
            align:"center",
            dataIndex: 'cfile'
           },
		   {
            title: 'clabel',
            align:"center",
            dataIndex: 'clabel'
           },
		   {
            title: 'ccheckout',
            align:"center",
            dataIndex: 'ccheckout'
           },
		   {
            title: 'clicence',
            align:"center",
            dataIndex: 'clicence'
           },
		   {
            title: 'bspecialties',
            align:"center",
            dataIndex: 'bspecialties'
           },
		   {
            title: 'cdefwarehouse',
            align:"center",
            dataIndex: 'cdefwarehouse'
           },
		   {
            title: 'ihighprice',
            align:"center",
            dataIndex: 'ihighprice'
           },
		   {
            title: 'iexpsalerate',
            align:"center",
            dataIndex: 'iexpsalerate'
           },
		   {
            title: 'cpricegroup',
            align:"center",
            dataIndex: 'cpricegroup'
           },
		   {
            title: 'coffergrade',
            align:"center",
            dataIndex: 'coffergrade'
           },
		   {
            title: 'iofferrate',
            align:"center",
            dataIndex: 'iofferrate'
           },
		   {
            title: 'cmonth',
            align:"center",
            dataIndex: 'cmonth'
           },
		   {
            title: 'iadvancedate',
            align:"center",
            dataIndex: 'iadvancedate'
           },
		   {
            title: 'ccurrencyname',
            align:"center",
            dataIndex: 'ccurrencyname'
           },
		   {
            title: 'cproduceaddress',
            align:"center",
            dataIndex: 'cproduceaddress'
           },
		   {
            title: 'cproducenation',
            align:"center",
            dataIndex: 'cproducenation'
           },
		   {
            title: 'cregisterno',
            align:"center",
            dataIndex: 'cregisterno'
           },
		   {
            title: 'centerno',
            align:"center",
            dataIndex: 'centerno'
           },
		   {
            title: 'cpackingtype',
            align:"center",
            dataIndex: 'cpackingtype'
           },
		   {
            title: 'cenglishname',
            align:"center",
            dataIndex: 'cenglishname'
           },
		   {
            title: 'bpropertycheck',
            align:"center",
            dataIndex: 'bpropertycheck'
           },
		   {
            title: 'cpreparationtype',
            align:"center",
            dataIndex: 'cpreparationtype'
           },
		   {
            title: 'ccommodity',
            align:"center",
            dataIndex: 'ccommodity'
           },
		   {
            title: 'irecipebatch',
            align:"center",
            dataIndex: 'irecipebatch'
           },
		   {
            title: 'cnotpatentname',
            align:"center",
            dataIndex: 'cnotpatentname'
           },
		   {
            title: 'pubufts',
            align:"center",
            dataIndex: 'pubufts'
           },
		   {
            title: 'bpromotsales',
            align:"center",
            dataIndex: 'bpromotsales'
           },
		   {
            title: 'iplanpolicy',
            align:"center",
            dataIndex: 'iplanpolicy'
           },
		   {
            title: 'iropmethod',
            align:"center",
            dataIndex: 'iropmethod'
           },
		   {
            title: 'ibatchrule',
            align:"center",
            dataIndex: 'ibatchrule'
           },
		   {
            title: 'fbatchincrement',
            align:"center",
            dataIndex: 'fbatchincrement'
           },
		   {
            title: 'iassureprovidedays',
            align:"center",
            dataIndex: 'iassureprovidedays'
           },
		   {
            title: 'iteststyle',
            align:"center",
            dataIndex: 'iteststyle'
           },
		   {
            title: 'idtmethod',
            align:"center",
            dataIndex: 'idtmethod'
           },
		   {
            title: 'fdtrate',
            align:"center",
            dataIndex: 'fdtrate'
           },
		   {
            title: 'fdtnum',
            align:"center",
            dataIndex: 'fdtnum'
           },
		   {
            title: 'cdtunit',
            align:"center",
            dataIndex: 'cdtunit'
           },
		   {
            title: 'idtstyle',
            align:"center",
            dataIndex: 'idtstyle'
           },
		   {
            title: 'iqtmethod',
            align:"center",
            dataIndex: 'iqtmethod'
           },
		   {
            title: 'pictureguid',
            align:"center",
            dataIndex: 'pictureguid'
           },
		   {
            title: 'bplaninv',
            align:"center",
            dataIndex: 'bplaninv'
           },
		   {
            title: 'bproxyforeign',
            align:"center",
            dataIndex: 'bproxyforeign'
           },
		   {
            title: 'batomodel',
            align:"center",
            dataIndex: 'batomodel'
           },
		   {
            title: 'bcheckitem',
            align:"center",
            dataIndex: 'bcheckitem'
           },
		   {
            title: 'bptomodel',
            align:"center",
            dataIndex: 'bptomodel'
           },
		   {
            title: 'bequipment',
            align:"center",
            dataIndex: 'bequipment'
           },
		   {
            title: 'cproductunit',
            align:"center",
            dataIndex: 'cproductunit'
           },
		   {
            title: 'forderuplimit',
            align:"center",
            dataIndex: 'forderuplimit'
           },
		   {
            title: 'cmassunit',
            align:"center",
            dataIndex: 'cmassunit'
           },
		   {
            title: 'fretailprice',
            align:"center",
            dataIndex: 'fretailprice'
           },
		   {
            title: 'cinvdepcode',
            align:"center",
            dataIndex: 'cinvdepcode'
           },
		   {
            title: 'ialteradvance',
            align:"center",
            dataIndex: 'ialteradvance'
           },
		   {
            title: 'falterbasenum',
            align:"center",
            dataIndex: 'falterbasenum'
           },
		   {
            title: 'cplanmethod',
            align:"center",
            dataIndex: 'cplanmethod'
           },
		   {
            title: 'bmps',
            align:"center",
            dataIndex: 'bmps'
           },
		   {
            title: 'brop',
            align:"center",
            dataIndex: 'brop'
           },
		   {
            title: 'breplan',
            align:"center",
            dataIndex: 'breplan'
           },
		   {
            title: 'csrpolicy',
            align:"center",
            dataIndex: 'csrpolicy'
           },
		   {
            title: 'bbillunite',
            align:"center",
            dataIndex: 'bbillunite'
           },
		   {
            title: 'isupplyday',
            align:"center",
            dataIndex: 'isupplyday'
           },
		   {
            title: 'fsupplymulti',
            align:"center",
            dataIndex: 'fsupplymulti'
           },
		   {
            title: 'fminsupply',
            align:"center",
            dataIndex: 'fminsupply'
           },
		   {
            title: 'bcutmantissa',
            align:"center",
            dataIndex: 'bcutmantissa'
           },
		   {
            title: 'cinvpersoncode',
            align:"center",
            dataIndex: 'cinvpersoncode'
           },
		   {
            title: 'iinvtfid',
            align:"center",
            dataIndex: 'iinvtfid'
           },
		   {
            title: 'cengineerfigno',
            align:"center",
            dataIndex: 'cengineerfigno'
           },
		   {
            title: 'bintotalcost',
            align:"center",
            dataIndex: 'bintotalcost'
           },
		   {
            title: 'isupplytype',
            align:"center",
            dataIndex: 'isupplytype'
           },
		   {
            title: 'bconfigfree1',
            align:"center",
            dataIndex: 'bconfigfree1'
           },
		   {
            title: 'bconfigfree2',
            align:"center",
            dataIndex: 'bconfigfree2'
           },
		   {
            title: 'bconfigfree3',
            align:"center",
            dataIndex: 'bconfigfree3'
           },
		   {
            title: 'bconfigfree4',
            align:"center",
            dataIndex: 'bconfigfree4'
           },
		   {
            title: 'bconfigfree5',
            align:"center",
            dataIndex: 'bconfigfree5'
           },
		   {
            title: 'bconfigfree6',
            align:"center",
            dataIndex: 'bconfigfree6'
           },
		   {
            title: 'bconfigfree7',
            align:"center",
            dataIndex: 'bconfigfree7'
           },
		   {
            title: 'bconfigfree8',
            align:"center",
            dataIndex: 'bconfigfree8'
           },
		   {
            title: 'bconfigfree9',
            align:"center",
            dataIndex: 'bconfigfree9'
           },
		   {
            title: 'bconfigfree10',
            align:"center",
            dataIndex: 'bconfigfree10'
           },
		   {
            title: 'idtlevel',
            align:"center",
            dataIndex: 'idtlevel'
           },
		   {
            title: 'cdtaql',
            align:"center",
            dataIndex: 'cdtaql'
           },
		   {
            title: 'bperioddt',
            align:"center",
            dataIndex: 'bperioddt'
           },
		   {
            title: 'cdtperiod',
            align:"center",
            dataIndex: 'cdtperiod'
           },
		   {
            title: 'ibigmonth',
            align:"center",
            dataIndex: 'ibigmonth'
           },
		   {
            title: 'ibigday',
            align:"center",
            dataIndex: 'ibigday'
           },
		   {
            title: 'ismallmonth',
            align:"center",
            dataIndex: 'ismallmonth'
           },
		   {
            title: 'ismallday',
            align:"center",
            dataIndex: 'ismallday'
           },
		   {
            title: 'boutinvdt',
            align:"center",
            dataIndex: 'boutinvdt'
           },
		   {
            title: 'bbackinvdt',
            align:"center",
            dataIndex: 'bbackinvdt'
           },
		   {
            title: 'ienddtstyle',
            align:"center",
            dataIndex: 'ienddtstyle'
           },
		   {
            title: 'bdtwarninv',
            align:"center",
            dataIndex: 'bdtwarninv'
           },
		   {
            title: 'fbacktaxrate',
            align:"center",
            dataIndex: 'fbacktaxrate'
           },
		   {
            title: 'cciqcode',
            align:"center",
            dataIndex: 'cciqcode'
           },
		   {
            title: 'cwgroupcode',
            align:"center",
            dataIndex: 'cwgroupcode'
           },
		   {
            title: 'cwunit',
            align:"center",
            dataIndex: 'cwunit'
           },
		   {
            title: 'fgrossw',
            align:"center",
            dataIndex: 'fgrossw'
           },
		   {
            title: 'cvgroupcode',
            align:"center",
            dataIndex: 'cvgroupcode'
           },
		   {
            title: 'cvunit',
            align:"center",
            dataIndex: 'cvunit'
           },
		   {
            title: 'flength',
            align:"center",
            dataIndex: 'flength'
           },
		   {
            title: 'fwidth',
            align:"center",
            dataIndex: 'fwidth'
           },
		   {
            title: 'fheight',
            align:"center",
            dataIndex: 'fheight'
           },
		   {
            title: 'idtucounter',
            align:"center",
            dataIndex: 'idtucounter'
           },
		   {
            title: 'idtdcounter',
            align:"center",
            dataIndex: 'idtdcounter'
           },
		   {
            title: 'ibatchcounter',
            align:"center",
            dataIndex: 'ibatchcounter'
           },
		   {
            title: 'cshopunit',
            align:"center",
            dataIndex: 'cshopunit'
           },
		   {
            title: 'cpurpersoncode',
            align:"center",
            dataIndex: 'cpurpersoncode'
           },
		   {
            title: 'bimportmedicine',
            align:"center",
            dataIndex: 'bimportmedicine'
           },
		   {
            title: 'bfirstbusimedicine',
            align:"center",
            dataIndex: 'bfirstbusimedicine'
           },
		   {
            title: 'bforeexpland',
            align:"center",
            dataIndex: 'bforeexpland'
           },
		   {
            title: 'cinvplancode',
            align:"center",
            dataIndex: 'cinvplancode'
           },
		   {
            title: 'fconvertrate',
            align:"center",
            dataIndex: 'fconvertrate'
           },
		   {
            title: 'dreplacedate',
            align:"center",
            dataIndex: 'dreplacedate'
           },
		   {
            title: 'binvmodel',
            align:"center",
            dataIndex: 'binvmodel'
           },
		   {
            title: 'bkccutmantissa',
            align:"center",
            dataIndex: 'bkccutmantissa'
           },
		   {
            title: 'breceiptbydt',
            align:"center",
            dataIndex: 'breceiptbydt'
           },
		   {
            title: 'iimptaxrate',
            align:"center",
            dataIndex: 'iimptaxrate'
           },
		   {
            title: 'iexptaxrate',
            align:"center",
            dataIndex: 'iexptaxrate'
           },
		   {
            title: 'bexpsale',
            align:"center",
            dataIndex: 'bexpsale'
           },
		   {
            title: 'idrawbatch',
            align:"center",
            dataIndex: 'idrawbatch'
           },
		   {
            title: 'bcheckbsatp',
            align:"center",
            dataIndex: 'bcheckbsatp'
           },
		   {
            title: 'cinvprojectcode',
            align:"center",
            dataIndex: 'cinvprojectcode'
           },
		   {
            title: 'itestrule',
            align:"center",
            dataIndex: 'itestrule'
           },
		   {
            title: 'crulecode',
            align:"center",
            dataIndex: 'crulecode'
           },
		   {
            title: 'bcheckfree1',
            align:"center",
            dataIndex: 'bcheckfree1'
           },
		   {
            title: 'bcheckfree2',
            align:"center",
            dataIndex: 'bcheckfree2'
           },
		   {
            title: 'bcheckfree3',
            align:"center",
            dataIndex: 'bcheckfree3'
           },
		   {
            title: 'bcheckfree4',
            align:"center",
            dataIndex: 'bcheckfree4'
           },
		   {
            title: 'bcheckfree5',
            align:"center",
            dataIndex: 'bcheckfree5'
           },
		   {
            title: 'bcheckfree6',
            align:"center",
            dataIndex: 'bcheckfree6'
           },
		   {
            title: 'bcheckfree7',
            align:"center",
            dataIndex: 'bcheckfree7'
           },
		   {
            title: 'bcheckfree8',
            align:"center",
            dataIndex: 'bcheckfree8'
           },
		   {
            title: 'bcheckfree9',
            align:"center",
            dataIndex: 'bcheckfree9'
           },
		   {
            title: 'bcheckfree10',
            align:"center",
            dataIndex: 'bcheckfree10'
           },
		   {
            title: 'bbommain',
            align:"center",
            dataIndex: 'bbommain'
           },
		   {
            title: 'bbomsub',
            align:"center",
            dataIndex: 'bbomsub'
           },
		   {
            title: 'bproductbill',
            align:"center",
            dataIndex: 'bproductbill'
           },
		   {
            title: 'icheckatp',
            align:"center",
            dataIndex: 'icheckatp'
           },
		   {
            title: 'iinvatpid',
            align:"center",
            dataIndex: 'iinvatpid'
           },
		   {
            title: 'iplantfday',
            align:"center",
            dataIndex: 'iplantfday'
           },
		   {
            title: 'ioverlapday',
            align:"center",
            dataIndex: 'ioverlapday'
           },
		   {
            title: 'bpiece',
            align:"center",
            dataIndex: 'bpiece'
           },
		   {
            title: 'bsrvitem',
            align:"center",
            dataIndex: 'bsrvitem'
           },
		   {
            title: 'bsrvfittings',
            align:"center",
            dataIndex: 'bsrvfittings'
           },
		   {
            title: 'fmaxsupply',
            align:"center",
            dataIndex: 'fmaxsupply'
           },
		   {
            title: 'fminsplit',
            align:"center",
            dataIndex: 'fminsplit'
           },
		   {
            title: 'bspecialorder',
            align:"center",
            dataIndex: 'bspecialorder'
           },
		   {
            title: 'btracksalebill',
            align:"center",
            dataIndex: 'btracksalebill'
           },
		   {
            title: 'cinvmnemcode',
            align:"center",
            dataIndex: 'cinvmnemcode'
           },
		   {
            title: 'iplandefault',
            align:"center",
            dataIndex: 'iplandefault'
           },
		   {
            title: 'ipfbatchqty',
            align:"center",
            dataIndex: 'ipfbatchqty'
           },
		   {
            title: 'iallocateprintdgt',
            align:"center",
            dataIndex: 'iallocateprintdgt'
           },
		   {
            title: 'bcheckbatch',
            align:"center",
            dataIndex: 'bcheckbatch'
           },
		   {
            title: 'bmngoldpart',
            align:"center",
            dataIndex: 'bmngoldpart'
           },
		   {
            title: 'ioldpartmngrule',
            align:"center",
            dataIndex: 'ioldpartmngrule'
           },
		   {
            title: 'cretaildefreturnwh',
            align:"center",
            dataIndex: 'cretaildefreturnwh'
           },
          {
            title: '操作',
            dataIndex: 'action',
            align:"center",
            scopedSlots: { customRender: 'action' },
          }
        ],
		url: {
          list: "/fbsInventory/fbsInventory/list",
          delete: "/fbsInventory/fbsInventory/delete",
          deleteBatch: "/fbsInventory/fbsInventory/deleteBatch",
          exportXlsUrl: "fbsInventory/fbsInventory/exportXls",
          importExcelUrl: "fbsInventory/fbsInventory/importExcel",
       },
    }
  },
  computed: {
    importExcelUrl: function(){
      return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
    }
  },
    methods: {
     
    }
  }
</script>
<style lang="less" scoped>
/** Button按钮间距 */
  .ant-btn {
    margin-left: 3px
  }
  .ant-card-body .table-operator{
    margin-bottom: 18px;
  }
  .ant-table-tbody .ant-table-row td{
    padding-top:15px;
    padding-bottom:15px;
  }
  .anty-row-operator button{margin: 0 5px}
  .ant-btn-danger{background-color: #ffffff}

  .ant-modal-cust-warp{height: 100%}
  .ant-modal-cust-warp .ant-modal-body{height:calc(100% - 110px) !important;overflow-y: auto}
  .ant-modal-cust-warp .ant-modal-content{height:90% !important;overflow-y: hidden}
</style>