@fmdeui/fmui 1.0.149 → 1.0.151
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/api/index.d.ts +4 -0
- package/es/index.mjs +1 -1
- package/es/packages/api/index.mjs +14 -1
- package/es/packages/components/fm-inputnumber/index2.vue.mjs +9 -6
- package/es/packages/stores/ainputdropdow.mjs +1 -1
- package/index.js +25 -8
- package/index.min.js +6 -6
- package/index.min.mjs +6 -6
- package/index.mjs +25 -9
- package/lib/api/index.d.ts +4 -0
- package/lib/index.js +1 -0
- package/lib/packages/api/index.js +14 -0
- package/lib/packages/components/fm-inputnumber/index2.vue.js +9 -6
- package/lib/packages/stores/ainputdropdow.js +1 -1
- package/locale/en.js +1 -1
- package/locale/en.min.js +1 -1
- package/locale/en.min.mjs +1 -1
- package/locale/en.mjs +1 -1
- package/locale/zh-cn.js +1 -1
- package/locale/zh-cn.min.js +1 -1
- package/locale/zh-cn.min.mjs +1 -1
- package/locale/zh-cn.mjs +1 -1
- package/package.json +1 -1
- /package/es/{index.css → component.css} +0 -0
- /package/lib/{defaults.css → make-installer.css} +0 -0
package/es/api/index.d.ts
CHANGED
package/es/index.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import commonFunction from './packages/hooks/commonFunction.mjs';
|
|
|
6
6
|
export { default as other } from './packages/hooks/other.mjs';
|
|
7
7
|
export { default as initIconfont } from './packages/utils/getStyleSheets.mjs';
|
|
8
8
|
import './packages/types/index.mjs';
|
|
9
|
-
export { AccountTypeEnum, AppSysTypeData, AppSysTypeEnum, CurrencyData, HttpMethodEnum, JobCreateTypeEnum, PowerAreaData } from './packages/api/index.mjs';
|
|
9
|
+
export { AccountTypeEnum, AppSysTypeData, AppSysTypeEnum, COST_CATEGORIES, CurrencyData, HttpMethodEnum, JobCreateTypeEnum, PowerAreaData } from './packages/api/index.mjs';
|
|
10
10
|
import './packages/utils/index.mjs';
|
|
11
11
|
import './packages/stores/index.mjs';
|
|
12
12
|
import './packages/hooks/index.mjs';
|
|
@@ -202,5 +202,18 @@ const CurrencyData = [
|
|
|
202
202
|
value: "LAK"
|
|
203
203
|
}
|
|
204
204
|
];
|
|
205
|
+
const COST_CATEGORIES = [
|
|
206
|
+
{ code: "HOTEL", type: 8, name: "\u623F\u8D39", icon: "\u{1F3E8}", color: "#165dff", bg: "#e8f3ff" },
|
|
207
|
+
{ code: "MEAL", type: 13, name: "\u9910\u8D39", icon: "\u{1F37D}\uFE0F", color: "#fa8c16", bg: "#fff7e6" },
|
|
208
|
+
{ code: "BUS", type: 12, name: "\u8F66\u8D39", icon: "\u{1F68C}", color: "#722ed1", bg: "#f9f0ff" },
|
|
209
|
+
{ code: "TICKET", type: 3, name: "\u7968\u52A1", icon: "\u{1F3AB}", color: "#13c2c2", bg: "#e6fffb" },
|
|
210
|
+
{ code: "SCENIC", type: 11, name: "\u666F\u70B9", icon: "\uFE0F\u{1F3DE}\uFE0F", color: "#52c41a", bg: "#f6ffed" },
|
|
211
|
+
{ code: "INSURE", type: 9, name: "\u4FDD\u9669", icon: "\u{1F6E1}\uFE0F", color: "#eb2f96", bg: "#fff0f6" },
|
|
212
|
+
{ code: "GUIDE", type: 10, name: "\u5BFC\u670D", icon: "\u{1F468}\u200D", color: "#f5222d", bg: "#fff1f0" },
|
|
213
|
+
{ code: "VISA", type: 15, name: "\u7B7E\u8BC1", icon: "\u{1F4CB}", color: "#faad14", bg: "#fffbe6" },
|
|
214
|
+
{ code: "TOPLAN", type: 6, name: "\u5730\u63A5", icon: "\u{1F91D}", color: "#1890ff", bg: "#e6f7ff" },
|
|
215
|
+
{ code: "OTHEROUT", type: 2, name: "\u5176\u4ED6\u652F\u51FA", icon: "\u{1F4BC}", color: "#8c8c8c", bg: "#fafafa" },
|
|
216
|
+
{ code: "OTHERIN", type: 1, name: "\u5176\u4ED6\u6536\u5165", icon: "\u{1F48E}", color: "#72AFF2", bg: "#D2EEFE" }
|
|
217
|
+
];
|
|
205
218
|
|
|
206
|
-
export { AccountTypeEnum, AppSysTypeData, AppSysTypeEnum, CurrencyData, HttpMethodEnum, JobCreateTypeEnum, PowerAreaData };
|
|
219
|
+
export { AccountTypeEnum, AppSysTypeData, AppSysTypeEnum, COST_CATEGORIES, CurrencyData, HttpMethodEnum, JobCreateTypeEnum, PowerAreaData };
|
|
@@ -39,15 +39,18 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
39
39
|
emit("handleInput", validNum);
|
|
40
40
|
return;
|
|
41
41
|
}
|
|
42
|
+
const strVal = String(val);
|
|
43
|
+
const isNegative = strVal.startsWith("-");
|
|
44
|
+
let pureVal = isNegative ? strVal.substring(1) : strVal;
|
|
42
45
|
if (props.bType == "number") {
|
|
43
|
-
let trimstr =
|
|
46
|
+
let trimstr = pureVal.replace(/[^\d]/g, "");
|
|
44
47
|
const num = parseInt(trimstr, 10);
|
|
45
48
|
const validNum = Number.isNaN(num) ? props.defaultValue : num;
|
|
46
|
-
modelValue.value = validNum;
|
|
47
|
-
emit("handleInput", validNum);
|
|
49
|
+
modelValue.value = isNegative ? -validNum : validNum;
|
|
50
|
+
emit("handleInput", isNegative ? -validNum : validNum);
|
|
48
51
|
return;
|
|
49
52
|
}
|
|
50
|
-
let cleaned =
|
|
53
|
+
let cleaned = pureVal.replace(/[^\d.]/g, "");
|
|
51
54
|
const dotIndex = cleaned.indexOf(".");
|
|
52
55
|
if (dotIndex !== -1) {
|
|
53
56
|
const before = cleaned.substring(0, dotIndex + 1);
|
|
@@ -64,8 +67,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
64
67
|
const [intPart, decPart] = cleaned.split(".");
|
|
65
68
|
cleaned = `${intPart}.${decPart.substring(0, props.decimalPlaces)}`;
|
|
66
69
|
}
|
|
67
|
-
modelValue.value = cleaned;
|
|
68
|
-
emit("handleInput", cleaned);
|
|
70
|
+
modelValue.value = isNegative ? -cleaned : cleaned;
|
|
71
|
+
emit("handleInput", isNegative ? -cleaned : cleaned);
|
|
69
72
|
};
|
|
70
73
|
watch(() => modelValue.value, (newvalue, oldValue) => {
|
|
71
74
|
if (newvalue == "") {
|
|
@@ -14,7 +14,7 @@ const usefminputdropdownstore = defineStore("fminputdropdownstore", () => {
|
|
|
14
14
|
return state.optionsData[basecode];
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
|
-
const res = await useBaseApi(apiService).get(null, apiAction + "/?codetype=" + basecode + "&mcodes=" + multibasecode.join(","));
|
|
17
|
+
const res = await useBaseApi(apiService, { loading: true }).get(null, apiAction + "/?codetype=" + basecode + "&mcodes=" + multibasecode.join(","));
|
|
18
18
|
if (multibasecode.length > 0) {
|
|
19
19
|
const mdata = (_a = res.data.result) != null ? _a : [];
|
|
20
20
|
multibasecode.forEach((p) => {
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! fmdeui-fmui v1.0.
|
|
1
|
+
/*! fmdeui-fmui v1.0.151 */
|
|
2
2
|
(function (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vxe-table'), require('@vxe-ui/plugin-render-element'), require('@vxe-ui/plugin-export-xlsx'), require('vxe-pc-ui'), require('exceljs'), require('@element-plus/icons-vue'), require('vue'), require('element-plus'), require('lodash-es'), require('js-cookie'), require('pinia'), require('vue-router'), require('@vueuse/core'), require('crypto-js'), require('xlsx-js-style'), require('vue-i18n'), require('sortablejs'), require('screenfull'), require('push.js'), require('mitt'), require('@microsoft/signalr'), require('axios')) :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(['exports', 'vxe-table', '@vxe-ui/plugin-render-element', '@vxe-ui/plugin-export-xlsx', 'vxe-pc-ui', 'exceljs', '@element-plus/icons-vue', 'vue', 'element-plus', 'lodash-es', 'js-cookie', 'pinia', 'vue-router', '@vueuse/core', 'crypto-js', 'xlsx-js-style', 'vue-i18n', 'sortablejs', 'screenfull', 'push.js', 'mitt', '@microsoft/signalr', 'axios'], factory) :
|
|
@@ -3871,6 +3871,19 @@
|
|
|
3871
3871
|
value: "LAK"
|
|
3872
3872
|
}
|
|
3873
3873
|
];
|
|
3874
|
+
const COST_CATEGORIES = [
|
|
3875
|
+
{ code: "HOTEL", type: 8, name: "\u623F\u8D39", icon: "\u{1F3E8}", color: "#165dff", bg: "#e8f3ff" },
|
|
3876
|
+
{ code: "MEAL", type: 13, name: "\u9910\u8D39", icon: "\u{1F37D}\uFE0F", color: "#fa8c16", bg: "#fff7e6" },
|
|
3877
|
+
{ code: "BUS", type: 12, name: "\u8F66\u8D39", icon: "\u{1F68C}", color: "#722ed1", bg: "#f9f0ff" },
|
|
3878
|
+
{ code: "TICKET", type: 3, name: "\u7968\u52A1", icon: "\u{1F3AB}", color: "#13c2c2", bg: "#e6fffb" },
|
|
3879
|
+
{ code: "SCENIC", type: 11, name: "\u666F\u70B9", icon: "\uFE0F\u{1F3DE}\uFE0F", color: "#52c41a", bg: "#f6ffed" },
|
|
3880
|
+
{ code: "INSURE", type: 9, name: "\u4FDD\u9669", icon: "\u{1F6E1}\uFE0F", color: "#eb2f96", bg: "#fff0f6" },
|
|
3881
|
+
{ code: "GUIDE", type: 10, name: "\u5BFC\u670D", icon: "\u{1F468}\u200D", color: "#f5222d", bg: "#fff1f0" },
|
|
3882
|
+
{ code: "VISA", type: 15, name: "\u7B7E\u8BC1", icon: "\u{1F4CB}", color: "#faad14", bg: "#fffbe6" },
|
|
3883
|
+
{ code: "TOPLAN", type: 6, name: "\u5730\u63A5", icon: "\u{1F91D}", color: "#1890ff", bg: "#e6f7ff" },
|
|
3884
|
+
{ code: "OTHEROUT", type: 2, name: "\u5176\u4ED6\u652F\u51FA", icon: "\u{1F4BC}", color: "#8c8c8c", bg: "#fafafa" },
|
|
3885
|
+
{ code: "OTHERIN", type: 1, name: "\u5176\u4ED6\u6536\u5165", icon: "\u{1F48E}", color: "#72AFF2", bg: "#D2EEFE" }
|
|
3886
|
+
];
|
|
3874
3887
|
|
|
3875
3888
|
const useUserInfo = pinia$1.defineStore("userInfo", {
|
|
3876
3889
|
state: () => ({
|
|
@@ -4053,7 +4066,7 @@
|
|
|
4053
4066
|
return state.optionsData[basecode];
|
|
4054
4067
|
}
|
|
4055
4068
|
}
|
|
4056
|
-
const res = await useBaseApi(apiService).get(null, apiAction + "/?codetype=" + basecode + "&mcodes=" + multibasecode.join(","));
|
|
4069
|
+
const res = await useBaseApi(apiService, { loading: true }).get(null, apiAction + "/?codetype=" + basecode + "&mcodes=" + multibasecode.join(","));
|
|
4057
4070
|
if (multibasecode.length > 0) {
|
|
4058
4071
|
const mdata = (_a = res.data.result) != null ? _a : [];
|
|
4059
4072
|
multibasecode.forEach((p) => {
|
|
@@ -27423,15 +27436,18 @@
|
|
|
27423
27436
|
emit("handleInput", validNum);
|
|
27424
27437
|
return;
|
|
27425
27438
|
}
|
|
27439
|
+
const strVal = String(val);
|
|
27440
|
+
const isNegative = strVal.startsWith("-");
|
|
27441
|
+
let pureVal = isNegative ? strVal.substring(1) : strVal;
|
|
27426
27442
|
if (props.bType == "number") {
|
|
27427
|
-
let trimstr =
|
|
27443
|
+
let trimstr = pureVal.replace(/[^\d]/g, "");
|
|
27428
27444
|
const num = parseInt(trimstr, 10);
|
|
27429
27445
|
const validNum = Number.isNaN(num) ? props.defaultValue : num;
|
|
27430
|
-
modelValue.value = validNum;
|
|
27431
|
-
emit("handleInput", validNum);
|
|
27446
|
+
modelValue.value = isNegative ? -validNum : validNum;
|
|
27447
|
+
emit("handleInput", isNegative ? -validNum : validNum);
|
|
27432
27448
|
return;
|
|
27433
27449
|
}
|
|
27434
|
-
let cleaned =
|
|
27450
|
+
let cleaned = pureVal.replace(/[^\d.]/g, "");
|
|
27435
27451
|
const dotIndex = cleaned.indexOf(".");
|
|
27436
27452
|
if (dotIndex !== -1) {
|
|
27437
27453
|
const before = cleaned.substring(0, dotIndex + 1);
|
|
@@ -27448,8 +27464,8 @@
|
|
|
27448
27464
|
const [intPart, decPart] = cleaned.split(".");
|
|
27449
27465
|
cleaned = `${intPart}.${decPart.substring(0, props.decimalPlaces)}`;
|
|
27450
27466
|
}
|
|
27451
|
-
modelValue.value = cleaned;
|
|
27452
|
-
emit("handleInput", cleaned);
|
|
27467
|
+
modelValue.value = isNegative ? -cleaned : cleaned;
|
|
27468
|
+
emit("handleInput", isNegative ? -cleaned : cleaned);
|
|
27453
27469
|
};
|
|
27454
27470
|
vue.watch(() => modelValue.value, (newvalue, oldValue) => {
|
|
27455
27471
|
if (newvalue == "") {
|
|
@@ -34948,6 +34964,7 @@
|
|
|
34948
34964
|
exports.AppItem = AppItem;
|
|
34949
34965
|
exports.AppSysTypeData = AppSysTypeData;
|
|
34950
34966
|
exports.AppSysTypeEnum = AppSysTypeEnum;
|
|
34967
|
+
exports.COST_CATEGORIES = COST_CATEGORIES;
|
|
34951
34968
|
exports.CurrencyData = CurrencyData;
|
|
34952
34969
|
exports.HttpMethodEnum = HttpMethodEnum;
|
|
34953
34970
|
exports.JobCreateTypeEnum = JobCreateTypeEnum;
|