@fecp/designer 5.4.34 → 5.4.36
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/designer/package.json.mjs +1 -1
- package/es/designer/src/packages/formulaEditor/core/calculate.mjs +1 -0
- package/es/designer/src/packages/formulaEditor/core/customFunc.mjs +6 -0
- package/es/designer/src/packages/formulaEditor/core/functionCore.mjs +3 -1
- package/es/designer/src/packages/formulaEditor/function.mjs +14 -0
- package/es/designer.css +11 -11
- package/es/packages/vue/src/components/dialog/DialogRenderer.vue2.mjs +4 -2
- package/es/packages/vue/src/components/forms/date/Date.vue.mjs +5 -5
- package/es/packages/vue/src/components/forms/form/Form.vue.mjs +7 -7
- package/es/packages/vue/src/utils/formulajs/calculate.mjs +9 -0
- package/es/packages/vue/src/utils/formulajs/customFunc.mjs +12 -0
- package/es/packages/vue/src/utils/formulajs/functionCore.mjs +3 -1
- package/lib/designer/package.json.js +1 -1
- package/lib/designer/src/packages/formulaEditor/core/calculate.js +1 -0
- package/lib/designer/src/packages/formulaEditor/core/customFunc.js +6 -0
- package/lib/designer/src/packages/formulaEditor/core/functionCore.js +3 -1
- package/lib/designer/src/packages/formulaEditor/function.js +14 -0
- package/lib/designer.css +11 -11
- package/lib/packages/vue/src/components/dialog/DialogRenderer.vue2.js +4 -2
- package/lib/packages/vue/src/components/forms/date/Date.vue.js +5 -5
- package/lib/packages/vue/src/components/forms/form/Form.vue.js +7 -7
- package/lib/packages/vue/src/utils/formulajs/calculate.js +9 -0
- package/lib/packages/vue/src/utils/formulajs/customFunc.js +12 -0
- package/lib/packages/vue/src/utils/formulajs/functionCore.js +3 -1
- package/package.json +1 -1
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import * as index from "../../../../../node_modules/@formulajs/formulajs/lib/esm/index.mjs";
|
|
2
|
+
import * as customFunc from "./customFunc.mjs";
|
|
3
|
+
const Formula = { ...index, ...customFunc };
|
|
2
4
|
class FunctionCore {
|
|
3
5
|
constructor() {
|
|
4
|
-
Object.assign(FunctionCore.prototype,
|
|
6
|
+
Object.assign(FunctionCore.prototype, Formula);
|
|
5
7
|
}
|
|
6
8
|
executeFunction(str) {
|
|
7
9
|
const fn = new Function(
|
|
@@ -343,6 +343,20 @@ const functionList = [
|
|
|
343
343
|
example: 'DAY("2025/1/15") = 15',
|
|
344
344
|
usage: "DAY(日期)"
|
|
345
345
|
},
|
|
346
|
+
{
|
|
347
|
+
name: "DATEDELTA",
|
|
348
|
+
enCode: "DATEDELTA",
|
|
349
|
+
tip: "加减日期天数",
|
|
350
|
+
example: 'DATEDELTA("2025/1/15",2) = 2025/1/17',
|
|
351
|
+
usage: "DATEDELTA(指定日期,需要加减的天数)"
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
name: "EDATE",
|
|
355
|
+
enCode: "EDATE",
|
|
356
|
+
tip: "加减日期月份",
|
|
357
|
+
example: 'EDATE("2025/1/15",2) = 2025/3/15',
|
|
358
|
+
usage: "EDATE(指定日期,需要加减的月份数)"
|
|
359
|
+
},
|
|
346
360
|
{
|
|
347
361
|
name: "DAYS",
|
|
348
362
|
enCode: "DAYS",
|
package/es/designer.css
CHANGED
|
@@ -5708,18 +5708,18 @@ body,
|
|
|
5708
5708
|
:root,:host{--van-overlay-z-index: 1;--van-overlay-background: rgba(0, 0, 0, .7)}.van-overlay{position:fixed;top:0;left:0;z-index:var(--van-overlay-z-index);width:100%;height:100%;background:var(--van-overlay-background)}
|
|
5709
5709
|
:root,:host{--van-popup-background: var(--van-background-2);--van-popup-transition: transform var(--van-duration-base);--van-popup-round-radius: 16px;--van-popup-close-icon-size: 22px;--van-popup-close-icon-color: var(--van-gray-5);--van-popup-close-icon-margin: 16px;--van-popup-close-icon-z-index: 1}.van-overflow-hidden{overflow:hidden!important}.van-popup{position:fixed;max-height:100%;overflow-y:auto;box-sizing:border-box;background:var(--van-popup-background);transition:var(--van-popup-transition);-webkit-overflow-scrolling:touch}.van-popup--center{top:50%;left:0;right:0;width:-webkit-fit-content;width:fit-content;max-width:calc(100vw - var(--van-padding-md) * 2);margin:0 auto;transform:translateY(-50%)}.van-popup--center.van-popup--round{border-radius:var(--van-popup-round-radius)}.van-popup--top{top:0;left:0;width:100%}.van-popup--top.van-popup--round{border-radius:0 0 var(--van-popup-round-radius) var(--van-popup-round-radius)}.van-popup--right{top:50%;right:0;transform:translate3d(0,-50%,0)}.van-popup--right.van-popup--round{border-radius:var(--van-popup-round-radius) 0 0 var(--van-popup-round-radius)}.van-popup--bottom{bottom:0;left:0;width:100%}.van-popup--bottom.van-popup--round{border-radius:var(--van-popup-round-radius) var(--van-popup-round-radius) 0 0}.van-popup--left{top:50%;left:0;transform:translate3d(0,-50%,0)}.van-popup--left.van-popup--round{border-radius:0 var(--van-popup-round-radius) var(--van-popup-round-radius) 0}.van-popup-slide-top-enter-active,.van-popup-slide-left-enter-active,.van-popup-slide-right-enter-active,.van-popup-slide-bottom-enter-active{transition-timing-function:var(--van-ease-out)}.van-popup-slide-top-leave-active,.van-popup-slide-left-leave-active,.van-popup-slide-right-leave-active,.van-popup-slide-bottom-leave-active{transition-timing-function:var(--van-ease-in)}.van-popup-slide-top-enter-from,.van-popup-slide-top-leave-active{transform:translate3d(0,-100%,0)}.van-popup-slide-right-enter-from,.van-popup-slide-right-leave-active{transform:translate3d(100%,-50%,0)}.van-popup-slide-bottom-enter-from,.van-popup-slide-bottom-leave-active{transform:translate3d(0,100%,0)}.van-popup-slide-left-enter-from,.van-popup-slide-left-leave-active{transform:translate3d(-100%,-50%,0)}.van-popup__close-icon{position:absolute;z-index:var(--van-popup-close-icon-z-index);color:var(--van-popup-close-icon-color);font-size:var(--van-popup-close-icon-size)}.van-popup__close-icon--top-left{top:var(--van-popup-close-icon-margin);left:var(--van-popup-close-icon-margin)}.van-popup__close-icon--top-right{top:var(--van-popup-close-icon-margin);right:var(--van-popup-close-icon-margin)}.van-popup__close-icon--bottom-left{bottom:var(--van-popup-close-icon-margin);left:var(--van-popup-close-icon-margin)}.van-popup__close-icon--bottom-right{right:var(--van-popup-close-icon-margin);bottom:var(--van-popup-close-icon-margin)}
|
|
5710
5710
|
:root,:host{--van-dialog-width: 320px;--van-dialog-small-screen-width: 90%;--van-dialog-font-size: var(--van-font-size-lg);--van-dialog-transition: var(--van-duration-base);--van-dialog-radius: 16px;--van-dialog-background: var(--van-background-2);--van-dialog-header-font-weight: var(--van-font-bold);--van-dialog-header-line-height: 24px;--van-dialog-header-padding-top: 26px;--van-dialog-header-isolated-padding: var(--van-padding-lg) 0;--van-dialog-message-padding: var(--van-padding-lg);--van-dialog-message-font-size: var(--van-font-size-md);--van-dialog-message-line-height: var(--van-line-height-md);--van-dialog-message-max-height: 60vh;--van-dialog-has-title-message-text-color: var(--van-gray-7);--van-dialog-has-title-message-padding-top: var(--van-padding-xs);--van-dialog-button-height: 48px;--van-dialog-round-button-height: 36px;--van-dialog-confirm-button-text-color: var(--van-primary-color)}.van-dialog{top:45%;width:var(--van-dialog-width);overflow:hidden;font-size:var(--van-dialog-font-size);background:var(--van-dialog-background);border-radius:var(--van-dialog-radius);-webkit-backface-visibility:hidden;backface-visibility:hidden;transition:var(--van-dialog-transition);transition-property:transform,opacity}@media (max-width: 321px){.van-dialog{width:var(--van-dialog-small-screen-width)}}.van-dialog__header{color:var(--van-text-color);padding-top:var(--van-dialog-header-padding-top);font-weight:var(--van-dialog-header-font-weight);line-height:var(--van-dialog-header-line-height);text-align:center}.van-dialog__header--isolated{padding:var(--van-dialog-header-isolated-padding)}.van-dialog__content--isolated{display:flex;align-items:center;min-height:104px}.van-dialog__message{color:var(--van-text-color);flex:1;max-height:var(--van-dialog-message-max-height);padding:26px var(--van-dialog-message-padding);overflow-y:auto;font-size:var(--van-dialog-message-font-size);line-height:var(--van-dialog-message-line-height);white-space:pre-wrap;text-align:center;word-wrap:break-word;-webkit-overflow-scrolling:touch}.van-dialog__message--has-title{padding-top:var(--van-dialog-has-title-message-padding-top);color:var(--van-dialog-has-title-message-text-color)}.van-dialog__message--left{text-align:left}.van-dialog__message--right{text-align:right}.van-dialog__message--justify{text-align:justify}.van-dialog__footer{display:flex;overflow:hidden;-webkit-user-select:none;user-select:none}.van-dialog__confirm,.van-dialog__cancel{flex:1;height:var(--van-dialog-button-height);margin:0;border:0;border-radius:0}.van-dialog__confirm,.van-dialog__confirm:active{color:var(--van-dialog-confirm-button-text-color)}.van-dialog--round-button .van-dialog__footer{position:relative;height:auto;padding:var(--van-padding-xs) var(--van-padding-lg) var(--van-padding-md)}.van-dialog--round-button .van-dialog__message{padding-bottom:var(--van-padding-md);color:var(--van-text-color)}.van-dialog--round-button .van-dialog__confirm,.van-dialog--round-button .van-dialog__cancel{height:var(--van-dialog-round-button-height)}.van-dialog--round-button .van-dialog__confirm{color:var(--van-white)}.van-dialog--round-button .van-action-bar-button--first{border-top-left-radius:var(--van-radius-max);border-bottom-left-radius:var(--van-radius-max)}.van-dialog--round-button .van-action-bar-button--last{border-top-right-radius:var(--van-radius-max);border-bottom-right-radius:var(--van-radius-max)}.van-dialog-bounce-enter-from{transform:translate3d(0,-50%,0) scale(.7);opacity:0}.van-dialog-bounce-leave-active{transform:translate3d(0,-50%,0) scale(.9);opacity:0}
|
|
5711
|
-
.dialog-header-content[data-v-
|
|
5711
|
+
.dialog-header-content[data-v-69ba3fa8] {
|
|
5712
5712
|
font-size: 16px;
|
|
5713
5713
|
font-weight: 600;
|
|
5714
5714
|
color: #303133;
|
|
5715
5715
|
}
|
|
5716
|
-
.dialog-content-wrapper[data-v-
|
|
5716
|
+
.dialog-content-wrapper[data-v-69ba3fa8] {
|
|
5717
5717
|
min-height: 500px;
|
|
5718
5718
|
flex-grow: 1;
|
|
5719
5719
|
display: flex;
|
|
5720
5720
|
flex-direction: column;
|
|
5721
5721
|
}
|
|
5722
|
-
.empty-content[data-v-
|
|
5722
|
+
.empty-content[data-v-69ba3fa8] {
|
|
5723
5723
|
display: flex;
|
|
5724
5724
|
align-items: center;
|
|
5725
5725
|
justify-content: center;
|
|
@@ -5727,13 +5727,13 @@ body,
|
|
|
5727
5727
|
color: #909399;
|
|
5728
5728
|
font-size: 14px;
|
|
5729
5729
|
}
|
|
5730
|
-
.component-error[data-v-
|
|
5730
|
+
.component-error[data-v-69ba3fa8] {
|
|
5731
5731
|
padding: 40px 20px;
|
|
5732
5732
|
text-align: center;
|
|
5733
5733
|
color: #f56c6c;
|
|
5734
5734
|
font-size: 14px;
|
|
5735
5735
|
}
|
|
5736
|
-
.fec-dialog-table[data-v-
|
|
5736
|
+
.fec-dialog-table[data-v-69ba3fa8] .table-pagination {
|
|
5737
5737
|
padding: 8px 0 0 0;
|
|
5738
5738
|
}.text-field-wrapper[data-v-185ddd14] {
|
|
5739
5739
|
width: 100%;
|
|
@@ -5904,27 +5904,27 @@ body,
|
|
|
5904
5904
|
width: 80px;
|
|
5905
5905
|
font-size: var(--el-font-size-extra-small);
|
|
5906
5906
|
}
|
|
5907
|
-
.fec-form[data-v-
|
|
5907
|
+
.fec-form[data-v-d28cc224] {
|
|
5908
5908
|
height: 100%;
|
|
5909
5909
|
}
|
|
5910
|
-
[data-v-
|
|
5910
|
+
[data-v-d28cc224] .vgl-item {
|
|
5911
5911
|
transition: none;
|
|
5912
5912
|
}
|
|
5913
|
-
[data-v-
|
|
5913
|
+
[data-v-d28cc224] .vgl-item > .el-form-item {
|
|
5914
5914
|
width: 100%;
|
|
5915
5915
|
padding: 12px 8px 0 8px;
|
|
5916
5916
|
height: calc(100% - 15px);
|
|
5917
5917
|
display: flex;
|
|
5918
5918
|
}
|
|
5919
|
-
[data-v-
|
|
5919
|
+
[data-v-d28cc224] .vgl-item > .el-form-item.el-form-item--label-top {
|
|
5920
5920
|
flex-direction: column;
|
|
5921
5921
|
}
|
|
5922
|
-
[data-v-
|
|
5922
|
+
[data-v-d28cc224] .vgl-item > .el-form-item .el-form-item__label {
|
|
5923
5923
|
line-height: 20px;
|
|
5924
5924
|
display: flex;
|
|
5925
5925
|
align-items: center;
|
|
5926
5926
|
}
|
|
5927
|
-
[data-v-
|
|
5927
|
+
[data-v-d28cc224] .vgl-item > .el-container {
|
|
5928
5928
|
height: auto !important;
|
|
5929
5929
|
}.cell-content .cell-text[data-v-3e5372d4] {
|
|
5930
5930
|
display: inline-block;
|
|
@@ -326,7 +326,8 @@ const _sfc_main = {
|
|
|
326
326
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dialogVisible.value = $event),
|
|
327
327
|
width: dialogWidth.value,
|
|
328
328
|
draggable: true,
|
|
329
|
-
"close-on-click-modal": false
|
|
329
|
+
"close-on-click-modal": false,
|
|
330
|
+
"append-to-body": ""
|
|
330
331
|
}, componentParams.value, {
|
|
331
332
|
formData: __props.formData,
|
|
332
333
|
onClose: handleClose,
|
|
@@ -338,6 +339,7 @@ const _sfc_main = {
|
|
|
338
339
|
width: dialogWidth.value,
|
|
339
340
|
draggable: true,
|
|
340
341
|
"close-on-click-modal": false,
|
|
342
|
+
"append-to-body": "",
|
|
341
343
|
class: "fec-dialog-renderer"
|
|
342
344
|
}, {
|
|
343
345
|
header: withCtx(() => {
|
|
@@ -436,7 +438,7 @@ const _sfc_main = {
|
|
|
436
438
|
};
|
|
437
439
|
}
|
|
438
440
|
};
|
|
439
|
-
const DialogRenderer = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
441
|
+
const DialogRenderer = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-69ba3fa8"]]);
|
|
440
442
|
export {
|
|
441
443
|
DialogRenderer as default
|
|
442
444
|
};
|
|
@@ -72,13 +72,13 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
72
72
|
});
|
|
73
73
|
const computedValueFormat = computed(() => {
|
|
74
74
|
const valueFormatMap = {
|
|
75
|
-
date: "YYYY
|
|
76
|
-
week: "YYYY
|
|
77
|
-
month: "YYYY
|
|
75
|
+
date: "YYYY/MM/DD",
|
|
76
|
+
week: "YYYY/MM/DD",
|
|
77
|
+
month: "YYYY/MM",
|
|
78
78
|
year: "YYYY",
|
|
79
|
-
datetime: "YYYY
|
|
79
|
+
datetime: "YYYY/MM/DD HH:mm:ss"
|
|
80
80
|
};
|
|
81
|
-
return valueFormatMap[props.dateType] || "YYYY
|
|
81
|
+
return valueFormatMap[props.dateType] || "YYYY/MM/DD";
|
|
82
82
|
});
|
|
83
83
|
const inputValue = computed({
|
|
84
84
|
get: () => props.modelValue,
|
|
@@ -636,11 +636,11 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
636
636
|
datetime: "YYYYMMDDHHmmss"
|
|
637
637
|
};
|
|
638
638
|
const formValueFormatMap = {
|
|
639
|
-
date: "YYYY
|
|
640
|
-
week: "YYYY
|
|
641
|
-
month: "YYYY
|
|
639
|
+
date: "YYYY/MM/DD",
|
|
640
|
+
week: "YYYY/MM/DD",
|
|
641
|
+
month: "YYYY/MM",
|
|
642
642
|
year: "YYYY",
|
|
643
|
-
datetime: "YYYY
|
|
643
|
+
datetime: "YYYY/MM/DD HH:mm:ss"
|
|
644
644
|
};
|
|
645
645
|
const getFormData = () => {
|
|
646
646
|
const result = { ...formData.value };
|
|
@@ -659,7 +659,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
659
659
|
} else if (fieldName && fieldType === "date" && value) {
|
|
660
660
|
const dateValueType = field.dateValueType;
|
|
661
661
|
const valueFormat = valueFormatMap[field.dateType] || "YYYYMMDD";
|
|
662
|
-
const formValueFormat = formValueFormatMap[field.dateType] || "YYYY
|
|
662
|
+
const formValueFormat = formValueFormatMap[field.dateType] || "YYYY/MM/DD";
|
|
663
663
|
switch (dateValueType) {
|
|
664
664
|
case "date":
|
|
665
665
|
result[fieldName] = hooks(value, formValueFormat).toDate();
|
|
@@ -717,7 +717,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
717
717
|
});
|
|
718
718
|
} else if (fieldName && fieldType === "date" && value) {
|
|
719
719
|
const valueFormat = valueFormatMap[field.dateType] || "YYYYMMDD";
|
|
720
|
-
const formValueFormat = formValueFormatMap[field.dateType] || "YYYY
|
|
720
|
+
const formValueFormat = formValueFormatMap[field.dateType] || "YYYY/MM/DD";
|
|
721
721
|
processedData[fieldName] = hooks(value, valueFormat).format(
|
|
722
722
|
formValueFormat
|
|
723
723
|
);
|
|
@@ -1064,7 +1064,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
1064
1064
|
};
|
|
1065
1065
|
}
|
|
1066
1066
|
});
|
|
1067
|
-
const _Form = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
1067
|
+
const _Form = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-d28cc224"]]);
|
|
1068
1068
|
export {
|
|
1069
1069
|
_Form as default
|
|
1070
1070
|
};
|
|
@@ -58,6 +58,15 @@ function calculate(params) {
|
|
|
58
58
|
offset += data.toString().length - (endIndex - startIndex);
|
|
59
59
|
}
|
|
60
60
|
const result = functionCore.executeFunction(str);
|
|
61
|
+
if (result instanceof Date) {
|
|
62
|
+
const year = result.getFullYear();
|
|
63
|
+
const month = String(result.getMonth() + 1).padStart(2, "0");
|
|
64
|
+
const day = String(result.getDate()).padStart(2, "0");
|
|
65
|
+
const hh = String(result.getHours()).padStart(2, "0");
|
|
66
|
+
const mm = String(result.getMinutes()).padStart(2, "0");
|
|
67
|
+
const ss = String(result.getSeconds()).padStart(2, "0");
|
|
68
|
+
return `${year}/${month}/${day} ${hh}:${mm}:${ss}`;
|
|
69
|
+
}
|
|
61
70
|
return result;
|
|
62
71
|
} catch (e) {
|
|
63
72
|
const errorTypes = {
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import * as index from "../../../../../node_modules/@formulajs/formulajs/lib/esm/index.mjs";
|
|
2
|
+
import * as customFunc from "./customFunc.mjs";
|
|
3
|
+
const Formula = { ...index, ...customFunc };
|
|
2
4
|
class FunctionCore {
|
|
3
5
|
constructor() {
|
|
4
|
-
Object.assign(FunctionCore.prototype,
|
|
6
|
+
Object.assign(FunctionCore.prototype, Formula);
|
|
5
7
|
}
|
|
6
8
|
executeFunction(str) {
|
|
7
9
|
const fn = new Function(
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const index = require("../../../../../node_modules/@formulajs/formulajs/lib/esm/index.js");
|
|
4
|
+
const customFunc = require("./customFunc.js");
|
|
5
|
+
const Formula = { ...index, ...customFunc };
|
|
4
6
|
class FunctionCore {
|
|
5
7
|
constructor() {
|
|
6
|
-
Object.assign(FunctionCore.prototype,
|
|
8
|
+
Object.assign(FunctionCore.prototype, Formula);
|
|
7
9
|
}
|
|
8
10
|
executeFunction(str) {
|
|
9
11
|
const fn = new Function(
|
|
@@ -345,6 +345,20 @@ const functionList = [
|
|
|
345
345
|
example: 'DAY("2025/1/15") = 15',
|
|
346
346
|
usage: "DAY(日期)"
|
|
347
347
|
},
|
|
348
|
+
{
|
|
349
|
+
name: "DATEDELTA",
|
|
350
|
+
enCode: "DATEDELTA",
|
|
351
|
+
tip: "加减日期天数",
|
|
352
|
+
example: 'DATEDELTA("2025/1/15",2) = 2025/1/17',
|
|
353
|
+
usage: "DATEDELTA(指定日期,需要加减的天数)"
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
name: "EDATE",
|
|
357
|
+
enCode: "EDATE",
|
|
358
|
+
tip: "加减日期月份",
|
|
359
|
+
example: 'EDATE("2025/1/15",2) = 2025/3/15',
|
|
360
|
+
usage: "EDATE(指定日期,需要加减的月份数)"
|
|
361
|
+
},
|
|
348
362
|
{
|
|
349
363
|
name: "DAYS",
|
|
350
364
|
enCode: "DAYS",
|
package/lib/designer.css
CHANGED
|
@@ -5708,18 +5708,18 @@ body,
|
|
|
5708
5708
|
:root,:host{--van-overlay-z-index: 1;--van-overlay-background: rgba(0, 0, 0, .7)}.van-overlay{position:fixed;top:0;left:0;z-index:var(--van-overlay-z-index);width:100%;height:100%;background:var(--van-overlay-background)}
|
|
5709
5709
|
:root,:host{--van-popup-background: var(--van-background-2);--van-popup-transition: transform var(--van-duration-base);--van-popup-round-radius: 16px;--van-popup-close-icon-size: 22px;--van-popup-close-icon-color: var(--van-gray-5);--van-popup-close-icon-margin: 16px;--van-popup-close-icon-z-index: 1}.van-overflow-hidden{overflow:hidden!important}.van-popup{position:fixed;max-height:100%;overflow-y:auto;box-sizing:border-box;background:var(--van-popup-background);transition:var(--van-popup-transition);-webkit-overflow-scrolling:touch}.van-popup--center{top:50%;left:0;right:0;width:-webkit-fit-content;width:fit-content;max-width:calc(100vw - var(--van-padding-md) * 2);margin:0 auto;transform:translateY(-50%)}.van-popup--center.van-popup--round{border-radius:var(--van-popup-round-radius)}.van-popup--top{top:0;left:0;width:100%}.van-popup--top.van-popup--round{border-radius:0 0 var(--van-popup-round-radius) var(--van-popup-round-radius)}.van-popup--right{top:50%;right:0;transform:translate3d(0,-50%,0)}.van-popup--right.van-popup--round{border-radius:var(--van-popup-round-radius) 0 0 var(--van-popup-round-radius)}.van-popup--bottom{bottom:0;left:0;width:100%}.van-popup--bottom.van-popup--round{border-radius:var(--van-popup-round-radius) var(--van-popup-round-radius) 0 0}.van-popup--left{top:50%;left:0;transform:translate3d(0,-50%,0)}.van-popup--left.van-popup--round{border-radius:0 var(--van-popup-round-radius) var(--van-popup-round-radius) 0}.van-popup-slide-top-enter-active,.van-popup-slide-left-enter-active,.van-popup-slide-right-enter-active,.van-popup-slide-bottom-enter-active{transition-timing-function:var(--van-ease-out)}.van-popup-slide-top-leave-active,.van-popup-slide-left-leave-active,.van-popup-slide-right-leave-active,.van-popup-slide-bottom-leave-active{transition-timing-function:var(--van-ease-in)}.van-popup-slide-top-enter-from,.van-popup-slide-top-leave-active{transform:translate3d(0,-100%,0)}.van-popup-slide-right-enter-from,.van-popup-slide-right-leave-active{transform:translate3d(100%,-50%,0)}.van-popup-slide-bottom-enter-from,.van-popup-slide-bottom-leave-active{transform:translate3d(0,100%,0)}.van-popup-slide-left-enter-from,.van-popup-slide-left-leave-active{transform:translate3d(-100%,-50%,0)}.van-popup__close-icon{position:absolute;z-index:var(--van-popup-close-icon-z-index);color:var(--van-popup-close-icon-color);font-size:var(--van-popup-close-icon-size)}.van-popup__close-icon--top-left{top:var(--van-popup-close-icon-margin);left:var(--van-popup-close-icon-margin)}.van-popup__close-icon--top-right{top:var(--van-popup-close-icon-margin);right:var(--van-popup-close-icon-margin)}.van-popup__close-icon--bottom-left{bottom:var(--van-popup-close-icon-margin);left:var(--van-popup-close-icon-margin)}.van-popup__close-icon--bottom-right{right:var(--van-popup-close-icon-margin);bottom:var(--van-popup-close-icon-margin)}
|
|
5710
5710
|
:root,:host{--van-dialog-width: 320px;--van-dialog-small-screen-width: 90%;--van-dialog-font-size: var(--van-font-size-lg);--van-dialog-transition: var(--van-duration-base);--van-dialog-radius: 16px;--van-dialog-background: var(--van-background-2);--van-dialog-header-font-weight: var(--van-font-bold);--van-dialog-header-line-height: 24px;--van-dialog-header-padding-top: 26px;--van-dialog-header-isolated-padding: var(--van-padding-lg) 0;--van-dialog-message-padding: var(--van-padding-lg);--van-dialog-message-font-size: var(--van-font-size-md);--van-dialog-message-line-height: var(--van-line-height-md);--van-dialog-message-max-height: 60vh;--van-dialog-has-title-message-text-color: var(--van-gray-7);--van-dialog-has-title-message-padding-top: var(--van-padding-xs);--van-dialog-button-height: 48px;--van-dialog-round-button-height: 36px;--van-dialog-confirm-button-text-color: var(--van-primary-color)}.van-dialog{top:45%;width:var(--van-dialog-width);overflow:hidden;font-size:var(--van-dialog-font-size);background:var(--van-dialog-background);border-radius:var(--van-dialog-radius);-webkit-backface-visibility:hidden;backface-visibility:hidden;transition:var(--van-dialog-transition);transition-property:transform,opacity}@media (max-width: 321px){.van-dialog{width:var(--van-dialog-small-screen-width)}}.van-dialog__header{color:var(--van-text-color);padding-top:var(--van-dialog-header-padding-top);font-weight:var(--van-dialog-header-font-weight);line-height:var(--van-dialog-header-line-height);text-align:center}.van-dialog__header--isolated{padding:var(--van-dialog-header-isolated-padding)}.van-dialog__content--isolated{display:flex;align-items:center;min-height:104px}.van-dialog__message{color:var(--van-text-color);flex:1;max-height:var(--van-dialog-message-max-height);padding:26px var(--van-dialog-message-padding);overflow-y:auto;font-size:var(--van-dialog-message-font-size);line-height:var(--van-dialog-message-line-height);white-space:pre-wrap;text-align:center;word-wrap:break-word;-webkit-overflow-scrolling:touch}.van-dialog__message--has-title{padding-top:var(--van-dialog-has-title-message-padding-top);color:var(--van-dialog-has-title-message-text-color)}.van-dialog__message--left{text-align:left}.van-dialog__message--right{text-align:right}.van-dialog__message--justify{text-align:justify}.van-dialog__footer{display:flex;overflow:hidden;-webkit-user-select:none;user-select:none}.van-dialog__confirm,.van-dialog__cancel{flex:1;height:var(--van-dialog-button-height);margin:0;border:0;border-radius:0}.van-dialog__confirm,.van-dialog__confirm:active{color:var(--van-dialog-confirm-button-text-color)}.van-dialog--round-button .van-dialog__footer{position:relative;height:auto;padding:var(--van-padding-xs) var(--van-padding-lg) var(--van-padding-md)}.van-dialog--round-button .van-dialog__message{padding-bottom:var(--van-padding-md);color:var(--van-text-color)}.van-dialog--round-button .van-dialog__confirm,.van-dialog--round-button .van-dialog__cancel{height:var(--van-dialog-round-button-height)}.van-dialog--round-button .van-dialog__confirm{color:var(--van-white)}.van-dialog--round-button .van-action-bar-button--first{border-top-left-radius:var(--van-radius-max);border-bottom-left-radius:var(--van-radius-max)}.van-dialog--round-button .van-action-bar-button--last{border-top-right-radius:var(--van-radius-max);border-bottom-right-radius:var(--van-radius-max)}.van-dialog-bounce-enter-from{transform:translate3d(0,-50%,0) scale(.7);opacity:0}.van-dialog-bounce-leave-active{transform:translate3d(0,-50%,0) scale(.9);opacity:0}
|
|
5711
|
-
.dialog-header-content[data-v-
|
|
5711
|
+
.dialog-header-content[data-v-69ba3fa8] {
|
|
5712
5712
|
font-size: 16px;
|
|
5713
5713
|
font-weight: 600;
|
|
5714
5714
|
color: #303133;
|
|
5715
5715
|
}
|
|
5716
|
-
.dialog-content-wrapper[data-v-
|
|
5716
|
+
.dialog-content-wrapper[data-v-69ba3fa8] {
|
|
5717
5717
|
min-height: 500px;
|
|
5718
5718
|
flex-grow: 1;
|
|
5719
5719
|
display: flex;
|
|
5720
5720
|
flex-direction: column;
|
|
5721
5721
|
}
|
|
5722
|
-
.empty-content[data-v-
|
|
5722
|
+
.empty-content[data-v-69ba3fa8] {
|
|
5723
5723
|
display: flex;
|
|
5724
5724
|
align-items: center;
|
|
5725
5725
|
justify-content: center;
|
|
@@ -5727,13 +5727,13 @@ body,
|
|
|
5727
5727
|
color: #909399;
|
|
5728
5728
|
font-size: 14px;
|
|
5729
5729
|
}
|
|
5730
|
-
.component-error[data-v-
|
|
5730
|
+
.component-error[data-v-69ba3fa8] {
|
|
5731
5731
|
padding: 40px 20px;
|
|
5732
5732
|
text-align: center;
|
|
5733
5733
|
color: #f56c6c;
|
|
5734
5734
|
font-size: 14px;
|
|
5735
5735
|
}
|
|
5736
|
-
.fec-dialog-table[data-v-
|
|
5736
|
+
.fec-dialog-table[data-v-69ba3fa8] .table-pagination {
|
|
5737
5737
|
padding: 8px 0 0 0;
|
|
5738
5738
|
}.text-field-wrapper[data-v-185ddd14] {
|
|
5739
5739
|
width: 100%;
|
|
@@ -5904,27 +5904,27 @@ body,
|
|
|
5904
5904
|
width: 80px;
|
|
5905
5905
|
font-size: var(--el-font-size-extra-small);
|
|
5906
5906
|
}
|
|
5907
|
-
.fec-form[data-v-
|
|
5907
|
+
.fec-form[data-v-d28cc224] {
|
|
5908
5908
|
height: 100%;
|
|
5909
5909
|
}
|
|
5910
|
-
[data-v-
|
|
5910
|
+
[data-v-d28cc224] .vgl-item {
|
|
5911
5911
|
transition: none;
|
|
5912
5912
|
}
|
|
5913
|
-
[data-v-
|
|
5913
|
+
[data-v-d28cc224] .vgl-item > .el-form-item {
|
|
5914
5914
|
width: 100%;
|
|
5915
5915
|
padding: 12px 8px 0 8px;
|
|
5916
5916
|
height: calc(100% - 15px);
|
|
5917
5917
|
display: flex;
|
|
5918
5918
|
}
|
|
5919
|
-
[data-v-
|
|
5919
|
+
[data-v-d28cc224] .vgl-item > .el-form-item.el-form-item--label-top {
|
|
5920
5920
|
flex-direction: column;
|
|
5921
5921
|
}
|
|
5922
|
-
[data-v-
|
|
5922
|
+
[data-v-d28cc224] .vgl-item > .el-form-item .el-form-item__label {
|
|
5923
5923
|
line-height: 20px;
|
|
5924
5924
|
display: flex;
|
|
5925
5925
|
align-items: center;
|
|
5926
5926
|
}
|
|
5927
|
-
[data-v-
|
|
5927
|
+
[data-v-d28cc224] .vgl-item > .el-container {
|
|
5928
5928
|
height: auto !important;
|
|
5929
5929
|
}.cell-content .cell-text[data-v-3e5372d4] {
|
|
5930
5930
|
display: inline-block;
|
|
@@ -328,7 +328,8 @@ const _sfc_main = {
|
|
|
328
328
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dialogVisible.value = $event),
|
|
329
329
|
width: dialogWidth.value,
|
|
330
330
|
draggable: true,
|
|
331
|
-
"close-on-click-modal": false
|
|
331
|
+
"close-on-click-modal": false,
|
|
332
|
+
"append-to-body": ""
|
|
332
333
|
}, componentParams.value, {
|
|
333
334
|
formData: __props.formData,
|
|
334
335
|
onClose: handleClose,
|
|
@@ -340,6 +341,7 @@ const _sfc_main = {
|
|
|
340
341
|
width: dialogWidth.value,
|
|
341
342
|
draggable: true,
|
|
342
343
|
"close-on-click-modal": false,
|
|
344
|
+
"append-to-body": "",
|
|
343
345
|
class: "fec-dialog-renderer"
|
|
344
346
|
}, {
|
|
345
347
|
header: vue.withCtx(() => {
|
|
@@ -438,5 +440,5 @@ const _sfc_main = {
|
|
|
438
440
|
};
|
|
439
441
|
}
|
|
440
442
|
};
|
|
441
|
-
const DialogRenderer = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
443
|
+
const DialogRenderer = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-69ba3fa8"]]);
|
|
442
444
|
exports.default = DialogRenderer;
|
|
@@ -74,13 +74,13 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
74
74
|
});
|
|
75
75
|
const computedValueFormat = vue.computed(() => {
|
|
76
76
|
const valueFormatMap = {
|
|
77
|
-
date: "YYYY
|
|
78
|
-
week: "YYYY
|
|
79
|
-
month: "YYYY
|
|
77
|
+
date: "YYYY/MM/DD",
|
|
78
|
+
week: "YYYY/MM/DD",
|
|
79
|
+
month: "YYYY/MM",
|
|
80
80
|
year: "YYYY",
|
|
81
|
-
datetime: "YYYY
|
|
81
|
+
datetime: "YYYY/MM/DD HH:mm:ss"
|
|
82
82
|
};
|
|
83
|
-
return valueFormatMap[props.dateType] || "YYYY
|
|
83
|
+
return valueFormatMap[props.dateType] || "YYYY/MM/DD";
|
|
84
84
|
});
|
|
85
85
|
const inputValue = vue.computed({
|
|
86
86
|
get: () => props.modelValue,
|
|
@@ -638,11 +638,11 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
638
638
|
datetime: "YYYYMMDDHHmmss"
|
|
639
639
|
};
|
|
640
640
|
const formValueFormatMap = {
|
|
641
|
-
date: "YYYY
|
|
642
|
-
week: "YYYY
|
|
643
|
-
month: "YYYY
|
|
641
|
+
date: "YYYY/MM/DD",
|
|
642
|
+
week: "YYYY/MM/DD",
|
|
643
|
+
month: "YYYY/MM",
|
|
644
644
|
year: "YYYY",
|
|
645
|
-
datetime: "YYYY
|
|
645
|
+
datetime: "YYYY/MM/DD HH:mm:ss"
|
|
646
646
|
};
|
|
647
647
|
const getFormData = () => {
|
|
648
648
|
const result = { ...formData.value };
|
|
@@ -661,7 +661,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
661
661
|
} else if (fieldName && fieldType === "date" && value) {
|
|
662
662
|
const dateValueType = field.dateValueType;
|
|
663
663
|
const valueFormat = valueFormatMap[field.dateType] || "YYYYMMDD";
|
|
664
|
-
const formValueFormat = formValueFormatMap[field.dateType] || "YYYY
|
|
664
|
+
const formValueFormat = formValueFormatMap[field.dateType] || "YYYY/MM/DD";
|
|
665
665
|
switch (dateValueType) {
|
|
666
666
|
case "date":
|
|
667
667
|
result[fieldName] = moment.default(value, formValueFormat).toDate();
|
|
@@ -719,7 +719,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
719
719
|
});
|
|
720
720
|
} else if (fieldName && fieldType === "date" && value) {
|
|
721
721
|
const valueFormat = valueFormatMap[field.dateType] || "YYYYMMDD";
|
|
722
|
-
const formValueFormat = formValueFormatMap[field.dateType] || "YYYY
|
|
722
|
+
const formValueFormat = formValueFormatMap[field.dateType] || "YYYY/MM/DD";
|
|
723
723
|
processedData[fieldName] = moment.default(value, valueFormat).format(
|
|
724
724
|
formValueFormat
|
|
725
725
|
);
|
|
@@ -1066,5 +1066,5 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
1066
1066
|
};
|
|
1067
1067
|
}
|
|
1068
1068
|
});
|
|
1069
|
-
const _Form = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
1069
|
+
const _Form = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-d28cc224"]]);
|
|
1070
1070
|
exports.default = _Form;
|
|
@@ -60,6 +60,15 @@ function calculate(params) {
|
|
|
60
60
|
offset += data.toString().length - (endIndex - startIndex);
|
|
61
61
|
}
|
|
62
62
|
const result = functionCore.default.executeFunction(str);
|
|
63
|
+
if (result instanceof Date) {
|
|
64
|
+
const year = result.getFullYear();
|
|
65
|
+
const month = String(result.getMonth() + 1).padStart(2, "0");
|
|
66
|
+
const day = String(result.getDate()).padStart(2, "0");
|
|
67
|
+
const hh = String(result.getHours()).padStart(2, "0");
|
|
68
|
+
const mm = String(result.getMinutes()).padStart(2, "0");
|
|
69
|
+
const ss = String(result.getSeconds()).padStart(2, "0");
|
|
70
|
+
return `${year}/${month}/${day} ${hh}:${mm}:${ss}`;
|
|
71
|
+
}
|
|
63
72
|
return result;
|
|
64
73
|
} catch (e) {
|
|
65
74
|
const errorTypes = {
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const DATEDELTA = (dateStr, offset) => {
|
|
4
|
+
const date = new Date(dateStr);
|
|
5
|
+
if (isNaN(date.getTime())) {
|
|
6
|
+
return null;
|
|
7
|
+
}
|
|
8
|
+
const result = new Date(date);
|
|
9
|
+
result.setDate(result.getDate() + offset);
|
|
10
|
+
return result;
|
|
11
|
+
};
|
|
12
|
+
exports.DATEDELTA = DATEDELTA;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const index = require("../../../../../node_modules/@formulajs/formulajs/lib/esm/index.js");
|
|
4
|
+
const customFunc = require("./customFunc.js");
|
|
5
|
+
const Formula = { ...index, ...customFunc };
|
|
4
6
|
class FunctionCore {
|
|
5
7
|
constructor() {
|
|
6
|
-
Object.assign(FunctionCore.prototype,
|
|
8
|
+
Object.assign(FunctionCore.prototype, Formula);
|
|
7
9
|
}
|
|
8
10
|
executeFunction(str) {
|
|
9
11
|
const fn = new Function(
|