add partial transaction edit page ui

This commit is contained in:
MaysWind
2020-12-17 01:01:59 +08:00
parent 14812a8b71
commit bdab9c9664
5 changed files with 336 additions and 19 deletions
+7
View File
@@ -1,5 +1,7 @@
import CryptoJS from "crypto-js";
import moment from 'moment';
import uaParser from 'ua-parser-js';
import accountConstants from '../consts/account.js';
import settings from "./settings.js";
@@ -31,6 +33,10 @@ function isBoolean(val) {
return typeof(val) === 'boolean';
}
function formatDate(date, format) {
return moment(date).format(format);
}
function copyObjectTo(fromObject, toObject) {
if (!isObject(fromObject)) {
return toObject;
@@ -340,6 +346,7 @@ export default {
isString,
isNumber,
isBoolean,
formatDate,
copyObjectTo,
copyArrayTo,
appendThousandsSeparator,