| | |
| | | @click="searchReset" |
| | | icon="reload" |
| | | >重置</a-button> |
| | | <a-upload |
| | | name="file" |
| | | :showUploadList="false" |
| | | :multiple="false" |
| | | :headers="tokenHeader" |
| | | :action="importExcelUrl" |
| | | @change="handleImportExcel"> |
| | | <a-button type="primary" icon="import">导入</a-button> |
| | | </a-upload> |
| | | <a-tag color="#55acee" style="height:15px"></a-tag>库存积压;<a-tag color="#cd201f" style="height:15px"></a-tag>库存不足 |
| | | </div> |
| | | |
| | | <a-table |
| | |
| | | ], |
| | | url: { |
| | | list: "/spare/sparePart/sparePartInventoryList", |
| | | importExcelUrl:'/spare/SparesPartInventory/importExcel' |
| | | }, |
| | | //新增、编辑、删除、批量删除操作改变数据后刷新关联的组件的监听属性 |
| | | alterFlag: "", |
| | |
| | | //禁用状态样式 |
| | | tableRowClass(record, index) { |
| | | if (record.totalMainQuantity < record.inventoryLowerLimit) { |
| | | return 'error' |
| | | return 'downLimit' |
| | | }else if(record.totalMainQuantity > record.inventoryUpperLimit){ |
| | | return 'yellow' |
| | | return 'upLimit' |
| | | } |
| | | |
| | | |
| | | }, |
| | | searchReset() { |
| | | this.queryParam = {}; |
| | |
| | | color: red; |
| | | } |
| | | |
| | | .yellow { |
| | | color: yellow; |
| | | .downLimit { |
| | | color: red; |
| | | } |
| | | |
| | | .upLimit { |
| | | color: blue; |
| | | } |
| | | |
| | | .fontweight { |