| | |
| | | </el-col> |
| | | </el-row> |
| | | <div class="tableBox" v-loading="loading"> |
| | | <el-row> |
| | | <el-col :span="4"> |
| | | <div class="cgtlType" v-for="(item, index) in backTypeList" :key="index" :class="{ 'cgtlActive': typeIndex==index }" @click="backTypeClick(item,index)"> |
| | | {{item.name}} |
| | | </div> |
| | | </el-col> |
| | | <el-col :span="20"> |
| | | <el-table :data="tableData" ref="tableData" max-height="710" :summary-method="getSummaries" |
| | | @selection-change="handleSelectionChange" show-summary border @row-click="handleRowClick" |
| | | :row-style="rowStyle" @cell-dblclick="handleDblclick" v-if="tableShow"> |
| | | <template v-for="(item, index) in btList"> |
| | | <el-table-column type="selection" width="55" align="center" :fixed="item.fixed" |
| | | v-if="item.type == 'checkbox'" :key="index" /> |
| | | <el-table-column :align="item.align" :prop="item.field" :label="item.title" :width="item.width" |
| | | :key="item.id" v-else-if="!item.hide && item.type != 'checkbox'" :sortable="item.sort" |
| | | show-overflow-tooltip :fixed="item.fixed"> |
| | | <el-table-column :align="item.align" :prop="item.field" :label="item.title" |
| | | :width="item.width" :key="item.id" v-else-if="!item.hide && item.type != 'checkbox'" |
| | | :sortable="item.sort" show-overflow-tooltip :fixed="item.fixed"> |
| | | <template slot-scope="{ row, column }"> |
| | | <el-checkbox v-model="checked" v-if="item.type == 'checkbox'"></el-checkbox> |
| | | <div :style="item.style"> |
| | |
| | | </el-table> |
| | | <pagination v-show="total > 0" :total="total" :page.sync="page" :limit.sync="pageSize" |
| | | :pageSizes="pageSizes" @pagination="getList" /> |
| | | </el-col> |
| | | |
| | | </el-row> |
| | | |
| | | <el-dialog title="隐藏列设置" :visible.sync="openRowHide" width="816px" append-to-body> |
| | | <RowSettings :colName="btResList" :HModName="HModName" @rowEditClose="rowSetClose" v-if="rowHideShow" /> |
| | | </el-dialog> |
| | | <!-- 编辑 --> |
| | | <el-dialog title="编辑" :visible.sync="openEdit" width="1480px" append-to-body class="xsckdBox" |
| | | @close="close"> |
| | | <edit :OperationType="OperationType" :linterid="this.rowForm.hmainid" |
| | | HSouceBillType="0" :copyType="copyType" @editClose="editClose" |
| | | v-if="editShow" /> |
| | | <edit :OperationType="OperationType" :linterid="this.rowForm.hmainid" HSouceBillType="0" |
| | | :copyType="copyType" @editClose="editClose" v-if="editShow" /> |
| | | </el-dialog> |
| | | <PrintList :linterid="this.rowForm.hmainid" :MyMsg="this.rowForm.hmainid" Type="HPOInStockBill" |
| | | HModName="HPOInStockBill" @rowEditClose="rowSetClose" v-if="printListShow" /> |
| | | <BarCodeDetail :visible.sync="barCodeDetailShow" ref="barcodeDetail" /> |
| | | </div> |
| | | |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | components: { RowSettings, Edit, PrintList, BarCodeDetail }, |
| | | data() { |
| | | return { |
| | | typeIndex:0, |
| | | activeSeach: "", |
| | | HModName: "Kf_StockOutRequestBillList", |
| | | backTypeList: [{ name: ' 采购退料列表(已入库)', value: 1, }, { name: '采购退料列表(未入库)', value: 0, }], |
| | | organizationList: JSON.parse(sessionStorage.getItem('organizationList')), |
| | | editShow: false, |
| | | openEdit: false, |
| | |
| | | }, |
| | | |
| | | methods: { |
| | | backTypeClick(item,index){ |
| | | this.typeIndex=index |
| | | }, |
| | | getSummaries(param) { |
| | | const { columns, data } = param; |
| | | const sums = []; |
| | |
| | | .xsckdBox .el-date-editor.el-input { |
| | | width: 100%; |
| | | } |
| | | |
| | | .cgtlType { |
| | | text-decoration: underline; |
| | | line-height: 36px; |
| | | color: #606266; |
| | | cursor: pointer; |
| | | } |
| | | |
| | | .cgtlActive { |
| | | color: blue; |
| | | } |
| | | </style> |