mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-16 16:07:33 +08:00
code refactor
This commit is contained in:
+2
-1
@@ -337,9 +337,10 @@ export default {
|
||||
'transaction id is invalid': 'Transaction ID is invalid',
|
||||
'transaction not found': 'Transaction is not found',
|
||||
'transaction type is invalid': 'Transaction type is invalid',
|
||||
'transaction source and destination account id not equal': 'Source account ID and destination account ID do not equal',
|
||||
'transaction source and destination account id cannot be equal': 'Source account ID and destination account ID cannot be equal',
|
||||
'transaction source and destination amount not equal': 'Source amount and destination source do not equal',
|
||||
'transaction destination account cannot be set': 'Cannot set destination account',
|
||||
'transaction destination amount cannot be set': 'Cannot set destination amount',
|
||||
'too much transaction in one second': 'There are too much transaction in one second, please choose another time',
|
||||
'balance modification transaction cannot set category': 'You cannot set category for balance modification transaction',
|
||||
'balance modification transaction cannot change account id': 'You cannot change account ID for balance modification transaction',
|
||||
|
||||
@@ -335,11 +335,12 @@ export default {
|
||||
'destination account not found': '目标账户不存在',
|
||||
'account is in use and cannot be deleted': '账户正在被使用,无法删除',
|
||||
'transaction id is invalid': '交易ID无效',
|
||||
'transaction not found': '交易不存',
|
||||
'transaction not found': '交易不存在',
|
||||
'transaction type is invalid': '交易类型无效',
|
||||
'transaction source and destination account id not equal': '来源账户和目标账户不一致',
|
||||
'transaction source and destination account id cannot be equal': '来源账户和目标账户不能相同',
|
||||
'transaction source and destination amount not equal': '源金额和目标金额不一致',
|
||||
'transaction destination account cannot be set': '不能设置目标账户',
|
||||
'transaction destination amount cannot be set': '不能设置目标金额',
|
||||
'too much transaction in one second': '一秒钟内交易太多,请选择其他时间',
|
||||
'balance modification transaction cannot set category': '您无法对修改余额的交易设置分类',
|
||||
'balance modification transaction cannot change account id': '您无法对修改余额的交易修改账户ID',
|
||||
|
||||
@@ -532,9 +532,9 @@ export default {
|
||||
type: self.transaction.type,
|
||||
time: self.transaction.unixTime,
|
||||
sourceAccountId: self.transaction.sourceAccountId,
|
||||
destinationAccountId: self.transaction.sourceAccountId,
|
||||
sourceAmount: self.transaction.sourceAmount,
|
||||
destinationAmount: self.transaction.sourceAmount,
|
||||
destinationAccountId: '0',
|
||||
destinationAmount: 0,
|
||||
tagIds: self.transaction.tagIds,
|
||||
comment: self.transaction.comment
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user