| | |
| | | } |
| | | }; |
| | | |
| | | |
| | | |
| | | |
| | | // åºåéå® |
| | | var stockLock = this.buttons.find(x => x.value == "stockLock"); |
| | | if (stockLock != null) { |
| | | stockLock.onClick = () => { |
| | | let rows = this.$refs.table.getSelected(); |
| | | if (rows.length == 0) { |
| | | return this.$error("è¯·éæ©æ°æ®!"); |
| | | } |
| | | let ids = rows.map(x => { |
| | | return x.id; |
| | | }) |
| | | this.http.post(`/api/VV_StockInfo/stockLock`, ids, "åºåéå®ä¸...").then((result) => { |
| | | if (result.status) { |
| | | this.$Message.success(result.message); |
| | | this.refresh(); |
| | | } else { |
| | | this.$Message.error(result.message); |
| | | this.refresh(); |
| | | } |
| | | }) |
| | | |
| | | } |
| | | }; |
| | | |
| | | // åºåè§£é |
| | | var stockUnLock = this.buttons.find(x => x.value == "stockUnLock"); |
| | | if (stockUnLock != null) { |
| | | stockUnLock.onClick = () => { |
| | | let rows = this.$refs.table.getSelected(); |
| | | if (rows.length == 0) { |
| | | return this.$error("è¯·éæ©æ°æ®!"); |
| | | } |
| | | let ids = rows.map(x => { |
| | | return x.id; |
| | | }) |
| | | this.http.post(`/api/VV_StockInfo/stockUnLock`, ids, "åºåè§£éä¸...").then((result) => { |
| | | if (result.status) { |
| | | this.$Message.success(result.message); |
| | | this.refresh(); |
| | | } else { |
| | | this.$Message.error(result.message); |
| | | this.refresh(); |
| | | } |
| | | }) |
| | | |
| | | } |
| | | }; |
| | | |
| | | |
| | | // this.columns.forEach((column) => { |
| | | // if (column.field == 'materielName') { |
| | | // column.formatter = (row) => { |