<div :class="{ 'grid': true, 'show-paging-bar': isEnablePagingBar, 'hidden-paging-bar': !isEnablePagingBar }">
    <i-form>
        <el-table v-if="isDisplay === true"
            :default-sort="{ prop: minorSortPSDEF, order: Object.is(minorSortDir, 'ASC') ? 'ascending' : Object.is(minorSortDir, 'DESC') ? 'descending' : '' }"  
            @sort-change="onSortChange($event)"  
            :border="isDragendCol"
            :highlight-current-row ="isSingleSelect"
            :row-class-name="getRowClassName.bind(_self)"
            :cell-class-name="getCellClassName.bind(_self)"
            size="mini"
            stripe
            :height="tableHeight"
            @row-click="rowClick($event)"  
            @select-all="selectAll($event)"  
            @select="select($event)"  
            @row-class-name="onRowClassName($event)"  
            @row-dblclick="rowDBLClick($event)"  
            ref='multipleTable' :data="items" :show-header="!isHideHeader"
        >
            <template slot="empty">
                {{$t('entities.purchase_order_line.line_grid.nodata')}} 
                <span class="quick-toolbar">
                </span>
            </template>
            <template v-if="!isSingleSelect">
                <el-table-column align="center" type='selection' :width="checkboxColWidth"></el-table-column>
            </template>
            <template v-if="getColumnState('product_id_text')">
                <el-table-column show-overflow-tooltip :prop="'product_id_text'" :label="$t('entities.purchase_order_line.line_grid.columns.product_id_text')" :width="160"  :align="'left'" :sortable="'custom'">
                    <template v-slot:header="{column}">
                      <span class="column-header ">
                        {{$t('entities.purchase_order_line.line_grid.columns.product_id_text')}}
                      </span>
                    </template>
                    <template v-slot="{row,column,$index}">
                        <span>{{row.product_id_text}}</span>
                    </template>
                </el-table-column>
            </template>
            <template v-if="getColumnState('name')">
                <el-table-column show-overflow-tooltip :prop="'name'" :label="$t('entities.purchase_order_line.line_grid.columns.name')" :width="300"  :align="'left'" :sortable="'custom'">
                    <template v-slot:header="{column}">
                      <span class="column-header ">
                        {{$t('entities.purchase_order_line.line_grid.columns.name')}}
                      </span>
                    </template>
                    <template v-slot="{row,column,$index}">
                        <template >
            <app-span name='name' editorType="TEXTBOX" :value="row.name" dataType="LONGTEXT_1000" precision="0" ></app-span>
                        </template>
                    </template>
                </el-table-column>
            </template>
            <template v-if="getColumnState('product_qty')">
                <el-table-column show-overflow-tooltip :prop="'product_qty'" :label="$t('entities.purchase_order_line.line_grid.columns.product_qty')" :width="100"  :align="'left'" :sortable="'custom'">
                    <template v-slot:header="{column}">
                      <span class="column-header ">
                        {{$t('entities.purchase_order_line.line_grid.columns.product_qty')}}
                      </span>
                    </template>
                    <template v-slot="{row,column,$index}">
                        <template >
            <app-span name='product_qty' editorType="TEXTBOX" :value="row.product_qty" dataType="FLOAT" precision="0" ></app-span>
                        </template>
                    </template>
                </el-table-column>
            </template>
            <template v-if="getColumnState('product_uom_text')">
                <el-table-column show-overflow-tooltip :prop="'product_uom_text'" :label="$t('entities.purchase_order_line.line_grid.columns.product_uom_text')" :width="100"  :align="'left'" :sortable="'custom'">
                    <template v-slot:header="{column}">
                      <span class="column-header ">
                        {{$t('entities.purchase_order_line.line_grid.columns.product_uom_text')}}
                      </span>
                    </template>
                    <template v-slot="{row,column,$index}">
                        <span>{{row.product_uom_text}}</span>
                    </template>
                </el-table-column>
            </template>
            <template v-if="getColumnState('price_unit')">
                <el-table-column show-overflow-tooltip :prop="'price_unit'" :label="$t('entities.purchase_order_line.line_grid.columns.price_unit')" :width="100"  :align="'left'" :sortable="'custom'">
                    <template v-slot:header="{column}">
                      <span class="column-header ">
                        {{$t('entities.purchase_order_line.line_grid.columns.price_unit')}}
                      </span>
                    </template>
                    <template v-slot="{row,column,$index}">
                        <template >
            <app-span name='price_unit' editorType="TEXTBOX" :value="row.price_unit" dataType="FLOAT" precision="0" ></app-span>
                        </template>
                    </template>
                </el-table-column>
            </template>
            <template v-if="getColumnState('taxes_id')">
                <el-table-column show-overflow-tooltip :prop="'taxes_id'" :label="$t('entities.purchase_order_line.line_grid.columns.taxes_id')" :width="300"  :align="'left'">
                    <template v-slot:header="{column}">
                      <span class="column-header ">
                        {{$t('entities.purchase_order_line.line_grid.columns.taxes_id')}}
                      </span>
                    </template>
                    <template v-slot="{row,column,$index}">
                        <template >
            <app-span name='taxes_id' editorType="ADDRESSPICKUP" :value="row.taxes_id" dataType="ONE2MANYDATA" precision="0" ></app-span>
                        </template>
                    </template>
                </el-table-column>
            </template>
            <template v-if="getColumnState('price_subtotal')">
                <el-table-column show-overflow-tooltip :prop="'price_subtotal'" :label="$t('entities.purchase_order_line.line_grid.columns.price_subtotal')" :width="100"  :align="'left'" :sortable="'custom'">
                    <template v-slot:header="{column}">
                      <span class="column-header ">
                        {{$t('entities.purchase_order_line.line_grid.columns.price_subtotal')}}
                      </span>
                    </template>
                    <template v-slot="{row,column,$index}">
                        <template >
            <app-span name='price_subtotal' editorType="SPAN" :value="row.price_subtotal" dataType="DECIMAL" precision="0" ></app-span>
                        </template>
                    </template>
                </el-table-column>
            </template>
            <template v-if="adaptiveState">
                <el-table-column></el-table-column>
            </template>
        </el-table>
    </i-form>
</div>