| | |
| | | <GlobalWindow |
| | | :title="title" |
| | | width="80%" |
| | | :with-footer="false" |
| | | :visible.sync="visible" |
| | | > |
| | | <TableLayout > |
| | |
| | | </el-form> |
| | | <!-- 表格和分页 --> |
| | | <template v-slot:table-wrap> |
| | | <div :style="'display: flex;height:'+tabelHeight+'px;'"> |
| | | <!-- <div :style="'display: flex;height:'+tabelHeight+'px;'">--> |
| | | <el-table |
| | | v-loading="isWorking.search" |
| | | :data="tableData.list" |
| | |
| | | :pagination="tableData.pagination" |
| | | > |
| | | </pagination> |
| | | </div> |
| | | <!-- </div>--> |
| | | </template> |
| | | </TableLayout> |
| | | <template v-slot:footer> |
| | |
| | | row.oldGoodsPrice = row.goodsPrice |
| | | }, |
| | | blurEvent (row, curIndex, column) { |
| | | if(this.price >= row.goodsPrice) { |
| | | this.$tip.error('供货价不能低于销售价') |
| | | if(this.price <= row.goodsPrice) { |
| | | this.$tip.error('供货价不能大于销售价') |
| | | row.isPriceSelected = !row.isPriceSelected |
| | | row.goodsPrice = row.oldGoodsPrice// 价格还原 |
| | | return |
| | |
| | | } |
| | | </script> |
| | | <style scoped> |
| | | .table-pagination{ |
| | | /*.table-pagination{ |
| | | position: fixed !important; |
| | | bottom: 50px; |
| | | } |
| | | }*/ |
| | | </style> |