| | |
| | | type: 'danger', |
| | | icon: 'el-icon-check', |
| | | disabled: false, |
| | | plain: true, |
| | | plain: false, |
| | | onClick: function () { |
| | | if (this.editFormFields.remark == 'å
¶ä»åºåº') { |
| | | this.$confirm('æ¯å¦å
¶ä»åºåº', 'è¦å', { |
| | |
| | | } |
| | | }) |
| | | }) |
| | | } else { |
| | | } |
| | | else if (this.editFormFields.remark == '') { |
| | | this.$confirm('æ¯å¦ç´æ¥åºåº', 'è¦å', { |
| | | confirmButtonText: 'ç¡®å®', |
| | | cancelButtonText: 'åæ¶', |
| | | type: 'warning', |
| | | center: true, |
| | | customClass: 'large-text-confirm' |
| | | }).then(() => { |
| | | console.log(this.$refs.detail.rowData) |
| | | this.http |
| | | .post( |
| | | `/api/StockInfo/UpdateDataStockDetail`, |
| | | this.$refs.detail.rowData, |
| | | 'ç¹æ®åºåº' |
| | | ) |
| | | .then((res) => { |
| | | if (res.status) { |
| | | this.$Message.success(res.message) |
| | | this.boxModel = false |
| | | this.refresh() |
| | | } else { |
| | | this.$Message.error(res.message) //é误æç¤º |
| | | } |
| | | }) |
| | | }) |
| | | } |
| | | else { |
| | | this.$confirm('æ¯å¦è°æ¨åºåº', 'è¦å', { |
| | | confirmButtonText: 'ç¡®å®', |
| | | cancelButtonText: 'åæ¶', |
| | |
| | | }) |
| | | } |
| | | }) |
| | | |
| | | this.columns.push({ |
| | | title: 'æä½', |
| | | field: 'æä½', |
| | |
| | | }) |
| | | //示ä¾ï¼è®¾ç½®ä¿®æ¹æ°å»ºãç¼è¾å¼¹åºæ¡å段æ ç¾çé¿åº¦ |
| | | this.boxOptions.labelWidth = 150 |
| | | this.buttons.forEach((btn) => { |
| | | if (btn.name == 'ç¼è¾') { |
| | | btn.hidden = true |
| | | } |
| | | }) |
| | | // this.buttons.forEach((btn) => { |
| | | // if (btn.name == 'ç¼è¾') { |
| | | // btn.hidden = true |
| | | // } |
| | | // }) |
| | | this.boxButtons.forEach((btn) => { |
| | | if (btn.name == 'ä¿ å') { |
| | | btn.hidden = true |