| | |
| | | // } |
| | | // }); |
| | | this.boxButtons.push({ |
| | | name: 'ä¿å', //æé®åç§° |
| | | name: 'ç¡®å®åºåº', //æé®åç§° |
| | | type: 'danger', |
| | | icon: 'el-icon-check', |
| | | disabled: false, |
| | |
| | | cancelButtonText: 'åæ¶', |
| | | type: 'warning', |
| | | center: true, |
| | | customClass: 'large-text-confirm' |
| | | customClass: 'large-text-confirm' |
| | | }).then(() => { |
| | | this.http |
| | | .post( |
| | |
| | | } |
| | | } |
| | | }) |
| | | this.boxButtons.push({ |
| | | name: 'æå°äºç»´ç ', //æé®åç§° |
| | | type: 'primary', |
| | | icon: 'el-icon-check', |
| | | disabled: false, |
| | | plain: true, |
| | | onClick: function () { |
| | | let rows = this.$refs.detail.getSelected() |
| | | if (rows.length == 0) return this.$error("è¯·éæ©æ°æ®!"); |
| | | let orderNos = rows.map(x => { |
| | | return x.orderNo |
| | | }) |
| | | this.$confirm('æ¯å¦æå°åæ®', 'è¦å', { |
| | | confirmButtonText: 'ç¡®å®', |
| | | cancelButtonText: 'åæ¶', |
| | | type: 'warning', |
| | | center: true, |
| | | customClass: 'large-text-confirm' |
| | | }).then(() => { |
| | | this.http |
| | | .post( |
| | | `/api/StockInfo/PrintOrder`, |
| | | orderNos, |
| | | 'æ£å¨æå°' |
| | | ) |
| | | .then((res) => { |
| | | if (res.status) { |
| | | this.$Message.success(res.message) |
| | | this.boxModel = false |
| | | this.refresh() |
| | | } else { |
| | | this.$Message.error(res.message) //é误æç¤º |
| | | } |
| | | }) |
| | | }) |
| | | } |
| | | }) |
| | | this.columns.push({ |
| | | title: 'æä½', |
| | | field: 'æä½', |