| | |
| | | if (res.status) { |
| | | this.$message.success('鎷嗗寘鎴愬姛'); |
| | | this.showSplitDialog = false; |
| | | this.splitLoading = false; |
| | | this.resetSplitForm(); |
| | | this.loadData(); |
| | | } else { |
| | | this.splitLoading = false; |
| | | this.$message.error(res.message || '鎷嗗寘澶辫触'); |
| | | } |
| | | } catch (error) { |
| | | this.splitLoading = false; |
| | | this.$message.error('鎷嗗寘澶辫触'); |
| | | } |
| | | }, |
| | |
| | | if (res.status) { |
| | | this.$message.success('鎾ら攢鎷嗗寘鎴愬姛'); |
| | | this.showRevertSplitDialog = false; |
| | | this.revertSplitLoading = false; |
| | | this.revertSplitForm.originalBarcode = ''; |
| | | this.loadData(); |
| | | } else { |
| | | this.revertSplitLoading = false; |
| | | this.$message.error(res.message || '鎾ら攢鎷嗗寘澶辫触'); |
| | | } |
| | | } catch (error) { |
| | | this.revertSplitLoading = false; |
| | | this.$message.error('鎾ら攢鎷嗗寘澶辫触'); |
| | | } |
| | | }, |